/* Thoriqoh ID — design tokens follow design-system/thoriqoh-id/MASTER.md */

/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/OFL-*.txt).
   Cormorant Garamond and Plus Jakarta Sans are variable fonts; Amiri is
   subset to the decorative word "طريقة" only. */
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Amiri";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/amiri-bold-thoriqoh.woff2") format("woff2");
    unicode-range: U+0629, U+0631, U+0637, U+0642, U+064A;
}

:root {
    --color-primary: #0B3D2E;
    --color-primary-deep: #082C21;
    --color-primary-soft: #E3ECE7;
    --color-on-primary: #FFFFFF;
    --color-on-primary-muted: #C9D6CF;
    --color-accent: #C9A24A;
    --color-accent-strong: #B8892B;
    --color-accent-on-dark: #D4AF5A;
    --color-accent-text: #8A6417;
    --color-gold-soft: #E9D8A6;
    --color-bg: #FBF8F1;
    --color-bg-alt: #F4EEE0;
    --color-surface: #FFFFFF;
    --color-fg: #1A1A17;
    --color-muted: #5B5A52;
    --color-border: #E6DFCF;
    --color-whatsapp: #177A42;
    --color-whatsapp-strong: #11643A;
    --color-danger: #B42318;

    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-arabic: "Amiri", "Noto Naskh Arabic", serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;

    --gutter: 16px;
    --container: 1200px;
    --header-height: 72px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-arch: 999px 999px var(--radius-md) var(--radius-md);

    --shadow-sm: 0 1px 2px rgba(11, 61, 46, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 61, 46, 0.10);
    --shadow-lg: 0 20px 48px rgba(11, 61, 46, 0.16);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --duration-fast: 160ms;
    --duration: 240ms;

    --star-shape: polygon(50% 0%, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0% 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);
    --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF5A' stroke-opacity='0.16' stroke-width='1'%3E%3Crect x='26' y='26' width='28' height='28'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0l26 26M80 0L54 26M0 80l26-26M80 80L54 54M40 0v20.2M80 40H59.8M40 80V59.8M0 40h20.2'/%3E%3C/g%3E%3C/svg%3E");
    --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230B3D2E' stroke-opacity='0.06' stroke-width='1'%3E%3Crect x='26' y='26' width='28' height='28'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0l26 26M80 0L54 26M0 80l26-26M80 80L54 54M40 0v20.2M80 40H59.8M40 80V59.8M0 40h20.2'/%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 768px) {
    :root {
        --gutter: 24px;
        --header-height: 80px;
    }
}

@media (min-width: 1200px) {
    :root {
        --gutter: 32px;
    }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + var(--space-3));
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    color: var(--color-fg);
    font: 400 1rem/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
    outline: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-primary);
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

ul[class],
ol[class] {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--color-accent-on-dark);
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: var(--space-3);
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--color-accent);
    color: var(--color-fg);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-3);
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.print-only {
    display: none;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.975rem;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease),
        border-color var(--duration) var(--ease), transform var(--duration-fast) var(--ease),
        box-shadow var(--duration) var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.925rem;
}

.btn-block {
    width: 100%;
}

.btn-gold {
    background: var(--color-accent);
    color: var(--color-fg);
    box-shadow: 0 6px 18px rgba(201, 162, 74, 0.28);
}

.btn-gold:hover {
    background: var(--color-accent-on-dark);
}

.btn-emerald {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-emerald:hover {
    background: var(--color-primary-deep);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 90, 0.7);
    color: var(--color-on-primary);
}

.btn-outline-light:hover {
    background: rgba(212, 175, 90, 0.14);
    border-color: var(--color-accent-on-dark);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background: var(--color-whatsapp-strong);
}

.btn-ghost {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-primary);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
}

