/* =============================================================
   مكتب الرحمة | Al Rahma
   Design system + public website styles
   -------------------------------------------------------------
   1. Tokens
   2. Reset & base
   3. Typography
   4. Buttons & links
   5. Layout helpers
   6. Header / navigation
   7. Hero
   8. Sections & cards
   9. Steps, prices, testimonials, FAQ
  10. Forms
  11. Documents & downloads
  12. Footer
  13. Floating actions
  14. Utilities & responsive
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
    --green-900: #0B2A1E;
    --green-800: #123E2C;
    --green-700: #1A5540;
    --green-600: #2A6B52;
    --green-100: #E6EDE9;
    --green-50:  #F1F5F2;

    --gold-600: #A8873F;
    --gold-500: #C6A55C;
    --gold-400: #D9BE84;
    --gold-100: #F5EEDF;

    --ink: #14201B;
    --muted: #5C6B64;
    --line: #E4DED3;
    --surface: #F7F5F0;
    --white: #FFFFFF;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(20, 32, 27, .05), 0 1px 3px rgba(20, 32, 27, .04);
    --shadow: 0 10px 30px -18px rgba(11, 42, 30, .28);
    --shadow-lg: 0 30px 60px -30px rgba(11, 42, 30, .35);

    --container: 1180px;
    --gap: clamp(1rem, 2.5vw, 2rem);
    --section-y: clamp(3rem, 6vw, 5.5rem);

    --font-body: "Segoe UI", system-ui, -apple-system, "Noto Naskh Arabic", "Helvetica Neue", Arial, sans-serif;
    --font-head: "Noto Kufi Arabic", "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
    --font-latin-head: "Marcellus", Georgia, "Times New Roman", serif;

    --ease: cubic-bezier(.22, .61, .36, 1);

    --header-h: 116px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
    background: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-600); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--gold-400); color: var(--green-900); }

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

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    transform: translate(-50%, -200%);
    background: var(--green-800);
    color: #fff;
    padding: .65rem 1.1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 999;
    transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Default size for inline icons; larger icons are set per component. */
.icon { width: 20px; height: 20px; flex: none; }

/* 3. Typography ----------------------------------------------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.35;
    color: var(--green-900);
    margin: 0 0 .65rem;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, .95rem + .6vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] .brand__name { font-family: var(--font-latin-head); }

.lede { font-size: clamp(1.02rem, .98rem + .35vw, 1.18rem); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .9rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--gold-500);
    display: inline-block;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.section-title { max-width: 62ch; }
.section-title--center { margin-inline: auto; text-align: center; }

/* 4. Buttons & links ------------------------------------------ */
.btn {
    --btn-bg: var(--green-800);
    --btn-fg: #fff;
    --btn-border: var(--green-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    padding: .95rem 1.6rem;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
    text-align: center;
    white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; flex: none; }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--green-900); --btn-border: var(--gold-500); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green-800); --btn-border: var(--green-800); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--green-800); --btn-border: #fff; }
