/* ==========================================================================
   1. VARIABLES & GLOBAL RESETS
   ========================================================================== */

body, html {
    --primary-color: #5383e3;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}
.header-font, h2 {
    font-family: 'Sanchez', serif;
}

/* Keyboard Navigation Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    z-index: 9999;
    font-family: 'Sanchez', serif;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s ease-in-out;
}
.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   2. LAYOUT & DECORATIVE BACKGROUNDS
   ========================================================================== */

main {
    background-color: #e3dfef; /* Soft contrasting grey to make the white pages stand out */
    font-family: 'Quattrocento Sans', sans-serif;
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

/* Background decorative clouds */
.background-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Let clicks pass through to interactive document pages */
}

.bg-cloud {
    position: absolute;
    opacity: 0.5; /* Clearly visible, with inner opacity managed inside SVG */
    will-change: transform;
    /* Filter adds a very subtle blue shadow to blend beautifully with the canvas */
    filter: drop-shadow(0 8px 24px rgba(0, 126, 255, 0.06)) 
            drop-shadow(0 2px 6px rgba(0, 126, 255, 0.04));
    pointer-events: none;
}

.cloud-1 {
    width: 340px;
    left: 4%;
    top: 14%;
}

.cloud-2 {
    width: 440px;
    right: 4%;
    top: 23%;
}

.cloud-3 {
    width: 300px;
    left: 10%;
    top: 32%;
}

.cloud-4 {
    width: 380px;
    right: 6%;
    top: 41%;
}

.cloud-5 {
    position: absolute;
    width: 320px;
    left: 5%;
    top: 50%;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    /*
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    */
    padding: 1rem 2rem;
    z-index: 100;
    display: flex;
    gap: 1rem;
    transition: all 0.4s ease;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0 0 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.6px);
    -webkit-backdrop-filter: blur(5.6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.main-nav.has-logo {
    padding-left: 15rem; /* Make space for the logo */
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'Sanchez', serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Active Navigation Indicator styles */
.main-nav a.active {
    color: var(--primary-color);
    position: relative;
    font-weight: 800;
}

/* Elegant visual underline bar below active items */
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-links-container {
    display: flex;
    gap: 1rem;
}

/* Sticky Header Overlays and Brand Text */
.title-text {
    position: fixed;
    transform: translateX(0);
    top: 1rem;
    left: 1rem;
    font-family: 'Leaffes', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0; /* Reset default h1 margin */
    white-space: nowrap; /* Prevents text from wrapping on small screens */
    z-index: 101;
    letter-spacing: 0;
}

.logo-glass {
    position: fixed; /* Detach from the hero and stick to the viewport */
    width: 150px; /* Final small size */
    top: -15px; /* Position inside the navbar */
    left: 6.7rem; /* Adjust based on nav links */
    z-index: 102;
    transform: scale(1.5) !important;
    clip-path: polygon(28% 30%, 72% 30%, 72% 67%, 28% 67%);
}

.logo-skyline {
    opacity: 1;
    position: fixed; /* Detach from the hero and stick to the viewport */
    width: 150px; /* Final small size */
    top: 18px; /* Position inside the navbar */
    left: calc(6.7rem + 8px); /* glass left + 8px */
    z-index: 101;
    transform: scale(.8) !important;
    clip-path: polygon(3% 0, 82% 0, 82% 100%, 3% 100%);
}

.hamburger-toggle {
    display: none; /* Hidden on desktop */
}

/* Responsive Adjustments for Mobile Navigation */
@media (max-width: 768px) {
    .title-text {
        font-size: 6vw; /* Adjust font size to fit the wider logo */
    }

    .main-nav {
         width: auto;
         left: 0;
         right: auto;
         border-radius: 0 0 12px 0;
         padding: 1rem 1.5rem;
         box-sizing: border-box;
         display: flex;
         justify-content: flex-start; /* Align hamburger menu to the left */
         align-items: center;
         height: 60px; /* Consistent fixed height */
    }

    .main-nav.has-logo {
         padding-left: 1.5rem; /* Reset desktop-specific left padding on mobile */
    }

    .hamburger-toggle {
         display: flex;
         flex-direction: column;
         justify-content: space-between;
         width: 24px;
         height: 18px;
         background: none;
         border: none;
         cursor: pointer;
         padding: 0;
         z-index: 110;
    }

    .hamburger-toggle .bar {
         height: 3px;
         width: 100%;
         background-color: var(--text-dark);
         border-radius: 2px;
         transition: all 0.3s ease-in-out;
    }

    /* Hamburger active state transition to 'X' */
    .hamburger-toggle.active .bar:nth-child(1) {
         transform: translateY(7.5px) rotate(45deg);
    }
    .hamburger-toggle.active .bar:nth-child(2) {
         opacity: 0;
    }
    .hamburger-toggle.active .bar:nth-child(3) {
         transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-links-container {
         display: flex;
         flex-direction: column;
         position: fixed;
         top: 60px; /* Sits directly below the navbar */
         left: 0;
         width: 100vw;
         box-sizing: border-box;
         background-color: rgba(255, 255, 255, 0.98);
         backdrop-filter: blur(10px);
         box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
         padding: 1.5rem 2rem;
         gap: 1.5rem;
         transform: translateY(-150%);
         opacity: 0;
         pointer-events: none;
         transition: transform 0.4s ease, opacity 0.4s ease;
         z-index: 99;
         border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links-container.active {
         transform: translateY(0);
         opacity: 1;
         pointer-events: auto;
    }

    .nav-links-container a {
         font-size: 1.1rem;
         padding: 0.5rem 0;
         border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links-container a:last-child {
         border-bottom: none;
    }

    .nav-links-container a.active {
         font-weight: 700;
    }
    .nav-links-container a.active::after {
         display: none; /* Hide absolute underline block in mobile vertical menu */
    }
}

/* ==========================================================================
   4. HERO & REVEAL SECTION (Home Page)
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    overflow: hidden;
    background-color: #0b131f; /* Dark background to prevent unstyled flash */
    z-index: 4; /* Below fixed nav (z-index 100), above background clouds */
    box-shadow: inset 0 10px 25px rgba(0,0,0,0.3);
}

.hero-section.is-fixed {
    position: fixed;
    top: -85vh;
    left: 0;
    z-index: 4;
}

main.hero-fixed {
    margin-top: 100vh;
}

.city-photo-reveal {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.city-photo {
    width: 100%;
    height: 120%; /* Expanded height to allow smooth vertical translation bleed */
    object-fit: cover;
    position: absolute;
    top: -10%; /* Center the taller image vertically within the hero section */
    left: 0;
    will-change: transform;
}

.city-bg-photo {
    object-position: center 65%; /* Centered horizontally to create the parallax depth zoom on resize */
}

.city-gargoyle-photo {
    object-position: 90% 65%; /* Stays anchored 10% from the right edge */
}

/* Cast realistic shadows and a subtle dark filter over the emerging photo for high text contrast */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 30%, 
        rgba(0, 0, 0, 0.3) 70%, 
        rgba(0, 0, 0, 0.65) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Bottom Left Corner Info Overlay */
.city-photo-label {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2; /* Sit above the vignette gradient overlay */
    color: #ffffff;
}

.city-name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    transform-origin: left bottom;
    will-change: transform;
}

/* Centered Hero Title Styling */
.hero-title {
    position: fixed;
    top: 40px;
    right: 50px;
    z-index: 2; /* Positioned above the vignette layer (z-index: 1) */
    color: #ffffff;
    font-family: 'Taviraj', serif;
    font-size: 7.5vw;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
    margin: 0;
    transform-origin: right top;
    will-change: transform;
}
.is-fixed .hero-title {
    top: 50px;
}

@media (max-width: 768px) {
    .city-photo-label {
        left: 20px;
        bottom: 15px;
    }
    
    .city-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }
}
@media (max-width: 480px) {
    .hero-title {
        top: 50px;
        right: 10px;
    }
    .city-name {
        font-size: 1.5rem;
    }
}
@media (max-width: 400px) {
    .hero-title {
        font-size: 2.5rem;
    }
}


/* ==========================================================================
   5. MAIN COMPONENTS: DOCUMENT PAGES & LISTS
   ========================================================================== */

/* Alternating layout sections container */
.content-section {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Create a vertical overlap between alternating pages on desktop */
.content-section + .content-section {
    margin-top: -6rem;
}

.content-section:nth-child(odd) {
    justify-content: flex-start; /* Aligns page to the left */
}

.content-section:nth-child(even) {
    justify-content: flex-end; /* Aligns page to the right */
}

/* Floating document page styling */
.document-page {
    background-color: var(--bg-light);
    width: 100%;
    max-width: 520px;
    padding: 3.5rem 3rem;
    border-radius: 2px;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.05),
        0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Top colored strip mimicking formal stationery */
.document-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--primary-color);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

/* Organic tilts to mimic stacked papers on desktop */
.content-section:nth-of-type(1) .document-page {
    transform: rotate(-1.5deg);
}

.content-section:nth-of-type(2) .document-page {
    transform: rotate(1.2deg);
}

/* Hover focus animation */
.document-page:hover {
    transform: translateY(-8px) scale(1.02) rotate(0deg) !important;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.05),
        0 20px 40px rgba(0,0,0,0.12);
    z-index: 10;
}

/* Typography & layout structure details within pages */
.document-page h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
    text-align: left;
    font-weight: 400;
}

.document-page h3 {
    font-family: 'Sanchez', serif;
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.document-page h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.document-page h3 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.badge-pfa {
    display: inline-block;
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #ceead6;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-right: 0.4rem;
    text-decoration: none !important;
}

.document-page .link-subtext,
.document-page h3 + p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin-top: -0.25rem;
    margin-bottom: 1.25rem;
}

.document-page p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Formal Signature Stamp / Stamp Box elements */
.document-stamp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 2rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 1.5rem;
}

.signature {
    font-family: "The Nautigal", cursive;
    font-size: 4em;
}

.signature-line {
    width: 180px;
    border-bottom: 1px solid #aaa;
    position: relative;
    margin-bottom: 0.5rem;
}

.signature-line::after {
    content: 'Verification Officer';
    position: absolute;
    bottom: -18px;
    right: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.05em;
}

/* Document list components (Used on Services page) */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.document-list-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.document-list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.document-list-item h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.document-list-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Global Call-to-Action Buttons */
.cta-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2.2rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px; /* Matches paper angular look better than pill shapes */
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Sanchez', serif;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Responsive Adjustments for Mobile Pages */
@media (max-width: 900px) {
    .content-section {
        padding: 2rem 1.5rem;
        justify-content: center !important; /* Centers sheets on small screens */
    }
    
    .content-section + .content-section {
        margin-top: 0; /* Reset desktop overlap so centered pages don't stack directly */
    }
    
    .document-page {
        max-width: 100%;
        transform: none !important; /* Disables page tilt for clean reading on mobile */
        padding: 2.5rem 1.8rem;
    }
}

/* ==========================================================================
   6. CARDS & GRID LAYOUTS (Teasers Container - Home Page)
   ========================================================================== */

.teasers-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: stretch; /* Forces equal heights on teasers */
    position: relative;
    z-index: 2;
}

