/* ==========================================================================
   1. VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --bg-color: #fdfbf8;
    --accent-color: #a08c7d; /* Muted taupe */
    --text-dark: #333333;
    --text-light: #7a7a7a;
    --white: #ffffff;
    --slate-blue: #4a5d73;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scrolling issues */
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 1px;
}

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

/* ==========================================================================
   2. REUSABLE COMPONENTS & ANIMATIONS
   ========================================================================== */
/* Section Titles */
.section-title {
    text-align: center;
    font-size: 3.5rem; 
    font-family: 'Playfair Display', serif; 
    font-weight: 400;             
    letter-spacing: 4px;         
    text-transform: uppercase;   
    color: #0d0e0e;              
    margin: 60px 0 80px 0;      
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #d8c3b6;        
    margin: 20px auto 0;        
}

/* Buttons */
.btn {
    padding: 15px 35px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--slate-blue);
    color: var(--slate-blue);
}

.btn.outline:hover {
    background: var(--slate-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.consultation-btn {
    display: inline-block;
    color: var(--slate-blue);        
    border: 1px solid var(--slate-blue);
    padding: 15px 35px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
}

.consultation-btn:hover {
    background: var(--slate-blue);   
    color: var(--white);          
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Scroll Animations (Anti-Jitter) */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(0.25, 0.1, 0.25, 1), 
                transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, opacity;
    backface-visibility: hidden; 
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. NAVIGATION (HEADER) - DESKTOP
   ========================================================================== */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: rgba(253, 251, 248, 0.95); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 9999;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;      
    width: auto;         
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05); 
}

.navbar nav {
    display: flex;
    align-items: center;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    padding-bottom: 5px;
}

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

.nav-links a.active {
    font-weight: 700; 
    color: var(--accent-color); 
    border-bottom: 2px solid var(--accent-color); 
}

/* ==========================================================================
   MOBILE BURGER MENU & OVERLAY (HIDDEN ON DESKTOP)
   ========================================================================== */
.burger-menu {
    display: none; /* CRITICAL: Hides the menu completely on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 10001;
    margin: 0;
}

.burger-menu span {
    display: block;
    width: 100%; 
    height: 3px;
    background: var(--slate-blue); /* Slate blue lines, not brown */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100vw; 
    height: 100vh;
    background: var(--bg-color); 
    z-index: 10005; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-overlay.active { 
    right: 0; 
}

.close-menu {
    position: absolute; 
    top: 30px; 
    right: 30px;
    font-size: 4rem; 
    color: var(--slate-blue); 
    cursor: pointer;
    line-height: 0.5;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: scale(1.1);
}

.mobile-link { 
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem; 
    color: #bca291; /* Luxury brown text INSIDE the menu */
    text-decoration: none; 
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--slate-blue); 
}

/* ==========================================================================
   4. HOME PAGE (.hero, .process-section, .security-section)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e0d8; 
    padding: 160px 5% 80px; /* padding-top ensures content clears the navbar */
    overflow: hidden; /* Critical for image cutoff */
}

