/* ============================================================
   安鼎水電工程 — 共用樣式表
   風格：穩重專業／深藍深灰主色／安全黃・工業橘強調色
   ============================================================ */

:root {
  /* Brand colors */
  --navy-950: #0a1930;
  --navy-900: #0f2440;
  --navy-800: #15304f;
  --navy-700: #1c3f66;
  --navy-600: #26507f;
  --slate-700: #34404f;
  --slate-500: #5b6a7d;
  --slate-300: #9aa8bb;

  --accent-orange: #ef6c1f;
  --accent-orange-dark: #cf5811;
  --accent-yellow: #ffc021;
  --accent-yellow-dark: #e0a300;

  --danger: #d5372c;

  /* Neutrals */
  --bg: #f6f7f9;
  --bg-alt: #eef1f4;
  --card: #ffffff;
  --border: #dde2e8;
  --text: #202938;
  --text-muted: #5b6a7d;
  --text-on-dark: #eef2f7;
  --text-on-dark-muted: #aab8cb;

  /* Type */
  --font-base: "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* Spacing / layout */
  --container-w: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 25, 48, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 25, 48, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 25, 48, 0.16);

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { margin: 0 0 .6em; line-height: 1.35; font-weight: 700; color: var(--navy-900); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--accent-yellow); outline-offset: 2px; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700));
  color: var(--text-on-dark);
}
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent-orange-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
  display: inline-block;
}
.section--navy .eyebrow { color: var(--accent-yellow); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }
.section--navy .section-head p { color: var(--text-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
  min-height: 44px;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-orange-dark); box-shadow: var(--shadow-md); }

.btn--yellow { background: var(--accent-yellow); color: var(--navy-950); box-shadow: var(--shadow-sm); }
.btn--yellow:hover { background: var(--accent-yellow-dark); }

.btn--outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--outline-navy { background: transparent; border-color: var(--navy-700); color: var(--navy-800); }
.btn--outline-navy:hover { background: var(--navy-900); color: #fff; }

.btn--ghost { background: var(--bg-alt); color: var(--navy-800); }
.btn--ghost:hover { background: var(--border); }

.btn--sm { padding: 9px 18px; font-size: .88rem; min-height: 38px; }
.btn--block { width: 100%; }

/* ---------- Trust chips ---------- */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-on-dark);
}
.trust-chip svg { width: 18px; height: 18px; color: var(--accent-yellow); flex-shrink: 0; }
.trust-chip--light { background: var(--bg-alt); border-color: var(--border); color: var(--navy-800); }
.trust-chip--light svg { color: var(--accent-orange); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.topbar {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  font-size: .84rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.topbar-links a:hover { color: var(--accent-yellow); }
.topbar-links svg { width: 15px; height: 15px; }
.topbar-tag { display: flex; align-items: center; gap: 6px; color: var(--text-on-dark-muted); }
.topbar-tag svg { width: 14px; height: 14px; color: var(--accent-yellow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-yellow);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { line-height: 1.25; }
.brand-text strong { display: block; font-size: 1.12rem; font-weight: 800; color: var(--navy-950); letter-spacing: .01em; }
.brand-text span { display: block; font-size: .72rem; color: var(--text-muted); letter-spacing: .06em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .96rem;
  color: var(--slate-700);
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--navy-900); }
.main-nav a.is-active { color: var(--navy-950); background: var(--bg-alt); }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn--sm { padding: 10px 16px; }
.call-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy-900); font-weight: 700; font-size: .95rem;
}
.call-btn svg { width: 20px; height: 20px; color: var(--accent-orange); }
.call-btn small { display: block; font-weight: 500; color: var(--text-muted); font-size: .72rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy-900); }

/* ============================================================
   Sticky mobile contact bar
   ============================================================ */
