/* ==========================================================================
   Diamond Edge Technical Services — Stylesheet
   1. Tokens   2. Base   3. Layout   4. Components   5. Header
   6. Hero     7. Sections   8. Contact   9. Footer   10. Floating widget
   11. Motion  12. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --navy-950: #040f24;
    --navy-900: #06152f;
    --navy-800: #0a2149;
    --navy-700: #0d2f66;
    --navy-600: #154487;
    --gold-300: #fcc864;
    --gold-400: #f8b133;
    --gold-500: #f29a1f;
    --gold-600: #dc7d0c;
    --gold-700: #a85705;   /* gold for text on light backgrounds (AA) */
    --gold-grad: linear-gradient(135deg, #fbb534 0%, #f29a1f 55%, #e2830e 100%);

    --ink: #0e1a2e;
    --body: #465467;
    --muted: #6b7789;
    --line: #e3e7ee;
    --line-strong: #cfd6e1;
    --surface: #f4f6fa;
    --white: #ffffff;
    --wa: #25d366;
    --wa-dark: #128c7e;
    --danger: #c0352b;
    --success: #1c7c4a;

    --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --fs-xs: .8125rem;
    --fs-sm: .9375rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-h3: 1.25rem;
    --fs-h2: clamp(1.75rem, 1.2rem + 2.1vw, 2.75rem);
    --fs-h1: clamp(2.25rem, 1.3rem + 3.9vw, 4.25rem);

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 16px;

    --sh-1: 0 1px 2px rgba(14, 26, 46, .05), 0 1px 3px rgba(14, 26, 46, .07);
    --sh-2: 0 14px 34px -14px rgba(10, 33, 73, .28);
    --sh-3: 0 30px 60px -24px rgba(6, 21, 47, .45);

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --section-y: clamp(64px, 5vw + 32px, 112px);
    --header-h: 136px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--body);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
}

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-700); }

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

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

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

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

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 1000;
    padding: 12px 18px;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--r-sm);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.section { padding-block: var(--section-y); }
.section-muted { background: var(--surface); }

.section-dark {
    position: relative;
    background:
        radial-gradient(900px 400px at 100% 0%, rgba(242, 154, 31, .14), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(21, 68, 135, .45), transparent 60%),
        var(--navy-900);
    color: rgba(255, 255, 255, .72);
    overflow: hidden;
}
.section-dark::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.section-head-center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head-center .section-lead { margin-inline: auto; }
.section-head-split {
    display: grid;
    gap: 20px 64px;
    align-items: end;
}
.section-title { font-size: var(--fs-h2); margin-bottom: .35em; }
.section-head .section-title { margin-bottom: 0; }
.section-head-center .section-title { margin-bottom: .45em; }
.section-lead { font-size: var(--fs-lg); max-width: 560px; }
.section-head-aside { display: grid; gap: 14px; justify-items: start; }

.split {
    display: grid;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.split-top { align-items: start; }

/* 4. Components ------------------------------------------------------------ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-700);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 9px; height: 9px;
    background: var(--gold-grad);
    transform: rotate(45deg);
    flex-shrink: 0;
}
.eyebrow-light { color: var(--gold-300); }

/* Buttons */
.btn {
    --btn-bg: var(--navy-800);
    --btn-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    cursor: pointer;
    text-align: center;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-lg { min-height: 54px; padding: 14px 30px; font-size: var(--fs-base); }
.btn-block { width: 100%; }

.btn-primary {
    --btn-fg: var(--navy-950);
    background: var(--gold-grad);
    box-shadow: 0 10px 24px -12px rgba(242, 154, 31, .8);
}
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(242, 154, 31, .9); }

.btn-dark { --btn-bg: var(--navy-800); }
.btn-dark:hover { --btn-bg: var(--navy-700); box-shadow: var(--sh-2); }

.btn-outline-light {
    --btn-bg: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
}
.btn-outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--navy-900); border-color: var(--white); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy-800); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-800); }

.btn-whatsapp { --btn-bg: var(--wa); --btn-fg: #06331b; }
.btn-whatsapp:hover { --btn-bg: #2fe070; }
.btn-whatsapp:hover .icon { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy-800);
    border-bottom: 1.5px solid var(--gold-500);
    padding-bottom: 2px;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.check-list { display: grid; gap: 10px; margin: 24px 0 32px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink);
    font-weight: 500;
}
.check-list .icon {
    width: 22px; height: 22px;
    padding: 4px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(242, 154, 31, .15);
    color: var(--gold-700);
    stroke-width: 2.6;
}

/* Media stack with a cut "edge" corner */
.media-stack { position: relative; margin: 0 0 28px; padding-right: 12%; }
.media-main {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--r);
    clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}
