/* ==========================================================================
   Al Sham Al Dawliah Contracting – public website styles
   Brand colours come from the logo (deep navy + slate blue) and are injected
   as CSS variables from Admin > Site Settings (see layouts/app.blade.php).
   ========================================================================== */

:root {
    --primary: #0a2d52;
    --secondary: #3e4e67;
    --accent: #c9a24b;

    --primary-dark: color-mix(in srgb, var(--primary) 62%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 8%, #fff);
    --accent-dark: color-mix(in srgb, var(--accent) 82%, #000);

    --ink: #14202e;
    --muted: #5b6778;
    --line: #e3e8ee;
    --soft: #f4f6f9;
    --white: #fff;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(10, 45, 82, .07);
    --shadow: 0 14px 40px rgba(10, 45, 82, .12);
    --shadow-lg: 0 24px 60px rgba(10, 45, 82, .22);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { flex: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-lg { margin-top: 3rem; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    background: var(--accent); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #111; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: #101a28; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--accent:hover { background: var(--accent-dark); color: #101a28; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary-dark); color: #d6deea; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar__list { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.topbar__list li { display: flex; align-items: center; gap: .5rem; }
.topbar a { color: #d6deea; }
.topbar a:hover { color: var(--accent); }
.topbar .icon { color: var(--accent); }

.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 45, 82, .12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .85rem; color: var(--primary); }
.brand img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--secondary); margin-top: 3px; }
.brand--light { color: #fff; }
.brand--light .brand__text small { color: #aab6c8; }
.brand:hover { color: var(--primary); }
.brand--light:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: .4rem; }
.nav__list a {
    position: relative; display: block; padding: .6rem .95rem; font-weight: 700; font-size: .95rem;
    color: var(--ink); border-radius: 8px;
}
.nav__list a::after {
    content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--primary); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--primary); border-radius: 8px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 991px) {
    :root { --header-h: 72px; }
    .topbar__hours, .topbar .social { display: none; }
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: calc(var(--header-h) + 0px) 0 0 0; top: var(--header-h);
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem;
        background: #fff; padding: 1.5rem 20px 2rem; overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .nav-open .nav { transform: none; visibility: visible; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__list a { padding: 1rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__list a::after { display: none; }
    .nav__list a.is-active { color: var(--accent-dark); }
    .nav__cta { width: 100%; }
}
@media (max-width: 520px) {
    .brand img { width: 46px; height: 46px; }
    .brand__text strong { font-size: .98rem; }
    .brand__text small { font-size: .64rem; }
    .topbar__list { gap: 1rem; }
    .topbar__list li:nth-child(2) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--primary-dark); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(100deg, color-mix(in srgb, var(--primary-dark) 94%, transparent) 0%, color-mix(in srgb, var(--primary) 78%, transparent) 48%, color-mix(in srgb, var(--primary) 20%, transparent) 100%); }
.hero__inner { padding-block: 5rem 7rem; }
.hero__content { max-width: 720px; }
.badge {
    display: inline-block; padding: .45rem 1rem; border-radius: 999px; font-size: .78rem; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem;
    background: rgba(255, 255, 255, .08); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.hero h1 { color: #fff; margin-bottom: .5em; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #d9e2ef; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__points { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 2.4rem; color: #e8eef7; font-weight: 600; font-size: .95rem; }
.hero__points li { display: flex; align-items: center; gap: .5rem; }
.hero__points .icon { color: var(--accent); }

/* ---------- Stats ---------- */
.stats-strip { position: relative; z-index: 5; margin-top: -4.2rem; }
.stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: #fff;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--accent);
}
.stats li { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1.1; }
.stats span:not([data-count]) { color: var(--muted); font-weight: 600; font-size: .95rem; }
.stats--plain { background: transparent; box-shadow: none; border: 0; }
.stats--plain li { border-color: rgba(255, 255, 255, .18); }
.stats--plain strong { color: #fff; }
.stats--plain span:not([data-count]) { color: #c4d0e1; }
@media (max-width: 640px) { .stats li { border-right: 0; border-bottom: 1px solid var(--line); } .stats--plain li { border-color: rgba(255, 255, 255, .18); } .stats li:last-child { border-bottom: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--soft { background: var(--soft); }
.section--dark { background: radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--secondary) 60%, transparent), transparent 55%), var(--primary-dark); color: #d6deea; }
.section--primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding-block: 3rem; }

.section-head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: #b8c5d8; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent-dark); margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; }
.section--dark .eyebrow, .section-head--light .eyebrow { color: var(--accent); }

.grid { display: grid; gap: 1.8rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split__media { position: relative; }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: var(--primary-dark); }
.frame::before {
    content: ''; position: absolute; inset: 14px; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: calc(var(--radius) - 4px); z-index: 2; pointer-events: none;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
    position: absolute; right: -14px; bottom: 36px; background: var(--accent); color: #101a28; padding: 1.2rem 1.6rem;
    border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; z-index: 3;
}
.float-card strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.float-card span { font-size: .85rem; font-weight: 700; }
.split__body p { color: var(--muted); font-size: 1.05rem; }
.checklist { display: grid; gap: .8rem; margin: 1.6rem 0 2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.checklist .icon { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; margin-top: 3px; }
.checklist--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 991px) { .split { grid-template-columns: 1fr; } .float-card { right: 12px; } .frame { aspect-ratio: 4 / 3.2; } }
@media (max-width: 640px) { .checklist--2col { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.service-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__link { display: block; padding: 2.2rem 2rem 2rem; color: inherit; height: 100%; }
.service-card__icon {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1.4rem;
    background: var(--primary-soft); color: var(--primary); transition: background .3s, color .3s;
}
.service-card:hover .service-card__icon { background: var(--primary); color: var(--accent); }
.service-card h3 { margin-bottom: .55em; }
.service-card p { color: var(--muted); margin-bottom: 1.2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .92rem; color: var(--primary); }
.service-card:hover .link-arrow, .project-card:hover .link-arrow { color: var(--accent-dark); gap: .75rem; }
.link-arrow { transition: gap .25s, color .25s; }

.feature { padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s, transform .3s; }
.feature:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.feature__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--accent); color: #101a28; margin-bottom: 1.2rem; }
.feature h3 { color: #fff; }
.feature p { margin: 0; color: #b8c5d8; }
.feature--light { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.feature--light:hover { background: #fff; box-shadow: var(--shadow); }
.feature--light h3 { color: var(--primary); }
.feature--light p { color: var(--muted); }

.panel { background: #fff; padding: 2.4rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--accent); }
.panel__icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--primary); color: var(--accent); margin-bottom: 1.2rem; }
.panel p { color: var(--muted); margin: 0; }

.pill { position: absolute; left: 16px; top: 16px; background: var(--accent); color: #101a28; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.project-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card__link { display: block; color: inherit; }
.project-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-dark); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__media img { transform: scale(1.07); }
.project-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.project-card__body h3 { margin-bottom: .4em; }
.project-card__meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.project-card.is-hidden { display: none; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: -1rem 0 2.6rem; }
.filter { background: #fff; border: 2px solid var(--line); color: var(--ink); font-weight: 700; padding: .55rem 1.3rem; border-radius: 999px; transition: all .2s; }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.testimonial { margin: 0; background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 1rem; }
.stars .icon { fill: currentColor; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: 1.03rem; font-style: italic; color: var(--ink); }
.testimonial figcaption strong { display: block; color: var(--primary); }
.testimonial figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(110deg, var(--primary-dark), var(--primary) 60%, var(--secondary)); color: #fff; padding-block: 4rem; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #c9d5e6; max-width: 600px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; font-weight: 700; color: var(--primary); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { transition: transform .25s; color: var(--accent-dark); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq__item p { margin: 0; padding: 0 1.4rem 1.4rem; color: var(--muted); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); overflow: hidden; background: var(--primary-dark); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--primary-dark) 92%, transparent), color-mix(in srgb, var(--primary) 60%, transparent)); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .35em; }
.page-hero p { color: #d3dded; max-width: 680px; font-size: 1.12rem; margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; margin-bottom: 1.2rem; color: #b8c5d8; }
.breadcrumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .55; }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--accent); }

/* ---------- Detail pages ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; }
.detail__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2.2rem; background: var(--primary-dark); }
.detail__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose { font-size: 1.06rem; color: #364152; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { margin-top: 1.8rem; color: var(--primary); }
.detail__side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.side-card--dark { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); border: 0; color: #d3dded; }
.side-card--dark h3 { color: #fff; }
.side-card__phone { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; color: #fff; font-weight: 700; }
.side-card__phone:hover { color: var(--accent); }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; align-items: center; gap: .7rem; padding: .85rem 0; font-weight: 600; color: var(--ink); }
.side-list a:hover { color: var(--accent-dark); padding-left: .35rem; }
.side-list .icon { color: var(--accent-dark); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; color: var(--primary); text-align: right; }
.gallery-title { margin-top: 3rem; font-size: 1.6rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-dark); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.08); }
@media (max-width: 991px) { .detail { grid-template-columns: 1fr; } .detail__side { position: static; } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(5, 15, 30, .92); padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 92vw; border-radius: 8px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; padding: .5rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__info p { color: var(--muted); }
.contact-list { display: grid; gap: 1.4rem; margin: 2rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: var(--accent); }
.contact-list h3 { font-size: 1.02rem; margin-bottom: .15em; }
.contact-list p { margin: 0; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); border-top: 5px solid var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--primary); }
.field input, .field textarea {
    width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink); background: var(--soft);
    border: 2px solid transparent; border-radius: var(--radius-sm); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field [aria-invalid="true"] { border-color: #d64545; background: #fff7f7; }
.field__error { display: block; color: #c0392b; margin-top: .3rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 600; }
.alert--success { background: #e9f7ef; color: #1e6b3f; border: 1px solid #b9e3c9; }
.map { line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.25); }
@media (max-width: 991px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #aab7ca; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 3rem; padding-block: 4.5rem 3.5rem; }
.footer__col p { margin: 1.3rem 0; font-size: .96rem; }
.footer__title { color: #fff; font-size: 1.05rem; position: relative; padding-bottom: .9rem; margin-bottom: 1.3rem; }
.footer__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer__links { display: grid; gap: .65rem; }
.footer__links a { color: #aab7ca; }
.footer__links a:hover { color: var(--accent); padding-left: 4px; }
.footer__contact { display: grid; gap: 1rem; }
.footer__contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer__contact .icon { color: var(--accent); margin-top: 3px; }
.footer__contact a { color: #aab7ca; }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.3rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #aab7ca; }
.footer__bottom a:hover { color: var(--accent); }
@media (max-width: 991px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; } }

.social { display: flex; gap: .55rem; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: all .25s; }
.social a:hover { background: var(--accent); color: #101a28; transform: translateY(-3px); }
.social--sm a { width: 28px; height: 28px; background: transparent; color: #d6deea; }
.social--sm a:hover { background: transparent; color: var(--accent); transform: none; }
.contact__info .social a { background: var(--primary); }
.contact__info .social a:hover { background: var(--accent); }

/* ---------- Floating buttons ---------- */
.float-whatsapp {
    position: fixed; left: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); transition: transform .2s;
}
.float-whatsapp:hover { transform: scale(1.08); color: #fff; }
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, transform .2s;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--accent); color: #101a28; transform: translateY(-3px); }

/* ---------- Pagination & errors ---------- */
.pager { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.pager__item { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--primary); background: #fff; }
.pager__item.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager__item.is-disabled { opacity: .5; }
.error-page { padding-block: 7rem; }
.error-page__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--accent); margin: 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media print {
    .topbar, .site-header, .float-whatsapp, .to-top, .cta, .site-footer { display: none !important; }
}