.mobile-contact-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -6px 20px rgba(0,0,0,.25);
}
.mobile-contact-bar .row { display: flex; }
.mobile-contact-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px;
  font-weight: 700; font-size: .92rem;
  color: #fff;
}
.mobile-contact-bar a svg { width: 20px; height: 20px; }
.mobile-contact-bar .call { background: var(--accent-orange); }
.mobile-contact-bar .line { background: #06c755; }
.mobile-contact-bar .quote { background: var(--accent-yellow); color: var(--navy-950); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-700) 100%);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--accent-yellow); }
.hero-copy h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem);
  margin-bottom: .5em;
}
.hero-copy h1 mark {
  background: none;
  color: var(--accent-yellow);
}
.hero-copy .lead {
  color: var(--text-on-dark-muted);
  font-size: 1.08rem;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 34px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
}
.hero-stats .stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat span {
  font-size: .82rem;
  color: var(--text-on-dark-muted);
}

.hero-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.hero-panel p { color: var(--text-on-dark-muted); font-size: .9rem; margin-bottom: 18px; }
.hero-panel .trust-chips { margin-bottom: 20px; }
.hero-visual {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255,192,33,.14), rgba(239,108,31,.10)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px),
    var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted);
  text-align: center;
  border: 1px dashed rgba(255,255,255,.25);
  font-size: .82rem;
  padding: 16px;
}

/* ============================================================
   Page header (interior pages)
   ============================================================ */
.page-header {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: 56px 0 60px;
}
.page-header .breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: .84rem; color: var(--text-on-dark-muted);
  margin-bottom: 14px;
}
.page-header .breadcrumb a:hover { color: var(--accent-yellow); }
.page-header h1 { color: #fff; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-bottom: 10px; }
.page-header p { color: var(--text-on-dark-muted); max-width: 640px; margin: 0; }

/* ============================================================
   Cards / Grids
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.service-card { padding: 30px 26px; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-yellow);
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }
.service-card .tag {
  display: inline-block; margin-bottom: 14px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  color: var(--accent-orange-dark);
  background: #fdf0e6;
  padding: 4px 10px;
  border-radius: 999px;
}

.value-card { padding: 26px; text-align: center; }
.value-card .service-icon { margin: 0 auto 16px; }
.value-card h3 { font-size: 1.02rem; }
.value-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1rem; margin: 10px 0 8px; }
.step p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.testimonial .stars { color: var(--accent-yellow); margin-bottom: 12px; display: flex; gap: 3px; }
.testimonial .stars svg { width: 16px; height: 16px; }
.testimonial p.quote { font-size: .95rem; color: var(--text); margin-bottom: 16px; }
.testimonial .who { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--text-muted); }
.testimonial .who strong { color: var(--navy-900); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 46px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,192,33,.25), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  background: none; border: none;
  text-align: left;
  font-size: 1rem; font-weight: 700; color: var(--navy-900);
}
.faq-q .icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.faq-q .icon svg { width: 14px; height: 14px; color: var(--navy-800); }
.faq-item.is-open .faq-q .icon { background: var(--accent-orange); transform: rotate(45deg); }
.faq-item.is-open .faq-q .icon svg { color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a-inner { padding: 0 22px 22px; color: var(--text-muted); font-size: .93rem; }
.faq-category {
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 36px 0 14px;
}
.faq-category:first-child { margin-top: 0; }

/* ============================================================
   Portfolio
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 700; font-size: .88rem;
  color: var(--slate-700);
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange-dark); }
.filter-btn.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.case-card { overflow: hidden; }
.case-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.case-media .half {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem;
  color: var(--text-on-dark-muted);
  text-align: center;
  padding: 10px;
  position: relative;
}
.case-media .before { background: repeating-linear-gradient(135deg, #2b3746, #2b3746 10px, #333f4f 10px, #333f4f 20px); }
.case-media .after { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); }
.case-media .label {
  position: absolute; top: 10px; left: 10px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.45); color: #fff;
}
.case-media .after .label { background: var(--accent-orange); }
.case-body { padding: 20px 22px 24px; }
.case-body .tag { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--navy-800); background: var(--bg-alt); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.case-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.case-body p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.case-card[hidden] { display: none; }

/* ============================================================
   About page
   ============================================================ */
.timeline { position: relative; padding-left: 28px; border-left: 3px solid var(--border); display: flex; flex-direction: column; gap: 30px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute; left: -34.5px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-orange);
}
.timeline-item .year { font-weight: 800; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 4px; }
.timeline-item p { color: var(--text-muted); margin: 0; font-size: .93rem; }

