/* GLOBAL VARIABES (Moved to the very top so everything below can read them) */
:root {
    --base-color: #ffffff;
    --text-color: #737373;
    --paleblue-color: #6cb1d8;
    --magenta-color: #b22672;
    --darkblue-color: #3a516d;
}

/* 2. GLOBAL RESET (Fixed syntax to apply box-sizing universally) */
*, *::before, *::after { 
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
} 

html {
  scroll-behavior: smooth;
}
/* 3. TYPOGRAPHY BASICS */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; 
    background-color: var(--base-color);
    color: var(--text-color);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
}
        
/* Top full-width announcement block */
.color-banner1 {
    width: 100%;             
    height: auto;
    padding: 6px 10px;          
    background-color: var(--darkblue-color); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-banner1 .banner-text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    margin: 0;
    text-align: center;         
    line-height: 1.4;           
}

/* Logo layout spacing */
.curved-text-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0 auto;
    display: block;
    position: relative;
    z-index: 999;
}

.cafe-logo-text {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 24px !important; 
    text-align: center; 
}

/* 4. NAVIGATION MENU (Cleaned up and combined) */
.navbar {
    width: 100%;
    padding: 10px 0;
}

.nav-menu {
    display: flex; 
    flex-direction: row;        
    justify-content: center; 
    align-items: center;
    flex-wrap: wrap;   
    list-style: none;           
    margin: 0;
    padding: 0;
    width: 100%;               
}

.nav-menu li {
    display: inline-block;
    margin: 0 15px;          
}

.nav-menu a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--darkblue-color); 
    padding: 10px 15px;          
    transition: color 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    color: var(--magenta-color);  
}

/* Common text utilities */
.text-block {
    flex: 1;                        
}

.text-block h3 {
    color: var(--darkblue-color);   
    margin: 0 0 12px 0;             
    font-size: 18px;
    font-weight: 700;
}

.text-block p {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;               
    margin: 0;
}

/* 5. INDEX PAGE HERO / HERO OVERLAY BLOCK */
.flex-container-1 {
    display: flex;
    flex-direction: row;       
    justify-content: center;   
    gap: 0px;                 
    width: 100%;
    margin: 30px auto;         
    position: relative;      
}

.flex-container-1 img {
    border: none; 
    margin: 0;
    padding: 0;
    display: block;
    max-width: 100%; /* Ensures hero image elements scale down beautifully */
    height: auto;
}

.image-overlay-box {
    position: absolute;       
    top: 50%;                 
    left: 50%;                
    transform: translate(-50%, -50%); 
    background-color: transparent; 
    z-index: 10;              
    display: flex;
    flex-direction: column;    
    align-items: center;       
    gap: 15px;                 
}

.image-overlay-box .overlay-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    color: white;
    text-align: center;
    white-space: nowrap;
}

.image-overlay-box .button-group {
    display: flex;
    flex-direction: row;       
    gap: 15px;                 
}

