/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */


/* IMPORTS */

@import url('https://fonts.googleapis.com/css2?family=Lato&family=Cinzel:wght@400..900&display=swap');
@import url("https://use.typekit.net/fsl0gml.css");

/* ==========================================================================
   1. GLOBAL DESIGN TOKENS (Your Site Control Panel)
   ========================================================================== */
:root {
    /* COLORS */
    --color-primary: #111111;       /* Charcoal/Black for the main */
    --color-secondary: #eaeaea;     /* Almost white for text */
    --color-accent: #00E676;        /* Dark red for accents and button hovers */
    --color-other: #727272;         /* Gray for boxes or utility buttons */

    /* Typography Hierarchy */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    /* Layout Sizing & Transitions */
    --border-radius-sm: 4px;
    --transition-smooth: transform 0.5s ease, background-color 0.3s ease;
    --body-background-gradient: linear-gradient(rgb(from var(--color-primary) r g b / 0.9), rgb(from var(--color-primary) r g b / 0.8));
}

/* FONTS */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 2px 5px 5px var(--color-primary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

p {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}
p.lead, .text-lg {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    letter-spacing: 1.5px;
}

.text-md {
    font-size: 1rem;
}

p.caption, .text-sm {
    font-size: 0.85rem;
    color: var(--color-other);
}

/* BUTTONS */

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 0.8rem 2rem;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font: var(--font-heading);
    font-weight: 700;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.8rem 2rem;
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font: var(--font-heading);
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 5px var(--color-primary);
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.btn-tertiary {
    display:flex;
    color: var(--color-secondary);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn-primary {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font: var(--font-heading);
    font-weight: 500;
    color: var(--color-secondary);
}

.nav-btn-secondary {
    color: var(--color-other);
    text-decoration: none;
    margin: 0 1rem;
    font: var(--font-heading);
    transition: color 0.3s ease;
}

.nav-btn-primary:hover, .nav-button-secondary:hover {
    color: var(--color-accent);
}

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

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100svh; /* Locks height to small viewport so address bar won't trigger zooms */
    position: relative;
    color: var(--color-secondary);
}

/* 🎯 Creates a locked, non-glitching background layer for mobile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100svh;
    background-image: url('../images/Portfolio/Serenas Fire Vinyl FEB21-46.jpg');
    background-size: cover;
    background-position:center;
    z-index: -1; /* Keeps the photo safely behind all your text and sections */
    will-change: transform;
    transform: translateZ(0);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.blank-section {
    background: var(--body-background-gradient);
    margin: 0 auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2%;
    background: linear-gradient(var(--color-primary), rgb(from var(--color-primary) r g b / 0.9));
    backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 75px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--color-secondary);
}

nav a:hover, nav a.active {
    color: var(--color-accent);
}

/* ==========================================
   3. HERO / WELCOME SECTION
   ========================================== */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-secondary);
    padding: 0 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.4));
}

.hero-dark {
    display: flex;
    justify-content: space-evenly; /* Spreads them evenly across the line */
    align-items: center;
    text-align: center;
    padding: 2rem; /* Combined your padding here */
    color: var(--color-secondary);
    background: var(--body-background-gradient), var(--body-background-gradient);
}

.hero-content {
    max-width: 800px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border-radius: 4px;
}

.portfolio-carousel-section {
    background: var(--body-background-gradient);
    width: 100%;
    padding: 3rem 3rem;
    margin: 0 auto;
}

.swiper {
    width: 100%;
    padding: 1rem 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 400px; /* Adjust height to fit your desired photo aspect ratio */
    object-fit: cover; /* Keeps image proportions clean without stretching */
    border-radius: 8px; /* Optional rounded corners */
}

/* Optional: Custom arrow colors to match your theme */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-secondary);
}

/* Outer Section with the Background Photo */
.testimonial-section {
    width: 100%;
    background-image: url(../images/Portfolio/Serenas\ Fire\ Vinyl\ FEB21-36.jpg);
    background-size: cover;       /* Stretches photo to cover the entire container */
    background-position: center;  /* Keeps the best part of the photo centered */
    background-repeat: no-repeat;
    padding: 5rem 3rem;          /* Top/Bottom room + 3rem side padding as requested */
    box-sizing: border-box;
}

/* Layout Grid for the Cards */
.testimonial-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;      /* Stack vertically on mobile */
    gap: 2rem;
    align-items: center;
}

/* 🎯 Dark Semi-Transparent Floating Cards */
.testimonial-card {
    background: var(--body-background-gradient);
    color: var(--color-secondary);                  /* Crisp white text */
    padding: 2.5rem;
    border-radius: 8px;              /* Subtle rounded corners */
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(4px);      /* Optional: Creates a cool frosted glass effect! */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white edge border */
    box-shadow: 0 3px 5px var(--color-primary);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0 0 1rem 0;
}

