@charset "utf-8";

/* CSS Document 
TemplateMo 611 Maison Doree
*/

:root {
    --color-cream: #FFFBF5;
    --color-ivory: #F7F3ED;
    --color-warm-white: #FEFCF9;
    --color-gold: #B8860B;
    --color-gold-light: #D4A853;
    --color-gold-dark: #8B6914;
    --color-charcoal: #1C1C1C;
    --color-charcoal-soft: #3A3A3A;
    --color-taupe: #A69080;
    --color-taupe-light: #C4B5A5;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
.heading-display {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-editorial {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
}

.text-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-taupe);
}

.text-body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-charcoal-soft);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.25rem 0;
    background: linear-gradient(to right, #ffffff, #A34318);
    transition: background 0.4s ease, padding 0.4s ease;
    border-bottom: 3px solid #B8860B;
    box-shadow: 0 8px 20px rgba(163, 67, 24, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 2px 6px;
}

.logo img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 3px 6px rgba(75, 43, 25, 0.25));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #4b2b19;
}

/* DESKTOP NAV */
.nav-main {
    display: flex;
    align-items: center;
    gap: 3.0rem;
}

.nav-main a {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-main a:hover {
    opacity: 0.8;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.nav-cta:hover {
    background-color: #ffffff;
    color: #A34318 !important;
}

/* ========================================
   MOBILE NAV & OVERLAY (THE FIX)
   ======================================== */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none; /* Hidden by default */
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Pushes the extra links off-screen */
    width: 300px;
    height: 100vh;
    background-color: var(--color-cream);
    z-index: 2000;
    padding: 80px 40px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* When active via JS */
.mobile-nav.active {
    right: 0;
}

.mobile-overlay.active {
    display: block;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--color-charcoal);
}

/* MOBILE TOGGLE BUTTON (HAMBURGER) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
}

/* ========================================
   RESPONSIVE QUERIES
   ======================================== */

@media (max-width: 991px) {
    .nav-main {
        display: none; /* Hide desktop nav */
    }
    
    .menu-toggle {
        display: flex; /* Show hamburger */
    }
}

/* --- Contact Section Layout --- */
.contact {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: flex-start;
}

/* --- Typography --- */
.text-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-brown);
    margin-bottom: 20px;
    display: block;
}

.heading-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--primary-brown);
    margin-bottom: 35px;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 500px;
}

/* --- Variables (Ensuring simple font is defined) --- */
:root {
    --font-simple: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- Contact Details --- */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-family: var(--font-simple);
}

.contact-item {
    border-left: 1.5px solid var(--accent-brown);
    padding-left: 25px;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-brown);
    margin-bottom: 8px;
}

.contact-item-value {
    font-family: var(--font-simple);
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-item-value a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--accent-brown), var(--accent-brown));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: var(--transition);
}

.contact-item-value a:hover {
    background-size: 100% 1px;
}

/* --- Modern Appointment Form --- */
.contact-form-wrapper {
    background: var(--pure-white);
    padding: 60px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px -20px rgba(74, 55, 40, 0.08);
    font-family: var(--font-simple);
}

.form-title {
    font-family: var(--font-simple);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-brown);
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, 
.form-textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #D1C4BC;
    background: transparent;
    font-family: var(--font-simple);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-input:focus, 
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-brown);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    background: var(--primary-brown);
    color: var(--pure-white);
    border: none;
    padding: 20px;
    font-family: var(--font-simple);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.form-submit:hover {
    background: var(--accent-brown);
    letter-spacing: 2px;
}

/* --- Mobile Nav Toggle (Visuals) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-brown);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 50px;
    }
    .heading-display {
        font-size: 2.5rem;
    }
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .nav-main {
        display: none; 
    }

    .menu-toggle {
        display: flex;
    }
}
/* ========================================
            FOOTER - Full Updated
   ======================================== */