/* ---------- Ornaments ---------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-text);
}

.on-dark .kicker {
    color: var(--color-accent-on-dark);
}

.kicker::before,
.kicker::after {
    content: "";
    width: 8px;
    height: 8px;
    background: currentColor;
    clip-path: var(--star-shape);
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-accent);
    margin-top: var(--space-3);
}

.ornament-divider::before,
.ornament-divider::after {
    content: "";
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.ornament-divider::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

.ornament-divider span {
    width: 12px;
    height: 12px;
    background: currentColor;
    clip-path: var(--star-shape);
}

.pattern-dark {
    position: relative;
    isolation: isolate;
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

.pattern-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--pattern-dark);
    background-size: 80px 80px;
    pointer-events: none;
}

.star-medallion {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    flex: none;
    clip-path: var(--star-shape);
    background: linear-gradient(145deg, var(--color-gold-soft), var(--color-accent));
    color: var(--color-primary);
}

.star-medallion > span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    clip-path: var(--star-shape);
    background: #FFFDF7;
}

.star-medallion img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 61, 46, 0.97);
    border-bottom: 1px solid rgba(212, 175, 90, 0.22);
    color: var(--color-on-primary);
    transition: box-shadow var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header {
        background: rgba(11, 61, 46, 0.9);
        backdrop-filter: saturate(140%) blur(10px);
    }
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(8, 44, 33, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    text-decoration: none;
    color: var(--color-on-primary);
    flex: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    color: var(--color-accent-on-dark);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

.brand-name em {
    font-style: normal;
    color: var(--color-accent-on-dark);
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: var(--color-on-primary-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--color-accent-on-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--color-on-primary);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.lang-switch {
    display: inline-flex;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.lang-switch button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-on-primary-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.lang-switch button[aria-pressed="true"] {
    background: var(--color-accent);
    color: var(--color-fg);
}

.lang-switch button:not([aria-pressed="true"]):hover {
    color: var(--color-on-primary);
}

.menu-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-on-primary);
}

.mobile-menu {
    border-top: 1px solid rgba(212, 175, 90, 0.22);
    background: var(--color-primary-deep);
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu-inner {
    display: grid;
    gap: var(--space-4);
    padding-block: var(--space-4);
}

.mobile-menu h2 {
    color: var(--color-accent-on-dark);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.mobile-menu a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    color: var(--color-on-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-actions {
    display: grid;
    gap: var(--space-3);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu-actions h2 {
    margin-bottom: 0;
}

.mobile-menu-actions .lang-switch {
    justify-self: start;
}

.mobile-menu-actions .lang-switch button {
    min-width: 64px;
}

@media (max-width: 959px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .header-actions {
        margin-left: auto;
    }
}

/* Phones: the floating WhatsApp button and the menu carry the contact
   action, so the header keeps only what fits next to the brand. */
@media (max-width: 559px) {
    .header-inner {
        gap: var(--space-3);
    }

    .header-cta {
        display: none;
    }

    .brand {
        gap: 10px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }
}

/* Narrow phones (320–369px): the language switch moves into the menu. */
@media (max-width: 369px) {
    .header-actions .lang-switch {
        display: none;
    }
}

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(1200px 500px at 85% 10%, rgba(212, 175, 90, 0.18), transparent 60%),
        radial-gradient(900px 600px at 0% 100%, rgba(255, 255, 255, 0.06), transparent 60%),
        linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6);
    padding-top: clamp(48px, 8vw, 104px);
}

.hero-copy {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
}

