/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:        #1E3A6E;
  --navy-dark:   #152B54;
  --navy-light:  #E8EDF7;
  --accent:      #2B55A3;
  --green:       #1A8F5C;
  --red:         #C0392B;
  --bg:          #F8F9FC;
  --surface:     #FFFFFF;
  --text:        #1A1A2E;
  --muted:       #5A6070;
  --border:      #DDE2EF;

  --font:        'Inter', system-ui, sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(30,58,110,.08);
  --shadow:      0 4px 20px rgba(30,58,110,.12);
  --shadow-lg:   0 12px 40px rgba(30,58,110,.18);

  --nav-h:       70px;
  --transition:  0.22s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
address { font-style: normal; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover {
  background: var(--navy-dark);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.btn--sm { padding: 9px 18px; font-size: 0.875rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section__header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo { width: 44px; height: 44px; flex-shrink: 0; }

.navbar__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.2;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.navbar__nav a:hover { background: var(--navy-light); color: var(--navy); }
.navbar__nav .btn--sm { margin-left: 8px; color: #fff; }
.navbar__nav .btn--sm:hover { color: #fff; }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}
.navbar__hamburger:hover { background: var(--navy-light); }
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background-image: url('assets/building.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Used when a background image is set; slightly dims it */
  background: linear-gradient(to bottom right, rgba(14,30,62,.85), rgba(20,50,100,.6));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
  background: rgba(255,255,255,.1);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
}

.hero__headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__actions .btn--primary {
  background: #fff;
  color: var(--navy);
}
.hero__actions .btn--primary:hover {
  background: var(--navy-light);
  color: var(--navy-dark);
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.hero__phone svg { width: 20px; height: 20px; }
.hero__phone:hover { color: #fff; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-light);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--navy-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--navy);
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--navy-light); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text .section__label { display: block; margin-bottom: 10px; }

.about__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.about__lead {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.about__text p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.cert-badge svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--navy); }

/* Building image */
.about__image-wrap { position: relative; }

.about__building-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
}

.about__building-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback when image missing */
.about__building-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}
.about__building-img--placeholder::after {
  content: "Building photo — place assets/building.jpg here";
}

.about__dot-cert {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  max-width: 280px;
}

.dot-cert__badge {
  width: 40px;
  height: 40px;
  background: var(--navy-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.dot-cert__badge svg { width: 20px; height: 20px; }

.about__dot-cert strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.about__dot-cert span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   HOURS
   ============================================================ */
.hours { background: var(--surface); }

.hours__wrap {
  max-width: 640px;
  margin: 0 auto;
}

.hours__callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 28px;
}
.hours__callout svg { width: 28px; height: 28px; flex-shrink: 0; opacity: .85; }
.hours__callout strong { display: block; font-size: 1rem; font-weight: 700; }
.hours__callout span  { font-size: 0.875rem; opacity: .8; }

.hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.hours__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.hours__table tr:last-child td { border-bottom: none; }

.hours__table td:first-child { font-weight: 600; color: var(--text); }
.hours__table td:nth-child(2) { color: var(--muted); }
.hours__table td:last-child { text-align: right; }

.hours__table tr:hover td { background: var(--bg); }
.hours__closed-row td { color: var(--muted); opacity: .65; }

.hours__open {
  display: inline-block;
  background: #e6f7ef;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.hours__closed {
  display: inline-block;
  background: #fdecea;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.hours__note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.hours__note a { color: var(--navy); font-weight: 600; }
.hours__note a:hover { text-decoration: underline; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact__info .section__label { display: block; margin-bottom: 10px; }
.contact__info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 36px;
}

.contact__detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact__detail svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--navy);
  margin-top: 2px;
}
.contact__detail strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact__detail address,
.contact__detail a,
.contact__detail span {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.6;
}
.contact__detail a:hover { color: var(--navy); text-decoration: underline; }

.contact__directions-btn { margin-top: 12px; }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact__map iframe { display: block; width: 100%; height: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 48px 0 36px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo { width: 44px; height: 44px; }
.footer__brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.footer__brand span {
  font-size: 0.82rem;
  opacity: .65;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.footer__links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.footer__links a:hover { background: rgba(255,255,255,.1); color: #fff; }

.footer__copy {
  font-size: 0.8rem;
  opacity: .5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__dot-cert { left: 0; bottom: -16px; }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact__map { height: 320px; }
}

@media (max-width: 720px) {
  .navbar__nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    box-shadow: var(--shadow);
  }

  .navbar__nav.open { display: flex; }
  .navbar__nav a { padding: 12px 14px; }
  .navbar__nav .btn--sm { margin: 8px 0 0; text-align: center; justify-content: center; }

  .navbar__hamburger { display: flex; }

  .section { padding: 64px 0; }

  .hero__headline { font-size: 2.2rem; }

  .hero__actions { flex-direction: column; align-items: flex-start; }

  .services__grid { grid-template-columns: 1fr; }

  .about__dot-cert { position: static; margin-top: 16px; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 1.9rem; }
  .hours__table td { padding: 12px 10px; font-size: 0.88rem; }
  .footer__brand { flex-direction: column; text-align: center; }
}
