/*
Theme Name: Ajax Harwood Clinic
Theme URI: https://ajaxharwoodclinic.com
Author: Ajax Harwood Clinic
Description: Custom theme for Ajax Harwood Clinic — Family Medicine & Integrated Health Care in Ajax, Ontario.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: ajax-harwood
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  /* ── Pulled from the clinic crest: deep royal navy-indigo ── */
  --green-deep:   #1B2660;   /* navy-deep   — hero backgrounds, nav, footer     */
  --green-mid:    #293B82;   /* navy-mid    — hover states, bands                */
  --green-light:  #3D57A8;   /* navy-light  — accents, dots, card borders        */
  --green-pale:   #E8EAF6;   /* navy-pale   — card icon backgrounds, tints       */
  --amber:        #B8900A;   /* gold        — primary CTA buttons, accent lines  */
  --amber-light:  #D4AB2A;   /* gold-light  — hover states for gold              */
  --cream:        #FAF8F2;
  --cream-dark:   #F0EDE4;
  --warm-white:   #FDFCF9;
  --text-dark:    #1A1A1A;
  --text-mid:     #3F3F50;
  --text-light:   #78788A;
  --border:       #DFDCee;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --max-width:    1240px;
  --radius:       6px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ═══════════════════════════════════════════
   NOTICE BAND
═══════════════════════════════════════════ */
.ahc-notice {
  background: var(--amber);
  padding: 13px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ahc-notice p {
  font-size: 13.5px;
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
}

.ahc-notice strong { font-weight: 600; }

.ahc-notice a.notice-btn {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.55);
  padding: 7px 18px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.ahc-notice a.notice-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.ahc-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ahc-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img.site-logo {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

.nav-logo-text .clinic-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.nav-logo-text .clinic-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* WordPress nav menu */
.ahc-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahc-nav .nav-menu li a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.025em;
  transition: color 0.2s;
}

.ahc-nav .nav-menu li a:hover,
.ahc-nav .nav-menu li.current-menu-item > a { color: var(--green-deep); }

.ahc-nav .nav-menu li.menu-cta a {
  background: var(--green-deep);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.ahc-nav .nav-menu li.menu-cta a:hover { background: var(--green-mid); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.2s, opacity 0.2s;
}

/* ═══════════════════════════════════════════
   SHARED SECTION COMPONENTS
═══════════════════════════════════════════ */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  color: var(--green-deep);
  line-height: 1.2;
}

.section-header { margin-bottom: 48px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--green-deep);
  color: var(--green-deep);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--green-deep);
  color: #fff;
}

.btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

/* ═══════════════════════════════════════════
   INTERIOR PAGE STYLES (shared)
═══════════════════════════════════════════ */
.page-hero {
  background: var(--green-deep);
  padding: 72px 80px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(74,124,94,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--amber-light);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.page-hero .page-lead {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.page-content-wrap {
  padding: 72px 80px;
  background: var(--warm-white);
}

.page-content-wrap .entry-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--green-deep);
  margin: 48px 0 16px;
  line-height: 1.25;
}

.page-content-wrap .entry-content h2:first-child { margin-top: 0; }

.page-content-wrap .entry-content h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--green-mid);
  margin: 32px 0 12px;
}

.page-content-wrap .entry-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 720px;
}

.page-content-wrap .entry-content ul {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

.page-content-wrap .entry-content ul li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  padding: 6px 0 6px 20px;
  position: relative;
  max-width: 640px;
}

.page-content-wrap .entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
}

.page-content-wrap .entry-content a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.ahc-footer-location {
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  padding: 52px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}

.location-col-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.location-col-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--green-deep);
  line-height: 1.65;
}

.location-col-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.location-col-value a:hover { color: var(--amber); }

.location-col-note {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-top: 6px;
}

.ahc-footer-main {
  background: var(--green-deep);
  padding: 44px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .footer-clinic-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}

.footer-brand .footer-tagline {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

.footer-nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-links a:hover { color: rgba(255,255,255,0.85); }

.footer-ecosystem-wrap { text-align: right; }

.footer-ecosystem-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-ecosystem-links {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-ecosystem-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-ecosystem-links a:hover { color: var(--amber-light); }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ahc-nav { padding: 0 24px; }
  .ahc-notice { padding: 12px 24px; }
  .page-hero { padding: 56px 24px 48px; }
  .page-content-wrap { padding: 48px 24px; }
  .ahc-footer-location { padding: 40px 24px; grid-template-columns: 1fr 1fr; }
  .ahc-footer-main { padding: 36px 24px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .ahc-nav .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .ahc-nav .nav-menu.is-open { display: flex; }
  .ahc-nav .nav-menu li { width: 100%; }
  .ahc-nav .nav-menu li a { display: block; padding: 10px 0; font-size: 15px; }
  .ahc-nav .nav-menu li.menu-cta { margin-top: 8px; }
  .ahc-nav .nav-menu li.menu-cta a { display: block; text-align: center; padding: 12px; }

  .ahc-footer-location { grid-template-columns: 1fr; gap: 32px; }
  .ahc-footer-main { flex-direction: column; align-items: flex-start; }
  .footer-ecosystem-wrap { text-align: left; }
  .footer-ecosystem-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .ahc-notice { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-hero { padding: 44px 16px 36px; }
  .page-content-wrap { padding: 36px 16px; }
}
