*{box-sizing:border-box}html{scroll-behavior:smooth;line-height:1.5}body{margin:0;background:#f4f2ed;color:#101e2b;font-family:'Manrope',Arial,sans-serif;overflow-x:hidden}
/* Color Palette and Variables */
:root {
    --ink: #101E2B; /* Navy - Primary Text/Dark */
    --deep: #172A3A; /* Deep Navy - Secondary Dark */
    --mist: #6D8590; /* Mist Blue - Accent/Subtle */
    --paper: #F4F2ED; /* Off-white Paper Background */
    --cognac: #A9563F; /* Cognac Brown - Primary Accent */
    --sale: #C64332; /* Sale Red - Promotional */
    --line: rgba(16, 30, 43, .15); /* Subtle Line Color */
    --white: #fff;
    /* Typography */
    --display-font: 'Prata', Georgia, serif; /* Display font for headlines/impact */
    --body-font: 'Manrope', Arial, sans-serif;
    /* Shadows and transitions */
    --shadow-lg: 0 18px 55px rgba(16, 30, 43, .13);
}

/* Typography Overrides */
h1, h2, h3, h4 {
    font-family: var(--display-font);
    color: var(--deep);
    line-height: 1.2;
    margin-top: 0;
}

p, a, li, button {
    font-family: var(--body-font);
}

/* Base Element Styling */
a{
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover, a:focus {
    color: var(--cognac);
    text-decoration: underline;
}
button {
    font: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    transition: all .2s ease;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Site Header (Navigation) */
.site-header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    transition: height .35s ease, background-color .35s ease;
}

/* Scrolled State */
.site-header.scrolled{
    height: 68px;
    background: rgba(244, 242, 237, .9); /* Paper color with slight transparency */
    backdrop-filter: blur(16px);
    border-color: var(--line);
    box-shadow: 0 8px 30px rgba(16, 30, 43, .08);
    color: var(--ink); /* Dark text when scrolled */
}

.brand{
    display: block;
    width: 218px;
    color: inherit;
}
.brand img {
    display: block;
    width: 100%;
    filter: brightness(0) invert(1); /* White on dark header */
}

/* Desktop Navigation */
.desktop-nav{
    display: flex;
    gap: clamp(18px, 2vw, 38px);
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}

.desktop-nav a{
    padding: 14px 0;
    position: relative;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .25s ease;
}

.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after {
    width: 100%;
}

/* Sale Item Styling */
.sale{
    color: var(--sale) !important;
}

/* Header Actions (Icons/Burger) */
.header-actions{
    display: flex;
    align-items: center;
    gap: 4px;
}
.icon-btn, .burger{
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 50%;
}

/* Hover/Active States */
.icon-btn:hover, .burger:hover {
    background: rgba(255, 255, 255, .14);
}

.site-header.scrolled .icon-btn:hover, .site-header.scrolled .burger:hover{
    background: rgba(16, 30, 43, .08); /* Dark background hover */
    color: var(--ink);
}

/* Mobile Menu Structure (Hidden by default) */
.mobile-menu{
    display: none; /* Default hidden state for desktop first approach */
    position: fixed;
    z-index: 80;
    top: 0;
    bottom: 0;
    left: 100%;
    right: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 18px;
    transition: left .35s ease, visibility 0.35s ease;
    visibility: hidden;
}

/* Mobile Menu Active State */
.mobile-menu.open{
    left: 0;
    visibility: visible;
}

.mobile-menu__head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.mobile-menu__head button{
    font-size: 28px; /* Close icon size */
    background: none !important;
    color: inherit !important;
}

/* Mobile Navigation Links */
.mobile-menu nav{
    display: grid;
    padding-top: 28px;
}

.mobile-menu nav a {
    font: clamp(34px, 8vw, 54px) / 1.45 var(--display); /* Large display font for mobile */
    text-align: center;
    padding: 10px 0;
}

/* Mobile Meta Data (Bottom Bar/Utility links if needed) */
.mobile-meta{
    position: absolute;
    bottom: max(26px, env(safe-area-inset-bottom));
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    font-size: 12px;
    text-transform: uppercase;
}

/* General Section Layout */
.section{
    padding: 90px 22px; /* Default large padding for desktop view */
}
.content-section {
    max-width: 1400px;
    margin: 0 auto;
}

/* Headings and Titles */
.display-heading{
    font-size: clamp(38px, 5vw, 65px); /* Large dynamic size */
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 60px;
}

h2 {
    font-size: clamp(30px, 4vw, 54px); /* Section title size */
    letter-spacing: -1px;
    color: var(--ink);
    padding-top: 20px;
}


/* Hero Section Specifics */
.hero{
    position: relative;
    height: 760px; /* Fixed height for impact, adjust in media query */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-visual-placeholder{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/atelier-hero.webp'); /* Assuming asset is copied */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay for readability over image */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(8, 19, 28, .92) 0%, rgba(8, 19, 28, .58) 54%, rgba(8, 19, 28, .2) 100%);
    z-index: 2;
}

.hero-content{
    position: relative;
    z-index: 3; /* Above overlay */
    padding: 270px 40px 0; /* Adjusted padding for content visibility */
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(64px, 9vw, 120px);
    margin-bottom: 15px;
    color: var(--paper); /* White/Light text on dark overlay */
}

.hero-copy{
    font-size: clamp(18px, 2.2vw, 24px);
    margin: 30px 0 40px;
    max-width: 650px;
    color: var(--paper);
}

/* Call to Action */
.hero-cta{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 30px;
}

.btn{
    padding: 16px 32px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .1s ease;
    text-align: center;
}

.primary-button{
    background-color: var(--cognac);
    color: var(--paper);
}

.primary-button:hover {
    background-color: #944a36; /* Slightly darker cognac */
    transform: translateY(-2px);
}

.secondary-link{
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--paper);
    padding-top: 10px;
}

/* Content Grid Layouts */
.category-grid{
    display: grid;
    gap: clamp(30px, 4vw, 60px);
    margin-bottom: 80px;
}

@media (min-width: 1200px) {
     .category-grid{
        grid-template-columns: repeat(3, 1fr); /* Desktop layout */
    }
}

/* Category Card Styling */
.category-card{
    background: var(--white);
    border: 1px solid var(--line);
    padding: 20px;
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.category-card figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3; /* Enforce consistent visual ratio */
    margin-bottom: 20px;
}

.category-card h3{
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--mist);
}


/* Material/Accessories Section */
.material{
    grid-template-columns: 2fr 1fr; /* Visual area and Copy area split */
    gap: 40px;
    align-items: center;
}

.material > div:first-child {
    max-width: 50%;
    min-height: 400px;
}

.material-copy p{
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 30px;
}

blockquote {
    border-left: 5px solid var(--cognac);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--deep);
}
blockquote cite{
    display: block;
    text-align: right;
    font-size: 14px;
    color: var(--mist);
}

