:root {
    --brand: #0e7490;
    /* teal 600 */
    --brand-700: #0b657c;
    --brand-800: #084e60;
    --brand-900: #0a3745;
    --accent: #f59e0b;
    /* amber 500 */
    --nav-hover: #d4af37;
    /* classic gold */
    --cta-dark: #114690;
    /* slate 800 */
    --cta-hover: #d1d5db;
    /* slate 300 */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    /* slate 900 */
    --muted: #475569;
    /* slate 600 */
    --border: #e5e7eb;
    /* gray 200 */
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

body.has-hero-header .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 104px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: none;
}

.brand-logo {
    display: block;
    height: 96px;
    width: auto;
    object-fit: contain;
}

.brand-wordmark {
    display: block;
    height: 64px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand-wordmark {
        height: 44px;
    }
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    color: var(--text);
    padding: 8px 10px;
    border-radius: 8px;
}

.nav-links a:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>.has-caret::after {
    content: '▾';
    font-size: 10px;
    margin-left: 6px;
    color: var(--muted);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    z-index: 60;
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #111;
}

.dropdown-menu a:hover {
    background: var(--bg-alt);
    text-decoration: none;
    color: #111;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Header hover tweaks */
.site-header .nav-links>a:not(.btn-accent):hover,
.site-header .nav-links>.nav-dropdown>a:hover,
.site-header .nav-links>a:not(.btn-accent):focus-visible,
.site-header .nav-links>.nav-dropdown>a:focus-visible {
    background: color-mix(in oklab, var(--nav-hover) 32%, transparent);
    color: #111;
    text-decoration: none;
}

body.has-hero-header .nav-links a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

body.has-hero-header .nav-links a:hover,
body.has-hero-header .nav-links a:focus-visible {
    background: color-mix(in oklab, var(--nav-hover) 32%, transparent);
    color: #111;
}

/* Mobile menu */
.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .brand-logo {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--text);
    }

    body.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        padding-bottom: 8px;
    }

    body.menu-open .nav-links a {
        padding: 10px 12px;
        border-radius: 10px;
    }
}

@media (max-width: 640px) {

    /* Keep both logo and wordmark visible on small screens */
    .brand-logo {
        height: 56px;
    }

    .brand-wordmark {
        display: block;
        height: 40px;
    }

    .brand {
        gap: 8px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        inset: auto;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
}

/* Show a hand cursor for all clickable buttons */
button,
input[type="button"],
input[type="submit"],
.btn {
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-700);
}

.btn-secondary {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: #d1d5db;
}

/* Accent (gold) button used across the site */
.btn-accent {
    background: var(--nav-hover);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: color-mix(in oklab, var(--nav-hover), #000 12%);
    color: #fff;
}

/* Header CTA: dark blue with gray hover (Free Consultation) */
.site-header .btn-accent {
    background: var(--cta-dark);
    color: #fff;
}

.site-header .btn-accent:hover,
.site-header .btn-accent:focus-visible {
    background: var(--cta-hover);
    color: #111;
}

/* Dark CTA variant explicitly used where needed (e.g., transfer CTA on compare page) */
.btn-cta-dark {
    background: var(--cta-dark);
    color: #fff;
}

.btn-cta-dark:hover,
.btn-cta-dark:focus-visible {
    background: var(--cta-hover);
    color: #111;
}

/* Home hero CTA style (gold specific tone) */
.btn-hero-cta {
    background: #E8C585;
    color: #111;
    border-color: transparent;
}

.btn-hero-cta:hover,
.btn-hero-cta:focus-visible {
    background: color-mix(in oklab, #E8C585, #000 12%);
    color: #111;
}

/* Footer CTA buttons: match header CTA styling */
.site-footer .btn-accent {
    background: var(--cta-dark);
    color: #fff;
}

.site-footer .btn-accent:hover,
.site-footer .btn-accent:focus-visible {
    background: var(--cta-hover);
    color: #111;
}

/* Main */
.site-main {
    padding-block: 0;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand-800), var(--brand));
    color: #fff;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: center;
    padding-block: 56px;
}

.kicker {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
    opacity: .9;
    margin: 0 0 8px;
}

.hero h1 {
    font-size: clamp(24px, 5.5vw, 44px);
    line-height: 1.15;
    margin: 8px 0 12px;
    font-weight: 800;
}

.hero .sub {
    opacity: .95;
    font-size: clamp(16px, 3.8vw, 18px);
    margin: 0 0 20px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    min-height: 240px;
    border-radius: 16px;
    background: radial-gradient(1200px 400px at -10% -10%, rgba(255, 255, 255, .25), transparent), linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .2);
}

/* Hero with background image */
.hero.has-image {
    position: relative;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    min-height: clamp(420px, 60vh, 700px);
}

.hero.has-image::before {
    content: none;
}

.hero.has-image::after {
    content: none;
}

.hero.has-image>* {
    position: relative;
    z-index: 1;
}

