/* ==========================================================================
   Pretoria East Electrical Services
   Design system + site styles
   Palette taken from the company logo: deep navy + electric gold
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #081428;
  --navy-850: #0B1B33;
  --navy-800: #0F2545;
  --navy-700: #16325C;
  --navy-600: #1E4176;
  --gold: #FFC629;
  --gold-600: #F0B10D;
  --gold-700: #D69A00;
  --gold-soft: #FFF4D6;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-25: #FAFBFC;
  --gray-50: #F4F6F9;
  --gray-100: #EAEEF4;
  --gray-200: #D8DEE8;
  --gray-300: #B9C2D1;
  --ink: #16203A;
  --muted: #5B6780;

  /* Status */
  --danger: #D93A3A;
  --success: #1B9E5A;

  /* Type */
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  /* Space + shape */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 26, 48, .06), 0 1px 3px rgba(16, 26, 48, .08);
  --shadow: 0 4px 12px rgba(16, 26, 48, .07), 0 2px 4px rgba(16, 26, 48, .05);
  --shadow-lg: 0 18px 40px rgba(11, 27, 51, .14);
  --container: 1200px;
  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { font-weight: 700; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--navy-900);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(56px, 4vw + 34px, 96px) 0; }
.section--tight { padding: clamp(40px, 3vw + 24px, 68px) 0; }
.section--gray { background: var(--gray-50); }
.section--navy { background: var(--navy-800); color: #DCE4F0; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 760px; margin: 0 auto clamp(32px, 3vw, 52px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.section--navy .section-head p { color: #B4C2D8; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .7em;
}
.section--navy .eyebrow { color: var(--gold); }

.section-head h2::after {
  content: "";
  display: block;
  width: 62px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 18px auto 0;
}
.section-head--left h2::after { margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: inherit; font-size: .97rem; font-weight: 700; line-height: 1;
  padding: 15px 26px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 4px 14px rgba(255, 198, 41, .34); }
.btn-gold:hover { background: var(--gold-600); color: var(--navy-900); box-shadow: 0 8px 22px rgba(255, 198, 41, .42); }

.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 198, 41, .07); }

.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }

.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.03rem; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #A9B8D0;
  font-size: .84rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; }
.topbar-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: 7px; margin: 0; }
.topbar-list svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.topbar a { color: #CBD6E8; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.topbar-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 198, 41, .14);
  color: var(--gold);
  font-weight: 700; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; letter-spacing: .02em;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 198, 41, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255, 198, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 198, 41, 0); }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 10px 30px rgba(8, 20, 40, .35); background: rgba(15, 37, 69, .97); backdrop-filter: blur(8px); }
.header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; flex: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.11rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  display: block; padding: 10px 13px; border-radius: 7px;
  color: #D3DDEC; font-size: .93rem; font-weight: 600;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; background: var(--gold); border-radius: 2px;
}

/* Dropdown */
.has-drop { position: relative; }
.drop-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; cursor: pointer;
  padding: 10px 13px; border-radius: 7px; color: #D3DDEC; font-size: .93rem; font-weight: 600; }
.drop-toggle:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.drop-toggle svg { width: 11px; height: 11px; transition: transform .2s var(--ease); }
.has-drop.is-open .drop-toggle { color: var(--gold); }
.has-drop.is-open .drop-toggle svg { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 290px; padding: 9px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-drop.is-open .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-size: .91rem; font-weight: 600;
}
.drop-menu a:hover { background: var(--gray-50); color: var(--navy-700); }
.drop-menu a[aria-current="page"] { color: var(--navy-700); background: var(--gold-soft); }
.drop-menu a[aria-current="page"]::after { display: none; }
.drop-menu svg { width: 18px; height: 18px; color: var(--gold-700); flex: none; }