.hero-content {
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-text {
    flex: 1; 
    text-align: left; 
    padding-right: 50px; 
}

.hero-text h1 {
    font-size: 3.5rem; 
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-self: flex-end; 
    position: relative;

    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
}

.hero-image img {
    max-width: 120vh; 
    height: auto;
    display: block;
    transform: translateY(10%); /* Pushes image down to create mask effect */
    z-index: 10;

    -webkit-mask-image: linear-gradient(to left, black 95%, transparent 100%);
    mask-image: linear-gradient(to left, black 95%, transparent 100%);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: flex-start; 
    margin-top: 30px;
    flex-wrap: wrap; 
}

/* Stop buttons from filling width */
.hero-btns .btn {
    width: auto; 
    flex: 0 1 auto; 
}

.hero-circle-decoration {
    position: absolute;
    right: 5%;
    bottom: 10%;
    width: 300px;
    height: 300px;
    border: 1px solid var(--slate-blue);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
}

.process-section {
    padding: 100px 10%;
    text-align: center;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.process-grid .step {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers icons and text */
}

.step-icon {
    font-size: 2.5rem;
    color: #d8c3b6;
    margin-bottom: 20px;
}

/* ==========================================================================
   SECURITY SECTION (Centered Layout)
   ========================================================================== */
.security-section {
    padding: 80px 5%; 
    background: var(--white); 
    position: relative;
    z-index: 20; 
}

.security-wrapper {
    display: block; /* Removes the 2-column grid */
    max-width: 1200px;
    margin: 0 auto;
}

.security-content {
    text-align: center; 
    width: 100%;
}

/* Centers the title and the underline beneath it */
.security-content .section-title {
    text-align: center;
    margin: 0 auto 40px auto;
}

/* The centered blue box */
.security-shape.enlarged {
    background: var(--slate-blue);
    color: var(--white);
    max-width: 900px; /* Gives it a nice, wide presence in the center */
    padding: 80px 60px;
    margin: 0 auto; /* The magic rule that physically centers the box */
    clip-path: none; 
    border-radius: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    box-sizing: border-box;
    clip-path: polygon(25% 0%, 100% 0%, 100% 75%, 75% 100%, 0% 100%, 0% 25%);
}

.security-shape.enlarged p {
    font-size: 1.1rem; 
    line-height: 1.8;
    letter-spacing: 1.5px;
    text-align: center; /* Centers the text inside the box */
    margin: 0;
}

/* ==========================================================================
   HOME PAGE: INVESTMENT & MATRIX SECTIONS
   ========================================================================== */

/* --- Investment Section --- */
.investment-section {
    padding: 100px 5%;
    background: var(--bg-color);
    text-align: center;
}

.investment-content {
    max-width: 800px;
    margin: 0 auto;
}

.investment-text {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* --- The Standard Matrix --- */
.matrix-section {
    padding: 80px 5% 120px;
    background: var(--white);
}

.matrix-container {
    max-width: 1000px;
    margin: 0 auto;
    border: 3px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.matrix-row {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-col {
    padding: 30px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.label-col {
    flex: 1;
    font-weight: 700;
    color: var(--slate-blue);
    background: #fdfbf8;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.standard-col {
    flex: 1;
    
    /* Adds a subtle grey background to the entire column */
    background: #f7f7f7; 
    
    /* Darkens the text so it's much easier to read */
    color: #666666; 
    
    /* Removes the old opacity rule that was making it look washed out */
    opacity: 1; 
}

.union-col {
    flex: 1.5;
    background: var(--slate-blue);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.union-col i {
    color: #d8c3b6; /* The tan accent color for the checkmarks */
    margin-right: 10px;
}

.header-row .matrix-col {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: none;
    padding: 40px 30px;
}

.header-row .label-col {
    background: var(--white);
}

/* ==========================================================================
   ACCREDITATIONS 3D CAROUSEL
   ========================================================================== */
.accreditation-section {
    background-color: var(--bg-color);
    padding: 80px 5% 120px;
    overflow: hidden; 
    perspective: 1000px; 
}

.accreditation-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.accreditation-subtitle {
    color: var(--text-light);
    margin: -20px auto 60px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.carousel-container {
    width: 100%;
    height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatRing 6s ease-in-out infinite; 
}

@keyframes floatRing {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.carousel-3d {
    width: 220px; 
    height: 100px;
    position: absolute;
    transform-style: preserve-3d;
    animation: spin3D 20s infinite linear; 
}

.carousel-3d:hover {
    animation-play-state: paused; 
}

@keyframes spin3D {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 220px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    
    /* --- THE OVERLAP FIXES --- */
    /* 1. Gives the card a solid background to block transparency */
    background-color: var(--bg-color); 
    border-radius: 10px;
    
    /* 2. Makes the card completely invisible when it faces away from the camera */
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden; /* Safari support */

    /* Professional Ghosted Grayscale */
    filter: grayscale(100%) opacity(0.6); 
}

/* Pops to full color and lifts up slightly on hover */
.carousel-item:hover {
    filter: grayscale(0%) opacity(1);
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Adds a premium glow */
}

.carousel-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* THE MATH: 5 Items pushed outward into a 3D pentagon (72 degrees apart) */
.carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(250px); }
.carousel-item:nth-child(2) { transform: rotateY(72deg) translateZ(250px); }
.carousel-item:nth-child(3) { transform: rotateY(144deg) translateZ(250px); }
.carousel-item:nth-child(4) { transform: rotateY(216deg) translateZ(250px); }
.carousel-item:nth-child(5) { transform: rotateY(288deg) translateZ(250px); }

/* --- The "Thinking Cloud" Tooltip --- */
.carousel-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%; 
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--slate-blue);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    pointer-events: none; 
}

/* The little arrow pointing down to the logo */
.carousel-item::before {
    content: '';
    position: absolute;
    bottom: 108%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg) scale(0.5);
    width: 14px;
    height: 14px;
    background: var(--slate-blue);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.carousel-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) rotate(45deg) scale(1); 
}

/* ==========================================================================
   5. SERVICES PAGE (.services, .vertical-stack, .cta-section)
   ========================================================================== */
.services-container {
    padding: 40px 20px;
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 60px; 
    padding: 20px;
    margin-bottom: 100px;
}

.services-page .card {
    width: 100%;
    max-width: 800px; 
    background: var(--white);
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.5s ease;
}

.services-page .card:hover {
    transform: translateY(-5px); 
}

.service-img {
    width: 100%;
    height: 400px; /* Keeps the exact height you had before */
    object-fit: cover; /* This is the magic rule that crops the image perfectly without stretching it */
    margin-bottom: 30px;
    border-radius: 10px; /* Optional: adds a slight curve to the image corners */
}

.services-page .card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.cta-box {
    background-color: var(--slate-blue); 
    color: var(--white);
    padding: 60px 40px;
    border-radius: 40px; 
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.cta-box h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background-color: #d8c3b6; 
    color: var(--slate-blue);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background-color: #c9b0a1;
}

/* ==========================================================================
   CREDIBILITY TRUST BAR (SERVICES PAGE)
   ========================================================================== */
.trust-bar {
    background: var(--slate-blue); 
    padding: 70px 5%;
    color: var(--white);
}

.trust-container {
    display: grid;
    /* Automatically handles mobile stacking and desktop columns */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.trust-item {
    padding: 10px 20px;
    position: relative;
}

/* Subtle vertical dividers for desktop only */
@media (min-width: 769px) {
    .trust-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -20px;
        top: 15%;
        height: 70%;
        width: 1px;
        background: rgba(216, 195, 182, 0.2); /* Faded luxury tan */
    }
}

.trust-icon {
    font-size: 2.2rem;
    color: #d8c3b6; /* Luxury Tan/Gold */
    margin-bottom: 20px;
}

.trust-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: var(--white);
}

.trust-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7); /* Softens the text so the heading pops */
    line-height: 1.8;
}

/* ==========================================================================
   FAQ ACCORDION (SERVICES PAGE)
   ========================================================================== */
.faq-section {
    padding: 80px 5%;
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 40px;
    border-top: 1px solid rgba(216, 195, 182, 0.4);
}

.faq-item {
    border-bottom: 1px solid rgba(216, 195, 182, 0.4);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 25px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover, 
.faq-question.active {
    color: var(--accent-color);
}

/* The Plus/Minus Icon */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    padding-bottom: 25px; /* Adds space inside the open box */
    padding-right: 20px;
}

/* ==========================================================================
   6. ABOUT PAGE (.about-hero, .story-block, .values-section)
   ========================================================================== */
.about-hero {
    padding: 180px 20px 60px;
    text-align: center;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: -40px;
    letter-spacing: 1px;
}

.story-block {
    padding: 80px 10%;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.story-block.reverse .story-content {
    flex-direction: row-reverse;
}

.story-text, .story-image {
    flex: 1;
}

.editorial-hd {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

/* Keeps the image contained and perfectly scaled */
.feature-image {
    width: 100%;
    height: 100%;
    min-height: 300px; /* Gives it a baseline height on smaller screens */
    object-fit: cover; /* Prevents stretching; crops beautifully like a background image */
    border-radius: 5px; /* Optional: Adds a slight luxury curve to the corners */
    display: block;
}

.values-section {
    background: #f9f7f4;
    padding: 100px 10%;
    margin-top: 100px;
}

.values-grid {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    max-width: 300px;
}

.value-blob {
    width: 100px;
    height: 100px;
    background: var(--slate-blue); 
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 35% 65% 68% 32% / 37% 33% 67% 63%; 
    transition: 0.5s ease;
}

.value-item:hover .value-blob {
    border-radius: 50%; 
}

.value-item h3 {
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   CORE ETHOS SECTION (ABOUT PAGE)
   ========================================================================== */
.ethos-section {
    padding: 100px 5%;
    background: var(--bg-color); /* Nanny Union Cream */
    text-align: center;
}

.ethos-grid {
    display: grid;
    /* Automatically scales from 3 columns on desktop to 1 column on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.ethos-card {
    background: var(--white);
    padding: 40px 20px;
    border: 1px solid rgba(216, 195, 182, 0.3); /* Luxury thin border */
    border-radius: 5px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Premium lift-and-glow effect on hover */
.ethos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.ethos-icon {
    font-size: 2.5rem;
    color: var(--accent-color); /* The luxury gold/tan */
    margin-bottom: 25px;
}

.ethos-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--slate-blue);
    margin-bottom: 20px;
}

.ethos-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
}
/* ==========================================================================
   7. CONTACT PAGE (.contact-wrapper, .luxury-form)
   ========================================================================== */
.contact-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 150px auto 100px;
    gap: 100px;
    padding: 0 40px;
}

.contact-form-container {
    flex: 1.2;
}

.contact-info-container {
    flex: 0.8;
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.luxury-form input, 
.luxury-form select, 
.luxury-form textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8c3b6; 
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.3s ease;
}

.luxury-form input:focus, 
.luxury-form textarea:focus {
    border-color: var(--slate-blue); 
}

/* --- Smarter Input Validation --- */
.luxury-form input.interacted:invalid,
.luxury-form select.interacted:invalid,
.luxury-form textarea.interacted:invalid {
    border-bottom-color: #e74c3c; 
    color: #e74c3c;
}

.luxury-form input.interacted:valid,
.luxury-form select.interacted:valid,
.luxury-form textarea.interacted:valid {
    border-bottom-color: #6d9e7a; 
}

.luxury-form select {
    /* 1. Kills Apple's native styling completely */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* 2. Forces your colors so iOS can't make it blue */
    background-color: transparent !important;
    color: var(--text-dark) !important; 
    
    /* 3. Adds a custom dark-blue arrow back in since we deleted the Apple one */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234a5d73%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0px center; /* Puts the arrow on the right */
    background-size: 10px auto;            /* Sizes the arrow */
    
    padding-right: 30px !important; /* Makes sure text doesn't hit the arrow */
}

/* Forces the dropdown list options to be white/grey instead of blue */
.luxury-form select option {
    color: var(--text-dark) !important;
    background-color: var(--bg-color) !important;
}

.submit-btn {
    align-self: center;
    background: var(--slate-blue);
    color: var(--white);
    border: none;
    padding: 15px 45px;
    letter-spacing: 2px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #364658;
    transform: translateY(-2px);
}

.script-font {
    font-style: italic;
    font-size: 2.5rem;
    color: var(--slate-blue);
    margin-bottom: 15px;
}

.info-block {
    margin-bottom: 50px;
}

.intro p {
    color: var(--text-light);
    line-height: 1.8;
}

.detail-item {
    margin-bottom: 25px;
}

.detail-item span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #d8c3b6;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 1rem;
    color: var(--text-dark);
}

