/* =========================================================
   משרד עו"ד חיית חאמי — site stylesheet
   Refined navy & gold, Hebrew RTL, fully responsive
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    /* ink (authority navy) scale */
    --ink-950: #060C16;
    --ink-900: #0A1626;
    --ink-800: #0F2138;
    --ink-700: #16294A;
    --ink-600: #1F3A66;

    /* brand gold */
    --gold: #AFA37B;
    --gold-light: #CDC09A;
    --gold-deep: #94865D;
    --gold-text: #7A6D47;   /* gold for small text on light bg (≥4.5:1) */

    /* paper (warm light) */
    --paper: #FAF8F3;
    --paper-2: #F2EEE3;
    --line: #E4DECB;

    /* text */
    --tx-strong: #1B2433;
    --tx-body: #323D54;
    --tx-soft: #5C6780;
    --tx-inverse: #EDF0F5;
    --tx-inverse-soft: #A7B2C6;

    /* type */
    --font-display: "Frank Ruhl Libre", "Noto Serif Hebrew", "David Libre", Georgia, serif;
    --font-body: "Assistant", "Heebo", "Segoe UI", sans-serif;

    /* misc */
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-soft: 0 10px 40px -12px rgba(11, 20, 34, .18);
    --shadow-deep: 0 24px 60px -18px rgba(7, 13, 22, .5);
    --header-h: 76px;
    --ease: cubic-bezier(.22, .8, .3, 1);

    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--tx-body);
    background: var(--paper);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }   /* height:auto lets aspect-ratio beat width/height attrs */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--tx-strong);
    line-height: 1.18;
    margin: 0;
    font-weight: 700;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
a, button, input, textarea, label { touch-action: manipulation; }

::selection { background: var(--gold); color: var(--ink-950); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: -60px;
    right: 16px;
    z-index: 300;
    background: var(--gold);
    color: var(--ink-950);
    padding: 10px 18px;
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.container {
    width: min(1180px, 100% - 48px);
    margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 120px) 0; }

section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Shared type pieces ---------- */
.eyebrow {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--gold-text);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 900;
    text-wrap: balance;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-head-start {
    text-align: start;
    margin-inline: 0;
}

.gold-rule {
    display: block;
    width: 64px;
    height: 2px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
    position: relative;
}
.gold-rule::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: translate(50%, -50%) rotate(45deg);
}
.rule-start { margin-inline: 0; }
.rule-start::after { inset-inline-start: 28px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16.5px;
    letter-spacing: .01em;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background-color .25s var(--ease), border-color .25s var(--ease),
                color .25s var(--ease);
    will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: var(--ink-950);
    box-shadow: 0 8px 24px -8px rgba(175, 163, 123, .55);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(175, 163, 123, .65);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
    border: 1px solid rgba(205, 192, 154, .45);
    color: #E9E3D0;
    background: rgba(175, 163, 123, .04);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(175, 163, 123, .1);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 200;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
                border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
    background: transparent;
}
.site-header.scrolled {
    background: rgba(7, 13, 22, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: rgba(175, 163, 123, .18);
    box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .6);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}
.brand-mark { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--tx-inverse);
    letter-spacing: .01em;
}
.brand-sub {
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--gold-light);
}

.main-nav {
    display: flex;
    gap: 6px;
}
.nav-link {
    position: relative;
    padding: 11px 14px;   /* ≥44px touch target */
    font-weight: 500;
    font-size: 16px;
    color: var(--tx-inverse-soft);
    transition: color .25s var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--tx-inverse); }
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-cta span { direction: ltr; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--tx-inverse);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(900px 520px at 82% -10%, rgba(175, 163, 123, .16), transparent 65%),
        radial-gradient(700px 500px at 8% 110%, rgba(34, 52, 80, .55), transparent 70%),
        linear-gradient(165deg, var(--ink-900), var(--ink-950) 70%);
    padding: calc(var(--header-h) + 48px) 0 110px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-scales {
    position: absolute;
    inset-inline-start: clamp(-80px, -4vw, -20px);
    bottom: -40px;
    width: clamp(280px, 30vw, 440px);
    color: var(--gold);
    opacity: .07;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
}