.media-inset {
    position: absolute;
    right: 0; bottom: -28px;
    width: 42%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--r);
    border: 6px solid var(--white);
    box-shadow: var(--sh-3);
}
.media-badge {
    position: absolute;
    left: 20px; top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(6, 21, 47, .85);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 999px;
}
.media-badge .icon { color: var(--gold-400); }

/* 5. Header ---------------------------------------------------------------- */
.topbar {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .78);
    font-size: var(--fs-xs);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    gap: 16px;
}
.topbar-list { display: flex; gap: 28px; }
.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    padding-block: 8px;
}
.topbar a:hover { color: var(--gold-300); }
.topbar .icon { color: var(--gold-400); width: 15px; height: 15px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -18px rgba(6, 21, 47, .45); border-color: var(--line); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.brand { display: inline-flex; flex-shrink: 0; padding-block: 8px; }
.brand img { height: 120px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 90px; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: var(--ink);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    background: var(--gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--navy-700); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--navy-700); }

.nav-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 700;
    font-size: var(--fs-sm);
    line-height: 1.25;
    white-space: nowrap;
}
.header-call small { display: block; font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }
.header-call-icon {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy-700);
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.header-call:hover .header-call-icon { background: var(--navy-800); color: var(--gold-400); }

.nav-toggle {
    display: none;
    position: relative;
    width: 48px; height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--white);
    cursor: pointer;
}
.nav-toggle-bar {
    position: absolute;
    left: 13px;
    width: 20px; height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 23px; }
.nav-toggle-bar:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(calc(100vh - 178px), 820px);
    min-height: min(calc(100svh - 178px), 820px);
    padding-block: clamp(72px, 9vw, 128px) clamp(120px, 12vw, 176px);
    color: rgba(255, 255, 255, .85);
    isolation: isolate;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 60% center;
    z-index: -2;
    animation: heroZoom 18s var(--ease) both;
}
.hero-shade {
    position: absolute; inset: 0;
    z-index: -1;
    background:
        linear-gradient(95deg, rgba(4, 15, 36, .94) 0%, rgba(6, 21, 47, .84) 38%, rgba(6, 21, 47, .45) 70%, rgba(6, 21, 47, .25) 100%),
        linear-gradient(0deg, rgba(4, 15, 36, .6) 0%, transparent 40%);
}
.hero-inner {
    display: grid;
    gap: 48px;
    align-items: end;
}
.hero-content { max-width: 720px; }
.hero-title {
    font-size: var(--fs-h1);
    color: var(--white);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin-bottom: 24px;
}
.hero-title span {
    display: block;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    font-size: clamp(1.0625rem, .95rem + .45vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, .8);
}

.hero-card {
    display: none;
    width: 320px;
    padding: 24px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hero-card-title {
    font-family: var(--font-head);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}
.hero-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: var(--white);
    font-weight: 600;
    line-height: 1.3;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-card-row small { display: block; font-size: var(--fs-xs); font-weight: 500; color: rgba(255, 255, 255, .6); }
.hero-card-row:hover { color: var(--gold-300); }
.hero-card-icon {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--gold-grad);
    color: var(--navy-950);
    flex-shrink: 0;
}
.hero-card-icon-wa { background: var(--wa); color: var(--white); }

/* Highlights strip (overlaps hero) */
.highlights { position: relative; z-index: 2; margin-top: clamp(-96px, -7vw, -64px); }
.highlights-grid {
    display: grid;
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-3);
    overflow: hidden;
}
.highlight {
    display: flex;
    gap: 16px;
    padding: 28px 26px;
    border-bottom: 1px solid var(--line);
    transition: background-color .3s var(--ease);
}
.highlight:hover { background: var(--surface); }
.highlight-icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    flex-shrink: 0;
    border-radius: var(--r);
    background: var(--navy-800);
    color: var(--gold-400);
}
.highlight-icon .icon { width: 22px; height: 22px; }
.highlight-title { font-size: 1.0625rem; margin-bottom: 4px; }
.highlight p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    padding-block: clamp(72px, 8vw, 120px) clamp(64px, 7vw, 104px);
    color: rgba(255, 255, 255, .82);
    isolation: isolate;
    overflow: hidden;
}
.page-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}
.page-hero-shade {
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(4, 15, 36, .95) 0%, rgba(6, 21, 47, .86) 50%, rgba(10, 33, 73, .6) 100%);
}
.page-hero::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: min(40%, 420px);
    height: 4px;
    background: var(--gold-grad);
}
.page-hero-title { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); color: var(--white); font-weight: 700; max-width: 820px; margin-bottom: 16px; }
.page-hero-text { font-size: var(--fs-lg); max-width: 640px; }