.btn--whatsapp { --btn-bg: #1FA855; --btn-fg: #fff; --btn-border: #1FA855; }
.btn--sm { padding: .6rem 1.05rem; min-height: 40px; font-size: .9rem; }
.btn--block { width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

/* 5. Layout helpers ------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.75rem);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--green { background: var(--green-800); color: #EAF1ED; }
.section--green h2, .section--green h3 { color: #fff; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section__head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); max-width: 70ch; }
.section__head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stack > * + * { margin-top: 1rem; }

.prose { max-width: 72ch; }
.prose p { color: var(--muted); font-size: 1.03rem; }
.prose-wrap .prose { max-width: 78ch; }
.section--green .prose p { color: #D6E3DC; }

/* 6. Header / navigation -------------------------------------- */
.topbar {
    background: var(--green-900);
    color: #D9E5DF;
    font-size: .82rem;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 40px;
    flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.topbar__row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar .icon { width: 16px; height: 16px; }
.topbar .lang-switch { color: var(--green-800); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 70px;
}

.main-nav {
    border-top: 1px solid var(--line);
    padding-block: .25rem;
}
.main-nav ul { justify-content: center; }
.mobile-actions { display: none; }

.brand { display: flex; align-items: center; gap: .7rem; margin-inline-end: auto; }
.brand__mark { height: 48px; width: 48px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--green-800); white-space: nowrap; }
.brand__tag { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; white-space: nowrap; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: .1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    display: block;
    padding: .5rem .55rem;
    border-radius: 999px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    transition: background .18s var(--ease), color .18s var(--ease);
}
.main-nav a:hover { background: var(--green-50); color: var(--green-800); }
.main-nav a.is-active { background: var(--green-800); color: #fff; }


.header-actions { display: flex; align-items: center; gap: .5rem; }

@media (min-width: 1320px) {
    .header-actions .header-call { display: inline-flex; }
}
@media (max-width: 1319px) {
    .header-actions .header-call { display: none; }
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .3rem .65rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--green-800);
    background: #fff;
}
.lang-switch .icon { width: 16px; height: 16px; }

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 1080px) {
    .main-nav {
        position: fixed;
        inset: 0;
        background: #fff;
        padding: calc(var(--header-h) + 1.5rem) clamp(1rem, 5vw, 2rem) 2rem;
        transform: translateY(-100%);
        transition: transform .28s var(--ease);
        overflow-y: auto;
        z-index: 90;
        display: flex;
        flex-direction: column;
    }
    .main-nav.is-open { transform: translateY(0); }
    .main-nav { border-top: 0; padding-block: 0; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
    .main-nav a { padding: .85rem .9rem; border-radius: var(--radius-sm); border-bottom: 1px solid var(--line); font-size: 1.02rem; }
    .mobile-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
    .header-actions .header-call, .header-actions .header-wa { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions .btn--call { display: none; }
}

/* 7. Hero ------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 88% -12%, rgba(198, 165, 92, .28), transparent 62%),
        radial-gradient(760px 480px at 6% 108%, rgba(42, 107, 82, .5), transparent 60%),
        linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 46%, #0E3524 100%);
    color: #EAF1ED;
    padding-block: clamp(2.6rem, 6vw, 5rem);
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }
.hero__sub { font-size: clamp(1.02rem, .95rem + .5vw, 1.22rem); color: #CFDED6; max-width: 52ch; }
.hero__body { color: #BDD0C7; margin-top: 1rem; max-width: 56ch; }

.hero__mark {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    margin-inline: auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 32%, #FFFFFF 0%, var(--surface) 72%);
    border: 1px solid rgba(198, 165, 92, .55);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .65), inset 0 0 0 12px rgba(255, 255, 255, .45);
}
.hero__mark img { width: min(72%, 260px); height: auto; }
.hero__mark::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(198, 165, 92, .25);
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.6rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .86rem;
    color: #E4EFE9;
}
.badge .icon { width: 18px; height: 18px; color: var(--gold-400); }

.hero--compact { padding-block: clamp(1.8rem, 3.4vw, 2.8rem); }
.hero--compact .hero__grid { grid-template-columns: 1fr; }
.hero--compact h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); max-width: 30ch; }
.hero--compact .hero__mark { display: none; }
.hero--compact .hero__body { max-width: 70ch; }

/* 8. Sections & cards ---------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.15rem, 2vw, 1.6rem);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-400); }

.card__icon {
    width: 52px; height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green-50);
    color: var(--green-700);
    margin-bottom: .9rem;
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .9rem;
    font-weight: 700;
    font-size: .93rem;
}
.card__link .icon { width: 18px; height: 18px; }
html[dir="rtl"] .card__link .icon { transform: scaleX(-1); }

.card--service { display: flex; flex-direction: column; }
.card--service .card__body { flex: 1 1 auto; }

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

.note {
    border-inline-start: 3px solid var(--gold-500);
    background: var(--gold-100);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    color: #4A3C1D;
}
.note--availability {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--green-700);
    color: var(--ink);
}
.note--availability .icon { width: 30px; height: 30px; color: var(--green-700); }
.note--availability strong { font-size: 1.08rem; }

/* 9. Steps, prices, testimonials, FAQ ------------------------ */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.steps--grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
    position: relative;
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.step__num {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-800);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}
.step h3 { font-size: 1.03rem; margin-bottom: .25rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step__icon { flex: none; color: var(--green-700); }
.step__icon .icon { width: 26px; height: 26px; }

.price-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
table.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table caption {
    text-align: start;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--green-800);
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}
.price-table th, .price-table td { padding: .95rem 1.25rem; text-align: start; vertical-align: top; }
.price-table thead th {
    background: var(--green-50);
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--green-700);
    font-weight: 700;
}
.price-table tbody tr + tr { border-top: 1px solid var(--line); }
.price-table tbody tr:hover { background: #FBF9F5; }
.price-table td small { display: block; color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.price {
    font-weight: 700;
    color: var(--green-800);
    white-space: nowrap;
}
.price--on-request { color: var(--gold-600); font-weight: 600; font-size: .95rem; }
.price-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--gold-600);
    margin-inline-start: .4rem;
    vertical-align: middle;
}

.testimonials { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: start; }
.quote {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.quote__stars { display: flex; gap: .12rem; color: var(--gold-500); }
.quote__stars .icon { width: 18px; height: 18px; }
.quote__stars .icon--on svg { fill: var(--gold-500); }
.quote__stars .icon--off svg { fill: none; color: var(--line); }
.quote__text { font-size: 1rem; color: var(--ink); margin: 0; }
.quote__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; }
.quote__name { font-weight: 700; color: var(--green-800); }

.faq { display: grid; gap: .7rem; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--gold-400); }
.faq summary {
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--green-900);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: var(--gold-600);
    flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .8rem; color: var(--muted); font-size: .97rem; }

