/* ==========================================================================
   ASD GROUP SDN. BHD. — Corporate site stylesheet (Revamp 2026)
   Palette: navy ink + ASD maroon accent + gold detail
   ========================================================================== */

:root {
  --ink: #0B1220;          /* primary dark */
  --ink-2: #111B2E;
  --navy: #1E293B;
  --slate: #475569;        /* muted text (AA on white) */
  --line: #E2E8F0;
  --mist: #F5F7FA;
  --white: #FFFFFF;
  --maroon: #8B1A1A;       /* ASD brand accent */
  --maroon-dark: #6B1212;
  --gold: #C9A24A;
  --success: #15803D;
  --danger: #B91C1C;

  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg: 0 20px 48px rgba(11, 18, 32, .14);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); box-shadow: 0 8px 20px rgba(139, 26, 26, .3); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #CBD5E1; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar-items { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-items a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
@media (max-width: 860px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(11,18,32,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex: none; }
.brand img { height: 48px; width: auto; }
.brand-text strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.brand-text small { display: block; white-space: nowrap; font-size: .72rem; color: var(--slate); letter-spacing: .12em; text-transform: uppercase; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; white-space: nowrap;
  font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--navy);
  border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--maroon); background: #FBF3F3; }
.main-nav .btn { margin-left: .5rem; color: #fff; }
.main-nav .btn:hover { color: #fff; background: var(--maroon-dark); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 20px 1.25rem; gap: 0; }
  .main-nav a { padding: 0 .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .main-nav .btn { margin: 1rem 0 0; border-radius: 999px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, rgba(11,18,32,.94) 0%, rgba(11,18,32,.82) 45%, rgba(11,18,32,.45) 100%), url('../img/hero.jpg') center/cover no-repeat, var(--ink);
}
.hero .container { position: relative; padding-top: 96px; padding-bottom: 88px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem;
  border: 1px solid rgba(201,162,74,.5); border-radius: 999px;
  color: #F3E3BA; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; margin: 1.1rem 0 1rem; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.15rem; color: #CBD5E1; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.cred-strip { background: var(--ink-2); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 1.4rem 1.2rem; display: flex; gap: .9rem; align-items: center; border-left: 1px solid rgba(255,255,255,.08); }
.cred:first-child { border-left: 0; }
.cred svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.cred strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.cred span { font-size: .85rem; color: #94A3B8; }
@media (max-width: 860px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(3) { border-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.bg-ink .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-top: .75rem; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.bg-ink .section-head p { color: #94A3B8; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-stamp {
  position: absolute; right: -18px; bottom: -22px; background: var(--maroon); color: #fff;
  padding: 1.1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 220px;
}
.about-stamp strong { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.about-stamp span { font-size: .88rem; color: #F5D0D0; }
.about-copy p { color: var(--slate); }
.about-copy .intro { font-size: 1.12rem; color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--maroon); }
.stat span { font-size: .88rem; color: var(--slate); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stamp { right: 12px; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s;
}
.service:hover { border-color: #CBD5E1; box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: #FBF3F3; color: var(--maroon); display: grid; place-items: center; margin-bottom: 1.1rem; }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; }
.service p { color: var(--slate); font-size: .98rem; }
.service ul { list-style: none; padding: 0; margin: .25rem 0 1.25rem; display: grid; gap: .4rem; }
.service li { display: flex; gap: .5rem; font-size: .93rem; color: var(--navy); }
.service li svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 4px; }
.service details { margin-top: auto; border-top: 1px solid var(--line); padding-top: .9rem; }
.service summary { cursor: pointer; font-family: var(--font-head); font-size: .9rem; font-weight: 500; color: var(--maroon); list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; }
.service summary::-webkit-details-marker { display: none; }
.service summary svg { width: 16px; height: 16px; transition: transform .2s; }
.service details[open] summary svg { transform: rotate(180deg); }
.service details p { margin-top: .75rem; font-size: .95rem; }
.service .service-cta { margin-top: .5rem; font-weight: 600; color: var(--maroon); display: inline-flex; gap: .35rem; align-items: center; }
.service .service-cta svg { width: 16px; height: 16px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Meter CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #F5D0D0; margin: 0; }
.cta-band .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Accreditations ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cert-thumb { aspect-ratio: 3/4; background: var(--mist); border: 0; padding: 12px; cursor: zoom-in; position: relative; }
.cert-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cert-thumb .zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(11,18,32,.75); color: #fff; display: grid; place-items: center; }
.cert-thumb .zoom svg { width: 18px; height: 18px; }
.cert-body { padding: 18px 20px 22px; }
.cert-body h3 { font-size: 1rem; letter-spacing: .02em; }
.cert-body p { font-size: .92rem; color: var(--slate); margin-bottom: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #FBF3F3; color: var(--maroon); }
@media (max-width: 1000px) { .cert-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.leader img { aspect-ratio: 1/1; object-fit: cover; object-position: top; width: 100%; background: #1E293B; }
.leader-body { padding: 22px 24px 26px; }
.leader-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.leader-role { color: var(--gold); font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.leader-body p { color: #94A3B8; font-size: .95rem; margin: .9rem 0 0; }
.leader-body details summary { cursor: pointer; color: #E2E8F0; font-size: .9rem; margin-top: .75rem; min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 960px) { .leaders { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } .leader { flex-direction: row; } .leader img { width: 160px; aspect-ratio: auto; } }
@media (max-width: 560px) { .leader { flex-direction: column; } .leader img { width: 100%; aspect-ratio: 1/1; } }

.structure { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.structure blockquote { margin: 0; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.5; color: #E2E8F0; border-left: 3px solid var(--gold); padding-left: 1.25rem; }
.structure button { background: #fff; border: 0; border-radius: var(--radius); padding: 12px; cursor: zoom-in; display: flex; justify-content: center; }
.structure button img { max-height: 460px; width: auto; }
@media (max-width: 860px) { .structure { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partner { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy); padding: .7rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--ink); color: #fff; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover img { transform: scale(1.04); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,0) 35%, rgba(11,18,32,.92) 100%); }
.project-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 1; }
.project-body span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.project-body h3 { font-size: 1.1rem; margin: .3rem 0 .15rem; }
.project-body p { font-size: .88rem; color: #CBD5E1; margin: 0; }
@media (max-width: 1000px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .projects { grid-template-columns: 1fr; } .project { aspect-ratio: 4/3; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.news-card:hover { box-shadow: var(--shadow); border-color: #CBD5E1; }
.news-card .cover { aspect-ratio: 16/9; background: var(--mist) center/cover no-repeat; display: block; }
.news-card .cover.placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%); }
.news-card .cover.placeholder img { width: 72px; opacity: .9; }
.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: .6rem; align-items: center; font-size: .82rem; color: var(--slate); margin-bottom: .6rem; flex-wrap: wrap; }
.cat { font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 6px; background: #FBF3F3; color: var(--maroon); }
.cat.program { background: #EEF4FF; color: #1D4ED8; }
.cat.projek, .cat.project { background: #ECFDF3; color: var(--success); }
.news-card h3 { font-size: 1.12rem; }
.news-card h3 a:hover { color: var(--maroon); }
.news-card p { color: var(--slate); font-size: .95rem; }
.news-card .more { margin-top: auto; font-weight: 600; color: var(--maroon); display: inline-flex; gap: .35rem; align-items: center; font-size: .95rem; }
.news-card .more svg { width: 16px; height: 16px; }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--slate); padding: 2.5rem; border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: var(--font-head); font-size: .88rem; color: var(--navy); transition: .2s; }
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(139,26,26,.25); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .75rem; }
.page-hero p { color: #94A3B8; max-width: 62ch; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .88rem; color: #94A3B8; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: -40px 0 2.5rem; box-shadow: var(--shadow-lg); position: relative; z-index: 2; background: var(--mist); }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #1E293B; }
.article-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-content h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.article-content ul, .article-content ol { padding-left: 1.25rem; }
.article-content li { margin-bottom: .4rem; }
.article-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.article-content a { color: var(--maroon); text-decoration: underline; }
.article-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--maroon); background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.share { display: flex; gap: .5rem; align-items: center; color: var(--slate); font-size: .92rem; }
.share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .2s; }
.share a:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-top: .75rem; }
.contact-info > p { color: var(--slate); }
.info-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; background: #FBF3F3; color: var(--maroon); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list small { display: block; color: var(--slate); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.info-list a:hover { color: var(--maroon); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.3rem; }
.form-card > p { color: var(--slate); font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(139,26,26,.15); }
.field .err { display: none; color: var(--danger); font-size: .85rem; margin-top: .3rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; color: var(--slate); margin-top: .75rem; }
.form-status { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-size: .95rem; }
.form-status.ok { display: block; background: #ECFDF3; color: #14532D; border: 1px solid #BBF7D0; }
.form-status.fail { display: block; background: #FEF2F2; color: #7F1D1D; border: 1px solid #FECACA; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-card { padding: 22px; } }

/* ---------- Meter page ---------- */
.steps-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2rem; }
.step-how { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 16px; font-size: .95rem; color: #CBD5E1; }
.step-how b { display: block; color: var(--gold); font-family: var(--font-head); margin-bottom: .2rem; }
@media (max-width: 860px) { .steps-how { grid-template-columns: 1fr 1fr; } }

.tabs { display: inline-flex; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 2rem; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 0 1.3rem; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--navy); display: inline-flex; align-items: center; gap: .5rem; }
.tab svg { width: 18px; height: 18px; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.panel[hidden] { display: none; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.box h3 svg { width: 22px; height: 22px; color: var(--maroon); }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 14px; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: .75rem; }
.checklist li::before { counter-increment: c; content: counter(c); width: 36px; height: 36px; border-radius: 10px; background: #FBF3F3; color: var(--maroon); font-family: var(--font-head); font-weight: 600; display: grid; place-items: center; }
.checklist strong { display: block; }
.checklist span { color: var(--slate); font-size: .95rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; position: relative; }
.timeline li { position: relative; padding: 0 0 1.25rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--maroon); background: #fff; }
.timeline .phase { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); }
.timeline strong { display: block; }
.timeline span { color: var(--slate); font-size: .95rem; }
.notice { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; font-size: .95rem; display: flex; gap: .75rem; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.chip { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; background: var(--mist); }
.panel-cta { margin-top: 24px; display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }

/* ---------- Home: service overview cards ---------- */
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; cursor: pointer; }
.svc-card:hover { border-color: #CBD5E1; box-shadow: var(--shadow); }
.svc-card h3 { font-size: 1.15rem; }
.svc-card p { color: var(--slate); font-size: .96rem; }
.svc-card .more { margin-top: auto; font-weight: 600; color: var(--maroon); display: inline-flex; gap: .35rem; align-items: center; }
.svc-card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.svc-card:hover .more svg { transform: translateX(3px); }

/* ---------- Services page ---------- */
.svc-jump { position: sticky; top: var(--header-h); z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.svc-jump .container { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.svc-jump .container::-webkit-scrollbar { display: none; }
.svc-jump a { flex: none; display: inline-flex; align-items: center; min-height: 52px; padding: 0 .9rem; font-family: var(--font-head); font-size: .88rem; color: var(--navy); border-bottom: 2px solid transparent; white-space: nowrap; }
.svc-jump a:hover { color: var(--maroon); border-bottom-color: var(--maroon); }
.svc-list { display: grid; gap: 28px; }
.svc-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 40px; border: 1px solid var(--line); border-radius: 20px; background: #fff; scroll-margin-top: calc(var(--header-h) + 72px); }
.svc-row:nth-child(even) { background: var(--mist); }
.svc-main { position: relative; }
.svc-num { position: absolute; top: 0; right: 0; font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: #E2E8F0; line-height: 1; }
.svc-main h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.svc-main p { color: var(--slate); }
.svc-main .lead-p { color: var(--ink); font-size: 1.08rem; }
.svc-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.svc-side h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; }
.ticks svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 3px; }
.svc-actions { display: grid; gap: .6rem; }
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } .svc-num { font-size: 2.2rem; } }

/* ---------- Closing CTA (dark) ---------- */
.cta-dark { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }
.cta-dark h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: .75rem; }
.cta-dark p { color: #94A3B8; margin: 0; }
.cta-dark .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .cta-dark { grid-template-columns: 1fr; } .cta-dark .actions { justify-content: flex-start; } }

/* ---------- Contact map ---------- */
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94A3B8; padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 52px; margin-bottom: 1rem; background: #fff; border-radius: 10px; padding: 6px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 90px; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 54px; padding: 0 1.1rem 0 .9rem;
  background: #1FA855; color: #fff; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.22);
  font-family: var(--font-head); font-weight: 500; transition: background .2s;
}
.wa-float:hover { background: #178A45; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 56px; justify-content: center; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(11,18,32,.9); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: min(1100px, 100%); border-radius: 10px; background: #fff; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 22px; height: 22px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation: none !important; }
}