.breadcrumb { margin-bottom: 28px; font-size: var(--fs-xs); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* 7. Sections -------------------------------------------------------------- */
.about-intro { padding-top: calc(var(--section-y) + 8px); }

/* Service cards */
.service-grid { display: grid; gap: 24px; }
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.service-card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.service-card-link:focus-visible { outline-offset: -3px; }
.service-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.service-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }
.service-num {
    position: absolute;
    left: 16px; top: 16px;
    display: grid; place-items: center;
    min-width: 40px; height: 32px;
    padding-inline: 10px;
    border-radius: var(--r-sm);
    background: rgba(6, 21, 47, .82);
    color: var(--gold-300);
    font-family: var(--font-head);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .04em;
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.service-title { font-size: var(--fs-h3); margin-bottom: 8px; }
.service-body p { font-size: var(--fs-sm); line-height: 1.6; margin-bottom: 18px; }
.service-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--navy-700);
}
.service-more .icon { transition: transform .3s var(--ease); color: var(--gold-600); }
.service-card:hover .service-more .icon { transform: translateX(4px); }

/* Why choose us */
.why .section-lead { color: rgba(255, 255, 255, .72); }
.why-grid {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 1px solid rgba(255, 255, 255, .12);
}
.why-item {
    padding: clamp(28px, 3vw, 40px);
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transition: background-color .35s var(--ease);
}
.why-item:hover { background: rgba(255, 255, 255, .04); }
.why-icon {
    display: grid; place-items: center;
    width: 54px; height: 54px;
    margin-bottom: 22px;
    border-radius: var(--r);
    border: 1px solid rgba(248, 177, 51, .45);
    background: rgba(242, 154, 31, .1);
    color: var(--gold-400);
    transition: background-color .35s var(--ease), color .35s var(--ease);
}
.why-icon .icon { width: 24px; height: 24px; }
.why-item:hover .why-icon { background: var(--gold-grad); color: var(--navy-950); border-color: transparent; }
.why-item h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.why-item p { font-size: var(--fs-sm); line-height: 1.65; }

/* Process */
.process-list { display: grid; gap: 20px; counter-reset: step; }
.process-step {
    position: relative;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--white);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.process-step:hover { border-color: var(--gold-400); box-shadow: var(--sh-2); }
.process-num {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 18px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.process-step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.process-step p { font-size: var(--fs-sm); line-height: 1.65; }

/* CTA band */
.cta-band { padding-bottom: var(--section-y); }
.section + .cta-band, .process + .cta-band { padding-top: 0; }
.cta-card {
    position: relative;
    display: grid;
    gap: 40px;
    padding: clamp(36px, 5vw, 72px);
    border-radius: var(--r-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(242, 154, 31, .28), transparent 65%),
        linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: rgba(255, 255, 255, .78);
    overflow: hidden;
    isolation: isolate;
}
.cta-card::before {
    content: "";
    position: absolute;
    right: -120px; bottom: -120px;
    width: 360px; height: 360px;
    border: 2px solid rgba(248, 177, 51, .22);
    transform: rotate(45deg);
    z-index: -1;
}
.cta-card::after {
    content: "";
    position: absolute;
    right: -60px; bottom: -60px;
    width: 240px; height: 240px;
    border: 2px solid rgba(248, 177, 51, .14);
    transform: rotate(45deg);
    z-index: -1;
}
.cta-copy h2 { color: var(--white); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); max-width: 620px; }
.cta-copy p { font-size: var(--fs-lg); max-width: 540px; margin-bottom: 30px; }
.cta-contacts { display: grid; gap: 16px; align-content: center; }
.cta-contacts li {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--r);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}
.cta-contacts small { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--gold-300); font-weight: 700; margin-bottom: 4px; }
.cta-contacts a { display: block; color: var(--white); font-weight: 600; word-break: break-word; line-height: 1.6; }
.cta-contacts a:hover { color: var(--gold-300); }
.cta-contact-icon {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold-grad);
    color: var(--navy-950);
    flex-shrink: 0;
}