.hours h3 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--slate-blue);
}

.hours p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL & REVIEW FORM
   ========================================================================== */
.testimonials {
    padding: 100px 5%;
    background: var(--bg-color); /* Nanny Union Cream */
    overflow: hidden;
}

.testimonial-carousel {
    max-width: 600px;
    margin: 0 auto 60px;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: pan-y; 
}

.testimonial-card {
    flex: 0 0 100%;
    min-width: 0; 
    background: var(--white);
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(216, 195, 182, 0.3); /* Thin luxury border */
}

.testimonial-card .stars {
    color: #d8c3b6; /* Luxury tan instead of bright yellow */
    font-size: 1.25rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.testimonial-card p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--slate-blue);
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-card .author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 600;
}

/* --- Carousel Controls --- */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--slate-blue);
    color: var(--slate-blue);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--slate-blue);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--slate-blue);
    width: 20px;
    border-radius: 4px;
}

/* --- Review Submission Form --- */
.review-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: transparent;
    padding: 40px 0 0;
    border-top: 1px solid rgba(216, 195, 182, 0.4);
    text-align: center;
}

.review-form-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--slate-blue);
    margin-bottom: 5px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.star-rating .star {
    font-size: 2rem;
    color: #eaeaea;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #d8c3b6;
    transform: scale(1.1);
}

