/* ===== Design tokens ===== */
:root {
  --navy:      #11315b;
  --navy-deep: #0c2545;
  --blue:      #2f6fb0;
  --sky:       #5aa7e6;
  --sky-soft:  #e7f1fb;
  --ink:       #1c2b3a;
  --muted:     #5a6b7b;
  --line:      #e3e9f0;
  --bg:        #ffffff;
  --bg-alt:    #f5f8fc;
  --white:     #ffffff;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(17, 49, 91, 0.08);
  --shadow-sm: 0 4px 14px rgba(17, 49, 91, 0.07);
  --container:  1120px;
  --header-h:   72px;

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Typography helpers ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 0.5rem;
}
.eyebrow-light { color: var(--sky); }
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1.2rem;
}
.section-title-light { color: var(--white); margin-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.72em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 111, 176, 0.32);
}
.btn-primary:hover { background: var(--navy); }
.btn-lg { padding: 0.9em 1.9em; font-size: 1.05rem; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.brand-text { font-weight: 700; font-size: 1.06rem; color: var(--navy); }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-menu a:not(.btn):hover { color: var(--blue); background: var(--sky-soft); text-decoration: none; }
.nav-menu a.is-active:not(.btn) { color: var(--blue); }
.nav-book { margin-left: 0.4rem; }

/* Keep the primary "Book an appointment" buttons white-on-blue.
   The generic .nav-menu a / .footer-contact a colour rules are more
   specific than .btn-primary, so restore the button colour explicitly. */
.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover,
.footer-contact a.btn-primary,
.footer-contact a.btn-primary:hover {
  color: var(--white);
}
.nav-menu a.btn { padding: 0.6em 1.4em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 28, 56, 0.86) 0%, rgba(12, 37, 69, 0.66) 42%, rgba(12, 37, 69, 0.18) 100%);
}
.hero-content {
  position: relative;
  color: var(--white);
  padding-block: 64px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sky);
  margin: 0 0 0.8rem;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: #dfeaf6;
  margin: 0.4rem 0 0;
}
.hero-lede {
  font-size: 1.08rem;
  color: #e9f1f9;
  max-width: 30ch;
  margin: 1.1rem 0 1.8rem;
}

/* ===== Sections ===== */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-alt); }

/* Section banner (image header) */
.section-banner {
  position: relative;
  height: clamp(180px, 26vw, 280px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.section-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.section-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 37, 69, 0.30) 0%, rgba(12, 37, 69, 0.78) 100%);
}
.section-banner-text { position: relative; padding-bottom: 28px; }
.section-banner + .container { padding-top: clamp(40px, 6vw, 64px); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-body p { color: var(--muted); margin: 0 0 1rem; }
.about-body .section-title { margin-bottom: 1rem; }

/* ===== Services ===== */
.services-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #cfe0f2;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--sky-soft);
  color: var(--blue);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

/* ===== Busby ===== */
.busby-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.contact-list { margin: 0 0 1.8rem; }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:first-child { padding-top: 0; }
.contact-row dt {
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  padding-top: 2px;
}
.contact-row dd { margin: 0; color: var(--ink); }
.busby-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.busby-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #c9d6e6;
  padding-top: 56px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer .brand-mark { margin-bottom: 14px; }
.footer-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  margin: 0;
}
.footer-sub { margin: 0.2rem 0 0; font-size: 0.95rem; color: #9fb3cc; }
.footer-contact { text-align: left; }
.footer-contact p { margin: 0 0 0.4rem; }
.footer-contact a { color: var(--sky); }
.footer-contact .btn { margin-top: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
}
.footer-bottom p { margin: 0; font-size: 0.86rem; color: #8ca3bf; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 0.7rem 0.6rem; }
  .nav-book { margin: 6px 0 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 340px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .busby-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { flex-direction: column; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .service-card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