.header-cta { flex: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: rgba(255, 255, 255, .09); border: 0; border-radius: 9px;
  color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Photograph sits behind a navy wash that is heaviest on the left, where the
     headline sits, and lightest on the right so the electrician stays visible. */
  background:
    linear-gradient(100deg,
      rgba(8, 20, 40, .97) 0%,
      rgba(9, 23, 44, .93) 30%,
      rgba(11, 27, 51, .74) 50%,
      rgba(13, 32, 60, .42) 68%,
      rgba(15, 37, 69, .26) 100%),
    var(--navy-850) url("../img/hero-dbboard.jpg") center right / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(400px, 34vw, 520px);
  padding: clamp(58px, 5vw, 96px) 0 clamp(20px, 2vw, 34px);
}
/* The right-hand space is deliberately left empty so the electrician and the
   distribution board in the photograph stay uncovered. */
.hero-copy { max-width: 620px; }
.hero h1 { color: var(--white); margin-bottom: .42em; }
.hero h1 .hl { color: var(--gold); }
.hero-lead { font-size: clamp(1rem, .95rem + .3vw, 1.16rem); color: #DCE5F2; max-width: 540px; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 34px; }

.hero-visual { position: relative; align-self: end; }

/* Trust strip */
.trust-strip {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  margin-top: clamp(24px, 3vw, 40px);
}
.trust-item { display: flex; align-items: center; gap: 11px; font-size: .93rem; font-weight: 700; color: #E4EBF6; }
.trust-item svg { width: 21px; height: 21px; color: var(--gold); flex: none; }

/* ---------- Feature cards ---------- */
/* No top padding here so the negative margin below can lift the cards up over
   the bottom edge of the hero photograph. */
.features-section { padding-top: 0; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: -54px; position: relative; z-index: 5;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--gold); color: var(--navy-900);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin-bottom: .35em; font-size: 1.06rem; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); }
.service-card .svc-icon {
  width: 56px; height: 56px; margin-bottom: 18px;
  color: var(--navy-700);
}
.service-card h3 { margin-bottom: .45em; }
.service-card h3 a { color: var(--ink); }
.service-card:hover h3 a { color: var(--navy-700); }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .9rem; color: var(--navy-700); margin-top: 4px;
}
.service-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ---------- Split / Why us ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: clamp(30px, 4vw, 66px);
}
.split--reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-800);
}
.split-media svg { width: 100%; height: auto; display: block; }
.split-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Photo panels fill the full height of the row so the image block squares up
   with the text column beside it instead of floating short. */