.teaser-card {
    flex: 1;
    min-width: 0;
    display: flex;
}

.teaser-card .document-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2rem;
}

.teaser-card .document-page:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Responsive Breakpoint for Grid Container */
@media (max-width: 900px) {
    .teasers-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }

    .teaser-card {
        width: 100%;
        max-width: 520px;
    }
}

/* ==========================================================================
   7. SUBPAGE STRUCTURAL OVERRIDES
   ========================================================================== */

/* Subpage main padding to clear fixed navbar */
body.subpage main {
    margin-top: 15vh;
    padding-top: 3rem;
}

/* Subpage Centered Layout Rules */
body.subpage .content-section {
    justify-content: center !important;
    margin-top: 0 !important;
    padding: 2rem 1.5rem;
}

body.subpage .content-section + .content-section {
    margin-top: 2rem !important;
}

body.subpage .document-page {
    transform: none !important; /* Flatten pages for structural symmetry when centered */
    max-width: 680px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.subpage .document-page:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   8. FORMS & RATE CALCULATOR COMPONENT
   ========================================================================== */

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.field-hint {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.field-group select,
.input-prefix-wrap input {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.field-group select:focus,
.field-group input[type="text"]:focus,
.field-group input[type="email"]:focus,
.field-group input[type="tel"]:focus,
.input-prefix-wrap input:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(83, 131, 227, 0.25);
}

.input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 0.75rem;
    font-size: 1rem;
    color: #555;
    pointer-events: none;
}

.input-prefix-wrap input {
    padding-left: 1.75rem !important;
}

/* Segmented Pill controls (Cash vs Financed) */
.pill-row {
    display: flex;
    gap: 0.5rem;
}

.pill {
    flex: 1;
    padding: 0.6rem;
    font-family: 'Quattrocento Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: #f1f3f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pill:hover:not(.active) {
    background-color: #e2e6ea;
}

/* Grid alignment for CPL Checkboxes */
.cpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.check-label input {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.calc-btn {
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

/* Output Breakdown Tables */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.breakdown-row.total-row {
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--text-dark);
    margin-top: 0.5rem;
    color: var(--primary-color);
}

.row-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
}

.min-badge {
    background-color: #fff3cd;
    color: #856404;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Dynamic Alert Boxes (Info & Warnings) */
.alert-box {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.alert-box.info {
    background-color: #e8f4fd;
    color: #1d6fa5;
    border-left: 4px solid var(--primary-color);
}

.alert-box.warn {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* ==========================================================================
   9. CONTACT SECTION & PRE-FOOTER BLOCKS
   ========================================================================== */

.contact-section {
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.4rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
}

.contact-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

/* Layout Overrides for Contact page Stamping block */
.contact-section .document-stamp {
    align-items: center;
    margin-top: 3rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.contact-section .signature-line::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.site-footer {
    background-color: #24292e;
    color: #d1d5db;
    padding: 4rem 2rem 2rem 2rem;
    font-family: 'Quattrocento Sans', sans-serif;
    font-size: 0.9rem;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    text-align: left;
}

.footer-column h3, 
.footer-column h4 {
    font-family: 'Sanchez', serif;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 1.2rem;
}

.footer-column h3 {
    font-size: 1.4rem;
    letter-spacing: 0.05em;
}

.footer-column h4 {
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

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

.footer-column a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 8rem; /* Make sure there's room above mobile fixed nav elements */
    }
}

/* ==========================================================================
   11. CLOSING TEASER BLOCK (Home Page Support)
   ========================================================================== */

.closing-teaser {
    margin: 2.5rem auto 0 auto;
    padding: 2rem;
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.closing-teaser h3 {
    margin-top: 0;
    font-family: 'Sanchez', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.closing-teaser p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   11. BUILDING PHOTO STYLING (About Us Page)
   ========================================================================== */

.building-photo-container {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.building-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transition: transform 0.5s ease;
}

.document-page:hover .building-photo {
    transform: scale(1.02);
}

.photo-caption {
    font-family: 'Sanchez', serif;
    font-size: 0.9rem !important;
    color: #666 !important;
    text-align: center !important;
    margin-top: 0.75rem;
    margin-bottom: 0 !important;
    font-style: italic;
}