.testimonial-card .author {
    font-weight: 600;
    margin: 0;
    text-align: right;
    color: var(--color-secondary);
}

/* Desktop Upgrade: Place cards side-by-side if you have multiple */
@media (min-width: 768px) {
    .testimonial-grid {
        flex-direction: row;
        justify-content: center;
        align-items: stretch; /* Keeps all cards the exact same height */
    }
}
/* ==========================================
   4. PORTFOLIO PAGE
   ========================================== */
.portfolio-container {
    background: var(--body-background-gradient);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-family: 'Cenzil', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #ffffff;
}

.section-title p {
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* The Magic Masonry Layout */
.portfolio-grid {
    column-count: 3;           /* Creates a beautiful 3-column masonry spread */
    column-gap: 1.5rem;        /* Matches the space between columns to your design */
    width: 100%;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;     /* Pushes items down so they don't crash into each other vertically */
    border-radius: 4px;
    cursor: pointer;
    break-inside: avoid;       /* CRUCIAL: Prevents a photo from splitting awkwardly across two columns */
    display: inline-block;     /* Fixes a rendering bug in some browsers for column items */
    width: 100%;
}

.portfolio-item img {
    width: 100%;
    height: auto;              /* CRUCIAL: Keeps your original aspect ratios completely intact */
    display: block;            /* Cleans up default browser inline spacing below the image */
    transition: transform 0.5s ease;
}

/* Mobile Responsiveness: Scale columns down based on screen size */
@media (max-width: 1024px) {
    .portfolio-grid {
        column-count: 2;       /* Drops to 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        column-count: 1;       /* Stacks into 1 single column on mobile screens */
    }
}

/* Dark hover overlay with text */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

/* Hover Effects */
.portfolio-item:hover img {
    transform: scale(1.05); /* Soft zoom effect */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1; /* Fade in the overlay text */
}

/* ==========================================
   5. ABOUT ME PAGE
   ========================================== */
.about-container {
    background: var(--body-background-gradient);
    margin: 0 auto;
    padding: 5rem 3rem;
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* 50% split for desktop */
.about-image, .about-content {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Soft, elegant drop shadow */
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.about-content .subtitle {
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-cta {
    margin-top: 2rem;
}

.btn-dark {
    background-color: #000000;
    color: #ffffff;
    display: inline-block;
}

.btn-dark:hover {
    background-color: #333333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column; /* Stacks image on top of text on phones */
        gap: 2.5rem;
    }
    
    .about-container {
        padding: 3rem 1.5rem;
    }
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

/* Centers the form section on the screen and limits its maximum width */
.form-section {
    background: var(--body-background-gradient);
    padding: 3rem;
    display: flex;
    justify-content: center;
}

/* Stack the individual form elements vertically */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Consistent gaps between every input block */
    font-family: var(--font-body);
}
w
/* Stacks label on top of the input */
.form-group {
    display: flex;
    flex-direction: column;
    color: var(--color-secondary);
    gap: 0.5rem; /* Space between the text label and the box */
}

/* Label styling */
.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

/* Core styling for text fields, dates, and textareas */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form input[type="time"],
.form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--color-secondary);
    border: 1px solid var(--color-other);
    border-radius: 4px;
    background: var(--body-background-gradient);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Allows textarea to be resized vertically by the user, but not horizontally */
.form textarea {
    resize: vertical;
}

/* 🎯 INTERACTIVE FOCUS STATE */
/* Gives a clean, visual pop when a user clicks into a field */
.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-primary-fade, rgba(0, 0, 0, 0.05));
}

/* Layout for the Date and Time fields to sit side-by-side */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split evenly into two columns */
    gap: 1.5rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    /* OPTION A: Invert the icon color (turns a dark icon white, or vice versa) */
    filter: invert(1);
    
    /* OPTION B: Make it slightly translucent so it's not jarringly bright */
    opacity: 0.7;
    
    /* OPTION C: Make it bigger if it feels too hard to tap */
    font-size: 1.1rem;
    cursor: pointer;
}

/* Optional hover state to make it interactive */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Keep the success block completely hidden out of view when the page first loads */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile adjustments)
   ========================================================================== */
