@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ... (Animations remain the same) ... */

/* General Styles */
body {
    font-family: 'Lato', sans-serif;
    color: #4a4a4a;
    /* Softer dark grey */
    /* ... */
}

/* Navigation Styles - Clean White Theme */
.main-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* ... */
}

.nav-brand {
    color: #2c3e50;
    /* Dark Navy */
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.nav-links a {
    color: #555;
    font-weight: 500;
    /* ... */
}

.nav-links a:hover,
.nav-links a.active {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

.hamburger .bar {
    background-color: #2c3e50;
    /* Dark bars for white nav */
}

/* Hero Text */
.hero-coming-soon-text p {
    font-family: 'Playfair Display', serif;
    /* Elegant Serif */
    /* ... */
}

/* Headings */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
}

/* Buttons - Classic Elegant */
button,
.btn {
    border-radius: 6px;
    /* Classic soft rectangle */
    background-color: #2c3e50;
    /* Dark Navy / Charcoal */
    /* ... */
}

button:hover,
.btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    /* ... */
}

@keyframes subtle-gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- General Styles --- */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background-color: #f9f8f4;
    /* Warm, calming paper white */
    color: #5d5d5d;
    /* Softer, warm grey text */
    line-height: 1.7;
    /* Increased for better readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Smoother fonts on Mac */
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
    color: #4A5D56;
    /* Deep Moss Green */
}

