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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden; /* prevent 100vw full-bleed blocks from causing horizontal scroll */
}

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

nav {
    background: linear-gradient(135deg, #1e3048 0%, #2c3e50 50%, #1e3048 100%);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 60px;
    width: auto;
}

.nav-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    flex: 1;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #74a8d4;
}

.nav-cta {
    background: #74a8d4;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: #5b8db8;
    color: white !important;
}

.nav-phone {
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   STICKY CTA BUTTON
   ============================================ */

.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-cta .btn {
    box-shadow: 0 5px 20px rgba(116, 168, 212, 0.6);
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #1e3048 0%, #2c3e50 30%, #3a526a 60%, #2c3e50 100%);
    background-size: 300% 300%;
    animation: heroBreath 8s ease-in-out infinite;
    color: white;
    padding: 4rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 100px; /* Offset for sticky nav */
}

@keyframes heroBreath {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg, 
            transparent, 
            transparent 35px, 
            rgba(255,255,255,.03) 35px, 
            rgba(255,255,255,.03) 70px
        );
    /* The pattern repeats every 70px, so we translate exactly 70px for seamless loop */
    animation: slide 20s linear infinite;
    /* Extend the background beyond viewport to prevent edge visibility */
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    top: -50px;
    left: -50px;
}

@keyframes slide {
    0% { 
        transform: translate(0, 0); 
    }
    100% { 
        /* Move diagonally to match the 45deg angle - this ensures seamless loop */
        transform: translate(49.5px, 49.5px); 
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* ── Trust + Testimonial Unified Block — inside hero ── */
.hero .trust-testimonial-block {
    /* Bulletproof full-bleed: 100vw wide, pulled left so it starts at viewport edge.
       50% is half the parent's content-box; 50vw is half the viewport.
       Their difference gives the exact pixels needed to escape the padding. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: transparent;
    position: relative;
    z-index: 1; /* sit above .hero-background stripes */
    margin-top: 1.5rem;
    /* Cancel hero's bottom padding by eating into it */
    margin-bottom: -4rem;
    text-align: left;
}

/* ── Testimonial carousel — centered light halo across the whole panel ── */
.hero .ttb-content {
    position: relative;
    /* No min-height — let the tallest slide drive the container size */
    overflow: hidden; /* still needed to clip the sliding transition */
    /* Centered radial glow that washes evenly across the slideshow. */
    background:
        radial-gradient(
            ellipse 70% 95% at 50% 50%,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.28) 35%,
            rgba(255, 255, 255, 0.12) 65%,
            rgba(255, 255, 255, 0.04) 85%,
            rgba(255, 255, 255, 0) 100%
        );
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: none;
    box-shadow: none;
}

/* Stack all slides in the same grid cell so the tallest slide
   defines the container height. No more absolute positioning
   (which was why long quotes got clipped). */
.hero .ttb-slides {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: auto;
}

.hero .ttb-slide {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* center the quote+sig block horizontally */
    gap: 0.75rem;
    padding: 1.5rem 3rem;
    grid-template-columns: none;
    /* Slower, smoother slide — 1.2s so the movement feels intentional */
    transition: transform 1.2s cubic-bezier(0.45, 0, 0.25, 1), opacity 1.2s ease;
}

/* Slide that's leaving the stage — slides out to the left */
.hero .ttb-slide.leaving {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

/* Hide the old vertical divider — no longer relevant in single-column layout */
.hero .ttb-vrule {
    display: none;
}

/* Quote block: capped at a readable line length, centered.
   The signature below uses the same cap so its right edge aligns
   with the quote's wrap edge. */
.hero .ttb-quote {
    display: block;
    padding: 0;
    max-width: 900px;
    width: 100%;
}

.hero .ttb-quote-text {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.02rem;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Signature: right-aligned within the same 900px column as the quote,
   so name+stars sit directly under where the quote ends. */
.hero .ttb-sig {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0;
    text-align: right;
    max-width: 900px;
    width: 100%;
}

.hero .ttb-oquote,
.hero .ttb-cquote {
    color: #f4c24e;
    opacity: 1;
}

/* Signature name — larger + prominent since logo is gone */
.hero .ttb-sig-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

/* Hide client logos inside the hero — they don't render well here */
.hero .ttb-sig-logo {
    display: none;
}

/* Stars — slightly bigger to fill the space the logo left */
.hero .ttb-sig-stars {
    font-size: 1.2rem;
}

/* ── Horizontal rule between testimonial and trust bar ── */
.hero .ttb-hrule {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Trust bar — slightly darker glass so it reads as a distinct band ── */
.hero .ttb-bar {
    background: linear-gradient(
        180deg,
        rgba(20, 32, 48, 0.55) 0%,
        rgba(20, 32, 48, 0.7) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Trim trust-bar badges in the hero for a tighter overall height */
.hero .ttb-badge {
    padding: 1.25rem 1rem;
}

/* On narrow screens, restore normal spacing */
@media (max-width: 768px) {
    .hero .trust-testimonial-block {
        margin-top: 2rem;
        margin-bottom: -4rem;
    }
    /* Shift the radial halo to center on mobile since layout stacks */
    .hero .ttb-content {
        background: radial-gradient(
            ellipse 85% 70% at 50% 75%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.25) 40%,
            rgba(255, 255, 255, 0.08) 70%,
            rgba(255, 255, 255, 0) 100%
        );
    }
    .hero .ttb-quote {
        padding: 1.75rem 1.5rem;
    }
    .hero .ttb-sig {
        flex-direction: column;
        align-items: flex-end;
        padding: 0.5rem 1.5rem 0.75rem;
    }
}

/* ── Trust + Testimonial Unified Block — legacy (unused when inside hero) ── */
.trust-testimonial-block {
    width: 100%;
    background: #fff;
}

/* ── ROW 1: horizontal trust bar — dark ── */
.ttb-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: linear-gradient(135deg, #1e3048 0%, #2c3e50 50%, #1e3048 100%);
}

.ttb-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.4rem 1rem;
    text-align: center;
}

.ttb-badge-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.ttb-flag {
    width: 1.6rem !important;
    height: 1.6rem !important;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

.ttb-check {
    color: #00A550;
    font-weight: 900;
}

.ttb-badge-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
}

/* thin vertical dividers between badges */
.ttb-vdiv {
    width: 1px;
    background: rgba(255,255,255,0.14);
    align-self: stretch;
    flex-shrink: 0;
    margin: 0.6rem 0;
}

/* ── Full-width horizontal rule ── */
.ttb-hrule {
    height: 1px;
    background: #e8eaed;
}

/* ── Full-width horizontal rule at bottom of content row ── */
.ttb-content {
    position: relative;
    min-height: 240px;
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    overflow: hidden;
}

.ttb-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ttb-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 3fr 1px 1fr;
    align-items: stretch;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.7s ease, opacity 0.7s ease;
    padding: 0;
}

.ttb-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.ttb-slide:not(.active) {
    z-index: 0;
}

.ttb-quote {
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem 2.5rem 4rem;
}

.ttb-quote-text {
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.9;
    color: #2c3e50;
    margin: 0;
    position: relative;
}

/* Big exaggerated curly quotes */
.ttb-oquote {
    font-family: Georgia, serif;
    font-size: 3.2em;
    line-height: 0;
    vertical-align: -0.55em;
    color: #74a8d4;
    font-style: normal;
    font-weight: 700;
    margin-right: 0.05em;
    opacity: 0.9;
}

.ttb-cquote {
    font-family: Georgia, serif;
    font-size: 3.2em;
    line-height: 0;
    vertical-align: -0.55em;
    color: #74a8d4;
    font-style: normal;
    font-weight: 700;
    margin-left: 0.05em;
    opacity: 0.9;
}

/* Vertical rule between quote and signature */
.ttb-vrule {
    width: 1px;
    background: #e8eaed;
    align-self: stretch;
    margin: 1.5rem 0;
}

/* Signature column */
.ttb-sig {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.ttb-sig-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
}

.ttb-sig-logo img {
    width: 120px;
    height: auto;
    opacity: 0.6;
    filter: none;
    display: block;
    transition: opacity 0.2s;
}

.ttb-sig-logo img:hover {
    opacity: 1;
}

.ttb-sig-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1e3048;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ttb-sig-stars {
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #f4c24e;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #74a8d4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.5rem;
}

.btn:hover {
    background: #5b8db8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 168, 212, 0.3);
}

.btn:focus {
    outline: 3px solid #74a8d4;
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #2c3e50;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 100px; /* Offset for sticky nav */
}

/* Gray box styling for sections */
.gray-section {
    padding: 3rem 5%;
    background: white;
    scroll-margin-top: 100px; /* Offset for sticky nav */
}

.gray-box {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: clamp(2.5rem, 4.5vw, 3.2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section > p,
.section .gray-box > p {
    text-align: center;
    color: #8b94a3;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ============================================
   SERVICES
   ============================================ */

/* ============================================
   SERVICES SECTION — editorial grid redesign
   ============================================ */

.services-section {
    background: linear-gradient(to bottom, #f5f7fa, #f0f3f8);
    color: #333;
    padding: 5rem 5% 6rem;
    max-width: none;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: visible;
}

.services-section::before {
    display: none;
}

/* Header row: serif h2 + subtitle + CTA pill */
.services-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 2rem;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -30px;
}

.services-head-left h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    text-align: left;
}

.services-head-left p {
    font-size: 0.95rem;
    color: #8b94a3;
    font-style: italic;
    font-weight: 300;
    text-align: left;
    margin-bottom: 0;
}

.services-head-right {
    flex-shrink: 0;
}

.services-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #74a8d4;
    text-decoration: none;
    border: 1px solid #74a8d4;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

.services-cta-link:hover {
    background: #74a8d4;
    color: #fff;
}

/* 3-column grid with ruled borders */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0;
}

/* Each service cell */
.service-card {
    padding: 2rem 2.5rem 2rem 0;
    border-bottom: 1px solid #e8eef5;
    border-radius: 0;
    text-align: left;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    color: #333;
    transition: none;
    transform: none !important;
}

/* Top border on first row */
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
    border-top: 1px solid #e8eef5;
}

/* Middle column gets side borders */
.service-card:nth-child(3n+2) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border-left: 1px solid #e8eef5;
    border-right: 1px solid #e8eef5;
}

/* Right column gets left padding */
.service-card:nth-child(3n) {
    padding-left: 2.5rem;
    padding-right: 0;
}

/* Animated bottom accent line on hover */
.service-card::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: #74a8d4;
    transition: width 0.35s ease;
    border-radius: 0;
    top: auto;
    right: auto;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    background: transparent;
    border-color: #e8eef5;
    transform: none !important;
    box-shadow: none;
}

.service-card:hover .service-num {
    color: #74a8d4;
}

.service-card:hover h3 {
    color: #1a1a2e;
}

/* Top meta row: number + icon */
.service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #c5cdd8;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
    line-height: 1;
    padding-top: 3px;
}