/* ==========================================================================
   8. FOOTER (.main-footer)
   ========================================================================== */
.main-footer {
    position: relative;
    background-color: #3e362e; 
    color: #fdfbf8;
    padding: 100px 0 40px;
    overflow: hidden;
    margin-top: 100px;
}

.footer-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03; 
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30c0-16.569 13.431-30 30-30v60c-16.569 0-30-13.431-30-30zM0 30c0 16.569 13.431 30 30 30V0C13.431 0 0 13.431 0 30z' fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.footer-newsletter {
    text-align: center;
    margin: 0 auto 80px;
    max-width: 800px; 
    border-bottom: 1px solid rgba(216, 195, 182, 0.2);
    padding-bottom: 60px;
}

.footer-newsletter h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto 0;
    max-width: 600px; /* Limits the stretch */
}

.newsletter-form input {
    padding: 15px 25px;
    width: auto;
    flex: 2;
    border: 1px solid rgba(216, 195, 182, 0.4);
    background: transparent;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.newsletter-form button {
    padding: 15px 40px;
    flex: 1;
    width: auto;
    background: #d8c3b6; 
    border: none;
    color: #3e362e;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #c5b0a3;
}

.footer-main-content {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col:first-child {
    flex: 1;
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif; 
}

.footer-col:nth-child(2) {
    flex: 1;
    text-align: center;
}

.footer-col:nth-child(2) ul {
    list-style: none;
    padding: 0;
}

.footer-col:nth-child(2) ul li {
    margin-bottom: 15px; 
}

.footer-col:last-child {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #d8c3b6; 
    text-transform: uppercase;
}

.footer-col a {
    color: #fdfbf8;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: 0.3s ease;
}

.footer-col a:hover {
    opacity: 1;
    color: #d8c3b6;
    letter-spacing: 1px; 
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    width: 100%;
}

.social-icons a {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    transform: scale(1.1) translateY(-2px);
    color: #d8c3b6;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(228, 222, 218, 0.1);
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* ==========================================================================
   10. LEGAL PAGES (.legal-page, .legal-content)
   ========================================================================== */
.legal-page {
    background: var(--bg-color);
}

.legal-header {
    padding: 180px 5% 60px;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.legal-header p {
    color: var(--text-light);
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.legal-content {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 5%;
    background: var(--bg-color);
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--slate-blue);
    margin: 50px 0 20px;
    font-family: 'Playfair Display', serif;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.legal-content p, 
.legal-content li {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 30px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--slate-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-content a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   CAREER & CLIENT APPLICATION FORMS
   ========================================================================== */
.career-form-container {
    max-width: 900px;
    margin: 30px auto 100px; 
    padding: 0 5%;
}

.intro-text {
    text-align: center;
    margin-bottom: 60px;
}

.intro-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   UNION STANDARD PERKS (CAREERS PAGE)
   ========================================================================== */
.perks-wrapper {
    margin: 40px 0 70px;
    padding: 50px;
    background: var(--white);
    border: 1px solid rgba(216, 195, 182, 0.4);
    border-radius: 5px;
    text-align: center;
}

.perks-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--slate-blue);
    margin-bottom: 15px;
}

.perks-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.perks-grid {
    display: grid;
    /* Auto-stacks beautifully on mobile */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.perk-card {
    background: var(--bg-color); /* Faint luxury cream */
    padding: 30px 20px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.perk-card:hover {
    transform: translateY(-5px);
}

.perk-icon {
    font-size: 2rem;
    color: #d8c3b6; /* Luxury Tan */
    margin-bottom: 15px;
}

.perk-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.perk-card p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Fieldset & Legend Formatting --- */
.full-page-form fieldset {
    border: none;
    border-bottom: 1px solid rgba(216, 195, 182, 0.4); 
    padding: 0 0 50px 0;
    margin: 0 0 50px 0;
}

.full-page-form fieldset:last-of-type {
    border-bottom: none;
    padding-bottom: 20px;
}

.full-page-form legend {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--slate-blue);
    padding: 0;
    margin-bottom: 40px; 
    width: 100%;
}

.field-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
    margin-top: -30px; 
}

/* --- Form Layout & Alignment Fixes --- */
.form-row {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* FIX: Stops tall radio buttons from stretching adjacent text boxes */
    margin-bottom: 0; 
}

.form-row input, .form-row select {
    flex: 1;
}

.form-group {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* FIX: Aligns everything neatly to the top */
    width: 100%;
}

/* --- Universal Field Label System --- */
.field-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 8px; /* Gives the text box a little breathing room */
    text-transform: uppercase;
    line-height: 1.5;
}

/* Ensures wrapped inputs maintain the perfect 35px vertical rhythm */
.full-page-form fieldset > .form-group,
.full-page-form fieldset > .form-row {
    margin-bottom: 35px;
}

/* Strips duplicate spacing so the boxes don't drift apart */
.full-page-form .form-group > input,
.full-page-form .form-group > select,
.full-page-form .form-group > textarea {
    margin-bottom: 0 !important;
}

/* Make sure textareas have enough breathing room inside */
.full-page-form textarea {
    padding-top: 15px;
    resize: vertical; 
}

.full-page-form .submit-btn {
    font-family: 'Montserrat', sans-serif; 
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 20px auto 0;
    font-size: 0.9rem;
    padding: 20px;
    border-radius: 5px;
}

/* ==========================================================================
   FORM UPGRADES (Radio Buttons & Dynamic Inputs)
   ========================================================================== */

/* --- Custom Luxury Radio Buttons --- */
.radio-choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0; /* Cleaned up spacing */
}

.radio-choices input[type="radio"] {
    display: none; 
}

.radio-choices label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.radio-choices label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px; 
    border: 1px solid var(--slate-blue);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.2s ease-in-out;
    background: transparent;
}

.radio-choices input[type="radio"]:checked + label::before {
    background: var(--slate-blue);
    box-shadow: inset 0 0 0 3px var(--bg-color); 
}

.radio-choices input[type="radio"]:checked + label {
    font-weight: 600; 
}

/* --- Dynamic '+ Child' Button & Container --- */
.dynamic-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px; /* Fixes the squishing issue when new children are added */
    margin-bottom: 35px; /* Restores vertical rhythm */
}