.hero h1 {
    color: var(--color-on-primary);
    font-size: clamp(2.6rem, 6.2vw, 4.4rem);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero .lead {
    max-width: 56ch;
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    color: var(--color-on-primary-muted);
}

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

.hero-art {
    display: none;
    position: relative;
    justify-self: center;
    width: min(100%, 380px);
    aspect-ratio: 3 / 4;
}

.hero-arch {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(212, 175, 90, 0.75);
    border-radius: var(--radius-arch);
    background: linear-gradient(180deg, rgba(212, 175, 90, 0.12), rgba(8, 44, 33, 0.2));
    box-shadow: inset 0 0 0 10px rgba(8, 44, 33, 0.35), inset 0 0 0 11px rgba(212, 175, 90, 0.35);
    overflow: hidden;
}

.hero-arch .rosette {
    position: absolute;
    left: 50%;
    top: 34%;
    width: 120%;
    translate: -50% -50%;
    color: rgba(212, 175, 90, 0.22);
    animation: spin 120s linear infinite;
}

.hero-arch .calligraphy {
    position: absolute;
    inset: auto 0 30% 0;
    text-align: center;
    font-family: var(--font-arabic);
    font-weight: 700;
    font-size: clamp(4rem, 8vw, 5.6rem);
    line-height: 1;
    color: var(--color-accent-on-dark);
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero-arch .caption {
    position: absolute;
    inset: auto 24px 12% 24px;
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-on-primary-muted);
}

.hero-lantern {
    position: absolute;
    top: -6%;
    right: 8%;
    width: 46px;
    color: var(--color-accent-on-dark);
    transform-origin: top center;
    animation: sway 6s ease-in-out infinite;
}

@keyframes spin {
    to {
        rotate: 360deg;
    }
}

@keyframes sway {
    0%,
    100% {
        rotate: -3deg;
    }

    50% {
        rotate: 3deg;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--space-6);
    margin-bottom: 0;
    border: 1px solid rgba(212, 175, 90, 0.28);
    border-radius: var(--radius-lg);
    background: rgba(8, 44, 33, 0.45);
}

.hero-stat {
    display: grid;
    gap: 2px;
    padding: 18px 22px;
}

.hero-stat + .hero-stat {
    border-top: 1px solid rgba(212, 175, 90, 0.2);
}

.hero-stat dd {
    display: grid;
    gap: 2px;
    margin: 0;
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 2.1rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--color-accent-on-dark);
}

.hero-stat span {
    font-size: 0.9rem;
    color: var(--color-on-primary-muted);
}

/* Mobile: one stat per row, value beside its label. */
@media (max-width: 639px) {
    .hero-stat dd {
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: center;
        column-gap: 14px;
    }

    .hero-stat {
        padding: 14px 18px;
    }

    .hero-stat strong {
        font-size: 1.8rem;
    }
}

@media (min-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    }

    .hero-stat + .hero-stat {
        border-top: 0;
        border-left: 1px solid rgba(212, 175, 90, 0.2);
    }
}

.skyline {
    display: block;
    width: 100%;
    height: clamp(56px, 8vw, 120px);
    margin-top: clamp(32px, 5vw, 56px);
    color: var(--color-bg);
}

@media (min-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    .hero-art {
        display: block;
    }
}

/* ---------- Sections ---------- */

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.section-alt {
    background: var(--color-bg-alt);
    background-image: var(--pattern-light);
    background-size: 80px 80px;
}

.section-head {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 4.2vw, 2.9rem);
}

.section-head p:not(.kicker) {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.on-dark h2,
.on-dark h3 {
    color: var(--color-on-primary);
}

/* ---------- Service cards ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-4);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 64px 28px 28px;
    text-align: center;
    text-decoration: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
        border-color var(--duration) var(--ease);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--color-gold-soft);
    border-radius: 210px 210px 12px 12px;
    pointer-events: none;
    transition: border-color var(--duration) var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.service-card:hover::before {
    border-color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.85rem;
}

.service-card p {
    color: var(--color-muted);
    max-width: 34ch;
}

.service-card .meta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    color: var(--color-accent-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.service-card .meta .icon {
    transition: transform var(--duration) var(--ease);
}

.service-card:hover .meta .icon {
    transform: translateX(4px);
}

/* ---------- Package cards ---------- */

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: var(--space-4);
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
        border-color var(--duration) var(--ease);
}

.package-card:hover,
.package-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.package-media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--color-primary);
    overflow: hidden;
}

.package-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease);
}

.package-card:hover .package-media img {
    transform: scale(1.04);
}

.media-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 120%, rgba(212, 175, 90, 0.35), transparent 60%),
        var(--pattern-dark),
        linear-gradient(160deg, var(--color-primary), var(--color-primary-deep));
    background-size: auto, 80px 80px, auto;
}

