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

:root {
  --navy: #1B2B5E;
  --navy-deep: #0F1C42;
  --navy-band: #16244F;
  --ink: #1A2030;
  --muted: #475066;        /* body-copy grey, ≥7:1 on white */
  --orange: #F0731F;
  --orange-deep: #C9560B;  /* orange text on white, readable contrast */
  --yellow: #F5C400;       /* hazard stripe + accents on navy only */
  --steel: #F2F4F7;
  --steel-dark: #C9D0DB;
  --line: #D9DFE8;
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
}

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

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

html { scroll-behavior: smooth; }

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

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

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

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

h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 12px; }

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

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

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

/* hazard stripe — yellow/black band */
.hazard {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, #111 12px 24px);
}

/* ————— section label ————— */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--orange-deep);
  margin-bottom: 8px;
}
.tag span {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 3px;
}
.tag-dark { color: var(--yellow); }
.tag-dark span { background: var(--yellow); color: #111; }

/* ————— buttons ————— */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 17px;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  text-align: center;
  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: 2px solid var(--navy); color: var(--navy); padding: 10px 20px; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ————— header ————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.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.1; }
.lockup-name {
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.05em;
  color: #fff;
}
.lockup-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  white-space: nowrap;
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  color: #E4E8F2;
}
.site-nav a:hover { color: var(--yellow); }

/* one orange pill, two tap targets */
.header-cta {
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: var(--orange);
  border-radius: 3px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}
.header-cta span { padding-left: 14px; }
.header-cta a { color: #fff; text-decoration: none; padding: 10px 12px; transition: background-color .15s; }
.header-cta a + a { border-left: 1px solid rgba(255, 255, 255, 0.5); }
.header-cta a:last-child { border-radius: 0 3px 3px 0; }
.header-cta a:hover { background: var(--orange-deep); }

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

/* ————— hero ————— */
.hero { background: var(--steel); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero h1 {
  font-size: clamp(34px, 4.8vw, 52px);
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--orange-deep); }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 34em; }
/* calls on row one, WhatsApp on row two */
.hero-ctas { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 14px; margin-top: 28px; }

/* ————— nameplate (steel plate, screw in each corner) ————— */
.nameplate {
  --screw: radial-gradient(circle at 35% 35%, #fff, #8E99AB 70%);
  background:
    var(--screw) top 8px left 8px / 11px 11px no-repeat,
    var(--screw) top 8px right 8px / 11px 11px no-repeat,
    var(--screw) bottom 8px left 8px / 11px 11px no-repeat,
    var(--screw) bottom 8px right 8px / 11px 11px no-repeat,
    linear-gradient(160deg, #FFFFFF, #E6EAF0);
  border: 2px solid #9AA4B5;
  box-shadow: 0 4px 14px rgba(15, 28, 66, 0.12);
  padding: 26px 28px 18px;
}
.nameplate-head {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.nameplate > div:not(.nameplate-head) {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.nameplate > div:last-child { border-bottom: none; }
.nameplate dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.nameplate dd { font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink); }

/* ————— sections ————— */
.section { padding: 72px 0; }
.section-steel { background: var(--steel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 40em; }

/* ————— products ————— */
/* 6-col track: sheets span 2 (three across), tall posters span 3 (two across) */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}
.shot { grid-column: span 2; }
.shot-wide { grid-column: span 3; }
.shot a {
  display: block;
  background: #fff;
  border: 1px solid var(--steel-dark);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.shot a:hover { border-color: var(--navy); transform: translateY(-2px); }
/* posters carry text — never crop, keep native aspect */
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 10px;
}

/* ————— lightbox: native <dialog>, scroll-snap gives swipe ————— */
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  padding: 0; border: 0; margin: 0;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; /* dvh: clear of iOS Safari toolbar */
  background: var(--navy-deep);
}
.lb-track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; margin: 0; padding: 64px 16px 16px;
}
.lb-track img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); object-fit: contain; }
.lb-track img { cursor: zoom-in; }
/* zoomed: sheet at full resolution, figure scrolls to pan; contain stops panning from flipping slides */
.lb-track figure.zoomed {
  position: relative; overflow: auto; overscroll-behavior: contain;
  align-items: flex-start; justify-content: flex-start;
}
.zoomed img { max-width: none; max-height: none; margin: 0 auto; cursor: grab; }
.dragging img { cursor: grabbing; }
.lb-track figcaption { color: #fff; font-size: 18px; font-weight: 600; text-align: center; }
.lb-btn {
  position: fixed; z-index: 1;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--orange); color: #fff; font: 700 30px/1 var(--font); cursor: pointer;
}
.lb-btn:hover { background: var(--orange-deep); }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ————— services ————— */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.card { background: #fff; border: 1px solid var(--steel-dark); }
.card-tag {
  background: var(--navy);
  color: #fff;
  font-size: 19px;
  padding: 13px 18px;
  border-bottom: 3px solid var(--orange);
}
.card-body { padding: 18px 18px 8px; }
.card-body p { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.card-body ul { list-style: none; }
.card-body li {
  font-size: 16.5px;
  font-weight: 500;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.card-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 9px; height: 9px;
  background: var(--orange);
}

/* ————— about ————— */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p { color: var(--muted); max-width: 36em; }

/* ————— 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: 20px; margin-bottom: 8px; }
.why-item h3::before {
  content: "";
  display: block;
  width: 36px; height: 4px;
  background: var(--yellow);
  margin-bottom: 12px;
}
.why-item p { color: #DCE2EE; font-size: 16.5px; }

/* ————— contact ————— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  margin-top: 36px;
  align-items: start;
}
.contact-rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.contact-rows > div:last-child { border-bottom: 1px solid var(--line); }
.contact-rows dt {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.contact-rows dd { font-size: 17.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(--steel-dark);
  display: block;
}

/* ————— footer ————— */
.site-footer {
  background: var(--navy-deep);
  color: #D3DAE8;
  font-size: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 36px;
}
.footer-lockup {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: #fff;
}
.footer-lockup span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  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(--yellow); }
.footer-legal { border-top: 1px solid #2A3A6B; }
.footer-legal p { padding: 18px 0; font-size: 14.5px; color: #AEB8D2; }

/* ————— responsive ————— */
@media (max-width: 960px) {
  /* call pill leaves the crowded header and becomes a bottom bar, one tap away while scrolling */
  .header-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    justify-content: center; border-radius: 0;
  }
  .header-cta a { padding: 14px 16px; }
  .header-cta a:last-child { border-radius: 0; }
  body { padding-bottom: 54px; } /* bar height, so it never covers the footer */
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 44px; }
  .nameplate { max-width: 480px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { gap: 16px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .section { padding: 56px 0; }
}

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

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    border: 1px solid #3A4A7A;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: #fff;
    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: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid #3A4A7A;
    padding: 8px 24px 16px;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid #2A3A6B; }
  .site-nav a:last-child { border-bottom: none; }

  .gallery { grid-template-columns: 1fr; }
  .shot, .shot-wide { grid-column: auto; }
}

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