.service-icon {
    font-size: 1.1rem;
    opacity: 0.7;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    margin: 0;
    display: inline;
}

.service-card h3 {
    font-family: 'Jost', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.2s ease;
    text-align: left;
}

.service-card p {
    font-size: 0.95rem;
    color: #8b94a3;
    line-height: 1.65;
    font-weight: 400;
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}

/* Tags */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.85rem;
    justify-content: flex-start;
}

.tag {
    font-size: 0.8rem;
    color: #74a8d4;
    background: #e8f4ff;
    border: 1px solid #d0e9ff;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    font-weight: 500;
    white-space: nowrap;
}

.tag-ai {
    background: #f0e8ff;
    color: #8b5cf6;
    border-color: #e2d1ff;
}

/* AI card accent */
.ai-card::before {
    background: #8b5cf6;
}

.ai-card:hover::before {
    width: 100%;
}

.ai-card:hover .service-num {
    color: #8b5cf6;
}

.ai-card h3 {
    color: #6d28d9;
}

/* Hide old elements no longer used */
.service-learn-more,
.services-subtitle,
.subtitle-highlight,
.subtitle-emphasis,
.ai-highlight,
.ai-learn-more {
    display: none;
}


/* ============================================
   WHY BAND — full-width feature strip
   ============================================ */