/* About page */
.pillar-grid { display: grid; gap: 24px; }
.pillar {
    padding: 36px 30px;
    background: var(--white);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pillar-icon {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    margin-bottom: 22px;
    border-radius: var(--r);
    background: var(--navy-800);
    color: var(--gold-400);
}
.pillar-icon .icon { width: 26px; height: 26px; }
.pillar h3 { font-size: var(--fs-h3); }
.pillar p { font-size: var(--fs-sm); }

.scope-list { display: grid; border-top: 1px solid var(--line); }
.scope-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 500;
    transition: padding .3s var(--ease), color .3s var(--ease);
}
.scope-list a .icon { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.scope-list a:hover { color: var(--navy-700); padding-left: 12px; }
.scope-list a:hover .icon { color: var(--gold-600); transform: translateX(4px); }
.scope-dot { width: 8px; height: 8px; background: var(--gold-grad); transform: rotate(45deg); flex-shrink: 0; }

.gallery { display: grid; gap: 16px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--line); }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }

/* Services page */
.service-index {
    position: relative;
    z-index: 1;
    padding-block: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: var(--fs-xs);
    font-weight: 600;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.chip:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.service-details .container { display: grid; gap: clamp(64px, 8vw, 112px); }
.service-row { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.service-row-media {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface);
}
.service-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-row:hover .service-row-media img { transform: scale(1.04); }
.service-row-num {
    position: absolute;
    right: 0; bottom: 0;
    padding: 16px 24px 14px 28px;
    background: var(--white);
    border-top-left-radius: var(--r-lg);
    font-family: var(--font-head);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--navy-800);
}
.service-row-title { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); }
.service-row-copy > p { font-size: var(--fs-lg); }
.service-row .check-list { margin: 24px 0 30px; }

/* 8. Contact --------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
.contact-info .section-lead { margin-bottom: 28px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--white);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.contact-card h3 {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.contact-card a { display: block; color: var(--ink); font-weight: 600; line-height: 1.6; word-break: break-word; }
.contact-card a:hover { color: var(--gold-700); }
.contact-card-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--r);
    background: var(--navy-800);
    color: var(--gold-400);
    flex-shrink: 0;
}
.contact-card-wa .contact-card-icon { background: var(--wa); color: var(--white); }

.branch-card {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--r);
    background: linear-gradient(135deg, rgba(242, 154, 31, .1), rgba(242, 154, 31, .03));
    border: 1px solid rgba(242, 154, 31, .35);
}
.branch-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--r);
    background: var(--gold-grad);
    color: var(--navy-950);
    flex-shrink: 0;
}
.branch-label { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.branch-label a { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.branch-text { font-size: var(--fs-sm); }
.branch-text .link-arrow { margin-top: 8px; font-size: var(--fs-sm); }

.form-card {
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--r-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--sh-2);
    border-top: 4px solid var(--gold-500);
}
.form-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); margin-bottom: 6px; }
.form-intro { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 24px; }
.req { color: var(--danger); }

.form-row { display: grid; gap: 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #98a2b3; }
.field input:hover, .field textarea:hover { border-color: #aab4c3; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy-600);
    box-shadow: 0 0 0 4px rgba(21, 68, 135, .12);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(192, 53, 43, .12); }
.field-error { font-size: var(--fs-xs); font-weight: 600; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { width: 100%; margin-top: 6px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn-submit.is-loading .icon { animation: pulseIcon 1s ease-in-out infinite; }
.form-note { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.form-status {
    display: none;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5;
}
.form-status.is-visible { display: flex; }
.form-status .icon { margin-top: 2px; }
.form-status.is-success { background: #e8f6ee; color: var(--success); border: 1px solid #b6e2c8; }
.form-status.is-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2bd; }
.form-status:focus { outline: none; }

.map-section { line-height: 0; background: var(--surface); }
.map-frame { width: 100%; height: clamp(320px, 40vw, 460px); border: 0; filter: grayscale(.25); }

/* 9. Footer ---------------------------------------------------------------- */
.site-footer {
    position: relative;
    background: var(--navy-950);
    color: rgba(255, 255, 255, .66);
    font-size: var(--fs-sm);
}
.footer-edge { height: 4px; background: var(--gold-grad); }
.footer-grid {
    display: grid;
    gap: 40px;
    padding-block: clamp(56px, 6vw, 88px) clamp(40px, 5vw, 64px);
}
.footer-logo {
    display: inline-flex;
    padding: 6px;
    margin-bottom: 20px;
    background: var(--white);
    border-radius: var(--r);
}
.footer-logo img { width: 176px; height: auto; border-radius: calc(var(--r) - 4px); }
.footer-brand p { max-width: 360px; }
.footer-branch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 380px;
    margin-top: 28px;
    padding: 20px 22px;
    border: 1.5px solid rgba(248, 177, 51, .55);
    border-left: 5px solid var(--gold-500);
    border-radius: var(--r);
    background: linear-gradient(135deg, rgba(242, 154, 31, .2) 0%, rgba(242, 154, 31, .06) 100%);
    box-shadow: 0 16px 36px -18px rgba(242, 154, 31, .55);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.footer-branch:hover {
    transform: translateY(-3px);
    border-color: var(--gold-400);
    box-shadow: 0 22px 44px -18px rgba(242, 154, 31, .75);
}
.footer-branch-icon {
    display: grid; place-items: center;
    width: 56px; height: 56px;
    flex-shrink: 0;
    border-radius: var(--r);
    background: var(--gold-grad);
    color: var(--navy-950);
}
.footer-branch-icon .icon { width: 28px; height: 28px; }
.footer-branch-body { display: grid; gap: 2px; line-height: 1.25; }
.footer-branch-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}
.footer-branch-name {
    font-family: var(--font-head);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--gold-300);
    transition: color .3s var(--ease);
}
.footer-branch:hover .footer-branch-name { color: var(--white); }
.footer-branch-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}
.footer-branch-url .icon { width: 15px; height: 15px; color: var(--gold-400); transition: transform .3s var(--ease); }
.footer-branch:hover .footer-branch-url .icon { transform: translate(2px, -2px); }

