/* =====================================================================
   TAK ASSOCIATES — Premium Black & White Design System (monochrome)
   Pure black, white & greys only. Glassmorphism · modern fintech feel.
   ===================================================================== */

:root {
    /* Monochrome palette */
    --black: #0a0a0a;
    --near-black: #141414;
    --ink: #0a0a0a;
    --white: #ffffff;
    --g-900: #161616;
    --g-800: #232323;
    --g-700: #333333;
    --g-500: #6b6b6b;
    --g-400: #8a8a8a;
    --g-300: #c9c9c9;
    --g-200: #e6e6e6;
    --g-100: #f4f4f5;

    --muted: #6b6b6b;
    --line: rgba(0, 0, 0, 0.12);
    --line-soft: rgba(0, 0, 0, 0.07);

    --bg: #ffffff;
    --bg-alt: #f4f4f5;
    --surface: #ffffff;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(0, 0, 0, 0.07);
    --glass-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.22);

    /* Gradients (greyscale only) */
    --grad-dark: linear-gradient(160deg, #1c1c1c, #000);
    --grad-hero: radial-gradient(120% 120% at 100% 0%, #202020 0%, #0e0e0e 45%, #000 100%);
    --grad-light-text: linear-gradient(120deg, #ffffff, #c9c9c9);

    /* Type */
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head: 'Sora', var(--font-body);

    /* Shape */
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 34px 70px -28px rgba(0, 0, 0, 0.28);
    --shadow-dark: 0 16px 34px -12px rgba(0, 0, 0, 0.45);

    --container: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, iframe, video, table { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--black); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.flip { transform: scaleX(-1); }

/* ---------- Typography helpers ---------- */
.text-gradient { background: linear-gradient(120deg, #0a0a0a, #5a5a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { color: var(--black); position: relative; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--black); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--black); }
.section-title { font-family: var(--font-head); font-weight: 800; line-height: 1.12; font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.02em; color: var(--black); }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: .95rem; padding: 13px 24px; border-radius: 100px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap; border: 1.5px solid transparent; letter-spacing: .01em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Primary = blue with animated shine sweep */
.btn-gold { position: relative; overflow: hidden; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; box-shadow: 0 14px 30px -12px rgba(37,99,235,.55); border-color: transparent; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(37,99,235,.72); }
.btn-gold::after { content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn-gold:hover::after { left: 160%; }
.btn-gold .icon { transition: transform .3s var(--ease); }
.btn-gold:hover .icon { transform: translateX(4px); }

/* Attention-grabbing pulse on the main CTAs (large buttons only, not the small header one) */
@keyframes ctaAttract {
    0%, 88%, 100% { transform: translateY(0) scale(1); }
    44%           { transform: translateY(-3px) scale(1.025); }
}
@keyframes ctaGlow {
    0%, 88%, 100% { box-shadow: 0 14px 30px -12px rgba(37,99,235,.5); }
    44%           { box-shadow: 0 22px 46px -8px rgba(37,99,235,.85); }
}
.btn-gold:not(.btn-sm) { animation: ctaAttract 2.6s var(--ease) infinite, ctaGlow 2.6s var(--ease) infinite; }
.btn-gold:not(.btn-sm):hover { animation-play-state: paused; }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; border-color: var(--black); }
.btn-glass { background: rgba(0,0,0,.05); color: var(--black); border-color: var(--line); }
.btn-glass:hover { background: var(--black); color: #fff; border-color: var(--black); }
.btn-ghost { background: rgba(0,0,0,.05); color: var(--black); border-color: var(--line); }
.btn-ghost:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* ---------- Glass card ---------- */
.glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); box-shadow: var(--glass-shadow); backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%); }

/* ---------- Header (premium, two-tier) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .4s var(--ease); }

/* Top utility strip */
.topbar-strip { background: var(--black); color: rgba(255,255,255,.82); font-size: .82rem; transition: max-height .4s var(--ease), opacity .3s, padding .3s; overflow: hidden; }
.topbar-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; min-height: 38px; }
.topbar-strip a { color: rgba(255,255,255,.82); transition: color .2s; }
.topbar-strip a:hover { color: #fff; }
.topbar-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-left span, .topbar-left a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left .icon { width: 15px; height: 15px; opacity: .8; }
.topbar-right { display: flex; gap: 6px; align-items: center; }
.topbar-right a { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.topbar-right a:hover { background: #fff; color: var(--black); }
.site-header.scrolled .topbar-strip { max-height: 0; opacity: 0; padding: 0; }

/* Main bar */
.header-main { transition: background .3s, box-shadow .3s, padding .3s, backdrop-filter .3s; padding: 15px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Default (over dark hero) */
.header-main { background: transparent; }
.header-main .brand-text, .header-main .main-nav a { color: #fff; }
.header-main .main-nav a { color: rgba(255,255,255,.85); }

/* Solid: scrolled OR pages without a dark hero */
.site-header.scrolled .header-main,
.site-header.solid .header-main { background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 10px 34px -16px rgba(0,0,0,.24); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.site-header.scrolled .header-main .brand-text,
.site-header.solid .header-main .brand-text { color: var(--black); }
.site-header.scrolled .header-main .main-nav a,
.site-header.solid .header-main .main-nav a { color: var(--g-700); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 46px; width: auto; max-width: 220px; object-fit: contain; display: block; }
@media (max-width: 480px) { .brand-logo { height: 38px; max-width: 160px; } }
.brand-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--black); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.14); }
.site-header.scrolled .brand-mark, .site-header.solid .brand-mark { border-color: transparent; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; line-height: 1.1; letter-spacing: .02em; }
.brand-text strong { color: inherit; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .66rem; letter-spacing: .07em; color: rgba(255,255,255,.7); text-transform: uppercase; }
.site-header.scrolled .brand-text small, .site-header.solid .brand-text small { color: var(--muted); }

.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 9px 15px; border-radius: 100px; font-weight: 600; font-size: .93rem; transition: background .2s, color .2s; position: relative; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.14); color: #fff !important; }
.site-header.scrolled .main-nav a:hover, .site-header.scrolled .main-nav a.active,
.site-header.solid .main-nav a:hover, .site-header.solid .main-nav a.active { background: var(--black); color: #fff !important; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-main .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.header-main .btn-ghost:hover { background: #fff; color: var(--black); }
.site-header.scrolled .btn-ghost, .site-header.solid .btn-ghost { background: rgba(0,0,0,.05); color: var(--black); border-color: var(--line); }
.site-header.scrolled .btn-ghost:hover, .site-header.solid .btn-ghost:hover { background: var(--black); color: #fff; }
/* Header CTA stays blue in every state (matches site primary buttons) */
.site-header .btn-gold { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(37,99,235,.6); }
.site-header .btn-gold:hover { color: #fff; box-shadow: 0 16px 32px -12px rgba(37,99,235,.75); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: #fff; background: rgba(255,255,255,.14); }
.site-header.scrolled .nav-toggle, .site-header.solid .nav-toggle { color: var(--black); background: rgba(0,0,0,.06); }

/* ---------- Hero ---------- */
.hero { position: relative; background: #ffffff; color: var(--ink); padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .7; animation: float 14s var(--ease) infinite; }
.orb-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,0,0,.05), transparent 70%); top: -120px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(0,0,0,.04), transparent 70%); bottom: -120px; left: -60px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,0,0,.03), transparent 70%); top: 40%; left: 45%; animation-delay: -9s; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -26px); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 100px; background: rgba(0,0,0,.05); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--black); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,0,0,0); } }