/* Bespoke Service Section */
.service {
    display: grid;
    grid-template-columns: 1fr; /* Stacked on mobile/default */
    gap: 80px;
    align-items: center;
    text-align: center;
}

@media (min-width: 980px) {
    .service {
        grid-template-columns: 3fr 1fr; /* Visual/Intro on left, Cards on right */
        text-align: left;
    }
    .service > div:first-child {
        grid-column: span 1;
    }
    .service > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
     .material{
         grid-template-columns: 1fr; /* Stack material elements on smaller screens */
     }
      @media (min-width: 980px) {
          .material{ grid-template-columns: 2fr 1fr;} /* Revert to two columns for large screen if needed, though the structure above is fine */
      }
}

/* Service Cards List */
.service-card{
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .03);
}
.service-card h4{
    color: var(--cognac);
    font-size: clamp(20px, 3vw, 30px);
}

/* Sale/Clearance Section */
.sale-bg {
    background-color: #fef6f5; /* Very light red tint */
    padding: 120px 22px;
    text-align: center;
}

.sale-heading{
    font-size: clamp(48px, 7vw, 80px);
    color: var(--sale);
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    background: var(--white);
    border: 1px solid var(--mist);
    padding: 30px;
    text-align: center;
    transition: transform .3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}
.product-card h3{
    margin-bottom: 10px;
    font-size: clamp(24px, 4vw, 36px);
}
.product-card p{
    color: var(--sale);
    font-weight: bold;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background-color: var(--deep);
    color: #ccc;
    padding: 54px 18px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two column layout */
    gap: 40px;
}