.image-overlay-box .btn-primary,
.image-overlay-box .btn-secondary {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    color: #ffffff;                 
    background-color: var(--magenta-color); 
    padding: 12px 24px;            
    border-radius: 50px;           
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-overlay-box .btn-primary:hover,
.image-overlay-box .btn-secondary:hover {
    background-color: #d81b7a;     
    transform: translateY(-2px);   
}

.image-overlay-box .btn-primary:active,
.image-overlay-box .btn-secondary:active {
    transform: translateY(0);      
}

/* 6. ADDITIONAL CONTENT SECTIONS */
.new-section-container-i1 {
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    max-width: 600px;           
    margin: 40px auto;          
    padding: 0 10px;            
    box-sizing: border-box;
}

.new-section-i1-img {
    width: 250px;               
    height: auto;               
    display: block;
}

/* Controls the layout of the text block */
.new-section-i1-text {
    flex: 1;                    /* Takes up all remaining space next to the image */
    margin-left: 30px;          /* Creates a clean gap between image and text */
    font-family: 'Montserrat', sans-serif;
}

.new-section-i1-text h2 {
    color: var(--darkblue-color);
    margin: 0 0 10px 0;         /* Removes default top margin, adds space below */
}

.new-section-i1-text p {
    margin: 0;
    color: #333333;             /* Clean, readable text colour */
}

/* Creates the side-by-side layout and limits the total width to match your images */
.text-blocks-container {
    display: flex;
    justify-content: space-between; /* Pushes the two blocks to opposite sides */
    gap: 30px;                      /* Creates a clean gap between the text blocks */
    max-width: 600px;               /* Matches the width of your layout exactly */
    margin: 40px auto;              /* Centers the section horizontally on the page */
    padding: 0 10px;                /* Keeps content safe from screen edges on mobile */
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}


/* ------------------End of Index Page stuff ----------------*/




 /*----------------------Menu Page stuff------------------------- */  
       /* --- STRICT COMPARTMENT BLOCK RESET --- */

.color-banner2 {
    display: block !important;    /* Overrides any ghost flex/grid rules */
    width: 100% !important;             
    height: auto !important;      /* FORCE: Tells the browser it CANNOT stay a constant height */
    min-height: 10px !important;  /* Establishes a floor, not a ceiling */
    
    padding: 20px 15px !important; /* Physically pads the ceiling and floor */
    background-color: var(--darkblue-color) !important; 
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both !important; 
}

.color-banner2 .banner-text {
    display: block !important;
    width: 100% !important;
    
    /* FORCE RESET: Eliminates default browser spacing pushing text upward */
    margin: 0 auto !important;    
    padding: 0 !important;        
    
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;           
    text-align: center !important;         
    line-height: 1.4 !important;  /* Ensures standard line spacing rules */
}

.color-banner2 .sub-text {
    display: block !important;    /* Drops content down cleanly to a new row */
    width: 100% !important;
    margin: 10px auto 0 auto !important;   
    padding: 0 !important;
    
    font-size: 13px !important;            
    font-weight: 400 !important;           
    opacity: 0.9 !important;               
    text-align: center !important;
}
/*  ----------------attempt at splitting into 2 images for mobiles only----------------- */
/* Styles for your full page hero image and watermark overlay */
        .full-page-hero-m1 {
    position: relative;
    width: 100%;
    height: max-content; /* FIX: Locks container height strictly to the image height */
    overflow: hidden;
    display: block;
    z-index: 1;
    margin-top: 0;
    clear: both; 
}

/* Force the mobile layout to stay completely hidden on desktops */
.mobile-banner-m1-view {
    display: none;
}


.full-page-hero-image-m1 {
    width: 100%;
    height: auto;
    display: block;
}





/*  -----------------  End of attempt at splitting into 2 images for mobiles only-----------------*/

        /* --------------------End of Menu page stuff--------------- */

            /* -----------------------------Order Page stuff---------------------*/
/* FIXED: Changed from color-banner3 to color-banner4 to match HTML */
        .color-banner4 {
            width: 100%;             
            height: auto;               
            padding: 35px 15px;         /* INCREASED: Makes the banner deeper to hold the button */
            background-color: var(--darkblue-color); 
            display: flex;
            flex-direction: column;     /* Stack elements vertically */
            justify-content: center;
            align-items: center;        /* Centers button horizontally */
            box-sizing: border-box;
        }
        
        .color-banner4 .banner-text {
            color: white;
            font-family: 'Montserrat', sans-serif;
            font-size: 22px;
            font-weight: 700;           
            margin: 0;
            text-align: center;         
            line-height: 1.4;
        }

        .color-banner4 .sub-text {
            display: block;             
            font-size: 13px;            
            font-weight: 400;           
            margin-top: 8px;            
            opacity: 0.9;               
        }
          /* NEW: Magenta Order Button Styles */
        .order-btn {
            display: inline-block;
            background-color: var(--magenta-color);
            color: white;
            font-family: 'Montserrat', sans-serif;
            font-size: 15px;
            font-weight: 700;
            text-decoration: none;      /* Removes link underline */
            padding: 12px 30px;
            margin-top: 20px;           /* Pushes it below the second line of text */
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: opacity 0.2s ease;
        }

        .order-btn:hover {
            opacity: 0.9;               /* Subtle hover effect */
            background-color: #d81b7a;     /* Slightly lighter magenta on hover */
            transform: translateY(-2px);   /* Subtle lift */
        }

         /* NEW: Row Layout Style for the 4 Images */
        .image-gallery-row {
            display: flex;
            flex-wrap: wrap; /* allows images to drop if needed   */
            justify-content: space-between; /* Creates completely equal spacing between items */
            gap: 15px;                      /* Defines the gap size between neighboring images */
            width: 100%;
            max-width: 1200px;              /* Caps width so it looks crisp on large monitors */
            margin: 30px auto;              /* Centers row on page, adds space below banner */
            padding: 0 15px;                /* Keeps images from touching edge of screen */
            box-sizing: border-box;
        }

        /* NEW: Image wrapper styling for perfect sizing */
        .image-gallery-row .gallery-item {
            flex: 1;                        /* Forces each image space to scale exactly equal */
            aspect-ratio: 4 / 3;            /* Keeps all images cropped to matching dimensions */
            overflow: hidden;
            border-radius: 6px;             /* Optional subtle rounded corners */
        }

        .image-gallery-row .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;              /* Crops and scales image cleanly inside its container */
            display: block;
        /* NEW: Mobile Responsiveness (Stacks images vertically on small phone screens) */
       

  
        }

   /*---------------------End of Order Page stuff---------------------*/


 /*---------------------Team Page stuff---------------------*/

   /* NEW: Three circular item row container */
        .three-columns-container {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            width: 100%;
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 15px;
            box-sizing: border-box;
        }

        /* NEW: Dark Blue Bordered box wrapping each pair */
        .circular-card {
            flex: 1;
            border: 2px solid var(--darkblue-color);
            border-radius: 8px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background-color: #ffffff;
            box-sizing: border-box;
        }

        /* NEW: Forces aspect ratio to stay perfectly circular */
        .circular-card img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 15px;
        }

        .circular-card p {
            font-family: 'Montserrat', sans-serif;
            font-size: 14px;
            color: #333;
            margin: 0;
            line-height: 1.5;
        }

        /* NEW: Bottom layout with image left, text right */
        .bottom-split-section-t1 {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            width: 100%;
            max-width: 1200px;
            margin: 40px auto 60px auto;
            padding: 0 15px;
            box-sizing: border-box;
        }

        .bottom-split-section-t1 .side-image {
            flex: 0 0 350px; /* Locks the image sizing */
            max-width: 100%;
        }

        .bottom-split-section-t1 .side-image img {
            width: 100%;
            height: auto;
            border-radius: 6px;
            display: block;
        }

        .bottom-split-section .side-text {
            flex: 1;
            font-family: 'Montserrat', sans-serif;
            font-size: 15px;
            color: #333;
            line-height: 1.6;
        }

        .bottom-split-section .side-text h2 {
            margin-top: 0;
            color: var(--darkblue-color);
        }
        
        

   

  /*---------------------End of Team Page stuff---------------------*/

 /*---------------------About Page stuff---------------------*/
  /* NEW: Bottom layout with image left, text right */
        .bottom-split-section-a1 {
            display: flex;
            align-items: flex-start;
            gap: 30px;
            width: 100%;
            max-width: 1200px;
            margin: 40px auto 60px auto;
            padding: 0 15px;
            box-sizing: border-box;
        }

        .bottom-split-section-a1 .side-image {
            flex: 0 0 350px; /* Locks the image sizing */
            max-width: 100%;
            align-self:stretch; /*forces it t0 match text block height */
        }

        .bottom-split-section-a1 .side-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /*crops the image cleanly if necc */
            border-radius: 6px;
            display: block;
        }

        .bottom-split-section-a1 .side-text {
            flex: 1;
            font-family: 'Montserrat', sans-serif;
            font-size: 15px;
            color: #333;
            line-height: 1.6;
        }

        .bottom-split-section-a1 .side-text h2 {
            margin-top: 0;
            color: var(--darkblue-color);
        }
  /*---------------------End of About Page stuff---------------------*/


   /*---------------------Contact Page stuff---------------------*/