/* --- Navigation Styles --- */
/* Navigation Styles - Warm Natural */
/* Navigation Styles - Warm Natural */
.main-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 95%;
    /* Start width */
    max-width: 1200px;
    height: 70px;
    /* Fixed height for consistency */
    background-color: rgba(249, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border: 1px solid rgba(74, 93, 86, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smooth sizing */
    overflow: hidden;
    /* keep content inside pairs with rounding */
}

/* Scrolled 'Pill' State */
.main-nav.nav-scrolled {
    top: 20px;
    width: 260px;
    /* Fixed width for smooth tweening (no auto) */
    height: 50px;
    /* Shrink height */
    border-radius: 50px;
    background-color: rgba(249, 248, 244, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Float higher */
    cursor: pointer;
}

/* Scrolled & Expanded State */
.main-nav.nav-scrolled.nav-expanded {
    width: 95%;
    /* Back to full fluid width */
    max-width: 1200px;
    height: auto;
    /* Allow height to grow for mobile menu if needed, or fixed 70px */
    min-height: 70px;
    border-radius: 12px;
    cursor: default;
}

/* Content Container */
.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2em;
    position: relative;
    /* transition: padding 0.3s ease; Removed, causing jitters */
}

.nav-scrolled .nav-container {
    padding: 0;
    /* Centered content needs no side padding in pill */
    justify-content: center;
}

.nav-scrolled.nav-expanded .nav-container {
    padding: 0 2em;
    justify-content: space-between;
}

/* Hiding Elements Logic - Use Opacity/Visibility for smoothness */
.nav-links,
.hamburger,
.nav-middle-name {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

/* In Pill Mode: Hide Middle Name, Links, Hamburger */
.nav-scrolled .nav-links,
.nav-scrolled .hamburger,
.nav-scrolled .nav-middle-name {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    /* Remove from flow so "center" works */
    transform: scale(0.9);
}

/* Expanded Mode: Show everything */
.nav-scrolled.nav-expanded .nav-links,
.nav-scrolled.nav-expanded .hamburger,
.nav-scrolled.nav-expanded .nav-middle-name {
    opacity: 1;
    pointer-events: all;
    position: relative;
    /* Return to flow */
    transform: scale(1);
    transition-delay: 0.2s;
    /* Wait for width to expand */
}

/* Nav Brand (EE Hypnotherapy) Logic */
.nav-brand {
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    position: relative;
    left: 0;
    transform: none;
}

/* In Pill Mode: Center the Brand */
.nav-scrolled .nav-brand {
    font-size: 1.1em;
    /* Scale down slightly for pill */
    position: absolute;
    /* Lock to center */
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: all;
    margin: 0;
}

/* In Expanded Mode: Return Brand to Left */
.nav-scrolled.nav-expanded .nav-brand {
    font-size: 1.5em;
    /* Restore size */
    position: relative;
    left: 0;
    transform: none;
    opacity: 1;
    transition-delay: 0.1s;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .main-nav {
        height: 60px;
    }

    .main-nav.nav-scrolled.nav-expanded {
        height: auto;
        /* allow menu growth */
        padding-bottom: 1em;
    }

    .nav-links {
        /* Keep standard mobile logic (hidden by default) */
        display: none;
    }

    .main-nav.nav-scrolled .hamburger {
        display: none;
        /* Hide in pill */
    }

    .main-nav.nav-scrolled.nav-expanded .hamburger {
        display: block;
        position: initial;
        /* Restore */
        opacity: 1;
    }
}

/* Adjust container in pill mode */
.nav-scrolled .nav-container {
    padding: 0.8em 2em;
    /* Smaller padding */
    justify-content: center;
    /* Center the "blob" text */
    width: 100%;
    transition: padding 0.3s ease;
}

.nav-scrolled.nav-expanded .nav-container {
    padding: 1em 2em;
    /* Restore padding */
    justify-content: space-between;
    /* Restore layout */
}

/* ... existing nav styles ... */

/* Hero Text */
.hero-coming-soon-text p {
    font-size: 3.5em;
    font-weight: 500;
    /* Regular weight works better for big serifs */
    margin: 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0px;
    /* Serifs don't need wide spacing */
    font-family: 'Playfair Display', serif;
    font-style: italic;
    /* Add elegance */
}

/* ... existing styles ... */

/* Treatment Cards */
.treatment-card p {
    padding: 0 1.5em 1.5em;
    color: #555;
    font-size: 1.05em;
    line-height: 1.7;
    text-align: left;
    /* Much easier to read and looks more professional */
}

/* Buttons */
/* Buttons - Natural Calm */
button,
.btn {
    display: inline-block;
    width: auto;
    margin: 2em auto 0;
    padding: 0.9em 2.4em;
    background-color: #4A5D56;
    /* Moss Color */
    color: #f9f8f4;
    /* Warm white text */
    border: none;
    border-radius: 4px;
    /* Slightly softer than sharp */
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(74, 93, 86, 0.2);
    text-transform: none;
}

button:hover,
.btn:hover {
    background-color: #5c7069;
    /* Lighter moss on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 93, 86, 0.3);
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    position: relative;
    /* For positioning hamburger */
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 0 auto;
    /* Push to right on mobile if flex direction is row */
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-middle-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    font-weight: 400;
    color: #6B8C85;
    /* Soft Sage */
    letter-spacing: 0.5px;
    text-align: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #4A5D56;
    /* Deep Moss Green */
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2em;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #7a7a7a;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5em 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #4A5D56;
    border-bottom-color: #4A5D56;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    text-align: center;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-small {
    min-height: 50vh;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* More professional, subtle gradient */
    background: linear-gradient(-45deg, rgba(30, 40, 50, 0.2), rgba(0, 0, 0, 0.4));
    background-size: 200% 200%;
    animation: subtle-gradient-animation 30s ease infinite;
    z-index: -1;
}

/* --- Hero Text Styles --- */
.hero-header-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-header-text h1 {
    font-family: 'Merriweather', serif;
    font-size: 2em;
    font-weight: 300;
    margin: 0;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-coming-soon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-coming-soon-text p {
    font-size: 2.5em;
    font-weight: 300;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Stronger, smoother shadow */
    letter-spacing: 2px;
    /* Cinematic spacing */
}

/* --- Intro Section --- */
#intro {
    padding: 8em 2em;
    /* More breathing room */
    background: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#intro h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 1em;
    color: #335c67;
}

#intro p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

/* --- Contact Section --- */
#contact,
#about-content,
#legal-content {
    padding: 5em 2em;
    background: white;
    animation: fade-in-up 1s ease-out forwards;
    opacity: 0;
    /* Initially hidden for animation */
}

#contact h2,
#about-content h2,
#legal-content h2 {
    text-align: center;
    margin-bottom: 1em;
    font-family: 'Merriweather', serif;
    font-size: 2.8em;
    font-weight: 400;
}