.media-placeholder .star-medallion {
    width: 72px;
    height: 72px;
}

.media-placeholder .star-medallion > span {
    width: 60px;
    height: 60px;
}

.media-placeholder .star-medallion img {
    width: 30px;
    height: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-fg);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: currentColor;
    clip-path: var(--star-shape);
}

.package-media .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.package-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 20px 22px 22px;
}

.package-service {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-text);
}

.package-card h3 {
    font-size: 1.55rem;
    line-height: 1.15;
}

.package-card h3 a {
    text-decoration: none;
}

.package-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.package-card h3 a:focus-visible {
    outline: none;
}

.package-card:has(h3 a:focus-visible) {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 3px;
}

.package-summary {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.package-facts {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.package-facts li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.9rem;
    min-width: 0;
}

.package-facts li::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    translate: 0 -1px;
    background: var(--color-accent);
    clip-path: var(--star-shape);
}

.package-facts .fact-label {
    color: var(--color-muted);
    flex: none;
}

.package-facts .fact-value {
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.package-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--color-border);
}

.price {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    overflow-wrap: anywhere;
}

.price-note {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.arrow-chip {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.package-card:hover .arrow-chip {
    background: var(--color-primary);
    color: var(--color-accent-on-dark);
}

@media (max-width: 767px) {
    .rail {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: minmax(280px, 85%);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }

    .rail > * {
        scroll-snap-align: start;
    }
}

/* ---------- Highlights, steps, partners, testimonials ---------- */

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-4);
}

.highlight-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.highlight-card h3 {
    font-size: 1.45rem;
}

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

.star-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    clip-path: var(--star-shape);
    background: var(--color-primary);
    color: var(--color-accent-on-dark);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.steps {
    display: grid;
    gap: var(--space-4);
    counter-reset: step;
}

.step {
    position: relative;
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    padding: 0 12px;
}

.step h3 {
    font-size: 1.5rem;
}

.on-dark .step p {
    color: var(--color-on-primary-muted);
}

.step .star-number {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    color: var(--color-fg);
    font-size: 1.6rem;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 32px;
        left: calc(50% + 48px);
        width: calc(100% - 96px);
        border-top: 1.5px dashed rgba(212, 175, 90, 0.55);
    }
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
    gap: var(--space-3);
}