.why-band {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3048 0%, #2c3e50 30%, #3a526a 60%, #2c3e50 100%);
    background-size: 300% 300%;
    animation: heroBreath 8s ease-in-out infinite;
}

/* diagonal stripe texture layer */
.why-band-bg {
    position: absolute;
    inset: -60px;
    background-image:
        repeating-linear-gradient(
            -55deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.025) 40px,
            rgba(255,255,255,0.025) 80px
        );
    animation: why-slide 30s linear infinite;
    pointer-events: none;
}

@keyframes why-slide {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(56px, 56px); }
}

/* top & bottom gradient bleed — removed, hard edges only */
.why-band::before,
.why-band::after {
    display: none;
}

.why-band-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: stretch;
    padding: 2rem 0;
}

.why-band-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0.84rem 2.5rem;
    gap: 0.42rem;
}

.why-band-icon {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.why-band-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    line-height: 1.4;
}

.why-band-desc {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255,255,255,0.52);
    line-height: 1.6;
}

.why-band-divider {
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255,255,255,0.18) 30%,
        rgba(255,255,255,0.18) 70%,
        transparent 100%
    );
    align-self: stretch;
    flex-shrink: 0;
    margin: 0.5rem 0;
}

@media (max-width: 700px) {
    .why-band-inner {
        flex-direction: column;
        padding: 3rem 0;
    }
    .why-band-divider {
        width: 40%;
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,0.18) 30%,
            rgba(255,255,255,0.18) 70%,
            transparent 100%
        );
    }
    .why-band::before { height: 50px; }
    .why-band::after  { height: 50px; }
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.portfolio-card img {
    width: 100%;
    height: 250px; /* Adjust this value to your preferred height */
    object-fit: cover;
    display: block;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.portfolio-logo {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
}

.portfolio-info {
    padding: 1.5rem;
    background: white;
}

.portfolio-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.portfolio-tag {
    display: inline-block;
    background: #e8f4f8;
    color: #74a8d4;
    padding: 0.2rem 0.55rem;
    border-radius: 15px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.logo-nexus {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 1.5rem;
}

.logo-nexus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-purple {
    background: linear-gradient(135deg, #7F8CFF 0%, #8A6BC1 100%);
}

.logo-nans {
    background: linear-gradient(135deg, #f9edd5 0%, #fef5e4 100%);
    padding: 0;
    overflow: hidden;
}

.logo-nans img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.testimonials-section {
    background: linear-gradient(180deg, #11131a 0%, #0e1118 48%, #090b11 100%);
    color: #eef0f5;
    position: relative;
    overflow: hidden;
    padding: 5rem 5% 6rem;
    max-width: none;
    width: 100%;
    margin: 0;
}

.testimonials-section h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: #f8fbff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.12), transparent 24%),
                radial-gradient(circle at 82% 12%, rgba(255,255,255,0.08), transparent 22%),
                linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 34%, rgba(255,255,255,0.03) 100%);
    pointer-events: none;
    opacity: 1;
}

.testimonial-banner-copy {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto 1rem;
}

.testimonial-banner-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a7b3d3;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.testimonials-section > p,
.testimonials-section .testimonial-banner-copy > p {
    color: rgba(237,241,255,0.78);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -26px;
    right: -24px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 58%);
    filter: blur(8px);
    pointer-events: none;
}

.testimonial-text {
    color: rgba(241,248,255,0.86);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    flex-grow: 1;
}

.testimonial-author {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.testimonial-card-featured {
    background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.08) 100%);
    border-left: 5px solid rgba(255,255,255,0.4);
    position: relative;
}

.testimonial-card-featured:hover {
    box-shadow: 0 20px 60px rgba(255,255,255,0.16);
}

.testimonial-stars,
.stars {
    color: #f4c24e;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.author-name {
    color: #f8fbff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-company {
    color: rgba(241,248,255,0.72);
    font-size: 0.95rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #74a8d4 0%, #5b8db8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    color: #eef0f5;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: rgba(241,248,255,0.8);
    font-size: 0.9rem;
}

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

.testimonial-cta h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.testimonial-cta .btn {
    margin: 0 auto;
}

/* ============================================
   TRANSITION BRIDGE BANNER
   ============================================ */

.transition-bridge {
    width: 100%;
    background: linear-gradient(180deg, #0a0d14 0%, #1a1a2e 50%, #f8f9fa 100%);
    padding: 4rem 5% 3rem;
    position: relative;
    overflow: hidden;
}

.transition-bridge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 800px 200px at 50% -10%, rgba(255,255,255,0.08), transparent 70%);
    pointer-events: none;
}