.site-footer h3, .site-footer h4{
    color: var(--white);
    margin-bottom: 20px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li a {
    display: block;
    color: #ccc;
    font-size: 14px;
    padding: 8px 0;
}
.site-footer li a:hover{
    color: var(--cognac);
    text-decoration: none;
}

.copyright {
    grid-column: span 2; /* Spans both columns */
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
    font-size: 12px;
}

/* --- Responsive Design (Mobile First Adjustments) --- */

@media (max-width: 980px) {
    .site-header{
        grid-template-columns: 200px 1fr auto;
        padding: 0 18px;
    }
    .header-actions{
        grid-column: 3; /* Push icons to the far right */
        justify-self: end;
    }
    .desktop-nav{
        display: none; /* Hide desktop navigation on tablet/mobile */
    }
    .burger{
        display: grid; /* Show burger menu button */
    }

    .section {
        padding: 76px 18px; /* Reduced padding for mobile view */
    }

    .hero-content{
        padding: 200px 18px 0; /* Adjust hero padding for smaller screens */
    }
    
    /* Mobile Menu Overrides */
     .mobile-menu { display: block !important; } /* Ensure it's always in DOM flow to manage visibility */

    /* Grid adjustments */
    .category-grid{
        grid-template-columns: 1fr; /* Single column layout for cards */
    }

    /* Service Section stacking */
    .service {
         grid-template-columns: 1fr; /* Stack service intro and cards vertically */
         gap: 50px;
         text-align: center;
    }

     @media (min-width: 600px) and (max-width: 980px) {
        /* Minor adjustment to keep the material section visually distinct if space allows */
        .material{ grid-template-columns: 1fr; }
    }
}

/* Very Small Screens Adjustments (<600px) */
@media (max-width: 599px) {
    h2{ font-size: 38px; } /* Slightly smaller section titles */
     .hero-content{
        padding: 150px 18px 0;
    }

    /* Footer changes to a single column stack on small mobile views */
    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .copyright{
        border-top: none; /* No need for divider when stacked */
        margin-top: 20px;
    }

     /* Ensure hero image is fully responsive and contained */
     .hero-visual-placeholder {
         min-height: 50vh; 
         background-size: cover;
         background-position: center center;
     }
}
/* ─── Reveal animation ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Burger icon (two spans) ─────────────────────────── */
.burger-static {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    border: 0;
    position: relative;
}
.burger-static span,
.burger-static span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.burger-static span::after {
    content: '';
    position: absolute;
}
.burger-static span:first-child {
    transform: translateY(-4px);
}
.burger-static span:last-child {
    transform: translateY(4px);
}
.burger-static[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
}
.burger-static[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
}

/* ─── Mobile menu open body lock ──────────────────────── */
body.menu-open {
    overflow: hidden;
}

/* ─── Counter band ────────────────────────────────────── */
.counter-band {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 6vw, 80px);
    padding: 80px 22px;
    background: var(--deep);
    color: var(--paper);
    text-align: center;
    flex-wrap: wrap;
}
.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}
.counter {
    font-family: var(--display-font);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 8px;
}
.counter-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mist);
}

/* ─── FAQ accordion ───────────────────────────────────── */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 22px;
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-item button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    min-height: 48px;
    transition: color .2s ease;
}
.faq-item button:hover {
    color: var(--cognac);
}
.faq-icon {
    font-size: 24px;
    transition: transform .3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 22px;
}
.faq-answer p {
    color: var(--mist);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ─── Carousel / Hero foot ────────────────────────────── */
.hero-foot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: linear-gradient(0deg, rgba(8,19,28,.7) 0%, transparent 100%);
    color: var(--paper);
    flex-wrap: wrap;
}
.chapter-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.chapter-no {
    font-family: var(--display-font);
    font-size: 28px;
    opacity: .5;
    flex-shrink: 0;
}
.chapter-title {
    font-family: var(--display-font);
    font-size: clamp(18px, 2.5vw, 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chapter-copy {
    font-size: 14px;
    opacity: .7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
    flex-shrink: 0;
}
.carousel-btn:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.6);
}
.carousel-dots {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease;
}
.carousel-dots button.active {
    background: var(--paper);
}

/* ─── Toast notification ──────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--deep);
    color: var(--paper);
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    z-index: 200;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ─── Desktop-only icon visibility ────────────────────── */
.desktop-only {
    display: none;
}
@media (min-width: 981px) {
    .desktop-only {
        display: grid;
    }
}

/* ─── Hero content positioning fix ────────────────────── */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 270px 40px 0;
    max-width: 800px;
}

/* ─── Reduced motion override ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .faq-answer {
        transition: none;
    }
    .carousel-btn,
    .faq-icon,
    .burger-static span,
    .burger-static span::after {
        transition: none;
    }
}

/* ─── Mobile carousel adjustments ─────────────────────── */
@media (max-width: 768px) {
    .burger-static {
        display: grid;
    }
    .hero-foot {
        padding: 16px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .chapter-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    .chapter-copy {
        width: 100%;
    }
    .carousel-dots {
        margin-left: 0;
    }
    .counter-band {
        gap: 24px;
        padding: 60px 18px;
    }
    .counter-item {
        min-width: 100px;
    }
}