.site-footer {
    /* Create gap above footer */
    margin-top: 0px; 
    
    /* 1. BACKGROUND IMAGE SETUP */
    /* Adjust the 0.8 opacity below to make the background lighter/darker */
    background: linear-gradient(rgba(255, 255, 245, 0.479), rgba(255, 255, 245, 0.425)), 
                url('images/stucco-stained-surface_1194-7708.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 2. BASE TEXT COLOR (Dark Brown) */
    color: #3D2B1F; 
    padding:40px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-lg);
    margin-bottom: 20px;
    padding-bottom: 20px;
    /* Updated border color to match dark brown theme */
    border-bottom: 1px solid rgba(61, 43, 31, 0.15);
}

/* Column 1: Brand */
.footer-brand {
    padding-right: var(--space-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
    color: #3D2B1F; /* Dark Brown */
}

.footer-logo span {
    color: #5C4033; /* Slightly lighter brown for the accent */
}

/* Container to align Logo and Text side-by-side */
.footer-logo-container {
    display: flex;
    align-items: center;    /* Vertically centers logo with text */
    gap: 15px;              /* Space between the image and the text */
    margin-bottom: 1.5rem;  /* Space before the tagline starts */
}

.footer-logo-img {
    height: 60px;           /* Reduced from 100px to better fit next to text */
    width: auto;
    display: block;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;      /* Slightly adjusted for side-by-side balance */
    margin-bottom: 0;       /* Removed bottom margin since container handles it */
    line-height: 1;
    color: #3D2B1F;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-tagline {
    font-size: 1rem;
    color: #5C4033;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-contact-info p {
    font-size: 0.95rem;
    color: #5C4033;
    margin-bottom: var(--space-xs);
}

.footer-contact-info a {
    color: #3D2B1F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #8B4513; /* Saddle Brown hover */
}

/* Column Headers */
.footer-column-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600; /* Increased weight for visibility */
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3D2B1F; 
    margin-bottom: var(--space-md);
}