.partner-card {
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 16px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.partner-card img {
    max-height: 56px;
    object-fit: contain;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

a.partner-card:hover,
a.partner-card:focus-visible {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.partner-card:hover img,
.partner-card:focus-visible img {
    filter: none;
    opacity: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-card .quote-mark {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
}

.testimonial-card blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--color-fg);
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-primary);
    color: var(--color-accent-on-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card .author {
    display: grid;
    min-width: 0;
}

.testimonial-card .author strong {
    font-weight: 600;
}

.testimonial-card .author span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.rating {
    display: flex;
    gap: 2px;
    color: var(--color-accent);
}

.rating .icon {
    width: 18px;
    height: 18px;
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    display: grid;
    gap: var(--space-4);
    justify-items: center;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    text-align: center;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-band h2 {
    color: var(--color-on-primary);
    font-size: clamp(2rem, 4.4vw, 3rem);
    max-width: 20ch;
}

.cta-band p {
    max-width: 56ch;
    color: var(--color-on-primary-muted);
}

.cta-band .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Phones: stacked, equal-width call-to-action buttons. */
@media (max-width: 479px) {
    .hero-actions,
    .cta-band .actions {
        display: grid;
        width: 100%;
    }

    .hero-actions .btn,
    .cta-band .actions .btn {
        justify-content: center;
    }
}

/* ---------- Page banner & breadcrumb ---------- */

.page-banner {
    overflow: hidden;
    padding-block: clamp(32px, 6vw, 64px) clamp(40px, 6vw, 72px);
}

.page-banner .banner-photo {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-banner .banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner .banner-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 44, 33, 0.95) 0%, rgba(8, 44, 33, 0.75) 55%, rgba(8, 44, 33, 0.45) 100%);
}

.banner-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.banner-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.page-banner h1 {
    color: var(--color-on-primary);
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.page-banner .lead {
    max-width: 62ch;
    color: var(--color-on-primary-muted);
    font-size: 1.05rem;
}

.page-banner .star-medallion {
    display: none;
    width: 112px;
    height: 112px;
}

.page-banner .star-medallion > span {
    width: 96px;
    height: 96px;
}

.page-banner .star-medallion img {
    width: 48px;
    height: 48px;
}

@media (min-width: 768px) {
    .page-banner .star-medallion {
        display: grid;
    }
}

.breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.breadcrumb li + li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    opacity: 0.6;
    clip-path: var(--star-shape);
}

/* 44px touch target without making the breadcrumb row taller. */
.breadcrumb a {
    display: inline-block;
    padding-block: 11px;
    margin-block: -11px;
    text-decoration: none;
    opacity: 0.85;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.on-dark .breadcrumb {
    color: var(--color-on-primary-muted);
}

.on-dark .breadcrumb [aria-current="page"] {
    color: var(--color-accent-on-dark);
}

.breadcrumb-bar {
    padding-block: 18px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-muted);
}

.breadcrumb-bar [aria-current="page"] {
    color: var(--color-primary);
}

/* ---------- Catalog toolbar ---------- */

.catalog-intro {
    max-width: 75ch;
    margin-bottom: var(--space-5);
}

.toolbar {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding: 18px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.toolbar-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
}

.result-count {
    color: var(--color-muted);
    font-size: 0.925rem;
}

.filter-group {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
}

.filter-group-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--color-fg);
    transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease),
        color var(--duration) var(--ease);
}

.chip:hover {
    border-color: var(--color-accent);
}

.chip[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.sort-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.925rem;
    color: var(--color-muted);
}

.select {
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3D2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
    color: var(--color-fg);
    font-size: 1rem; /* 16px or more: iOS Safari zooms into smaller form controls */
    font-weight: 500;
    appearance: none;
    cursor: pointer;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--space-3);
}

.toolbar-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-toggle {
    display: none;
    gap: 8px;
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-count[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .toolbar {
        padding: 16px;
    }

    .toolbar-controls {
        width: 100%;
        flex-wrap: nowrap;
    }

    .filter-toggle {
        flex: none;
    }

    .filter-toggle {
        display: inline-flex;
    }

    .toolbar:not(.filters-open) .filters {
        display: none;
    }

    .sort-control {
        flex: 1 1 auto;
        min-width: 0;
    }

    .sort-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .sort-control .select {
        width: 100%;
        min-width: 0;
        text-overflow: ellipsis;
    }
}

.link-button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--color-accent-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Item detail ---------- */

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding-block: var(--space-5) clamp(56px, 8vw, 96px);
}

@media (min-width: 1024px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 56px;
    }
}

.detail-main {
    display: grid;
    gap: var(--space-5);
    min-width: 0;
}

.detail-header {
    display: grid;
    gap: 12px;
}

.detail-header h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.detail-header .lead {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.detail-header .tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.service-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

/* Extends the touch area to 44px while the pill stays compact. */
.service-tag::after {
    content: "";
    position: absolute;
    inset: -6px 0;
}

.service-tag img {
    width: 22px;
    height: 22px;
}

.gallery {
    display: grid;
    gap: 12px;
}

.gallery-main {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transition: background-color var(--duration) var(--ease);
}

.gallery-nav:hover {
    background: #FFFFFF;
}

.gallery-nav.prev {
    left: 12px;
}

.gallery-nav.next {
    right: 12px;
}

.gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(8, 44, 33, 0.78);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 8px;
}

.gallery-thumb {
    flex: none;
    width: 96px;
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-border);
    opacity: 0.75;
    transition: border-color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] {
    opacity: 1;
}

.gallery-thumb[aria-current="true"] {
    border-color: var(--color-accent);
}

.detail-section {
    display: grid;
    gap: var(--space-3);
}