.add-dynamic-btn {
    background: transparent;
    border: 1px solid #d8c3b6;
    color: var(--slate-blue);
    padding: 12px 25px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 35px; 
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.add-dynamic-btn:hover {
    background: var(--slate-blue);
    color: var(--white);
    border-color: var(--slate-blue);
    transform: translateY(-2px);
}

.child-input-group {
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- The Legal Shield Checkbox --- */
.legal-consent {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 0 auto 30px;
    max-width: 600px;
}

/* Stops the checkbox from stretching across the screen */
.legal-consent input[type="checkbox"] {
    width: auto !important; 
    margin-top: 4px;
    cursor: pointer;
    flex-shrink: 0; /* Prevents the box from squishing */
    width: 18px !important;
    height: 18px !important;
}

.legal-consent label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    cursor: pointer;
}

.legal-consent a {
    color: var(--slate-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.legal-consent a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */
.error-page {
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.error-container {
    flex: 1; /* Pushes the footer to the bottom of the screen */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 180px 5% 100px; /* Accounts for the navbar height */
    text-align: center;
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(216, 195, 182, 0.4); /* Faded luxury tan color */
    line-height: 1;
    margin-bottom: -20px;
    letter-spacing: 5px;
}

.error-title {
    font-size: 2.5rem;
    color: var(--slate-blue);
    margin-bottom: 20px;
}

.error-divider {
    width: 60px;
    height: 1px;
    background: #d8c3b6;
    margin: 0 auto 30px;
}

.error-message {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.error-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   HOME OFFICE COMPLIANCE BADGE
   ========================================================================== */
.compliance-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-color); /* Luxury Cream */
    border: 1px solid rgba(216, 195, 182, 0.4); /* Thin Tan Border */
    padding: 15px 25px;
    border-radius: 5px;
    max-width: 600px;
    margin: 30px auto; /* Centers it automatically */
}

.badge-icon {
    font-size: 2rem;
    color: var(--slate-blue);
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badge-text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-blue);
    margin-bottom: 3px;
}

.badge-text span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================================================
   9. MOBILE RESPONSIVENESS (PATCH)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Adjust Hero for Tablets */
    .hero-content {
        flex-direction: column;
        padding-top: 60px;
    }
    .hero-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }
    .hero-image img {
        max-width: 80%;
        transform: translateY(5%);
    }
}