.cert-card { padding: 24px; text-align: center; }
.cert-badge {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px dashed var(--slate-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
}
.cert-badge svg { width: 30px; height: 30px; }
.cert-card h4 { font-size: .96rem; margin-bottom: 6px; }
.cert-card p { font-size: .82rem; color: var(--text-muted); margin: 0; }

.team-card { text-align: center; padding: 26px 20px; }
.team-photo {
  width: 100px; height: 100px; margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-yellow);
}
.team-photo svg { width: 44px; height: 44px; }
.team-card h4 { margin-bottom: 2px; font-size: 1rem; }
.team-card .role { font-size: .82rem; color: var(--accent-orange-dark); font-weight: 700; margin-bottom: 10px; }
.team-card p.desc { font-size: .86rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h3 { color: #fff; font-size: 1.2rem; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin: 22px 0; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-yellow);
}
.contact-info-list .ic svg { width: 20px; height: 20px; }
.contact-info-list strong { display: block; color: #fff; font-size: .94rem; }
.contact-info-list span, .contact-info-list a { color: var(--text-on-dark-muted); font-size: .88rem; }
.contact-info-list a:hover { color: var(--accent-yellow); }
.contact-info-card .divider { height: 1px; background: rgba(255,255,255,.14); margin: 22px 0; }
.service-area-map {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255,255,255,.3);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px), var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-on-dark-muted);
  font-size: .82rem; text-align: center; padding: 16px;
}

.quote-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--navy-900); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(28,63,102,.14);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: .78rem; color: var(--text-muted); margin-top: 6px; }
.field-error { font-size: .8rem; color: var(--danger); margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-muted); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-success {
  display: none;
  align-items: flex-start; gap: 14px;
  padding: 20px; border-radius: var(--radius-md);
  background: #eefaf1; border: 1px solid #b9e8c4; color: #1c6b34;
  margin-bottom: 22px;
}
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; }
.form-success.is-visible { display: flex; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: var(--text-on-dark-muted); }
.footer-brand p { font-size: .88rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.footer-social a:hover { background: var(--accent-orange); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-col h4 { color: #fff; font-size: .96rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .88rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent-yellow); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.footer-col .contact-line svg { width: 17px; height: 17px; color: var(--accent-yellow); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding: 22px 0; font-size: .8rem;
}
.footer-bottom .legal-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom .legal-badges span { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .legal-badges svg { width: 15px; height: 15px; color: var(--accent-yellow); }

/* ============================================================
   Misc utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.back-to-top {
  position: fixed;
  right: 20px; bottom: 90px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 80;
  border: none;
}
.back-to-top.is-visible { display: flex; }
.back-to-top svg { width: 20px; height: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-950); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-panel { max-width: 480px; }
}

@media (max-width: 860px) {
  .topbar .topbar-links span.long { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-label { display: none; }
  .header-cta .btn--primary { display: none; }
  .mobile-contact-bar { display: block; }
  body { padding-bottom: 58px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .main-nav.is-open a { padding: 13px 14px; }
}

@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .grid--4, .grid--3, .grid--2, .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 34px 26px; }
  .cta-band .actions { justify-content: center; }
  .hero .container { padding: 48px 20px 64px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .case-media { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-copy h1 { font-size: 1.7rem; }
}