.detail-section > h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.9rem;
}

.detail-section > h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold-soft), transparent);
}

.detail-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

@media (min-width: 640px) {
    .detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.detail-item {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    min-width: 0;
}

.detail-item.is-wide {
    grid-column: 1 / -1;
}

.detail-item dt {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.detail-item dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detail-item dd a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-block: -9px;
    color: var(--color-accent-text);
}

.check-list {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.check-list .icon {
    margin-top: 3px;
    color: var(--color-whatsapp);
}

.prose {
    max-width: 70ch;
    color: #2D2C27;
    font-size: 1.025rem;
}

.prose > * + * {
    margin-top: 1em;
}

.prose > :first-child {
    margin-top: 0;
}

.prose h2 {
    font-size: 1.75rem;
    margin-top: 1.4em;
}

.prose h3 {
    font-size: 1.4rem;
    margin-top: 1.2em;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li + li {
    margin-top: 0.35em;
}

.prose li::marker {
    color: var(--color-accent-strong);
}

.prose a {
    color: var(--color-accent-text);
    text-underline-offset: 3px;
}

.prose img {
    border-radius: var(--radius-md);
}

.prose em {
    color: var(--color-muted);
}

.price-card {
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.price-card-top {
    display: grid;
    gap: 6px;
    padding: 26px 26px 24px;
}

.price-card-top .price-label {
    color: var(--color-accent-on-dark);
}

.price-card-top .price-value {
    font-size: 2.3rem;
    color: var(--color-on-primary);
}

.price-card-top .price-note {
    color: var(--color-on-primary-muted);
}

.price-card-body {
    display: grid;
    gap: 12px;
    padding: 24px 26px 26px;
}

.price-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.assurance-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px dashed var(--color-border);
    font-size: 0.925rem;
    color: var(--color-muted);
}

.assurance-list li {
    display: flex;
    gap: 10px;
}

.assurance-list .icon {
    color: var(--color-whatsapp);
    margin-top: 2px;
}

@media (min-width: 1024px) {
    .detail-aside {
        position: sticky;
        top: calc(var(--header-height) + 24px);
        align-self: start;
    }
}

.bottom-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -10px 30px rgba(11, 61, 46, 0.12);
}

.bottom-bar .price {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.bottom-bar .price-label,
.bottom-bar .price-note {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Wrap a long range only after its dash, never inside a number. */
.bottom-bar .price-value {
    font-size: clamp(1.15rem, 5vw, 1.35rem);
    overflow-wrap: normal;
}

.bottom-bar .btn {
    flex: none;
}

.bottom-bar .label-short {
    display: none;
}

@media (max-width: 399px) {
    .bottom-bar .label-long {
        display: none;
    }

    .bottom-bar .label-short {
        display: inline;
    }
}

/* Room at the end of the page so the footer's last line clears the bar. */
body.has-bottom-bar .site-footer {
    padding-bottom: 96px;
}

@media (min-width: 1024px) {
    .bottom-bar {
        display: none;
    }

    body.has-bottom-bar .site-footer {
        padding-bottom: 0;
    }
}

/* ---------- Static pages ---------- */

.page-article {
    padding-block: var(--space-6) clamp(56px, 8vw, 96px);
}

.page-article .prose {
    margin-inline: auto;
    padding: clamp(20px, 4vw, 48px);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 479px) {
    .page-article .prose {
        padding: 20px 18px;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background-color: var(--color-primary-deep);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--space-5);
    padding-block: var(--space-7) var(--space-5);
}

.footer-brand {
    display: grid;
    gap: 14px;
    align-content: start;
}

.footer-brand p {
    color: var(--color-on-primary-muted);
    max-width: 36ch;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-on-dark);
}

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

.footer-links a,
.footer-contact a,
.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    color: var(--color-on-primary-muted);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

.footer-contact span {
    align-items: flex-start;
    padding-block: 8px;
    min-height: 0;
}

.footer-contact .icon {
    margin-top: 2px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-on-primary);
}

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

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(212, 175, 90, 0.4);
    border-radius: 50%;
    color: var(--color-accent-on-dark);
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-fg);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 20px calc(20px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(212, 175, 90, 0.2);
    color: var(--color-on-primary-muted);
    font-size: 0.875rem;
}

/* ---------- Floating WhatsApp & toast ---------- */

.whatsapp-float {
    position: fixed;
    right: var(--gutter);
    bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--color-whatsapp);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(17, 100, 58, 0.4);
    transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.whatsapp-float[hidden] {
    display: none;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    background: var(--color-whatsapp-strong);
}

.whatsapp-float .icon {
    width: 26px;
    height: 26px;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(23, 122, 66, 0.5);
    animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 14px rgba(23, 122, 66, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(23, 122, 66, 0);
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 56px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-float .label {
        display: none;
    }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 60;
    max-width: calc(100% - 2 * var(--gutter));
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--color-primary-deep);
    color: #FFFFFF;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    translate: -50% 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease), translate var(--duration) var(--ease);
}

.toast.is-visible {
    opacity: 1;
    translate: -50% 0;
}

/* ---------- States ---------- */

.state-block {
    display: grid;
    justify-items: center;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto;
    padding-block: clamp(56px, 10vw, 112px);
    text-align: center;
}

.state-block h1,
.state-block h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.state-block p {
    color: var(--color-muted);
}

.state-block .star-number {
    width: 72px;
    height: 72px;
    font-size: 1.9rem;
}

.state-block.is-error .star-number {
    background: var(--color-danger);
    color: #FFFFFF;
}

.empty-inline {
    grid-column: 1 / -1;
    padding: 40px 24px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-muted);
}

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #ECE6D8;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    translate: -100% 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.4s infinite;
}