.bridge-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.bridge-stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 0.9rem;
    color: #7a8fa3;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.bridge-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(200,200,200,0.3), transparent);
}
/* ============================================
   NEIGHBOURS BANNER (section break)
   ============================================ */
.neighbours-banner {
    position: relative;
    padding: 5.5rem 5%;
    margin: 3rem 0 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(116, 168, 212, 0.18), transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(116, 168, 212, 0.12), transparent 55%),
        linear-gradient(135deg, #1f2b3a 0%, #2c3e50 55%, #1f2b3a 100%);
    color: #f4f6f9;
    overflow: hidden;
    isolation: isolate;
}

/* Subtle dot-grid texture — nods to the hero section */
.neighbours-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    z-index: 0;
    pointer-events: none;
}

/* Animated accent line — a soft highlight travels across the top */
.neighbours-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(244, 194, 78, 0) 20%,
            rgba(244, 194, 78, 0.95) 50%,
            rgba(244, 194, 78, 0) 80%,
            transparent 100%
        ),
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(116, 168, 212, 0.35) 20%,
            rgba(116, 168, 212, 0.35) 80%,
            transparent 100%
        );
    background-size: 40% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: -40% 0, 0 0;
    z-index: 1;
    animation: neighbours-sweep 6s ease-in-out infinite;
}