.hero-title {
    font-size: clamp(48px, 7vw, 86px);
    font-weight: 900;
    letter-spacing: .005em;
    line-height: 1.04;
}
.hero-title span {
    display: block;
    font-size: .38em;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--tx-inverse-soft);
    margin-bottom: .18em;
}
.hero-title em {
    display: block;
    font-style: normal;
    color: var(--gold-light);
    background: linear-gradient(135deg, #E8DCB8 8%, var(--gold-light) 38%, var(--gold) 64%, #9D8E63 95%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-motto {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
    font-family: var(--font-display);
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 500;
    letter-spacing: .22em;
    color: var(--gold);
}
.hero-motto i {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: .7;
}

.hero-lead {
    margin-top: 26px;
    max-width: 56ch;
    font-size: clamp(16.5px, 1.5vw, 18.5px);
    font-weight: 300;
    line-height: 1.8;
    color: var(--tx-inverse-soft);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

/* portrait */
.hero-figure {
    position: relative;
    justify-self: center;
    width: min(440px, 100%);
}
.hero-figure::after {
    content: "";
    position: absolute;
    inset: -12% -18% -6%;
    background: radial-gradient(closest-side, rgba(175, 163, 123, .18), transparent 72%);
    z-index: 0;
    pointer-events: none;
}
.portrait-frame {
    position: relative;
    z-index: 1;
    border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}
.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(175, 163, 123, .45);
    pointer-events: none;
}
.hero-figure::before {
    content: "";
    position: absolute;
    inset: -16px 16px 16px -16px;
    border: 1px solid rgba(175, 163, 123, .55);
    border-radius: 230px 230px var(--radius-lg) var(--radius-lg);
    pointer-events: none;
    z-index: 1;
}
.portrait-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 58% 18%;
    transform: scale(1.02);
}

.hero-badge {
    position: absolute;
    bottom: 28px;
    inset-inline-end: -18px;
    z-index: 2;
    background: var(--paper);
    border-radius: var(--radius);
    padding: 14px 22px 12px;
    box-shadow: 0 24px 50px -16px rgba(4, 8, 14, .75);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--gold);
    text-align: center;
}
.badge-signature { height: 44px; width: auto; margin-inline: auto; }
.hero-badge p {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--tx-soft);
}

.hero-fade {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    pointer-events: none;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    inset-inline-start: calc(50% - 22px);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(175, 163, 123, .45);
    color: var(--gold-light);
    background: rgba(7, 13, 22, .35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: border-color .25s var(--ease), background-color .25s var(--ease),
                color .25s var(--ease);
    opacity: 0;
    animation: rise .9s var(--ease) .9s forwards,
               cue-float 2.4s var(--ease) 2.4s 3;
}
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover {
    border-color: var(--gold);
    background: rgba(175, 163, 123, .14);
    color: #fff;
}
@keyframes cue-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 7px; }
}

/* hero load animation */
.anim {
    opacity: 0;
    transform: translateY(26px);
    animation: rise .9s var(--ease) forwards;
}
.anim-1 { animation-delay: .1s; }
.anim-2 { animation-delay: .22s; }
.anim-3 { animation-delay: .36s; }
.anim-4 { animation-delay: .5s; }
.anim-5 { animation-delay: .64s; }

@keyframes rise {
    to { opacity: 1; transform: none; }
}

/* ---------- Hero quick paths ---------- */
.quick-paths { margin-top: 34px; }
.quick-paths-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tx-inverse-soft);
}
.quick-paths-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.quick-path {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #C9D2E2;
    font-size: 14.5px;
    font-weight: 500;
    transition: color .25s var(--ease), border-color .25s var(--ease),
                background-color .25s var(--ease), transform .25s var(--ease);
}
.quick-path:hover {
    color: var(--gold-light);
    border-color: rgba(175, 163, 123, .65);
    background: rgba(175, 163, 123, .08);
    transform: translateY(-2px);
}

/* ---------- Trust / credentials bar ---------- */
.trust-bar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: start;
}
.trust-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gold-deep);
    border: 1px solid rgba(175, 163, 123, .5);
    background: rgba(175, 163, 123, .1);
}
.trust-icon svg { width: 19px; height: 19px; }
.trust-item p {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--tx-strong);
    line-height: 1.35;
    max-width: 21ch;
}