@media (max-width: 768px) {
    /* 1. Global Spacing Reset */
    section {
        /* [TWEAK HERE] Adjust '60px' to increase/decrease space between page sections */
        padding: 60px 20px !important;
    }

    /* 2. Navbar Fix - Stop the tiny logo/crushed links */
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important; /* Pushes everything right */
        align-items: center !important;
        height: 100px !important; 
        padding: 0 25px !important;
    }

    /* 2. Lock the Logo in the Dead Center */
    .logo-link {
        position: absolute !important;
        top: 50% !important; 
        left: 50% !important;
        transform: translate(-50%, -50%) !important; 
        margin: 0 !important;
        padding: 0 !important;
    }

    .logo-img {
        height: 60px !important; /* Slightly scaled for mobile */
        width: auto !important;
    }

    /* 3. Nuke the Desktop Links (Fixes image 1) */
    .navbar nav {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    .nav-links {
        display: none !important; 
        visibility: hidden !important;
    }

    /* 4. Fix the Broken Burger (Fixes image 4) */
    .burger-menu {
        display: flex !important; 
    }

    .burger-menu span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #bca291 !important; /* Luxury Brown */
        margin: 0 !important;
        border-radius: 2px !important;
    }

    /* 3. Global Top-Spacing (Fixes the cutoff on ALL pages) */
    .hero, 
    .about-hero, 
    .contact-wrapper,
    .legal-header{
        /* [TWEAK HERE] CRITICAL: Increase this if the navbar is still eating the top of your text */
        /* Must always be larger than the navbar's min-height */
        padding-top: 180px !important; 
    }
    
    .contact-wrapper {
        margin-top: 0; /* Resets desktop margin since we are using padding-top above */
    }

    /* 4a. Hero Section - Stacked */
    .hero {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: #e5e0d8; 
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        /* [TWEAK HERE] Size of the "GOLD STANDARD" main header */
        font-size: 2.2rem;
        line-height: 1.2;
        margin-top: 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        align-items: center;
        /* [TWEAK HERE] Space between the two buttons */
        gap: 15px;
    }

    .btn {
        width: 100%; 
        /* [TWEAK HERE] Adjust button width on mobile */
        max-width: 300px;
    }

    /* 4b. Hero Image - Red Box Alignment */
    .hero-image {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        width: 100%;
        margin-top: 20px;
    }

    .hero-image img {
        width: 100%; 
        /* [TWEAK HERE] Lower this number to make the Nanny image smaller */
        max-width: 450px; 
        height: auto;
        display: block;
        transform: translateY(0); 
    }

    /* 4c. Perks Section - Stacked Cards */
    .perks-wrapper {
        padding: 40px 20px;
    }

    /* Careers Form Patch */
    .form-row {
        flex-direction: column;
        gap: 30px;
    }

    /* 5. Process & Values Grid */
    .process-grid, .values-grid {
        grid-template-columns: 1fr; 
    }

    .security-wrapper {
        grid-template-columns: 1fr; 
        gap: 30px;
        /* Keeps the whole section away from the screen edges */
        padding: 40px 20px 0px 20px; 
    }
    
    .security-content {
        text-align: center; 
        width: 100%;
    }

    .security-content .section-title {
        text-align: center; 
        /* Strips out any hidden desktop margins pushing it to the right */
        margin: 0 auto 20px auto !important; 
        padding: 0;
    }

    .security-shape.enlarged {
        /* Forces absolute centering */
        margin: 0 auto; 
        width: 100%; 
        /* Stops it from expanding past the screen */
        max-width: 100%; 
        /* Crucial: Shrinks the massive desktop padding for small screens */
        padding: 40px 20px; 
        /* Forces the padding to stay INSIDE the box */
        box-sizing: border-box; 
    }

    .security-shape.enlarged p {
        text-align: center; 
        margin: 0;
    }

    /* --- Matrix Mobile Patch --- */
    .matrix-row.header-row {
        display: none; /* Hide the desktop headers on mobile */
    }

    .matrix-row {
        flex-direction: column;
        padding: 20px 0;
    }

    .matrix-col {
        padding: 15px 20px;
        justify-content: center;
        text-align: center;
    }

    .label-col {
        background: transparent;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 10px;
    }

    .standard-col {
        text-decoration: line-through; /* Visual cue that standard isn't good enough */
        padding-bottom: 10px;
    }

    .union-col {
        border-radius: 10px;
        margin: 0 20px;
    }

    /* --- Accreditations Mobile Patch (5 Items) --- */
    .carousel-item {
        width: 120px; 
        height: 60px;
    }
    /* Pulls the 5-item 3D radius in tighter for phones */
    .carousel-item:nth-child(1) { transform: rotateY(0deg) translateZ(125px); }
    .carousel-item:nth-child(2) { transform: rotateY(72deg) translateZ(125px); }
    .carousel-item:nth-child(3) { transform: rotateY(144deg) translateZ(125px); }
    .carousel-item:nth-child(4) { transform: rotateY(216deg) translateZ(125px); }
    .carousel-item:nth-child(5) { transform: rotateY(288deg) translateZ(125px); }

    /* 6. Services Page */
    .services-page .card {
        max-width: 100%;
        padding: 30px 15px;
    }
    .service-img {
        /* [TWEAK HERE] Height of the actual images on mobile */
        height: 250px; 
    }

    .section-title {
        /* [TWEAK HERE] Size of headers like "OUR SPECIALIZED CARE" */
        font-size: 2.2rem; 
        padding: 0 10px;
        line-height: 1.2;
        margin: 40px 0;
        word-wrap: break-word; 
    }

    /* 7. Values Section */
    .values-section {
        padding: 60px 5%; 
        overflow: hidden;
    }

    .values-grid {
        display: flex;
        flex-direction: column; 
        align-items: center;
        gap: 50px;
    }

    .value-item {
        width: 100%;
        max-width: 100%; 
        padding: 0 15px;
    }

    .value-blob {
        /* [TWEAK HERE] Change both to 60px if the blue circles are too big */
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .trust-bar {
        padding: 50px 5%;
    }
    .trust-item {
        padding: 10px 0;
    }

    /* 8. About Page - Story Blocks */
    .story-content, .story-block.reverse .story-content {
        flex-direction: column;
        gap: 30px;
    }

    .img-placeholder.main-founder,
    .img-placeholder.office-shot {
        width: 100%;       
        /* [TWEAK HERE] Adjust height of gray placeholders on About page */
        height: 300px;     
        display: block;    
        margin-bottom: 20px; 
    }

    .story-image {
        width: 100%;       
    }

    /* 9. Contact Page */
    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    /* 10. Footer */
    .footer-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    .footer-col, .footer-col:last-child {
        text-align: center;
        align-items: center;
    }
    .social-icons {
        justify-content: center;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .newsletter-form input {
        width: 100%;
    }

    /* Prevents iPhone Auto-Zoom on Forms */
    .full-page-form input,
    .full-page-form select,
    .full-page-form textarea {
        font-size: 16px !important; 
    }

    .compliance-badge {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .badge-text {
        text-align: center;
    }

    /* Mobile Tweak for 404 */
    .error-code {
        font-size: 6rem;
    }
    .error-title {
        font-size: 2rem;
    }
    .error-btns {
        flex-direction: column;
        gap: 15px;
    }
    .error-btns .btn, 
    .error-btns .consultation-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}


@media (max-width: 480px) {
    .nav-links li {
        /* [TWEAK HERE] Space between links on very small phones */
        margin-left: 12px; 
    }
    .nav-links a {
        /* [TWEAK HERE] Font size of links on very small phones */
        font-size: 0.65rem; 
        letter-spacing: 0.5px;
    }
    /* Note: Removed font-size: 1rem from logo-img because images use height, not font-size */
}

/* ==========================================================================
   UK GDPR COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-left: 4px solid var(--slate-blue);
    z-index: 10000;
    display: none; /* Hidden by default, JS will show it */
    font-family: 'Montserrat', sans-serif;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-banner a {
    color: var(--slate-blue);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btns {
    display: flex;
    gap: 10px;
}

.cookie-btns button {
    flex: 1;
    padding: 10px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-accept {
    background: var(--slate-blue);
    color: var(--white);
    border: 1px solid var(--slate-blue);
}

.btn-accept:hover {
    background: #364658;
}

.btn-decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #ddd;
}

.btn-decline:hover {
    background: #f5f5f5;
}