/**
 * FILE: assets/css/main.css
 * PURPOSE: Global reset, design tokens, typography, layout primitives
 * DEPENDENCIES: Google Fonts (Playfair Display, Inter)
 * NOTES: Mobile-first. Uses CSS custom properties for theming.
 * CREDIT: Designed inhouse by The Taino Resource Group LLC
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* — Colors — */
    --color-primary:       #767373;   /* Brand Primary Dark */
    --color-primary-dark:  #5c5959;
    --color-primary-light: #908d8d;
    --color-accent:        #ecb2c2;   /* Brand Primary Accent */
    --color-accent-dark:   #d99aaa;
    --color-accent-light:  #f3d0db;
    --color-brand-neutral: #bbb3b3;   /* Brand Secondary Neutral */
    --color-bg-warm:       #e9d8dd;   /* Brand Light Background */
    --color-navy:          #767373;   /* Alias for legacy var(--color-navy) refs */
    --color-success:       #2D7A4F;
    --color-error:         #C0392B;
    --color-warning:       #E67E22;

    /* — Neutrals — */
    --color-black:         #0D1117;
    --color-gray-900:      #1A1F2E;
    --color-gray-800:      #2C3347;
    --color-gray-700:      #3D4D63;
    --color-gray-600:      #5C6B80;
    --color-gray-500:      #7D8FA0;
    --color-gray-400:      #A0AEBA;
    --color-gray-300:      #C5CDD6;
    --color-gray-200:      #DFE4EA;
    --color-gray-100:      #F0F3F6;
    --color-gray-50:       #F7F9FB;
    --color-white:         #FFFFFF;

    /* — Typography — */
    --font-serif:  'Playfair Display', Georgia, serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:   'Fira Code', monospace;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-md:   1.125rem;
    --text-lg:   1.25rem;
    --text-xl:   1.5rem;
    --text-2xl:  1.875rem;
    --text-3xl:  2.25rem;
    --text-4xl:  3rem;
    --text-5xl:  3.75rem;

    --leading-tight:  1.2;
    --leading-snug:   1.35;
    --leading-base:   1.6;
    --leading-loose:  1.8;

    --font-light:    300;
    --font-regular:  400;
    --font-medium:   500;
    --font-semibold: 600;
    --font-bold:     700;

    /* — Spacing — */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;
    --space-32:  8rem;

    /* — Layout — */
    --container-max:  1280px;
    --container-md:   960px;
    --container-sm:   720px;
    --container-pad:  clamp(1rem, 4vw, 2rem);

    /* — Border Radius — */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* — Shadows — */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-xl:  0 20px 50px rgba(0,0,0,0.15);

    /* — Transitions — */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* — Header — */
    --header-height: 88px;
    --header-bg:     rgba(255,255,255,0.97);
    --header-border: var(--color-gray-200);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    line-height: var(--leading-base);
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { border-style: none; }

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

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
p  { margin: 0 0 var(--space-4); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-4); font-weight: var(--font-semibold); line-height: var(--leading-snug); }

address { font-style: normal; }

/* Accessibility: skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    z-index: 9999;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); text-decoration: none; }

/* Focus ring */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   3. LAYOUT PRIMITIVES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.container--md { max-width: var(--container-md); }
.container--sm { max-width: var(--container-sm); }

.section {
    padding-block: var(--space-16);
}
.section--compact { padding-block: var(--space-10); }
.section--spacious { padding-block: var(--space-24); }

.section--shaded  { background-color: var(--color-bg-warm); }
.section--dark    { background-color: var(--color-primary); color: var(--color-white); }
.section--accent  { background-color: var(--color-accent); color: var(--color-white); }

/* Grid helpers */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.flex        { display: flex; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; }
.flex--gap-4  { gap: var(--space-4); }
.flex--gap-6  { gap: var(--space-6); }
.flex--wrap   { flex-wrap: wrap; }

/* ============================================================
   4. TYPOGRAPHY CLASSES
   ============================================================ */
.heading-serif {
    font-family: var(--font-serif);
    font-weight: var(--font-semibold);
}