/* ---------- Practice areas ---------- */
.practice {
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(175, 163, 123, .07), transparent 70%),
        var(--paper);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.practice-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 34px 34px;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease),
                border-color .35s var(--ease);
}
.practice-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-deep));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease);
}
.practice-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(175, 163, 123, .55);
}
.practice-card:hover::before { transform: scaleX(1); }

.card-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 24px;
    font-family: var(--font-display);
    font-size: 88px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(175, 163, 123, .35);
    transition: color .35s var(--ease);
    user-select: none;
}
.practice-card:hover .card-num { color: rgba(175, 163, 123, .14); }

.card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(175, 163, 123, .45);
    background: linear-gradient(150deg, rgba(175, 163, 123, .14), rgba(175, 163, 123, .04));
    color: var(--gold-deep);
    margin-bottom: 22px;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; }
.practice-card:hover .card-icon { transform: translateY(-3px); }

.card-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}
.card-title em { font-style: normal; color: var(--gold-deep); }

.card-sub {
    font-weight: 600;
    color: var(--tx-strong);
    font-size: 16.5px;
    margin-bottom: 14px;
}

.card-list li {
    position: relative;
    padding-inline-start: 22px;
    margin-bottom: 8px;
    color: var(--tx-body);
    font-size: 16px;
}
.card-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: .58em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ---------- Why us ---------- */
.why {
    position: relative;
    background:
        radial-gradient(1000px 500px at 50% -20%, rgba(175, 163, 123, .12), transparent 65%),
        linear-gradient(180deg, var(--ink-900), var(--ink-950));
    overflow: hidden;
}
.why::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    pointer-events: none;
}
.why .section-title { color: var(--tx-inverse); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.why-item {
    text-align: center;
    padding: 36px 18px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
    transition: transform .35s var(--ease), border-color .35s var(--ease),
                background-color .35s var(--ease);
}
.why-item:hover {
    transform: translateY(-6px);
    border-color: rgba(175, 163, 123, .5);
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gold-light);
    border: 1px solid rgba(175, 163, 123, .4);
    background: rgba(175, 163, 123, .08);
    transition: transform .35s var(--ease);
}
.why-icon svg { width: 26px; height: 26px; }
.why-item:hover .why-icon { transform: translateY(-3px) scale(1.05); }

.why-item h3 {
    color: var(--tx-inverse);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}
.why-item p {
    color: var(--tx-inverse-soft);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
}

/* ---------- Process (how we work) ---------- */
.process { background: var(--paper); }

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding-top: 18px;
}
.process-step::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(175, 163, 123, .55), rgba(175, 163, 123, .12));
}
.process-step::after {
    content: "";
    position: absolute;
    top: -4px;
    inset-inline-start: 0;
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
}

.step-num {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(175, 163, 123, .65);
    display: block;
    margin-bottom: 12px;
    user-select: none;
}

.process-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.process-step p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--tx-body);
}

/* ---------- About ---------- */
.about {
    position: relative;
    background: var(--paper-2);
    overflow: hidden;
}
.about::after {
    content: "H";
    position: absolute;
    inset-inline-end: -40px;
    bottom: -120px;
    font-family: var(--font-display);
    font-size: 480px;
    font-weight: 900;
    line-height: 1;
    color: rgba(175, 163, 123, .09);
    pointer-events: none;
    user-select: none;
}

.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) 1.6fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
}

.about-body p {
    font-size: 17.5px;
    line-height: 1.85;
    margin-bottom: 18px;
    max-width: 70ch;
}

.cred-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
}
.cred-chips li {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(175, 163, 123, .55);
    background: rgba(175, 163, 123, .1);
    color: var(--gold-text);
    font-weight: 600;
    font-size: 14.5px;
}

.about-quote {
    position: relative;
    margin: 0 0 30px;
    padding: 6px 26px 6px 0;
    border-inline-start: 3px solid var(--gold);
    font-family: var(--font-display);
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 500;
    color: var(--tx-strong);
    line-height: 1.6;
}