#about-content h3,
#legal-content h3 {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 1em;
    font-family: 'Merriweather', serif;
    font-size: 2em;
    font-weight: 400;
}

.qualifications-content {
    max-width: 800px;
    margin: 0 auto 2em;
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

#legal-content a {
    color: #335c67;
    text-decoration: none;
    border-bottom: 1px solid #335c67;
    transition: all 0.3s ease;
    font-weight: 600;
}

#legal-content a:hover {
    color: #000;
    border-bottom-color: transparent;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2em;
    font-size: 1.1em;
    color: #555;
}

/* --- Treatments Section --- */
#treatments {
    padding: 5em 2em;
    background-color: #f7f7f7;
    text-align: center;
}

#treatments h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 2em;
    color: #335c67;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-card {
    background: white;
    border-radius: 12px;
    /* Slightly softer corners */
    overflow: hidden;
    /* Soft, diffused shadow for premium feel */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* Extremely subtle border definition */
}

.treatment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.treatment-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.treatment-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5em;
    margin: 1em 0 0.5em;
    padding: 0 1em;
    color: #335c67;
}

.treatment-card p {
    padding: 0 1.5em 1.5em;
    color: #555;
    font-size: 1em;
    line-height: 1.6;
}

/* --- Pricing Section --- */
#pricing {
    padding: 8em 2em;
    background-color: #f0f4f8;
    /* Very subtle cool blue-grey */
    text-align: center;
}

#pricing h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 2em;
    color: #335c67;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Softer border */
    border-radius: 12px;
    padding: 2.5em;
    /* More breathing room */
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #335c67;
}

.pricing-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4em;
    color: #335c67;
    margin-bottom: 0.5em;
}

.pricing-card .price {
    font-size: 2.5em;
    font-weight: 700;
    color: #335c67;
    margin: 0.2em 0;
}

.pricing-card .duration {
    font-size: 1.1em;
    font-weight: 700;
    color: #777;
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card p {
    color: #555;
    font-size: 0.95em;
}

/* Featured card style (optional, if we want one to pop) */
.pricing-card.featured {
    border: 2px solid #335c67;
    background-color: #fcfcfc;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* --- Form Styles --- */
/* --- Form Styles --- */
form {
    max-width: 600px;
    margin: 0 auto;
}

/* Default Layout (Stacked/Mobile-first & Large Page) */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    margin-bottom: 2em;
    position: relative;
}

/* --- Compact Form Styles (Home/About/Legal) --- */
.compact-form-container {
    max-width: 500px;
    /* Restrict overall width */
    margin: 0 auto;
    /* Center it */
}

.compact-form-container form {
    max-width: 100%;
    padding: 1.5em;
    background-color: #f9f9f9;
    /* Subtle background to define the area */
    border-radius: 8px;
    border: 1px solid #eee;
}

.compact-form-container .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin-bottom: 0;
}

.compact-form-container .form-group {
    margin-bottom: 0;
    /* Remove bottom margin to let grid gap handle spacing or be tight */
}

/* Make Phone and Message span full width in compact mode */
.compact-form-container .full-width {
    grid-column: 1 / -1;
}

.compact-form-container input,
.compact-form-container textarea {
    width: 100%;
    /* Force width */
    padding: 0.8em;
    /* Increase padding slightly again for comfort */
    font-size: 0.9em;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 4px;
    line-height: 1.4;
    /* Ensure line height is sufficient */
}

.compact-form-container label {
    margin-bottom: 0.2em;
    font-size: 0.85em;
    /* Smaller label */
}

.compact-form-container button {
    margin-top: 1em;
    padding: 0.6em 2em;
    font-size: 0.95em;
    width: 100%;
    /* Full width button looks better in compact card */
}

/* Responsive adjustments for compact form on very small screens */
@media (max-width: 600px) {
    .compact-form-container .form-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1em;
    border: none;
    border-bottom: 2px solid #ccc;
    background-color: transparent;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #335c67;
    /* Use the main dark text color */
}