@media (max-width: 480px) {
    /* Stack the side-by-side date and time fields into a single column on phones */
    .form-group-row {
        grid-template-columns: 1fr;
    }

    /* Force button to span full-width on small screens for easy thumb-tapping */
    .btn-submit {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   7. BLOG PAGE
   ========================================== */
.blog-container {
    background: var(--body-background-gradient);
    margin: 0 auto;
    width: 100%;
    padding: 5rem 2rem;
    justify-content: center;
    align-content: center;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-header p {
    color: var(--color-secondary);
    font-size: 1.05rem;
}

.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Generous spacing between posts */
    align-items: center;
}

.blog-post {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    background: var(--body-background-gradient);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    max-width: 900px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-image {
    flex: 1;
    height: 250px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.blog-post-content {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-date {
    font-size: 0.8rem;
    color: var(--color-other);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.blog-post-content h3 {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.blog-post-content p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.read-more:hover {
    color: var(--color-accent);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .blog-post-image {
        width: 100%;
        height: 200px;
    }
}

/* ==========================================
   7.1 BLOG MODAL POP-UP
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Soft dimmed background */
    backdrop-filter: blur(4px); /* Modern frosted-glass effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Class added by JavaScript to fade the modal into view */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: var(--body-background-gradient);
    width: 90%;
    max-width: 700px;
    max-height: 85vh; /* Keep it from stretching past screen height */
    overflow-y: auto; /* Allow scrolling inside long stories */
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-other);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-accent);
}

/* Formatting for full text inside the modal */
.modal-body-text h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.modal-body-text .meta {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}
.modal-body-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================
   8. CLIENT PORTAL LOG-IN
   ========================================== */
.portal-container {
    min-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #fafafa;
}

.login-card {
    background: #ffffff;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.login-card h2 {
    font-size: 1.75rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #777777;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.login-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background-color: #333333;
}

/* ==========================================
   8.1 CLIENT PORTAL GALLERY PREVIEW
   ========================================== */
.gallery-portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.gallery-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.gallery-action-bar h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
}

.gallery-meta {
    color: #777777;
    font-size: 0.95rem;
}

.download-master-btn {
    background-color: #000000;
    color: #ffffff;
    padding: 0.9rem 1.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.download-master-btn:hover {
    background-color: #333333;
}

/* Modern Masonry Feed Layout */
.photo-preview-grid {
    display: grid;
    /* Creates tiny 10px rows that our JavaScript can stack precisely */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 10px; 
    gap: 1.5rem;
}

.photo-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-color: #eaeaea;
    /* REMOVED aspect-ratio and height limits so the card can adapt naturally */
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.photo-card img {
    width: 100%;
    height: auto; /* Lets the image dictate its true vertical height */
    display: block;
    transition: transform 0.5s ease;
}

/* Sleek mouse hover effect showcasing file names */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay span {
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
}

.photo-card:hover img {
    transform: scale(1.03); /* Tiny subtle image expansion zoom */
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

/* Mobile Layout Collapse */
@media (max-width: 768px) {
    .gallery-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .download-master-btn {
        width: 100%;
        text-align: center;
    }
}


/* PRIVACY POLICY AND TERMS & CONDITIONS */

.policy-container {
    background: var(--body-background-gradient);
    margin: 0 auto;
    padding: 3rem;
}

.policy-section p {
    margin-left: 2rem;
    padding: 1rem;
    margin-bottom: 0rem;
}

.policy-subsection{
    margin-left: 2rem;
    padding-bottom: 2rem;
}

.policy-section ul {
    color: var(--color-secondary);
    margin-left: 2rem;
}
.policy-header {
    padding-bottom: 2rem;
}

/* ==========================================
   9. GLOBAL FOOTER
   ========================================== */
footer {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 3rem 2rem;
    margin-top: auto; /* Pushes footer to bottom on short pages */
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 .light {
    font-weight: 300;
    color: #ac975e;
}

.footer-brand p {
    color: var(--color-other);
}

.footer-brand img {
    max-height: 80px;
}

.footer-links a,
.footer-socials a {
    color: #aaaaaa;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: var(--color-accent);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links, .footer-socials {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-links a, .footer-socials a {
        margin: 0;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION (Screens under 768px wide)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Show the hamburger button bars */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 2rem;
        height: 1.5rem;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100;
        margin-right: 1.7rem;
    }

    .menu-toggle .bar {
        height: 2px;
        width: 100%;
        background-color: var(--color-secondary);
        transition: all 0.3s ease;
    }

    /* 2. Turn the nav list into a full-screen vertical dropdown overlay */
    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 90;
        
        /* The Secret Sauce: Push the menu out of sight off-screen by default */
        transform: translateX(100%) translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    }

    /* 3. The Active State: Slide the menu down into view when active */
    .nav-menu.active {
        transform: translateX(0) translateY(0);
    }
}

/* Base setting: Hide the toggle button on desktop views */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .nav-menu {
        display: flex; /* Keep your desktop side-by-side row behavior intact */
    }
}