.about-signature {
    height: 58px;
    width: auto;
    opacity: .85;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    background:
        radial-gradient(700px 300px at 50% 120%, rgba(175, 163, 123, .22), transparent 70%),
        linear-gradient(160deg, var(--ink-800), var(--ink-900));
    padding: clamp(56px, 7vw, 84px) 0;
    text-align: center;
    border-block: 1px solid rgba(175, 163, 123, .25);
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    pointer-events: none;
}
.cta-inner { position: relative; }
.cta-band h2 {
    color: var(--tx-inverse);
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 900;
}
.cta-band p {
    margin-top: 12px;
    color: var(--tx-inverse-soft);
    font-size: 17px;
    font-weight: 300;
}
.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(34, 52, 80, .5), transparent 65%),
        linear-gradient(180deg, var(--ink-950), var(--ink-900) 40%, var(--ink-950));
    overflow: hidden;
}
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--noise);
    pointer-events: none;
}
.contact .section-title { color: var(--tx-inverse); }

.contact-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(24px, 3.5vw, 44px);
    align-items: start;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 26px;
}
.contact-form .panel-title { color: var(--gold-deep); }
.contact-info .panel-title { color: var(--gold-light); }

/* info panel (dark) */
.contact-info {
    background: linear-gradient(165deg, rgba(24, 40, 67, .65), rgba(13, 23, 39, .9));
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3.4vw, 40px);
    box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .6);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform .3s var(--ease);
}
a.info-item:hover { transform: translateY(-3px); }
a.info-item:hover .info-text span { color: var(--gold-light); }
a.info-item:hover .info-icon {
    border-color: rgba(175, 163, 123, .7);
    color: var(--gold-light);
}

.info-icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #EAEDF3;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .055);
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.info-icon svg { width: 21px; height: 21px; }

.info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.info-text strong {
    color: var(--tx-inverse);
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: .02em;
}
.info-text span {
    color: var(--tx-inverse-soft);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    transition: color .3s var(--ease);
    overflow-wrap: anywhere;
}
.info-text [dir="ltr"] { text-align: end; }

/* form panel (paper) */
.contact-form {
    background: linear-gradient(180deg, #FCFAF5, #F3EEE1);
    border: 1px solid rgba(175, 163, 123, .4);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3.6vw, 42px);
    box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .55);
}

.field { margin-bottom: 16px; }
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--tx-body);
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #E2DAC4;
    background: #fff;
    color: var(--tx-strong);
    box-shadow: inset 0 1px 2px rgba(29, 37, 51, .04);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    resize: vertical;
    min-height: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: #B3AB97; font-weight: 300; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(175, 163, 123, .22);
}

.field.invalid input,
.field.invalid textarea { border-color: #C0564F; }

.field-error {
    min-height: 18px;
    margin-top: 5px;
    font-size: 13px;
    color: #B23B33;
}

.wa-icon { width: 19px; height: 19px; }

.form-note {
    margin-top: 14px;
    text-align: center;
    font-size: 13.5px;
    color: var(--tx-soft);
    font-weight: 400;
}
.form-note a { color: var(--gold-text); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

/* ---------- Accessibility statement ---------- */
.a11y-statement { background: var(--paper-2); }
.a11y-statement-inner { max-width: 74ch; }
.a11y-statement-title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 18px;
}
.a11y-statement-inner p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--tx-body);
    margin-bottom: 14px;
}
.a11y-statement-inner ul {
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.a11y-statement-inner li {
    position: relative;
    padding-inline-start: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--tx-body);
}
.a11y-statement-inner li::before {
    content: "";
    position: absolute;
    inset-inline-start: 2px;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}
.a11y-statement-inner a { color: var(--gold-text); font-weight: 600; }
.a11y-statement-date { font-size: 13px; color: var(--tx-soft); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink-950);
    color: var(--tx-inverse-soft);
    border-top: 1px solid rgba(175, 163, 123, .2);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 56px 0 40px;
}