/* --- Professional Button Style --- */
button,
.btn {
    display: block;
    width: auto;
    margin: 2em auto 0;
    padding: 0.8em 2em;
    background-color: #335c67;
    color: white;
    border: 2px solid #335c67;
    border-radius: 8px;
    /* More rectangular */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    text-align: center;
}

button:hover,
.btn:hover {
    background-color: transparent;
    color: #335c67;
}

/* --- Footer --- */
.site-footer {
    background-color: #335c67;
    color: #f7f7f7;
    padding: 4em 2em 1.5em;
    font-size: 0.95em;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3em;
    margin-bottom: 3em;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Merriweather', serif;
    color: white;
    margin-top: 0;
    margin-bottom: 1.2em;
    font-weight: 300;
}

.footer-section h3 {
    font-size: 1.4em;
    letter-spacing: 1px;
}

.footer-section h4 {
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.footer-section p {
    margin-bottom: 0.5em;
    color: #d0d0d0;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.8em;
}

.footer-section ul li a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    font-size: 0.85em;
    color: #aaa;
}

.design-credit a {
    color: #aaa;
    text-decoration: none;
    border-bottom: 1px dotted #aaa;
}

.design-credit a:hover {
    color: white;
    border-bottom-style: solid;
}

/* Hide SEO keywords from display but keep them in DOM for search engines */
.site-footer .seo-keywords {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 3em 1.5em 1.5em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5em;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5em;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
        /* Disable shift effect on mobile for better touch UX */
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        /* Keep branding and hamburger in a row */
        flex-wrap: wrap;
        /* Allow content to wrap */
        align-items: center;
        padding: 1em;
    }

    .hamburger {
        display: block;
        /* Show hamburger */
        margin-left: auto;
        /* Push to the right */
    }

    /* --- Mobile Menu Styling (No Animation for stability) --- */
    .nav-links,
    .nav-middle-name {
        display: none;
        /* Hidden by default */
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    /* Active State (Open) */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 1.5em;
        /* Space from logo/hamburger */
        padding-top: 1.5em;
        padding-bottom: 0.5em;
        gap: 1.5em;
        /* Comfortable spacing between links */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        /* Subtle separator */
        animation: fadeIn 0.3s ease-out;
        /* Simple fade in */
    }

    .nav-middle-name.active {
        display: block;
        width: 100%;
        order: 4;
        margin-top: 1.5em;
        /* Distinct spacing from links */
        margin-bottom: 1.5em;
        font-size: 0.8em;
        /* Subtle but readable */
        font-weight: 300;
        opacity: 0.7;
        letter-spacing: 0.5px;
        animation: fadeIn 0.3s ease-out 0.1s backwards;
        /* Staggered fade in */
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-brand {
        /* Brand stays visible */
        flex-grow: 1;
    }

    .hero-header-text h1 {
        font-size: 1.5em;
        /* Adjust for smaller screens */
    }

    .hero-coming-soon-text p {
        font-size: 2em;
        /* Adjust for smaller screens */
    }

    #intro {
        padding: 3em 1em;
    }

    #intro h2 {
        font-size: 2em;
    }

    #contact,
    #about-content,
    #legal-content {
        padding: 3em 1em;
        /* Reduce padding on smaller screens */
    }

    #contact h2,
    #about-content h2,
    #legal-content h2,
    #pricing h2 {
        font-size: 2.2em;
        /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2em;
    }

    .nav-links.active {
        /* Consistent within mobile view */
        gap: 1em;
    }

    .hero-header-text h1 {
        font-size: 1.2em;
        /* Further adjust for very small screens */
    }

    .hero-coming-soon-text p {
        font-size: 1.8em;
        /* Further adjust for very small screens */
    }

    #intro h2 {
        font-size: 1.8em;
    }

    #contact h2,
    #about-content h2,
    #legal-content h2,
    #pricing h2 {
        font-size: 1.8em;
        /* Further adjust for very small screens */
    }
}