.section__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: var(--font-bold);
    color: var(--color-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.section--dark .section__title,
.section--accent .section__title {
    color: var(--color-white);
}

.section__subtitle {
    font-size: var(--text-md);
    color: var(--color-gray-600);
    max-width: 660px;
    line-height: var(--leading-loose);
    margin-bottom: var(--space-10);
}

.section--dark .section__subtitle,
.section--accent .section__subtitle {
    color: rgba(255,255,255,0.8);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-sm     { font-size: var(--text-sm); }
.text-lg     { font-size: var(--text-lg); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: var(--color-accent);
    color: #2d2424;
    border-color: var(--color-accent);
}
.btn--accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: transparent;
}
.btn--ghost:hover {
    background: var(--color-gray-100);
}

.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn--outline-white:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Solid-background variants used on dark hero backgrounds */
.btn--outline-light {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--outline-light:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost-light {
    background: var(--color-accent);
    color: #2d2424;
    border-color: var(--color-accent);
}
.btn--ghost-light:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--ghost-dark:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--whatsapp {
    background: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}
.btn--whatsapp:hover {
    background: #1ebe5d;
}

.btn--sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg  { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }
.btn--xl  { padding: var(--space-5) var(--space-10); font-size: var(--text-md); border-radius: var(--radius-lg); }
.btn--full { width: 100%; }
.btn--rounded { border-radius: var(--radius-full); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero--full { min-height: 92vh; }
.hero--tall { min-height: 78vh; }
.hero--medium { min-height: 55vh; }
.hero--short { min-height: 35vh; }

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(60, 52, 52, 0.82) 0%,
        rgba(60, 52, 52, 0.52) 55%,
        rgba(60, 52, 52, 0.72) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding-block: var(--space-16);
    width: 100%;
}

.hero__body,
.home-hero__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(3rem, 6vw, 7rem);
    width: 100%;
    min-height: 680px;
}

.home-hero__content {
    flex: 0 1 620px;
}

.hero__title,
.home-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    font-weight: var(--font-bold);
    color: var(--color-white);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    max-width: 780px;
}

.hero__subtitle,
.home-hero__subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-lg));
    color: rgba(255,255,255,0.88);
    max-width: 560px;
    line-height: var(--leading-loose);
    margin-bottom: var(--space-8);
}

.hero__ctas,
.home-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.home-hero__logo-col {
    flex: 0 0 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero__logo-img {
    width: clamp(260px, 28vw, 420px);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.btn--outline-light,
.btn--ghost-light {
    background: #767373;
    color: #ffffff;
    border: 1px solid #bbb3b3;
}

.btn--outline-light:hover,
.btn--ghost-light:hover {
    background: #5f5b5b;
    color: #ffffff;
}

.btn--accent {
    background: #ecb2c2;
    color: #1f1f1f;
    border: 1px solid #ecb2c2;
}

.btn--accent:hover {
    background: #e9d8dd;
    color: #1f1f1f;
}

@media (max-width: 900px) {
    .hero__body,
    .home-hero__body {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 120px 0 80px;
    }

    .home-hero__logo-col {
        flex: none;
        width: 100%;
        justify-content: flex-start;
    }

    .home-hero__logo-img {
        width: min(320px, 80vw);
    }
}

/* ============================================================
   6.5 TRUST STRIP
   ============================================================ */
.trust-strip {
    position: relative;
    z-index: 5;
    background: var(--color-bg-warm);
    padding: 0 var(--container-pad);
}

.trust-strip__inner {
    max-width: 1100px;
    margin: 0 auto;
    transform: translateY(-48px);
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(118,115,115,0.15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.trust-item {
    padding: var(--space-6);
    text-align: center;
    border-right: 1px solid rgba(118,115,115,0.12);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.trust-item span {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
}

/* Responsive */
@media (max-width: 900px) {
    .trust-strip__inner {
        transform: none;
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .trust-item:nth-child(1),
    .trust-item:nth-child(2) {
        border-bottom: 1px solid rgba(118,115,115,0.12);
    }
}

@media (max-width: 560px) {
    .trust-strip__inner {
        grid-template-columns: 1fr;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(118,115,115,0.12);
    }

    .trust-item:last-child {
        border-bottom: none;
    }
}

/* ============================================================
   7. SITE HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    height: 100%;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}
.site-header__logo:hover { text-decoration: none; opacity: .88; }

.logo__img {
    display: block;
    height: 72px;
    width: auto;
    object-fit: contain;
    /* The logo has a dark background — give it a slight rounded container */
    border-radius: 6px;
}

/* Legacy wordmark / icon — kept for fallback */
.logo__icon {
    font-size: var(--text-xl);
    line-height: 1;
}

.logo__wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo__wordmark strong {
    font-family: var(--font-serif);
    font-size: var(--text-md);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    letter-spacing: -0.01em;
}
.logo__wordmark em {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: var(--text-xs);
    color: var(--color-gray-600);
    font-weight: var(--font-medium);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   8. PRIMARY NAVIGATION
   ============================================================ */
.primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex: 1;
    justify-content: flex-end;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-800);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.nav-link:hover,
.nav-item--active > .nav-link {
    color: var(--color-primary);
    background: var(--color-gray-100);
}
.nav-item--active > .nav-link {
    font-weight: var(--font-semibold);
}

.nav-link--dropdown-toggle { cursor: pointer; }
.nav-arrow { font-size: 0.6em; transition: transform var(--transition-fast); }
.nav-item--open .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-base);
    pointer-events: none;
}

.nav-item--open .dropdown,
.nav-item--dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown__link {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-gray-800);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.dropdown__link:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
    text-decoration: none;
}

/* Header CTA (phone) */
.header-cta { display: flex; align-items: center; margin-left: var(--space-4); }
.header-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}
.header-cta__phone:hover {
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}
.nav-toggle:hover { background: var(--color-gray-100); }
.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-gray-800);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-gray-900);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding-block: var(--space-16);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-top__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    margin-bottom: var(--space-6);
}
.footer-brand__logo .logo__wordmark strong { color: var(--color-white); }
.footer-brand__logo .logo__wordmark em    { color: rgba(255,255,255,0.6); }