.footer-title {
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 32px; height: 2px;
    background: var(--gold-grad);
}
.footer-links { display: grid; gap: 4px; }
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: rgba(255, 255, 255, .7);
    transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-links a:hover { color: var(--gold-300); transform: translateX(3px); }
.footer-more { font-weight: 700; color: var(--gold-300) !important; }
.footer-more .icon { width: 15px; height: 15px; }

.footer-contact-list { display: grid; gap: 18px; }
.footer-contact-list li { display: flex; gap: 14px; }
.footer-contact-list .icon { color: var(--gold-400); margin-top: 4px; }
.footer-contact-list a { display: block; color: rgba(255, 255, 255, .82); word-break: break-word; line-height: 1.7; }
.footer-contact-list a:hover { color: var(--gold-300); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 22px;
    font-size: var(--fs-xs);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gold-300); font-weight: 600; }
.footer-bottom a:hover { color: var(--white); }

/* 10. Floating contact widget ---------------------------------------------- */
.fab-group {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fab {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px; height: 58px;
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 10px 24px -8px rgba(4, 15, 36, .45);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 30px -10px rgba(4, 15, 36, .55); }
.fab:focus-visible { outline-offset: 4px; border-radius: 50%; }
.fab-icon { width: 28px; height: 28px; }
.fab-whatsapp { background: var(--wa); color: var(--white); }
.fab-whatsapp:hover { color: var(--white); }
.fab-whatsapp::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--wa);
    z-index: -1;
    animation: fabPulse 2.8s var(--ease) infinite;
}
.fab-call { background: var(--navy-800); color: var(--gold-400); border: 2px solid var(--gold-500); }
.fab-call:hover { color: var(--gold-300); background: var(--navy-700); }
.fab-call .fab-icon { width: 24px; height: 24px; stroke-width: 2; }

.fab-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    background: var(--navy-900);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(6px, -50%);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    pointer-events: none;
}
.fab-tooltip::after {
    content: "";
    position: absolute;
    right: -5px; top: 50%;
    width: 10px; height: 10px;
    background: inherit;
    transform: translateY(-50%) rotate(45deg);
}
@media (hover: hover) and (pointer: fine) {
    .fab:hover .fab-tooltip,
    .fab:focus-visible .fab-tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
}