.hero-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 20px 0 0; color: var(--black); }
.hero-title span { display: block; }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; color: var(--black); margin-top: 18px; }
.hero-desc { color: var(--muted); font-size: 1.05rem; margin-top: 12px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 12px 20px 12px 14px; background: rgba(0,0,0,.03); border: 1px solid var(--line); border-radius: 100px; }
.trust-avatars { display: flex; }
.trust-avatars span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-left: -12px; background: var(--black); color: #fff; font-weight: 700; font-size: .8rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.trust-avatars span:first-child { margin-left: 0; }
.trust-meta { display: grid; gap: 2px; }
.trust-stars { display: inline-flex; align-items: center; gap: 2px; color: #f5a623; }
.trust-stars .icon { width: 17px; height: 17px; }
.trust-stars strong { color: var(--black); font-size: .92rem; margin-left: 6px; }
.hero-trust p { font-size: .85rem; color: var(--muted); }
.hero-trust strong { color: var(--black); }
@media (max-width: 480px) { .hero-trust { flex-wrap: wrap; border-radius: 20px; } }

.hero-visual { position: relative; }
.hero-card { padding: 26px; color: var(--ink); }
.hero-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar-lg { width: 52px; height: 52px; border-radius: 15px; background: var(--black); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; overflow: hidden; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-head strong { display: block; font-family: var(--font-head); color: var(--black); }
.hero-card-head small { color: var(--muted); font-size: .82rem; }
.verified { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.06); color: var(--black); display: grid; place-items: center; }
.hero-card-list { display: grid; gap: 12px; margin: 20px 0; }
.hero-card-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--g-800); font-weight: 500; }
.hero-card-list .icon { color: var(--black); margin-top: 1px; }
.hero-card-note { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.hero-card-note .icon { color: var(--black); }

.float-badge { position: absolute; display: flex; align-items: center; gap: 7px; padding: 10px 15px; border-radius: 100px; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; font-weight: 700; font-size: .82rem; box-shadow: 0 18px 34px -14px rgba(37,99,235,.55); animation: float 6s var(--ease) infinite; border: 1px solid rgba(255,255,255,.25); }
.float-badge .icon { color: #fff; }
.float-badge-1 { top: -18px; left: -20px; }
.float-badge-2 { bottom: -16px; right: -14px; animation-delay: -3s; }

/* ---------- Counters ---------- */
.counters { margin-top: -50px; position: relative; z-index: 5; padding-bottom: 30px; }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; background: #fff; border-radius: var(--radius-xl); padding: 34px 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.counter-item { text-align: center; padding: 6px 10px; border-right: 1px solid var(--line); }
.counter-item:last-child { border-right: none; }
.counter-value { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--black); line-height: 1; }
.counter-label { font-weight: 700; color: var(--black); margin-top: 8px; }
.counter-sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .section-lead { margin-inline: auto; }
.section-head .eyebrow { border-bottom: none; padding-bottom: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; padding: 30px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s; border: 1px solid var(--line-soft); }
.service-card:hover { transform: translateY(-8px); background: var(--black); color: #fff; }
.service-card:hover h3, .service-card:hover p { color: #fff; }
.service-icon { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 18px; background: var(--black); color: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), background .3s; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.05); background: #fff; color: var(--black); }
.service-card h3 { font-family: var(--font-head); font-size: 1.25rem; color: var(--black); margin-bottom: 8px; transition: color .3s; }
.service-card p { color: var(--muted); font-size: .95rem; transition: color .3s; }
.service-card:hover .link-more { color: #fff; }
.link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: .9rem; color: var(--black); transition: gap .2s, color .3s; }
.link-more:hover { gap: 11px; }
.ribbon { position: absolute; top: 16px; right: 16px; max-width: 58%; text-align: center; line-height: 1.25; background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 5px 11px; border-radius: 100px; box-shadow: 0 6px 16px -6px rgba(37,99,235,.6); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-item { display: flex; align-items: center; gap: 13px; padding: 20px; font-weight: 600; color: var(--black); transition: transform .25s var(--ease); }
.why-item:hover { transform: translateY(-5px); }
.why-check { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--black); color: #fff; flex: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-photo-wrap { position: relative; border-radius: var(--radius-xl); padding: 8px; background: var(--black); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; max-width: 420px; }
.about-photo { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-xl) - 6px); }
.about-photo.img-fallback { display: none; }
.about-photo-fallback { position: absolute; inset: 8px; display: none; place-items: center; border-radius: calc(var(--radius-xl) - 6px); background: var(--grad-dark); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 7rem; }
.about-photo.img-fallback + .about-photo-fallback { display: grid; }
.about-badge { position: absolute; bottom: -18px; right: -14px; padding: 16px 20px; text-align: center; }
.about-badge strong { display: block; font-family: var(--font-head); color: var(--black); font-size: 1.2rem; }
.about-badge small { color: var(--muted); font-size: .78rem; }
.about-role { color: var(--black); font-weight: 700; font-size: 1.05rem; margin: 6px 0 14px; padding-left: 12px; border-left: 3px solid var(--black); }
.about-text { color: var(--muted); font-size: 1.02rem; }
.about-points { display: grid; gap: 10px; margin: 22px 0; }
.about-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--g-800); }
.about-points .icon { color: var(--black); }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Father-son team cards */
.about-team { display: grid; gap: 18px; }
.team-card { padding: 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card-top { display: flex; align-items: center; gap: 18px; }
.team-bio { margin-top: 14px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.team-photo { position: relative; width: 96px; height: 110px; flex: none; border-radius: 18px; overflow: hidden; background: var(--grad-dark); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo img.img-fallback { display: none; }
.team-fallback { position: absolute; inset: 0; display: none; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; }
.team-photo img.img-fallback + .team-fallback { display: grid; }
.team-info { display: grid; gap: 3px; }
.team-tag { justify-self: start; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: linear-gradient(135deg, #2563eb, #1e40af); padding: 4px 10px; border-radius: 100px; margin-bottom: 4px; }
.team-info strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--black); }
.team-info small { color: var(--muted); font-weight: 600; }
@media (max-width: 480px) { .team-card { flex-direction: column; text-align: center; } .team-info { justify-items: center; } }

/* ---------- Timeline ---------- */
.timeline { max-width: 720px; margin: 0 auto; display: grid; gap: 8px; }
.timeline-step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; position: relative; padding-bottom: 40px; }
.timeline-step:last-child { padding-bottom: 0; }
.step-num { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--black); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; box-shadow: var(--shadow); }
.step-card { padding: 20px 24px; }
.step-card h3 { font-family: var(--font-head); color: var(--black); font-size: 1.2rem; margin-bottom: 4px; }
.step-card p { color: var(--muted); font-size: .95rem; }
.step-arrow { position: absolute; left: 20px; top: 68px; height: 40px; color: var(--g-400); }

/* ---------- Testimonials ---------- */
.testimonial-slider { max-width: 860px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s var(--ease); }
.testimonial-card { flex: 0 0 100%; padding: 40px; text-align: center; position: relative; }
.stars { display: inline-flex; gap: 3px; color: var(--black); margin-bottom: 14px; }
.star-on { color: var(--black); }
.quote-mark { position: absolute; top: 22px; left: 28px; color: rgba(0,0,0,.06); }
.quote-mark .icon { width: 54px; height: 54px; }
.testimonial-card blockquote { font-size: 1.2rem; line-height: 1.6; color: var(--black); font-weight: 500; max-width: 60ch; margin: 0 auto 22px; }
.testimonial-card figcaption { display: inline-flex; align-items: center; gap: 12px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: #fff; font-weight: 700; }
.testimonial-card figcaption strong { display: block; font-family: var(--font-head); color: var(--black); }
.testimonial-card figcaption small { color: var(--muted); font-size: .84rem; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.slider-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--black); display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, background .2s, color .2s; }
.slider-btn:hover { background: var(--black); color: #fff; transform: scale(1.06); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(0,0,0,.18); transition: width .3s, background .3s; }
.slider-dots button.active { width: 26px; border-radius: 6px; background: var(--black); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.accordion { display: grid; gap: 14px; }
.accordion-item { overflow: hidden; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--black); }
.accordion-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.06); color: var(--black); flex: none; transition: transform .3s var(--ease), background .3s, color .3s; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); background: var(--black); color: #fff; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-panel p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 28px 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.ci-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--black); color: #fff; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-list a, .contact-list span span { font-weight: 600; color: var(--black); }
.map-wrap { padding: 8px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 220px; border: 0; border-radius: calc(var(--radius-lg) - 8px); filter: grayscale(1) contrast(1.05); }