/* Column Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 1rem;
    color: #5C4033;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: #3D2B1F;
    font-weight: 500;
}

/* Column 4: About Website */
.footer-about p {
    font-size: 0.95rem;
    color: #5C4033;
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.footer-about a {
    color: #3D2B1F;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-about a:hover {
    color: #8B4513;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #5C4033;
}

.footer-copyright a {
    color: #3D2B1F;
    transition: color 0.3s ease;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    font-size: 0.9rem;
    color: #3D2B1F;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: #8B4513;
    transform: translateY(-2px);
}

/* ========================================
            RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1200px) {
    .hero { grid-template-columns: 1fr 1fr; }
    .hero-content {
        padding: var(--space-md) var(--space-md);
        padding-left: var(--space-lg);
    }
    .collections-grid { grid-template-columns: repeat(6, 1fr); }
    .collection-item:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 2; }
    .collection-item:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
    .collection-item:nth-child(3) { grid-column: 1 / 3; grid-row: 2 / 3; }
    .collection-item:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 3; }
    .collection-item:nth-child(5) { grid-column: 5 / 7; grid-row: 2 / 3; }
    .collection-item:nth-child(1) .collection-image { min-height: 350px; }
}

@media (max-width: 1100px) {
    .logo { font-size: 1.5rem; }
    .nav-main { gap: var(--space-md); }
    .nav-main a:not(.nav-cta) { font-size: 0.85rem; }
    .nav-cta { font-size: 0.75rem; padding: 0.7rem 1rem; }
    .craft-stats {
        gap: var(--space-md);
        padding: var(--space-sm) var(--space-md);
        left: var(--space-md);
        right: var(--space-md);
    }
}

@media (max-width: 860px) {
    .nav-main { display: none; }
    .menu-toggle { display: flex; }
    .hero { grid-template-columns: 1fr; height: auto; max-height: none; }
    .hero-content { padding: calc(var(--space-lg) + 60px) var(--space-md) var(--space-lg); order: 2; }
    .hero-image { order: 1; height: 400px; clip-path: none; }
    .hero-image-overlay { display: none; }
    .featured-grid, .story-grid, .craft-grid, .contact-grid { grid-template-columns: 1fr; }
    .featured-content { padding-right: 0; order: 2; }
    .featured-image-wrapper { order: 1; }
    .story-content { padding-right: 0; }
    .craft-content { order: 2; }
    .craft-image-wrapper { order: 1; }
    .craft-stats { position: static; margin-top: var(--space-md); justify-content: center; }
    .testimonials-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .contact-content { padding-right: 0; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
    .footer-brand { grid-column: 1 / -1; padding-right: 0; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

@media (max-width: 768px) {
    .collections-grid { grid-template-columns: 1fr 1fr; }
    .collection-item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
    .collection-item:nth-child(2), .collection-item:nth-child(3), 
    .collection-item:nth-child(4), .collection-item:nth-child(5) { grid-column: auto; grid-row: auto; }
    .collection-item:nth-child(1) .collection-image { min-height: 300px; }
    .collection-overlay { opacity: 1; }
    .story-images { grid-template-columns: 1fr; gap: var(--space-sm); }
    .story-image:first-child { margin-top: 0; }
    .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }
    .site-footer { margin-top: var(--space-xl); }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .collections-grid { grid-template-columns: 1fr; }
    .collection-item:nth-child(n) { grid-column: 1; }
    .craft-stats { flex-direction: column; gap: var(--space-md); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card:nth-child(3) { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-warm-white);
    z-index: 2000;
    padding: var(--space-xl) var(--space-md);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav.active { right: 0; }
.mobile-nav-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-charcoal);
}

.mobile-nav-links { list-style: none; margin-top: var(--space-xl); }
.mobile-nav-links li { margin-bottom: var(--space-md); }
.mobile-nav-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-charcoal);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover { color: var(--color-gold); }
.mobile-nav-cta { margin-top: var(--space-xl); padding-bottom: var(--space-md); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ========================================
   GLOBAL FIXES (VERY IMPORTANT)
   ======================================== */

html {
    font-size: clamp(14px, 1vw, 18px);
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HEADER FIX
   ======================================== */

@media (max-width: 768px) {

    .site-header {
        padding: 6px 0;
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 11px;
    }

    .nav-main {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ========================================
   HERO SECTION (MAIN FIX 🔥)
   ======================================== */

.hero {
    width: 100%;
    overflow: hidden;
}

/* MOBILE FIX (REMOVES GAP COMPLETELY) */
@media (max-width: 768px) {

    .hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .hero-image {
        width: 100%;
        height: auto;
        clip-path: none;
    }

    .hero-slide img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .hero-content {
        padding: 25px 20px 35px;
        transform: none;
        text-align: center;
        align-items: center;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-description {
        border-left: none;
        padding-left: 0;
        max-width: 100%;
    }

    .btn-primary {
        padding: 12px 18px;
        font-size: 0.75rem;
    }

    .hero-image-overlay {
        display: none;
    }
}

/* TABLET FIX */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-content {
        transform: none;
        padding: 50px 20px;
        text-align: center;
    }
}

/* ========================================
   STORY SECTION FIX
   ======================================== */

@media (max-width: 1024px) {

    .story-grid {
        flex-direction: column;
    }

    .story-image {
        padding-top: 0;
    }

    .story-content {
        padding: 40px 25px;
        text-align: center;
    }

    .story-content::before {
        display: none;
    }

    .story-title {
        font-size: 28px;
    }
}

/* ========================================
   COLLECTIONS FIX
   ======================================== */

.collections-grid {
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .collection-item {
        flex: 0 1 calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    .collection-item {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .collection-item {
        flex: 0 1 100%;
    }
}

/* ========================================
   CRAFT SECTION FIX
   ======================================== */

@media (max-width: 992px) {

    .craft-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .artist-name {
        text-align: center;
        font-size: 2rem;
    }
}

/* ========================================
   TESTIMONIALS FIX
   ======================================== */

@media (max-width: 992px) {

    .testimonials-grid {
        flex-wrap: wrap;
    }

    .testimonial-card {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {

    .testimonial-card {
        flex: 0 1 100%;
    }
}

/* ========================================
   CONTACT FIX
   ======================================== */

@media (max-width: 992px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        text-align: center;
    }
}

/* ========================================
   FOOTER FIX
   ======================================== */

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */

@media (max-width: 400px) {

    .hero-title {
        font-size: 1.6rem;
    }

    .nav-cta {
        font-size: 0.6rem;
        padding: 6px 10px;
    }

    .story-title {
        font-size: 24px;
    }
}