@keyframes neighbours-sweep {
    0%   { background-position: -40% 0, 0 0; }
    50%  { background-position: 140% 0, 0 0; }
    /* brief pause at the far side, then jump back unseen and repeat */
    60%  { background-position: 140% 0, 0 0; }
    60.01% { background-position: -40% 0, 0 0; }
    100% { background-position: -40% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .neighbours-banner::after {
        animation: none;
        /* Static fallback: single soft yellow gradient */
        background:
            linear-gradient(
                90deg,
                transparent 0%,
                rgba(244, 194, 78, 0.7) 20%,
                rgba(244, 194, 78, 0.7) 80%,
                transparent 100%
            );
    }
}

.neighbours-banner__inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.neighbours-banner__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f4c24e;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(244, 194, 78, 0.45);
    border-radius: 999px;
    margin-bottom: 1.6rem;
    background: rgba(244, 194, 78, 0.06);
}

.neighbours-banner__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 1.2rem;
    letter-spacing: -0.01em;
}

.neighbours-banner__body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(244, 246, 249, 0.82);
    max-width: 720px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .neighbours-banner {
        padding: 4rem 5%;
    }
    .neighbours-banner__body {
        font-size: 1rem;
        line-height: 1.65;
    }
    .neighbours-banner__eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }
}

/* ============================================
   ABOUT US
   ============================================ */