.contact-form-wrap { padding: 34px; }
.contact-form-wrap h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--black); }
.form-sub { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }
.lead-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--g-800); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255,255,255,.8); font-family: inherit; font-size: .95rem; color: var(--ink); transition: border .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.1); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-privacy { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: .82rem; color: var(--muted); }
.form-privacy .icon { color: var(--black); }

.form-alert { display: none; padding: 13px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-alert.show { display: block; }
.form-alert.success { background: #f2f2f2; color: var(--black); border: 1px solid var(--black); }
.form-alert.error { background: #fff; color: var(--black); border: 1px dashed var(--black); }

.btn-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .btn-label { opacity: .6; }
.btn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-dark); color: rgba(255,255,255,.72); padding-top: 66px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.brand--footer .brand-text { color: #fff; }
.footer-brand p { margin: 16px 0 20px; font-size: .92rem; max-width: 38ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, color .2s, transform .2s; }
.footer-social a:hover { background: #fff; color: var(--black); transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: .92rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; padding-left: 0 !important; }
.footer-links a .icon { width: 14px; height: 14px; flex: none; color: rgba(255,255,255,.4); transition: color .2s, transform .25s var(--ease); }
.footer-links a:hover .icon { color: #3b82f6; transform: translateX(3px); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .92rem; }
.footer-contact .icon { color: #fff; margin-top: 2px; }
.footer-compliance { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-license { display: flex; align-items: center; gap: 8px; color: #fff; font-size: .9rem; margin-bottom: 8px; }
.footer-license .icon { color: #fff; }
.footer-disclaimer { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.6; max-width: 90ch; }
.footer-disclaimer strong { color: rgba(255,255,255,.78); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.6); }
.footer-credit a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--g-300); }

/* ---------- Floating actions ---------- */
.floating-actions { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: grid; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .25s var(--ease), background .25s, color .25s; }
.fab:hover { transform: scale(1.08); }
.fab-whatsapp { background: var(--black); color: #fff; border: 1px solid rgba(255,255,255,.15); animation: fabPulse 2.6s infinite; }
.fab-call { background: #fff; color: var(--black); border: 1px solid var(--line); }
.fab-call:hover { background: var(--black); color: #fff; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(0,0,0,.4); } 70% { box-shadow: 0 0 0 16px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; left: 20px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), background .2s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: linear-gradient(135deg, #2563eb, #1e40af); transform: translateY(-3px); }
@media (max-width: 480px) { .back-to-top { left: 14px; bottom: 16px; width: 44px; height: 44px; } }

/* ---------- Entry gate popup ---------- */
.entry-gate { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.entry-gate.show { opacity: 1; visibility: visible; }
body.popup-lock { overflow: hidden; }
.entry-gate-card { position: relative; width: min(440px, calc(100vw - 40px)); background: #fff; border-radius: var(--radius-xl); padding: 40px 34px; text-align: center; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); transform: translateY(20px) scale(.97); transition: transform .45s var(--ease); }
.entry-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.05); color: var(--black); transition: background .2s, color .2s, transform .2s; }
.entry-close:hover { background: var(--black); color: #fff; transform: rotate(90deg); }
.entry-gate.show .entry-gate-card { transform: none; }
.entry-mark { width: 60px; height: 60px; border-radius: 18px; background: var(--black); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; margin: 0 auto 18px; }
.entry-logo { height: 50px; max-width: 200px; object-fit: contain; display: block; margin: 0 auto 18px; }
.footer-logo { height: 40px; max-width: 190px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.entry-gate-card h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--black); margin-bottom: 6px; }
.entry-gate-card p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.entry-gate-form { display: grid; gap: 14px; text-align: left; }
.entry-gate-form input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); font-family: inherit; font-size: .98rem; transition: border .2s, box-shadow .2s; }
.entry-gate-form input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.1); }
.entry-alert { display: none; font-size: .86rem; font-weight: 600; color: var(--black); padding: 8px 12px; border: 1px dashed var(--black); border-radius: 10px; }
.entry-alert.show { display: block; }
.entry-note { margin-top: 14px; font-size: .78rem; color: var(--g-400); }

/* ---------- Announcement / marketing bar ---------- */
.announce-bar { background: linear-gradient(90deg, #1e40af, #2563eb, #1e40af); color: #fff; font-size: .84rem; font-weight: 600; overflow: hidden; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 0; text-align: center; }
.announce-tag { background: #fff; color: var(--blue, #1e40af); font-weight: 800; font-size: .66rem; letter-spacing: .06em; padding: 3px 9px; border-radius: 100px; flex: none; }
.announce-text { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.announce-text .icon { width: 15px; height: 15px; }
.site-header.scrolled .announce-bar { display: none; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.gallery-item { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: var(--g-100); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 14px; color: #fff; font-weight: 600; font-size: .92rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.9); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox-inner { margin: 0; max-width: 92vw; max-height: 88vh; }
.lightbox-inner img { max-width: 92vw; max-height: 80vh; border-radius: 12px; }
.lightbox-inner figcaption { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lightbox-close:hover { background: #fff; color: #000; transform: rotate(90deg); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-thumb { display: block; height: 200px; overflow: hidden; background: var(--grad-dark); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.blog-thumb-fallback .icon { width: 48px; height: 48px; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.blog-card-body h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--black); line-height: 1.3; }
.blog-card-body h2 a:hover { color: var(--blue, #1e40af); }
.blog-card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.blog-content { font-size: 1.06rem; line-height: 1.8; color: var(--g-800); }
.blog-content h2, .blog-content h3 { font-family: var(--font-head); color: var(--black); margin: 28px 0 12px; }
.blog-content p { margin-bottom: 18px; }
.blog-content ul, .blog-content ol { margin: 0 0 18px 22px; }
.blog-content li { margin-bottom: 8px; }
.blog-content a { color: #1e40af; text-decoration: underline; }
.blog-content img { border-radius: 14px; margin: 18px 0; }
.blog-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 30px; margin-top: 40px; }
.blog-cta strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--black); display: block; }
.blog-cta p { color: var(--muted); font-size: .92rem; margin-top: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-body h3 { font-family: var(--font-head); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 440px; }
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-photo-wrap { margin-inline: auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .counter-item:nth-child(2) { border-right: none; }
    .counter-item { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
    .counter-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 6px; }
    .topbar-strip { display: none; }
    .hero { padding: 150px 0 80px; }
}
@media (max-width: 860px) {
    /* Remove backdrop-filter on mobile: it creates a containing block that
       traps the fixed-position drawer inside the header. Use a SOLID opaque bg
       (no transparency) so scrolled content never shows through the header. */
    .site-header .header-main,
    .site-header.solid .header-main,
    .site-header.scrolled .header-main { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #ffffff !important; box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); }
    /* Keep the announcement + top strip opaque too */
    .site-header .announce-bar { background: #1e40af; }

    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); height: 100vh; height: 100dvh;
        flex-direction: column; gap: 4px; align-items: stretch;
        background: #ffffff; padding: 18px 18px 28px; overflow-y: auto;
        transform: translateX(100%); transition: transform .35s var(--ease); z-index: 200;
        box-shadow: -24px 0 60px rgba(0,0,0,.28);
    }
    .main-nav.open { transform: translateX(0); }

    /* Drawer header (logo + close button) */
    .main-nav .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
    .nav-drawer-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--black); }
    .nav-drawer-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: .8rem; }
    .nav-close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--g-100); color: var(--black); flex: none; transition: background .2s, color .2s, transform .2s; }
    .nav-close:hover { background: var(--black); color: #fff; transform: rotate(90deg); }

    /* Nav links — black on white */
    .site-header .main-nav a { color: var(--black) !important; background: transparent !important; padding: 14px 16px; font-size: 1.05rem; font-weight: 600; border-radius: 12px; }
    .site-header .main-nav a:hover { background: var(--g-100) !important; color: var(--black) !important; }
    .site-header .main-nav a.active { background: var(--black) !important; color: #fff !important; }

    .nav-toggle { display: grid; position: relative; z-index: 210; }
    .header-actions .btn { display: none; }
    .header-actions .nav-toggle { display: grid; }
    /* When the drawer is open, hide the hamburger/X — the drawer has its own ✕ */
    body.nav-open .nav-toggle { display: none !important; }

    /* CTA buttons at the bottom of the drawer */
    .mobile-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
    .site-header .mobile-cta .btn { display: inline-flex; justify-content: center; background: var(--g-100) !important; color: var(--black) !important; border: 1px solid var(--line) !important; }
    .site-header .mobile-cta .btn .icon { color: var(--black) !important; }
    .site-header .mobile-cta .btn:last-child { background: linear-gradient(135deg,#2563eb,#1e40af) !important; color: #fff !important; border-color: transparent !important; }
    .site-header .mobile-cta .btn:last-child .icon { color: #fff !important; }
    body.nav-open { overflow: hidden; }
}
/* Dim scrim behind the open mobile drawer (tablets only) */
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 190; }
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

/* On phones: clean full-screen white menu — no dimmed/faded background */
@media (max-width: 600px) {
    .main-nav { width: 100%; max-width: 100%; box-shadow: none; }
    .nav-scrim { display: none !important; }
}
@media (min-width: 861px) { .mobile-cta { display: none; } }
@media (max-width: 620px) {
    .section { padding: 64px 0; }
    .hero { padding: 128px 0 66px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .services-grid, .why-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .counters-grid { grid-template-columns: 1fr 1fr; padding: 24px 14px; }
    .float-badge { display: none; }
    .testimonial-card, .contact-form-wrap { padding: 26px 22px; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .about-badge { right: 50%; transform: translateX(50%); }
}
@media (max-width: 480px) {
    :root { --radius-lg: 22px; --radius-xl: 28px; }
    .container { width: min(100% - 28px, var(--container)); }
    .section { padding: 54px 0; }
    .hero { padding: 116px 0 56px; }
    .hero-title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    .brand-text { font-size: .98rem; }
    .brand-mark { width: 42px; height: 42px; }
    .counters { margin-top: -30px; }
    .counter-item { border-right: none; }
    .service-card, .glass-card.step-card, .why-item { padding: 22px; }
    .step-num { width: 54px; height: 54px; font-size: 1.3rem; }
    .timeline-step { grid-template-columns: 54px 1fr; gap: 16px; }
    .step-arrow { left: 16px; }
    .hero-card { padding: 22px; }
    .entry-gate-card { padding: 32px 22px; }
    .fab { width: 50px; height: 50px; }
    .floating-actions { right: 14px; bottom: 16px; gap: 10px; }
}
@media (max-width: 360px) {
    .hero-title { font-size: 1.85rem; }
    .btn-lg { padding: 14px 20px; font-size: .92rem; }
    .brand-text small { display: none; }
}
@media (min-width: 621px) and (max-width: 860px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Header spacing & overlap fixes ---------- */
/* Wider header row so the full menu never wraps */
.header-main .container, .topbar-strip .container { width: min(100% - 36px, 1320px); }
.main-nav a { white-space: nowrap; }
.main-nav { gap: 0; }
/* Drawer header/close are mobile-only */
.nav-drawer-head { display: none; }

/* When the announcement bar is on, the fixed header is taller — push the first
   section/article of every page down so nothing hides beneath it. */
.site-header.has-announce ~ main > section:first-of-type,
.site-header.has-announce ~ main > article:first-of-type { padding-top: 190px !important; }

/* Hide the secondary "Call Now" header button on tighter desktops (still in top bar + FAB) */
@media (max-width: 1200px) { .header-actions .btn-ghost { display: none; } }

@media (max-width: 980px) {
    .site-header.has-announce ~ main > section:first-of-type,
    .site-header.has-announce ~ main > article:first-of-type { padding-top: 150px !important; }
}
@media (max-width: 620px) {
    .announce-inner { font-size: .76rem; padding: 7px 0; gap: 8px; }
    .site-header.has-announce ~ main > section:first-of-type,
    .site-header.has-announce ~ main > article:first-of-type { padding-top: 138px !important; }
}

/* ==========================================================
   Old / small device hardening — no horizontal overflow,
   graceful fallbacks, readable down to 320px.
   ========================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
h1, h2, h3, h4, p, a, span, blockquote, li, small, strong, label, .brand-text { overflow-wrap: break-word; word-wrap: break-word; }

/* Container fallback for browsers without min() */
.container { width: 92%; max-width: var(--container); margin-left: auto; margin-right: auto; }
.container { width: min(100% - 40px, var(--container)); }

/* aspect-ratio fallback (prevents collapsed image boxes on older browsers) */
@supports not (aspect-ratio: 1 / 1) {
    .about-photo-wrap { min-height: 460px; }
    .gallery-item { min-height: 200px; }
    .blog-thumb { min-height: 200px; }
}

/* flex-gap fallback for older Safari (<14.1) */
@supports not (gap: 1rem) {
    .hero-cta > *, .about-cta > *, .actions > * { margin: 5px; }
    .btn > * + * { margin-left: 8px; }
    .footer-social > * { margin-right: 8px; }
}

/* Small phones (≤400px) */
@media (max-width: 400px) {
    .hero-title { font-size: 1.72rem; }
    .section-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .counters-grid { padding: 20px 10px; gap: 14px; }
    .counter-value { font-size: clamp(1.5rem, 8vw, 1.9rem); }
    .counter-label { font-size: .9rem; }
    .brand-text { font-size: .88rem; }
    .brand-text small { display: none; }
    .brand-mark { width: 38px; height: 38px; font-size: .9rem; }
    .hero-card { padding: 18px; }
    .hero-card-list li { font-size: .88rem; }
    .service-card, .glass-card.step-card, .why-item, .contact-form-wrap, .testimonial-card { padding: 20px 16px; }
    .about-photo-wrap { max-width: 100%; }
    .testimonial-card blockquote { font-size: 1.05rem; }
    .btn-lg { padding: 14px 18px; font-size: .9rem; }
    .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */
}

/* Ultra-small / very old phones (≤330px) */
@media (max-width: 330px) {
    .hero-title { font-size: 1.55rem; }
    .counters-grid { grid-template-columns: 1fr; }
    .hero-cta .btn, .about-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