.split-media--photo { align-self: stretch; min-height: 340px; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li {
  position: relative; padding-left: 34px; margin-bottom: 13px;
  font-size: .99rem; color: var(--ink);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D69A00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--navy .check-list li { color: #D6DFEE; }
.section--navy .check-list li::before { background-color: rgba(255, 198, 41, .16); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { text-align: center; padding: 6px 4px; border-right: 1px solid var(--gray-100); }
.stat:last-child { border-right: 0; }
.stat-icon { width: 30px; height: 30px; margin: 0 auto 9px; color: var(--gold-700); }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat-label { font-size: .77rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.section--navy .stat { border-color: rgba(255, 255, 255, .12); }
.section--navy .stat-value { color: var(--white); }
.section--navy .stat-label { color: #A9B8D0; }
.section--navy .stat-icon { color: var(--gold); }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.area-card {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-100);
  font-weight: 700; font-size: .95rem; color: var(--ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.area-card svg { width: 18px; height: 18px; color: var(--gold-700); flex: none; }
.area-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--navy-700); }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 28px 26px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 3px; margin-bottom: 15px; }
.stars svg { width: 17px; height: 17px; color: var(--gold); }
.testimonial blockquote { margin: 0 0 20px; font-size: 1rem; color: var(--ink); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold);
  font-weight: 800; font-size: 1rem; letter-spacing: -.02em;
}
.testimonial-name { font-weight: 700; font-size: .94rem; }
.testimonial-loc { font-size: .84rem; color: var(--muted); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding-top: 8px; }
.process-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.06rem; margin-bottom: 16px;
  position: relative; z-index: 2;
}
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: 46px; right: -24px;
  height: 2px; background: repeating-linear-gradient(90deg, var(--gray-200) 0 7px, transparent 7px 14px);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.process-step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 1.04rem; font-weight: 700; color: var(--ink); text-align: left;
  padding: 21px 0;
}
.faq-q:hover { color: var(--navy-700); }
.faq-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gray-50); display: grid; place-items: center; transition: background-color .2s var(--ease), transform .25s var(--ease); }
.faq-icon svg { width: 13px; height: 13px; color: var(--navy-700); }
.faq-item.is-open .faq-icon { background: var(--gold); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.faq-a-inner { padding: 0 46px 22px 0; color: var(--muted); }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 12% 50%, rgba(30, 65, 118, .8), transparent 65%),
    linear-gradient(120deg, var(--navy-850), var(--navy-700));
  color: var(--white);
  padding: clamp(38px, 3.5vw, 58px) 0;
}
.cta-band .container { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-bolt {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center;
}
.cta-bolt svg { width: 28px; height: 28px; }
.cta-text { flex: 1; min-width: 260px; }
.cta-text h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); margin-bottom: .2em; color: var(--white); }
.cta-text p { margin: 0; color: #B9C7DC; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3vw, 38px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 198, 41, .18);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field-hint { font-size: .8rem; color: var(--muted); }
.form-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: .93rem; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #E6F6ED; color: #12673C; border: 1px solid #B7E3C9; }
.form-status--err { background: #FCEBEB; color: #9B2222; border: 1px solid #F2C4C4; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact info cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 26px 24px; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.contact-card .feature-icon { margin-inline: auto; }
.contact-card h3 { font-size: 1.03rem; margin-bottom: .3em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.contact-card a { font-weight: 700; color: var(--navy-700); font-size: 1.02rem; }
.contact-card a:hover { color: var(--gold-700); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(760px 380px at 82% 22%, rgba(30, 65, 118, .8), transparent 64%),
    linear-gradient(135deg, var(--navy-850), var(--navy-700));
  color: var(--white);
  padding: clamp(44px, 4vw, 76px) 0 clamp(48px, 4vw, 78px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 78% 40%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 78% 40%, #000 5%, transparent 72%);
}
.page-hero .container { position: relative; }
.page-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3.1rem); }
.page-hero p { color: #C1CFE4; font-size: 1.07rem; max-width: 620px; }
.page-hero .hero-actions { margin-bottom: 0; }

.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: #93A5C2; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; margin: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: #55698C; }
.breadcrumb a { color: #B7C6DE; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.2rem; }
.prose p, .prose li { color: #37405A; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--gold);
  transform: rotate(45deg);
}

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 4vw, 60px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 20px; }
.sidebar-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm);
}
.sidebar-card--navy { background: var(--navy-800); border-color: var(--navy-700); color: #C6D3E7; }
.sidebar-card--navy h3 { color: var(--white); }
.sidebar-card h3 { font-size: 1.06rem; margin-bottom: .7em; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin: 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-list li:last-child { border-bottom: 0; }
.sidebar-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; font-size: .93rem; font-weight: 600; color: var(--ink);
}
.sidebar-list a:hover { color: var(--navy-700); }
.sidebar-list a[aria-current="page"] { color: var(--gold-700); }
.sidebar-list svg { width: 14px; height: 14px; color: var(--gray-300); flex: none; }
.sidebar-list a:hover svg { color: var(--gold-700); }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 22px; margin: 28px 0;
}
.callout svg { width: 24px; height: 24px; color: var(--gold-700); flex: none; margin-top: 2px; }
.callout p { margin: 0; font-size: .96rem; color: #4A3E14; }
.callout strong { color: #33290A; }

.price-note {
  display: flex; align-items: center; gap: 14px;
  background: var(--gray-50); border: 1px dashed var(--gray-200);
  border-radius: var(--radius); padding: 18px 20px;
  font-size: .94rem; color: var(--muted);
}
.price-note svg { width: 22px; height: 22px; color: var(--navy-700); flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-850); color: #9FB0CA; font-size: .93rem; padding-top: clamp(46px, 4vw, 68px); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(26px, 3vw, 46px); padding-bottom: 40px;
}
.footer h4 {
  color: var(--white); font-size: .93rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1.25em;
}
.footer p { color: #93A5C2; }
.footer .brand { margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .6em; }
.footer-list a { color: #A9B9D2; }
.footer-list a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: .85em; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact a { color: #C6D3E7; font-weight: 600; }
.footer-contact a:hover { color: var(--gold); }
.hours-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); }
.hours-row:last-child { border-bottom: 0; }
.hours-row span:last-child { color: var(--gold); font-weight: 700; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #C6D3E7;
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-3px); }
.social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 20px 0; display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: #7E90AE;
}
.footer-bottom a { color: #93A5C2; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Floating call bar (mobile) ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 1px;
  background: rgba(11, 27, 51, .16);
  box-shadow: 0 -6px 22px rgba(8, 20, 40, .22);
}
.call-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 10px; font-weight: 800; font-size: .95rem;
}
.call-bar svg { width: 18px; height: 18px; }
.call-bar .cb-call { background: var(--gold); color: var(--navy-900); }
.call-bar .cb-wa { background: #1FA855; color: var(--white); }

/* ---------- Reveal animation ----------
   Content is visible by default. The hidden-then-animate state only applies
   once the inline head script confirms JS is running, so a script failure can
   never leave the page blank. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .header .container { gap: 12px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 120;
    width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-850);
    padding: 84px 18px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    box-shadow: -14px 0 40px rgba(8, 20, 40, .4);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 13px 14px; font-size: 1rem; border-radius: 9px; }
  .nav a[aria-current="page"]::after { display: none; }
  .has-drop { display: block; }
  .drop-toggle { width: 100%; justify-content: space-between; padding: 13px 14px; font-size: 1rem; }
  .drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none;
    min-width: 0; padding: 0 0 6px 12px;
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .has-drop.is-open .drop-menu { max-height: 640px; }
  .drop-menu a { color: #B9C7DC; font-size: .94rem; padding: 10px 12px; }
  .drop-menu a:hover, .drop-menu a[aria-current="page"] { background: rgba(255, 255, 255, .07); color: var(--gold); }
  .drop-menu svg { color: var(--gold); }

  .nav-backdrop {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(8, 20, 40, .6);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  /* Narrow viewports: swap to the tighter crop and darken the wash, since the
     copy now sits over the full width of the image rather than beside it. */
  .hero {
    background:
      linear-gradient(180deg, rgba(8, 20, 40, .93) 0%, rgba(9, 23, 44, .88) 52%, rgba(11, 27, 51, .93) 100%),
      var(--navy-850) url("../img/hero-dbboard-mobile.jpg") center 22% / cover no-repeat;
  }
  .hero-inner { min-height: 0; padding-top: 44px; }
  .hero-copy { max-width: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  /* Single column: let the photo keep its own height rather than stretching to
     a row it now shares with nothing, which would leave a strip below it. */
  .split-media--photo { align-self: auto; min-height: 0; }
  .split-media--photo img { height: auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .process-step:nth-child(2)::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .call-bar { display: flex; }
  body { padding-bottom: 54px; }
}

@media (max-width: 720px) {
  .topbar-list li:not(:first-child) { display: none; }
  .features { grid-template-columns: 1fr; margin-top: -34px; }
  .services-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat:nth-child(2) { border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step::after { display: none !important; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-band .container { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 420px) {
  .areas-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; }
}

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

@media print {
  .header, .topbar, .call-bar, .cta-band, .nav-toggle, .hero-actions { display: none !important; }
  body { color: #000; }
  .hero, .page-hero, .footer { background: none !important; color: #000; }
  .hero h1, .page-hero h1, .footer h4 { color: #000; }
}