.footer-brand__contact {
    font-size: var(--text-sm);
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-6);
}
.footer-brand__contact a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.footer-brand__contact a:hover { color: var(--color-accent-light); text-decoration: underline; }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 22px;
    height: 22px;
    display: block;
    color: #ffffff;
    fill: currentColor;
}

.social-link:hover {
    background: var(--color-accent);
    color: #1f1f1f;
    border-color: var(--color-accent);
    text-decoration: none;
    transform: translateY(-2px);
}
.footer-nav__title {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: var(--space-4);
}

.footer-nav__list li { margin-bottom: var(--space-2); }
.footer-nav__list a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-nav__list a:hover { color: var(--color-white); }

.footer-bottom {
    padding-block: var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
}
.footer-legal a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--color-white); }
.footer-legal span { color: rgba(255,255,255,0.3); }

/* Agent portal link in footer */
.footer-portal-link {
    margin: 0;
}
.footer-portal-link__a {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
    white-space: nowrap;
}
.footer-portal-link__a:hover {
    color: rgba(255,255,255,0.8);
}

/* Footer logo image */
.footer-logo__img {
    display: block;
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: var(--space-5);
}

.footer-disclaimer {
    padding-block: var(--space-6);
    background: rgba(0,0,0,0.2);
}
.footer-disclaimer p {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================
   10. FORM ELEMENTS (Global)
   ============================================================ */
.form__row { margin-bottom: var(--space-5); }
.form__row--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form__group { display: flex; flex-direction: column; gap: var(--space-2); }

.form__label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-800);
}
.form__label span { color: var(--color-error); }

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-gray-900);
    background: var(--color-white);
    border: 1.5px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--color-gray-400); }

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(118, 115, 115, 0.18);
}

.form__textarea { resize: vertical; min-height: 100px; }

.form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    cursor: pointer;
    line-height: var(--leading-base);
}
.form__checkbox { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); }

.form__honeypot { position: absolute !important; left: -9999px !important; }

.form-alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
}
.form-alert--success {
    background: #EAF7F0;
    border: 1px solid #A3D9B5;
    color: var(--color-success);
}
.form-alert--error {
    background: #FDECEA;
    border: 1px solid #F5B5B0;
    color: var(--color-error);
}

/* ============================================================
   11. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .footer-top__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }
    .primary-nav__list { gap: 0; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    .nav-toggle { display: flex; }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: var(--space-6) var(--space-6) var(--space-10);
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-top: 1px solid var(--color-gray-200);
        z-index: 99;
    }

    .primary-nav.is-open { transform: translateX(0); }

    .primary-nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item { width: 100%; }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        width: 100%;
        justify-content: space-between;
        border-radius: 0;
        border-bottom: 1px solid var(--color-gray-100);
        font-size: var(--text-base);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: var(--space-6);
        display: none;
        pointer-events: auto;
        min-width: auto;
        background: var(--color-gray-50);
    }
    .nav-item--open .dropdown { display: block; }

    .dropdown__link {
        padding: var(--space-3) var(--space-4);
        border-radius: 0;
        border-bottom: 1px solid var(--color-gray-200);
    }

    .header-cta {
        margin-left: 0;
        width: 100%;
        margin-top: var(--space-6);
    }
    .header-cta__phone { width: 100%; justify-content: center; }

    .footer-top__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .form__row--two-col { grid-template-columns: 1fr; }

    .section { padding-block: var(--space-10); }
    .section--spacious { padding-block: var(--space-16); }
}

@media (max-width: 480px) {
    .hero__ctas { flex-direction: column; }
    .hero__ctas .btn { width: 100%; }
    .btn--xl { padding: var(--space-4) var(--space-6); }
}
/* HERO LOGO SIZE FIX - final override */
.home-hero .home-hero__logo-col {
    flex: 0 0 520px !important;
    max-width: 520px !important;
}

.home-hero .home-hero__logo-img {
    width: 520px !important;
    max-width: 520px !important;
    min-width: 520px !important;
    height: auto !important;
    display: block !important;
}

.footer-attribution {
    margin-top: var(--space-4);
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.55);
    text-align: center;
}

.footer-attribution a {
    color: var(--color-accent-light);
    font-weight: var(--font-semibold);
    text-decoration: none;
}

.footer-attribution a:hover {
    color: #ffffff;
    text-decoration: underline;
}