.on-dark .skeleton {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
    to {
        translate: 100% 0;
    }
}

.skeleton-card {
    display: grid;
    gap: 12px;
    padding-bottom: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.skeleton-card .skeleton {
    margin-inline: 20px;
}

.skeleton-card .skeleton.media {
    margin: 0;
    aspect-ratio: 3 / 2;
    border-radius: 0;
}

/* ---------- Reveal on scroll ---------- */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 450ms var(--ease), transform 450ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Touch screens ---------- */
/* Hover lifts stick after a tap on touch screens, so they are replaced by a
   short pressed state (transform only, the layout does not move). */
@media (hover: none) {
    .btn:hover,
    .service-card:hover,
    .package-card:hover,
    .package-card:hover .package-media img,
    .whatsapp-float:hover {
        transform: none;
    }

    .btn:active,
    .chip:active,
    .service-card:active,
    .package-card:active,
    .whatsapp-float:active {
        transform: scale(0.98);
    }

    .mobile-menu a:active,
    .footer-links a:active,
    .breadcrumb a:active {
        opacity: 0.7;
    }
}

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

    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Print ---------- */

@media print {
    @page {
        margin: 16mm;
    }

    body {
        background: #FFFFFF;
        color: #000000;
        font-size: 11pt;
    }

    .site-header,
    .site-footer,
    .whatsapp-float,
    .bottom-bar,
    .toast,
    .no-print,
    .gallery-thumbs,
    .gallery-nav,
    .gallery-counter,
    .related-section,
    .skip-link {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .pattern-dark,
    .price-card-top {
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    .pattern-dark::before {
        display: none;
    }

    .on-dark h1,
    .on-dark h2,
    .price-card-top .price-value,
    .price-card-top .price-label,
    .price-card-top .price-note {
        color: #000000 !important;
    }

    .detail-layout {
        display: block;
        padding: 0;
    }

    .detail-main {
        gap: 16px;
    }

    .gallery-main {
        max-height: 90mm;
        box-shadow: none;
    }

    .detail-aside {
        margin-top: 16px;
    }

    .price-card,
    .detail-item {
        box-shadow: none;
        break-inside: avoid;
    }

    .print-contact {
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid #999999;
    }

    a {
        text-decoration: none;
    }

    .js-reveal .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
