/* ── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --bg:        #020808;
  --surface:   #0d1f1e;
  --teal:      #006C68;
  --teal-hover:#008a84;
  --yellow:    #FDFF00;
  --text:      #ffffff;
  --muted:     rgba(255,255,255,0.68);
  --nav-h:     120px;
}

/* ── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { display: block; max-width: 100%; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--yellow);
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
p  { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── LAYOUT ─────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
section.pad    { padding: 5rem 0; }
section.pad-sm { padding: 3rem 0; }
.section-intro { max-width: 680px; font-size: 1.05rem; }

/* ── NAV ─────────────────────────────────────────────────────────────  */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(2,8,8,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 120px;
}

/* Transparent-nav state — header starts clear, JS adds .scrolled */
.has-transparent-nav .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.3s ease, border-bottom-color 0.3s ease, backdrop-filter 0.3s ease;
}
.has-transparent-nav .site-header.scrolled {
  background: rgba(2,8,8,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--teal);
}
/* Compensate for fixed nav on transparent pages */
.has-transparent-nav .site-main { padding-top: 0; }

/* Logo wrapper — NEVER an <a>, the_custom_logo() provides its own link */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 4px 14px;
  overflow: hidden;
}
/* WordPress outputs <a><img> — style the img */
.nav-logo a { display: flex; align-items: center; }
.nav-logo img {
  display: block;
  height: 90px;
  width: 393px;
  object-fit: cover;
  object-position: center 50%;
}
.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg);
  text-decoration: none;
}

/* Nav links — use margin on <li> not gap on <ul> (WP lesson #3) */
.site-nav { display: flex; align-items: center; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links li {
  list-style: none;
  margin: 0 1.1rem;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
/* WP active class is .current-menu-item, not .active */
.nav-links .current-menu-item > a,
.nav-links a.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ── Dropdown sub-menus ─────────────────────────────────────────────── */
.nav-links .menu-item-has-children { position: relative; }

/* Chevron after parent link */
.nav-links .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 0.45rem;
  vertical-align: middle;
  transition: transform 0.2s;
}
.nav-links .menu-item-has-children:hover > a::after,
.nav-links .menu-item-has-children:focus-within > a::after,
.nav-links .menu-item-has-children.open > a::after {
  transform: rotate(225deg) translateY(2px);
}

/* Dropdown panel — padding-top bridges the hover gap so mouse stays in :hover zone */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 6px 0 0.5rem;
  background: rgba(2,8,8,0.98);
  border: 1px solid var(--teal);
  border-top: 2px solid var(--yellow);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 300;
}
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-links .sub-menu li { margin: 0; }
.nav-links .sub-menu a {
  display: block;
  padding: 0.55rem 1.2rem;
  border-bottom: none;
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--muted);
}
.nav-links .sub-menu a:hover { color: var(--text); background: rgba(0,108,104,0.15); }
.nav-links .sub-menu .current-menu-item > a { color: var(--yellow); }

/* Toggle button injected by JS — desktop: not needed, hidden */
.sub-toggle { display: none; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--yellow);
  transition: 0.3s;
}

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  background: var(--bg) center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2,8,8,0.88) 45%, rgba(0,108,104,0.35));
}
/* When transparent nav is active, hero must sit under the fixed header */
.has-transparent-nav .hero {
  min-height: 100vh;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 65%;
  max-width: 780px;
  margin-left: 20%;
  padding: 5rem 2.5rem;
  padding-top: calc(var(--nav-h) + 3rem);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── PAGE HEADER ─────────────────────────────────────────────────────── */
.page-header {
  background: var(--surface);
  border-bottom: 2px solid var(--teal);
  padding: 3.5rem 2.5rem;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--yellow);
  font-weight: 700;
}
.page-header p { color: var(--muted); margin-top: 0.5rem; font-size: 1.05rem; }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--yellow);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
  border: 2px solid var(--yellow);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #e8ea00; transform: translateY(-1px); text-decoration: none; color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--yellow);
}
.btn-outline:hover { background: var(--yellow); color: var(--bg); }

/* ── PHOTO STRIP ─────────────────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}
.photo-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ── INTRO BLOCK ─────────────────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: center;
}
.intro-grid img { width: 100%; }
.intro-highlight {
  color: var(--yellow);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ── SERVICE CARDS ───────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid rgba(0,108,104,0.5);
  border-top: 4px solid var(--yellow);
  padding: 2.25rem;
  border-radius: 4px;
}
.service-card p { color: var(--muted); }
.service-card ul {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}
.service-card ul li {
  color: var(--muted);
  padding: 0.45rem 0 0.45rem 1.4rem;
  border-bottom: 1px solid rgba(0,108,104,0.25);
  position: relative;
  font-size: 0.95rem;
}
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before {
  content: '→';
  color: var(--yellow);
  position: absolute;
  left: 0;
}

/* ── PAT / MICROWAVE SECTIONS ────────────────────────────────────────── */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-detail-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-detail-images img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  height: 220px;
}
.service-bullet-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}
.service-bullet-list li {
  color: var(--muted);
  padding: 0.6rem 0 0.6rem 1.5rem;
  border-bottom: 1px solid rgba(0,108,104,0.25);
  position: relative;
}
.service-bullet-list li:last-child { border-bottom: none; }
.service-bullet-list li .bullet-arrow {
  color: var(--yellow);
  position: absolute;
  left: 0;
}
.service-bullet-list li strong { color: var(--text); }

/* ── COVERAGE BAND ───────────────────────────────────────────────────── */
.coverage-band {
  background: var(--surface);
  border-top: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
}
.coverage-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.coverage-inner img { width: 200px; flex-shrink: 0; }
.coverage-text { flex: 1; }

