/* ————— Aura Electrical Automation ————— */

:root {
  --navy: #1B2B5E;
  --navy-deep: #0F1C42;
  --navy-band: #16244F;
  --ink: #232A3B;
  --muted: #5B6478;
  --orange: #F0731F;
  --orange-deep: #D95E0E;
  --steel: #F4F6FA;
  --line: #DDE3EE;
  --radius: 3px;
  --display: "Chakra Petch", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

img, svg, iframe { max-width: 100%; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

section { scroll-margin-top: 84px; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; }

h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin-bottom: 16px; }

p + p { margin-top: 14px; }

a { color: var(--navy); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ————— eyebrow ————— */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--orange);
  margin-right: 10px;
  vertical-align: 1px;
}
.eyebrow-light { color: #A8B4D6; }

/* ————— buttons ————— */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); padding: 10.5px 20.5px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ————— header ————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.lockup img { display: block; }
.lockup-text { display: flex; flex-direction: column; line-height: 1.05; }
.lockup-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.lockup-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { color: var(--orange-deep); }
.header-cta { white-space: nowrap; }

.nav-toggle, .nav-burger { display: none; }

/* ————— hero ————— */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--orange); }
@media (min-width: 881px) { .hero h1 em { white-space: nowrap; } }
.hero-sub { font-size: 18.5px; color: var(--muted); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ————— hero SLD (signature) ————— */
.hero-sld { justify-self: center; text-align: center; }
.hero-sld svg { max-width: 100%; height: auto; }
.sld-bus, .sld-box, .sld-branch { stroke: var(--navy); }
.sld-bus { stroke-width: 2; }
.sld-box { fill: #fff; stroke-width: 1.6; }
.sld-branch { stroke-width: 1.4; stroke-dasharray: 5 4; }
.sld-node { fill: var(--orange); stroke: none; }
.sld-tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  fill: var(--navy);
  dominant-baseline: middle;
}
.sld-motor { font-size: 22px; font-weight: 700; }
.sld-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  fill: var(--muted);
  dominant-baseline: middle;
}
.sld-caption {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* draw-in on load */
@media (prefers-reduced-motion: no-preference) {
  .sld-bus {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: sld-draw 1.1s ease-out forwards;
  }
  .sld-item { opacity: 0; animation: sld-fade .5s ease-out forwards; }
  .i1 { animation-delay: .15s; }
  .i2 { animation-delay: .3s; }
  .i3 { animation-delay: .45s; }
  .i4 { animation-delay: .6s; }
  .i5 { animation-delay: .75s; }
  .i6 { animation-delay: .9s; }
}
@keyframes sld-draw { to { stroke-dashoffset: 0; } }
@keyframes sld-fade { to { opacity: 1; } }

/* ————— sections ————— */
.section { padding: 76px 0; }
.section-steel { background: var(--steel); border-bottom: 1px solid var(--line); }

/* ————— about ————— */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.about-grid p { color: var(--muted); max-width: 36em; }
.about-grid h2 { margin-bottom: 18px; }

.nameplate {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.nameplate > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.nameplate > div:last-child { border-bottom: none; }
.nameplate dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.nameplate dd { font-size: 15.5px; font-weight: 500; color: var(--navy); }

/* ————— services ————— */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--navy); transform: translateY(-2px); }
.card-tag {
  background: var(--navy);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 20px;
}
.card-body { padding: 20px; }
.card-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.card-body ul { list-style: none; }
.card-body li {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0 8px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.card-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px; height: 8px;
  background: var(--orange);
}

/* ————— why (navy band) ————— */
.section-navy { background: var(--navy-band); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 10px;
}
.why-item h3 { color: #fff; font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.why-item p { color: #B9C3DE; font-size: 15px; line-height: 1.6; }

/* ————— contact ————— */
.contact-lead { color: var(--muted); max-width: 38em; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  margin-top: 38px;
  align-items: start;
}
.contact-rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.contact-rows > div:last-child { border-bottom: 1px solid var(--line); }
.contact-rows dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-rows dd { font-size: 16.5px; font-weight: 500; overflow-wrap: anywhere; }
.contact-rows a { color: var(--navy); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.contact-rows a:hover { color: var(--orange-deep); }
.contact-map iframe {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
}

/* ————— footer ————— */
.site-footer {
  background: var(--navy-deep);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #2A3E85 0 50%, var(--orange) 50% 100%) 1;
  color: #B9C3DE;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 36px;
}
.footer-lockup {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #fff;
}
.footer-lockup span {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-left: 6px;
}
.footer-line { margin-top: 8px; }
.footer-contact { font-style: normal; line-height: 1.8; text-align: right; overflow-wrap: anywhere; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { color: var(--orange); }
.footer-legal { border-top: 1px solid #243362; }
.footer-legal p { padding: 18px 0; font-size: 13.5px; color: #8A96BC; }

/* ————— responsive ————— */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
  .hero-sld { justify-self: start; }
  .hero-sld svg { width: 250px; height: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  .header-inner { gap: 14px; }
  .header-cta { display: none; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--navy);
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-contact { text-align: left; }
}