.hero.has-image .hero-inner {
    grid-template-columns: 1fr;
    padding-block: clamp(72px, 10vw, 132px);
    align-items: center;
}

body.has-hero-header .hero.has-image .hero-inner {
    padding-top: calc(104px + 24px);
}

.hero.has-image .hero-visual {
    display: none;
}

@media (max-width: 640px) {
    .hero.has-image {
        min-height: clamp(360px, 55vh, 560px);
    }
}

/* Sections */
.section {
    padding-block: 48px;
    background: var(--bg);
}

.section-compact-top {
    padding-top: 16px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 20px;
}

.section .lead {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 24px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
    border-color: #e2e8f0;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #fff;
    margin-bottom: 12px;
}

.card-illustration {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
}

.card-media-top {
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.card-media-top .card-media {
    flex: 0 0 50%;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--bg-alt);
    margin-bottom: 12px;
}

.card-media-top .card-media .card-illustration {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
}

.card-media.bg-gray {
    background: #e5e7eb;
}

.card-title-blue {
    color: #0b3b66;
}

/* Testimonials */
.testimonials {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

.testimonial {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.testimonial p {
    margin: 0 0 8px;
}

.testimonial cite {
    color: var(--brand);
    font-style: normal;
}

/* Logo Grid */
.logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 16px;
}

.logo-card .logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Carousel */
.carousel {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.carousel.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--bg-alt), #ffffff);
    z-index: 0;
}

.carousel.has-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.0);
    z-index: 0;
}

.carousel>* {
    position: relative;
    z-index: 1;
}

.carousel-viewport {
    overflow: hidden;
    transition: height 250ms ease;
}

.carousel-track {
    display: flex;
    transition: transform 400ms ease;
}

.carousel-slide {
    flex: 0 0 auto;
    padding: 36px 28px;
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 220px;
}

.carousel-slide blockquote {
    margin: 0 0 12px;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.6;
    color: var(--text);
}

.carousel-slide figcaption {
    color: var(--brand);
}

.signature-gold {
    color: color-mix(in oklab, var(--accent), #000 20%);
}

.carousel-slide.with-photo {
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
    justify-items: start;
    text-align: left;
}

.carousel-slide.with-photo .testimonial-photo {
    width: 160px;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.carousel-slide.with-photo .testimonial-content blockquote {
    margin: 0 0 10px;
}

.card-illustration.focus-right {
    object-position: 60% center;
}

.carousel-slide.with-photo .testimonial-content figcaption {
    font-weight: 600;
    letter-spacing: .2px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--cta-dark);
    background: var(--cta-dark);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus,
.carousel-arrow:focus-visible {
    background: color-mix(in oklab, var(--cta-dark), #000 12%);
    border-color: color-mix(in oklab, var(--cta-dark), #000 12%);
    outline: none;
}

.carousel-arrow.prev {
    left: 12px;
}

.carousel-arrow.next {
    right: 12px;
}

/* Contact */
.contact-form {
    display: grid;
    gap: 12px;
    max-width: 640px;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.input:focus {
    outline: 2px solid color-mix(in oklab, var(--brand), #fff 70%);
    border-color: var(--brand);
}

textarea.input {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-grid {
    display: grid;
    gap: 24px;
    padding-block: 24px;
    grid-template-columns: 2fr 1fr;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--text);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 12px;
    color: var(--muted);
    font-size: 14px;
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .compare-table {
    min-width: 720px;
}

.compare-table th,
.compare-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    transition: background-color 180ms ease;
}

.compare-table thead th {
    background: #d8dce0;
    font-weight: 700;
}

.compare-table thead th a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    display: inline-block;
    padding: 6px 8px;
    border-radius: 8px;
}

.compare-table thead th a:hover,
.compare-table thead th a:focus,
.compare-table thead th a:focus-visible {
    text-decoration: none;
    background: transparent;
    color: inherit;
}

.compare-table .col-hover {
    background: color-mix(in oklab, var(--nav-hover) 24%, #fff);
}

.compare-table .col-clickable {
    cursor: pointer;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: 0;
}

.compare-badge {
    display: inline-block;
    background: color-mix(in oklab, var(--brand), #fff 75%);
    color: var(--brand-800);
    border: 1px solid var(--brand);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.compare-badge2 {
    display: inline-block;
    background: #D2B48C;
    color: #000;
    border: 1px solid #000;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.compare-badge+.compare-badge2,
.compare-badge2+.compare-badge {
    margin-left: 6px;
}

/* About page layout */
.about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.about-photo-wrap {
    position: relative;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: block;
}

.about-caption {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-block: 40px;
    }

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

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

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

@media (max-width: 640px) {

    .cards,
    .testimonials {
        grid-template-columns: 1fr;
    }

    /* Stack photo above text on narrow screens */
    .carousel-slide.with-photo {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .carousel-slide.with-photo .testimonial-content {
        text-align: left;
    }

    .table-responsive .compare-table th,
    .table-responsive .compare-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}