/* ── Section shell ── */
.about-us-section {
    padding: 4rem 5% 3rem;
    background: #ffffff;
    scroll-margin-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Title ── */
.about-headline {
    text-align: center;
    font-size: clamp(2.5rem, 4.5vw, 3.2rem);
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.01em;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 0.4rem;
}

.about-subtitle {
    text-align: center;
    color: #8b94a3;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 300;
    margin: 0 auto 3rem;
}

/* ── Rotating intro ── */
.about-intro-rotator {
    max-width: 820px;
    margin: 4rem auto 1rem;
    text-align: center;
}

.about-intro-track {
    position: relative;
    min-height: 160px;
}

/* Base slide — serif, consistent "subheading" scale */
.about-intro-slide {
    position: absolute;
    inset: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.35;
    color: #2c3e50;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    text-align: center;
}
.about-intro-slide.active { opacity: 1; }

/* Hero slide — same size as the others, just keep the italic-blue accent on "your dream" */
.about-intro-slide.slide-hero em {
    font-style: italic;
    color: #74a8d4;
}

/* Shared emphasis helpers for the quip slides */
.about-intro-slide .accent { color: #74a8d4; font-style: italic; }
.about-intro-slide .gold   { color: #d9a73b; font-weight: 500; }
.about-intro-slide .quiet  { color: #8b94a3; font-style: italic; font-weight: 300; }
.about-intro-slide .strike {
    text-decoration: line-through;
    text-decoration-color: rgba(139,148,163,0.6);
    text-decoration-thickness: 1.5px;
    color: #8b94a3;
}

/* Big curly gold quote marks flanking the quips */
.about-intro-slide .qmark-l,
.about-intro-slide .qmark-r {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #f4c24e;
    font-size: 2.2rem;
    line-height: 0;
    font-weight: 500;
    vertical-align: -0.35em;
}
.about-intro-slide .qmark-l { margin-right: 6px; }
.about-intro-slide .qmark-r { margin-left: 6px; }

/* Tiny gold flourish under the first quip */
.about-intro-slide .flourish {
    display: block;
    width: 40px;
    height: 1px;
    background: #f4c24e;
    margin: 0.6rem auto 0;
}

/* ── Dots ── */
.about-intro-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.about-intro-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4dae3;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}
.about-intro-dot:hover { background: #b8c0cd; }
.about-intro-dot.active {
    background: #f4c24e;
    width: 18px;
    border-radius: 3px;
}
.about-intro-dot:focus-visible {
    outline: 2px solid #74a8d4;
    outline-offset: 2px;
}

/* ── Main row: photo + text ── */
.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: stretch;
}

.about-image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-height: 400px;
}
.about-image-wrapper.large-hero { min-height: 560px; }
.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.about-text-block p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.about-lead::first-letter {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.3rem;
    font-weight: 500;
    float: left;
    line-height: 0.85;
    padding: 6px 10px 0 0;
    color: #2c3e50;
}

/* ── Persona tags ── */
.about-persona { margin: 0.5rem 0 0; }
.about-persona p { margin-top: 6px; }

.role-tag {
    display: inline-block;
    font-family: 'Jost', -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 2px;
}
.role-tag--architect {
    background: #2c3e50;
    color: #fff;
    transform: rotate(-1.2deg);
}
.role-tag--visionary {
    background: #f4c24e;
    color: #1e3048;
    transform: rotate(1deg);
}

.glue-word {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    color: #2c3e50;
    font-size: 1.08em;
}

/* ── Pull-quote ── */
.about-pullquote {
    margin: 0.2rem 0;
    padding: 0.4rem 0 0.4rem 1.4rem;
    border-left: 3px solid #f4c24e;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.45rem;
    line-height: 1.3;
    color: #2c3e50;
    font-weight: 400;
}
.about-pullquote .q-mark {
    color: #f4c24e;
    font-size: 1.3em;
    line-height: 0;
    vertical-align: -0.15em;
    margin-right: 2px;
    font-weight: 500;
}

/* ── Mobile ── */
@media (max-width: 700px) {
    .about-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-intro-track { min-height: 220px; }
    .about-intro-slide { font-size: 1.3rem; padding: 0 0.5rem; }
    .about-intro-slide .qmark-l,
    .about-intro-slide .qmark-r { font-size: 1.8rem; }
    .about-pullquote { font-size: 1.2rem; }
    .role-tag--architect,
    .role-tag--visionary { transform: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-intro-slide { transition: none; }
}

/* ============================================
   PRICING
   ============================================ */

.pricing-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pricing-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.pricing-intro h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pricing-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.pricing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-card:hover {
    border-color: #74a8d4;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.featured {
    border-color: #74a8d4;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #74a8d4;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: #74a8d4;
    font-weight: 700;
    margin: 1rem 0;
}

.price-small {
    font-size: 1rem;
    color: #666;
}

.features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.features li:last-child {
    border-bottom: none;
}

.pricing-faq {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pricing-faq h3 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   RESOURCES
   ============================================ */

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

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.resource-card .btn {
    margin-top: auto;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #74a8d4;
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.resource-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-top: 1rem;
    }

    .resource-card {
        flex-direction: row;
        align-items: center;
        padding: 0.85rem 1rem;
        gap: 0.7rem;
        position: relative;
        cursor: pointer;
        text-align: left;
    }

    /* Hide description and button text on mobile */
    .resource-card p {
        display: none;
    }

    /* Stretch the link to fill the whole card as a transparent tap target */
    .resource-card .btn {
        position: absolute;
        inset: 0;
        opacity: 0;
        margin: 0;
        border-radius: 10px;
    }

    .resource-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
        line-height: 1;
    }

    .resource-card h3 {
        margin-bottom: 0;
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

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

.contact-social-proof {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem auto;
    max-width: 900px;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.proof-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

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

.proof-text strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.proof-text span {
    color: #666;
    font-size: 0.9rem;
}

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

footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: #74a8d4;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #74a8d4;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-links a {
    transition: transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* prevent inputs from overflowing their grid cells at any viewport */
input, textarea, select {
    box-sizing: border-box;
    max-width: 100%;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #74a8d4;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 3px solid #74a8d4;
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-phone {
        order: -1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .about-headline {
        font-size: 2rem;
    }
    
    .about-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-row.reverse {
        direction: ltr;
    }

    .about-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-image {
        height: 200px;
    }

    .about-image-wrapper {
        height: 300px;
    }

    .about-image-wrapper.large-hero {
        height: 400px;
    }

    .about-text-highlight {
        padding: 2rem;
    }

    .about-text-highlight h3 {
        font-size: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .nav-text {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-social-proof {
        flex-direction: column;
        gap: 1.5rem;
    }


    /* services: stack to single column on mobile */
    .services-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

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

    .service-card,
    .service-card:nth-child(3n+2),
    .service-card:nth-child(3n) {
        padding: 1.5rem 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .service-card:first-child {
        border-top: 1px solid #e8eef5;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        background: #1e3048;
        border-top: 1px solid rgba(255,255,255,0.12);
        padding: 0.75rem 1rem;
        box-sizing: border-box;
        transform: translateY(100%);
    }

    .sticky-cta.visible {
        transform: translateY(0);
    }

    .sticky-cta .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.875rem 1rem;
        font-size: 1rem;
        box-shadow: none;
    }
    
    .pricing-faq {
        padding: 2rem;
    }

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

    /* prevent footer from being hidden behind sticky bar when visible */
    body:has(#sticky-cta.visible) footer {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 5%;
    }
    
    .hero {
        padding: 5rem 5% 4rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* ============================================
   CONTACT SECTION — fixed background
   ============================================ */
#contact.section {
    /* Break out of the 1200px max-width to go full-bleed */
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 5rem 5%;

    position: relative;
    isolation: isolate;

    background-image: url("images/contact.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Dark overlay to tame the photo so white text reads clearly */
#contact.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 0;
}

/* Ensure all direct content sits above the overlay */
#contact.section > * {
    position: relative;
    z-index: 1;
}

#contact.section h2 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

#contact.section > p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    font-style: italic;
}

/* Frosted form card — translucent white with blur behind */
#contact.section #contactForm {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
}

/* iOS Safari / small screens: fixed backgrounds are buggy,
   fall back to scroll attachment and let it behave normally. */
@media (max-width: 900px) {
    #contact.section {
        background-attachment: scroll;
        padding: 4rem 5%;
    }
}