/* 10. Forms -------------------------------------------------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--green-900); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error { font-size: .82rem; color: #A32B2B; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
    font: inherit;
    width: 100%;
    padding: .8rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(26, 85, 64, .12);
}
.input--error { border-color: #C0453F; box-shadow: 0 0 0 3px rgba(192, 69, 63, .1); }
.choices { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.choice {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: .93rem;
    cursor: pointer;
}
.choice:hover { border-color: var(--gold-400); }
.choice input { margin-top: .35rem; accent-color: var(--green-700); }
.form-actions { margin-top: 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.consent { font-size: .85rem; color: var(--muted); }
.form-trap {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.alert {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    margin-bottom: 1rem;
}
.alert .icon { width: 20px; height: 20px; flex: none; margin-top: .15rem; }
.alert--success { background: #E8F4EC; color: #1C5B3A; border: 1px solid #BFE1CB; }
.alert--error { background: #FBEAE9; color: #8C2B27; border: 1px solid #F0C7C4; }
.alert--warning { background: var(--gold-100); color: #6B5320; border: 1px solid #E7D5AE; }
.alert--info { background: var(--green-50); color: var(--green-800); border: 1px solid #CBE0D5; }

/* 11. Documents & downloads ---------------------------------- */
.doc-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.doc-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
}
.doc-card__icon {
    flex: none;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--green-50);
    color: var(--green-700);
}
.doc-card h3 { font-size: 1rem; margin: 0 0 .15rem; }
.doc-card p { margin: 0; font-size: .88rem; color: var(--muted); }

.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}

/* 12. Footer -------------------------------------------------- */
.site-footer {
    background: var(--green-900);
    color: #BFD2C9;
    padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
    margin-top: 0;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .02em; }
.site-footer a { color: #DCE8E2; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer__grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
}
.site-footer__about img { height: 56px; margin-bottom: .9rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.footer-brand img { height: 44px; width: 44px; margin: 0; }
.footer-brand__name { font-size: 1.15rem; margin: 0; }
.footer-brand__tag { font-size: .78rem; color: #9FB6AB; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.site-footer__bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
}
.social-row { display: flex; gap: .5rem; }
.social-row a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
}
.social-row .icon { width: 18px; height: 18px; }

/* 13. Floating actions --------------------------------------- */
.floating-actions {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.fab {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform .2s var(--ease);
}
.fab:hover { transform: scale(1.06); color: #fff; }
.fab .icon { width: 26px; height: 26px; }
.fab--whatsapp { background: #1FA855; }
.fab--call { background: var(--green-800); }
.fab__label {
    position: absolute;
    inset-inline-end: 68px;
    background: #fff;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem .8rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s var(--ease);
}
.fab:hover .fab__label { opacity: 1; }
.fab { position: relative; }

/* 14. Utilities & responsive --------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; } .align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.rating-stars { display: inline-flex; gap: .1rem; color: var(--gold-500); }
.rating-stars .icon { width: 16px; height: 16px; }

.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.error-page__code { font-size: clamp(3rem, 8vw, 5rem); font-family: var(--font-latin-head); color: var(--gold-500); line-height: 1; }

@media (max-width: 640px) {
    body { font-size: .97rem; }
    .brand img { height: 40px; }
    .topbar__inner { min-height: 34px; font-size: .78rem; }
    .floating-actions { bottom: .85rem; inset-inline-end: .85rem; }
    .fab { width: 52px; height: 52px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn { width: 100%; }
    .price-table th, .price-table td { padding: .8rem .9rem; }
    .section { padding-block: clamp(2.25rem, 8vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .topbar, .site-footer, .floating-actions, .btn { display: none !important; }
}