/* ==========================================================================
   CONTACT PAGE DESKTOP STYLES (Flat, Safe Syntax)
   ========================================================================== */

/* Middle full-width announcement block */
.contact-page .color-banner2 {
    width: 100%;             
    height: 60px;           
    background-color: var(--darkblue-color); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-page .color-banner2 .banner-text {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin: 0;
}
.text-blocks-container-c1 {
    display: flex;
    justify-content: space-between; /* Pushes the two blocks to opposite sides */
    gap: 30px;                      /* Creates a clean gap between the text blocks */
    max-width: 600px;               /* Matches the width of your layout exactly */
    margin: 40px auto;              /* Centers the section horizontally on the page */
    padding: 0 10px;                /* Keeps content safe from screen edges on mobile */
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

/* Centers the map container and locks it to the 600px theme width */
.contact-page .map-container {
    max-width: 600px;
    margin: 40px auto;   
    padding: 0 10px;     
    box-sizing: border-box;
}

/* Makes the map completely fluid and responsive inside its container */
.contact-page .map-container iframe {
    width: 100%;         
    border-radius: 8px;  
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
}

/* Flex grid parent setup for the logos row */
.contact-page .social-logos {
    display: flex;
    flex-wrap: wrap;           
    justify-content: center;   
    align-items: center;       
    gap: 40px;                 
    width: 100%;
    max-width: 1100px;
    margin: 60px auto 40px auto; 
}

/* Shrinks the infinite scaling link wrapper sizes */
.contact-page .social-logo-link {
    display: inline-flex;
    width: 44px;               
    height: 44px;
}

/* Directly targets and locks down the giant SVG code vectors */
.contact-page .social-logo-link svg {
    width: 100%;
    height: 100%;
    fill: #262626;           
}

/* Structural normalization for Tripadvisor frame boundary layers */
.contact-page .TA_restaurantWidgetWhite {
    display: flex;
    justify-content: center;
}


    /*---------------------End of Contact Page stuff---------------------*/

/* ==========================================================================
   MOBILE RESPONSIVE STYLES (768px and Below)
   ========================================================================== */
@media (max-width: 768px) {
  /*-----Menu Page styles only-------*/
  .menu-page {
    /* --- 1. FULL PAGE HERO / BANNER STYLES --- */
    
    /* Hide desktop hero elements */
    .full-page-hero-m1 {
      display: none !important;
    }

    /* Reveal mobile structural wrapper */
    .mobile-banner-m1-view {
      display: flex;
      flex-direction: column; 
      width: 100%;
      /* FIX: Adjust this number to match the exact height of your fixed banner */
      padding-top: 80px; 
    }

    /* Stack 2 images safely without overlaps */
    .mobile-screen-segment-m1 {
      position: relative;
      width: 100%;
      /* FIX: Changed from 100dvh to auto so content defines the height */
      height: auto; 
      overflow: hidden;
    }

    /* Ensure fluid, un-stretched mobile images */
    .mobile-hero-image-m1 {
      width: 100%;
      /* FIX: Changed from 100% to auto to maintain natural image height ratios */
      height: auto; 
      display: block;
    }
  }
 /*----- Order Page Mobile Rules -----*/
.order-page {
    .image-gallery-row .gallery-item {
        flex: none;
        width: calc(50% - 8px); /* Switches to 2 columns on mobile */
    }
}

 /*----- End of Order Page Mobile Rules -----*/

  /*----- Contact Page Mobile Rules -----*/
  .contact-page {
    .social-logos {
      flex-direction: column;  /* Transitions row 1 & 2 into a fluid vertical feed */
      gap: 30px;
    }
    
    .trinity-cafe-instagram-widget {
      width: 95%;              /* Safely prevents page clipping on narrow screens */
    }
  }

    /* --- 2. GENERAL CONTENT & LAYOUT STYLES --- */

    /* Stack image and text blocks vertically */
    .new-section-container-i1 {
        flex-direction: column;
        align-items: center;
        text-align: center;      
        gap: 20px;               
        margin: 30px auto;       
    }

    /* Scale context images safely without pixelation */
    .new-section-i1-img {
        width: 100%;             
        max-width: 250px;        
        margin: 0 auto;          
    }

    /* Reset desktop side-margins for text */
    .new-section-i1-text {
        margin-left: 0;          
        width: 100%;
    }

    /* Stack dual text blocks vertically */
    .text-blocks-container-c1 {
        flex-direction: column;
        gap: 25px;               
        margin: 30px auto;
        text-align: center;      
    }

   
    .three-columns-container,
    .bottom-split-section-t1 {
        flex-direction: column;
        align-items: center;
    }

    .bottom-split-section-t1 .side-image {
        flex: none;
        width: 100%;
    }
    .bottom-split-section-a1 {
        flex-direction: column;
        align-items: center;
    }

    .bottom-split-section-a1 .side-image {
        flex: none;
        width: 100%;
    }
}