.footer-brand img { width: 52px; margin-bottom: 14px; }
.footer-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--tx-inverse);
}
.footer-motto {
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: .12em;
    color: var(--gold);
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
    font-size: 15.5px;
    font-weight: 300;
    width: fit-content;
    transition: color .25s var(--ease);
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; font-weight: 300; font-size: 15.5px; }
.footer-contact a { width: fit-content; transition: color .25s var(--ease); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-contact [dir="ltr"] { text-align: end; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 18px 24px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-disclaimer { color: #5E6B82; }

.footer-credit {
    margin-top: 2px;
    color: #5E6B82;
    font-size: 12.5px;
    letter-spacing: .04em;
}
.footer-credit span {
    color: var(--gold-light);
    font-weight: 600;
}

/* ---------- Floating buttons ---------- */
.float-wa {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 150;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.float-wa svg { width: 28px; height: 28px; }
.float-wa:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 34px -8px rgba(37, 211, 102, .7);
}

.back-top {
    position: fixed;
    bottom: 92px;   /* stacks above the always-visible accessibility button */
    inset-inline-end: 24px;
    z-index: 150;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink-700);
    color: var(--gold-light);
    border: 1px solid rgba(175, 163, 123, .4);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease),
                visibility .3s, background-color .3s var(--ease);
}
.back-top svg { width: 20px; height: 20px; }
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.back-top:hover { background: var(--ink-600); }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 96px;
    inset-inline-start: 50%;
    transform: translate(50%, 16px);
    z-index: 250;
    background: var(--ink-700);
    color: var(--tx-inverse);
    border: 1px solid rgba(175, 163, 123, .5);
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    max-width: min(90vw, 420px);
    text-align: center;
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(50%, 0);
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--stagger, 0s);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) and (min-width: 961px) {
    /* narrow desktop: keep hero near one viewport tall */
    .hero { padding: calc(var(--header-h) + 32px) 0 90px; }
    .hero-title { font-size: clamp(40px, 5.4vw, 62px); }
    .hero-lead { font-size: 16px; margin-top: 20px; }
    .hero-motto { margin-top: 20px; }
    .hero-actions { margin-top: 28px; }
    .quick-paths { margin-top: 26px; }
    .hero-figure { width: min(380px, 100%); }
}

@media (max-width: 1080px) {
    /* 3+2 centered layout: 6 tracks, each item spans 2 */
    .why-grid { grid-template-columns: repeat(6, 1fr); }
    .why-item { grid-column: span 2; }
    .why-item:nth-child(4) { grid-column: 2 / 4; }
    .why-item:nth-child(5) { grid-column: 4 / 6; }
}

@media (max-width: 960px) {
    .hero { padding-bottom: 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-copy { text-align: center; }
    .hero-motto, .hero-actions, .quick-paths-row { justify-content: center; }
    .scroll-cue { display: none; }   /* stacked hero is tall — cue loses meaning */
    .hero-lead { margin-inline: auto; }
    .hero-figure { width: min(380px, 88%); }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
    .trust-item { justify-content: flex-start; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 34px 26px; }

    .about-grid { grid-template-columns: 1fr; gap: 8px; }
    .section-head-start { text-align: center; margin-inline: auto; margin-bottom: 36px; }
    .rule-start { margin-inline: auto; }
    .rule-start::after { inset-inline-start: 50%; }
    .about-body { text-align: center; }
    .about-body p { margin-inline: auto; }
    .cred-chips { justify-content: center; }
    .about-quote { text-align: start; }
    .about-signature { margin-inline: auto; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .footer-brand img { margin-inline: auto; }
    .footer-nav, .footer-contact { align-items: center; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        inset-inline: 0;
        flex-direction: column;
        gap: 4px;
        padding: 18px 24px 26px;
        background: rgba(7, 13, 22, .97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(175, 163, 123, .25);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .main-nav .nav-link {
        padding: 13px 10px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }
    .main-nav .nav-link::after { display: none; }

    .nav-toggle { display: flex; }
    .header-cta { display: none; }

    .site-header { background: rgba(7, 13, 22, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

    .practice-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-item:nth-last-child(2) { grid-column: auto; }
    .why-item:last-child { grid-column: 1 / -1; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
    .container { width: min(1180px, 100% - 36px); }
    body { font-size: 16px; }
    .info-grid { grid-template-columns: 1fr; gap: 24px; }
    .trust-grid { grid-template-columns: 1fr; gap: 16px; }
    .process-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-badge { inset-inline-end: 8px; padding: 10px 16px 9px; }
    .badge-signature { height: 34px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-item:last-child { grid-column: auto; }
    .hero-actions .btn { width: 100%; }
    .cta-actions .btn { width: min(320px, 100%); }
    .float-wa { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
    .back-top { bottom: 82px; inset-inline-end: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .anim, .reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    .scroll-cue { animation: none !important; opacity: 1 !important; }
    .btn, .practice-card, .why-item, .info-card, .float-wa, .back-top {
        transition: none !important;
    }
}