/* ── CTA BAND ────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--teal);
  text-align: center;
  padding: 4rem 2.5rem;
}
.cta-band h2 { color: var(--yellow); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 2rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--teal); }

/* ── TESTIMONIALS ────────────────────────────────────────────────────── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}
.testi-card {
  background: var(--surface);
  border-left: 4px solid var(--yellow);
  padding: 2rem;
  border-radius: 2px;
}
.testi-card blockquote {
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.testi-card cite {
  color: var(--yellow);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── QUOTE / CONTACT GRID ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 30%;
}
.contact-callout {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-left: 4px solid var(--yellow);
  border-radius: 2px;
}
.contact-callout h3 { color: var(--yellow); margin-bottom: 0.75rem; }
.contact-phone {
  font-size: 1.2rem;
  color: var(--yellow);
  font-weight: 600;
}
.contact-block { margin-bottom: 2rem; }
.contact-block h3 { color: var(--yellow); margin-bottom: 0.4rem; }
.contact-block p, .contact-block a { color: var(--muted); }
.contact-block a:hover { color: var(--yellow); }

/* ── FORM ────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--teal);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: 3px;
  transition: border-color 0.2s;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--yellow);
}
textarea { height: 140px; resize: vertical; }

/* ── PARTNERS ────────────────────────────────────────────────────────── */
.partners {
  background: var(--surface);
  border-top: 2px solid var(--teal);
  padding: 3rem 2.5rem;
}
.partners-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}
.partners p {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}
.partners a { display: inline-flex; align-items: center; }
.partners img {
  width: auto;
  height: auto;
  max-height: 70px;
  opacity: 1;
  transition: opacity 0.2s;
}
.partners img:hover { opacity: 0.8; }

/* ── FOOTER WIDGETS ──────────────────────────────────────────────────── */
.footer-widgets {
  background: var(--surface);
  border-top: 2px solid var(--teal);
  padding: 3.5rem 2.5rem;
}
.footer-widgets-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
/* Dynamic column count via CSS custom property */
.footer-cols-1 .footer-widgets-inner { grid-template-columns: 1fr; }
.footer-cols-2 .footer-widgets-inner { grid-template-columns: repeat(2, 1fr); }
.footer-cols-3 .footer-widgets-inner { grid-template-columns: repeat(3, 1fr); }
.footer-cols-4 .footer-widgets-inner { grid-template-columns: repeat(4, 1fr); }

.footer-widget h1,
.footer-widget h2,
.footer-widget h3,
.footer-widget h4,
.footer-widget-heading {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-widget p,
.footer-widget li { color: var(--muted); font-size: 0.9rem; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: 0.4rem; }
.footer-widget a { color: var(--muted); text-decoration: none; }
.footer-widget a:hover { color: var(--yellow); }

/* ── FOOTER BOTTOM BAR ───────────────────────────────────────────────── */
.site-footer {
  background: #000;
  border-top: 1px solid #111;
  padding: 1.5rem 2.5rem;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.footer-bottom a { color: var(--teal); text-decoration: none; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid img { max-width: 300px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .coverage-inner { flex-direction: column; gap: 2rem; text-align: center; }
  .coverage-inner img { width: 160px; margin: 0 auto; }
  .footer-cols-4 .footer-widgets-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-cols-3 .footer-widgets-inner { grid-template-columns: repeat(2, 1fr); }

  /* Nav collapses to hamburger on tablet and below */
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 120px; left: 0; right: 0;
    background: rgba(2,8,8,0.98);
    border-bottom: 2px solid var(--teal);
    padding: 0.5rem 2.5rem 1.5rem;
  }
  .site-nav.open { display: block; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { margin: 0; border-bottom: 1px solid rgba(0,108,104,0.3); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.8rem 0; }

  /* Dropdowns become accordion at tablet and below */
  .nav-links .menu-item-has-children > a::after { display: none; }

  /* Flex row keeps the toggle button inline-right of the link */
  .nav-links .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-links .menu-item-has-children > a { flex: 1; }
  .nav-links .sub-menu {
    display: none;
    flex-basis: 100%;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: none;
    border-radius: 0;
    padding: 0 0 0.25rem 1rem;
    background: rgba(0,0,0,0.25);
    transition: none;
  }
  .nav-links .menu-item-has-children.open > .sub-menu { display: block; }
  .nav-links .sub-menu li { border-bottom: none; }
  .nav-links .sub-menu a { padding: 0.55rem 0; font-size: 0.85rem; white-space: normal; }

  /* Sub-menu toggle button injected by JS — shown here, hidden on desktop */
  .sub-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem 0.4rem;
    color: var(--muted);
  }
  .sub-toggle::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
  }
  .menu-item-has-children.open > .sub-toggle::before {
    transform: rotate(225deg) translateY(2px);
  }
}

@media (max-width: 680px) {
  /* Header and logo shrink on small phones */
  .site-header { padding: 0 1.25rem; height: 80px; }
  .nav-logo img { height: 60px; width: 262px; }
  /* Nav panel top follows the shorter header */
  .site-nav { top: 80px; padding-left: 1.25rem; padding-right: 1.25rem; }

  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: 200px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .hero-content { width: 100%; max-width: none; margin-left: 0; padding: 3.5rem 1.25rem; padding-top: calc(var(--nav-h) + 2rem); }
  .container { padding: 0 1.25rem; }
  .partners-inner { gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-cols-2 .footer-widgets-inner,
  .footer-cols-3 .footer-widgets-inner,
  .footer-cols-4 .footer-widgets-inner { grid-template-columns: 1fr; }
  .coverage-band .coverage-inner { padding: 3rem 1.25rem; }
}