/* 11. Motion --------------------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes heroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
@keyframes fabPulse {
    0%   { transform: scale(1); opacity: .55; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}
@keyframes pulseIcon { 50% { opacity: .35; } }

.js .hero-anim { animation: fadeUp .9s var(--ease) both; animation-delay: var(--d, 0ms); }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .fab-whatsapp::before { display: none; }
}

/* 12. Responsive ----------------------------------------------------------- */
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight:nth-child(odd) { border-right: 1px solid var(--line); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .process-list { grid-template-columns: repeat(2, 1fr); }
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .check-list-2col { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-item-lg { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .section-head-split { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr 1fr; }
    .split-reverse .split-media { order: 2; }
    .service-row { grid-template-columns: 1.05fr 1fr; }
    .service-row-alt .service-row-media { order: 2; }
    .contact-grid { grid-template-columns: .9fr 1.1fr; }
    .cta-card { grid-template-columns: 1.3fr 1fr; align-items: center; }
    .pillar-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
    .gallery-item-lg { grid-column: auto; grid-row: span 2; }
    .gallery-item-lg img { aspect-ratio: auto; }
}

@media (min-width: 1024px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .process-list { grid-template-columns: repeat(4, 1fr); }
    .highlights-grid { grid-template-columns: repeat(4, 1fr); }
    .highlight { border-bottom: 0; border-right: 1px solid var(--line); flex-direction: column; }
    .highlight:last-child { border-right: 0; }
    .footer-grid { grid-template-columns: 1.4fr .8fr 1.1fr 1.3fr; gap: 48px; }
}

@media (min-width: 1100px) {
    .service-grid { grid-template-columns: repeat(12, 1fr); }
    .service-card { grid-column: span 3; }
    .service-card-lg { grid-column: span 6; }
    .service-card-lg .service-media { aspect-ratio: 16 / 8; }
    .service-card-lg .service-title { font-size: 1.5rem; }
    .service-card-lg .service-body p { font-size: var(--fs-base); }

    .hero-inner { grid-template-columns: 1fr auto; }
    .hero-card { display: block; }
}

/* Header: collapse navigation */
@media (max-width: 1180px) {
    .header-call { display: none; }
}

@media (max-width: 991px) {
    :root { --header-h: 104px; }
    .brand img { height: 88px; }
    .site-header.is-scrolled .brand img { height: 72px; }
    /* backdrop-filter would become the containing block for the fixed nav panel */
    .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-toggle { display: inline-block; }
    .header-actions { margin-left: auto; gap: 12px; }

    .primary-nav {
        position: fixed;
        left: 0; right: 0;
        top: var(--nav-top, var(--header-h));
        bottom: 0;
        margin: 0;
        padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }

    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link {
        display: flex;
        min-height: 58px;
        padding: 14px 4px;
        font-family: var(--font-head);
        font-size: 1.375rem;
        font-weight: 500;
        border-bottom: 1px solid var(--line);
    }
    .nav-link::after { left: 4px; right: auto; width: 28px; bottom: -1px; }

    .nav-extra { display: grid; gap: 6px; margin-top: 28px; }
    .nav-extra .btn { margin-bottom: 12px; }
    .nav-extra-link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        color: var(--ink);
        font-weight: 600;
        word-break: break-word;
    }
    .nav-extra-link .icon { color: var(--gold-600); }

    body.nav-open { overflow: hidden; }
}

@media (max-width: 767px) {
    .topbar { display: none; }
    .header-cta { display: none; }

    .hero { min-height: 0; padding-block: 64px 120px; }
    .hero-shade { background: linear-gradient(180deg, rgba(4, 15, 36, .78) 0%, rgba(6, 21, 47, .9) 100%); }
    .hero .btn-row .btn { flex: 1 1 100%; }

    .media-stack { padding-right: 0; }
    .media-inset { width: 40%; right: 12px; bottom: -24px; border-width: 4px; }

    .cta-copy .btn-row .btn { flex: 1 1 100%; }

    .fab-group { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
    .fab { width: 54px; height: 54px; }
    .fab-icon { width: 26px; height: 26px; }

    /* Keep footer text clear of the floating buttons */
    .footer-bottom-inner { flex-direction: column; padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
    .btn-lg { padding-inline: 20px; }
    .service-row-num { font-size: 1.75rem; padding: 12px 18px 10px 20px; }
}
