/* ============================================================
   TerryHealth — Shared Stylesheet
   terryhealthclinic.com
   ============================================================ */

:root {
  --navy:       #0f2651;
  --navy-mid:   #1a3f7a;
  --teal:       #2ab5a0;
  --teal-light: #3dcfb8;
  --sky:        #5bb8d4;
  --mint-bg:    #e0f7f4;
  --white:      #ffffff;
  --text-dark:  #0f2651;
  --text-muted: #4a6b7a;
  --card-border:rgba(42,181,160,0.15);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'DM Sans',sans-serif; color:var(--text-dark); background:var(--white); overflow-x:hidden; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family:'Playfair Display',serif; }
.script { font-family:'Dancing Script',cursive; color:var(--teal); }

/* ── NAV ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 60px;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(42,181,160,0.15);
  box-shadow:0 2px 20px rgba(42,181,160,0.1);
  animation:slideDown 0.6s ease both;
}
@keyframes slideDown { from{transform:translateY(-100%);opacity:0} to{transform:translateY(0);opacity:1} }

.nav-logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.nav-logo-icon { width:52px; height:52px; flex-shrink:0; }
.nav-logo-text { display:flex; flex-direction:column; }
.nav-brand { display:flex; align-items:baseline; gap:0; font-size:1.55rem; font-weight:900; letter-spacing:-0.5px; }
.nav-brand-terry  { color:var(--navy); }
.nav-brand-health { color:var(--teal); font-family:'Playfair Display',serif; font-style:italic; }
.nav-brand-llc    { color:var(--navy); font-size:0.65rem; font-weight:800; letter-spacing:2px; text-transform:uppercase; margin-left:4px; opacity:0.45; align-self:flex-end; margin-bottom:3px; }
.nav-tagline      { font-size:0.68rem; color:var(--text-muted); font-weight:600; letter-spacing:0.5px; text-transform:uppercase; margin-top:2px; }

.nav-links { display:flex; gap:32px; align-items:center; }
.nav-links a { text-decoration:none; color:var(--navy); font-weight:500; font-size:0.95rem; transition:color 0.2s; }
.nav-links a:hover { color:var(--teal); }
.nav-links a.active { color:var(--teal); font-weight:600; }

.nav-cta {
  background:var(--teal); color:white !important;
  padding:10px 26px; border-radius:50px;
  font-weight:600 !important;
  box-shadow:0 4px 16px rgba(42,181,160,0.3);
  transition:background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background:var(--teal-light) !important; transform:translateY(-1px); }

.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.hamburger span { width:24px; height:2.5px; background:var(--navy); border-radius:2px; transition:all 0.3s; }
.hamburger.active span:nth-child(1) { transform:rotate(45deg) translate(8px,8px); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:rotate(-45deg) translate(7px,-7px); }

/* ── BUTTONS ── */
.btn-primary {
  background:var(--teal); color:white;
  padding:15px 36px; border-radius:50px;
  font-weight:600; font-size:1rem; text-decoration:none;
  box-shadow:0 8px 24px rgba(42,181,160,0.35);
  transition:transform 0.2s, box-shadow 0.2s, background 0.2s;
  display:inline-block; border:none; cursor:pointer;
  font-family:'DM Sans',sans-serif;
}
.btn-primary:hover { transform:translateY(-2px); background:var(--teal-light); box-shadow:0 12px 32px rgba(42,181,160,0.45); }

.btn-outline {
  border:2px solid var(--navy); color:var(--navy);
  padding:13px 36px; border-radius:50px;
  font-weight:600; font-size:1rem; text-decoration:none;
  transition:all 0.2s; display:inline-block;
  background:white; cursor:pointer; font-family:'DM Sans',sans-serif;
}
.btn-outline:hover { background:var(--navy); color:white; }

.btn-sm { padding:10px 24px; font-size:0.9rem; }

/* ── WAVE DIVIDER ── */
.wave-divider { display:block; width:100%; overflow:hidden; line-height:0; }
.wave-divider svg { display:block; width:100%; }

/* ── SECTIONS ── */
.section-white { padding:80px 60px; text-align:center; background:white; }
.section-mint  { padding:80px 60px; text-align:center; background:var(--mint-bg); }
.section-navy  { padding:80px 60px; text-align:center; background:var(--navy); color:white; }

.section-label {
  display:inline-block; font-size:0.75rem; font-weight:700;
  letter-spacing:0.12em; text-transform:uppercase; color:var(--teal);
  margin-bottom:12px;
}
.section-title {
  font-family:'Playfair Display',serif;
  font-size:clamp(1.8rem,3.5vw,2.8rem);
  color:var(--navy); margin-bottom:16px; line-height:1.2;
}
.section-navy .section-title { color:white; }
.section-sub {
  font-size:1.05rem; color:var(--text-muted);
  max-width:620px; margin:0 auto 48px; line-height:1.7;
}
.section-navy .section-sub { color:rgba(255,255,255,0.75); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding:140px 60px 70px;
  background:linear-gradient(150deg,#b8e5e1 0%,#cff0ed 35%,#e0f7f5 65%,#f0fbf9 100%);
  text-align:center; position:relative; overflow:hidden;
}
.page-hero-blob { position:absolute; border-radius:50%; opacity:0.18; filter:blur(70px); }
.page-hero h1 { font-family:'Playfair Display',serif; font-size:clamp(2rem,4vw,3rem); color:var(--navy); margin-bottom:8px; }
.page-hero .script { font-size:clamp(1.4rem,2.5vw,2rem); display:block; margin-bottom:16px; }
.page-hero p { font-size:1.05rem; color:var(--text-muted); max-width:580px; margin:0 auto; line-height:1.7; }

/* ── CARDS ── */
.card-grid { display:grid; gap:28px; }
.card-grid-2 { grid-template-columns:repeat(2,1fr); }
.card-grid-3 { grid-template-columns:repeat(3,1fr); }
.card-grid-4 { grid-template-columns:repeat(4,1fr); }

.card {
  background:white; border-radius:20px; padding:32px;
  border:1px solid var(--card-border);
  box-shadow:0 4px 20px rgba(42,181,160,0.08);
  transition:transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform:translateY(-4px); box-shadow:0 12px 36px rgba(42,181,160,0.15); }
.card-icon { font-size:2.2rem; margin-bottom:16px; }
.card h3 { font-size:1.15rem; color:var(--navy); margin-bottom:10px; }
.card p { font-size:0.92rem; color:var(--text-muted); line-height:1.65; }

/* ── CTA BANNER ── */
.cta-banner {
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy-mid) 100%);
  padding:80px 60px; text-align:center; color:white;
}
.cta-banner h2 { font-family:'Playfair Display',serif; font-size:clamp(1.8rem,3vw,2.6rem); color:white; margin-bottom:4px; }
.cta-script { font-family:'Dancing Script',cursive; font-size:clamp(1.6rem,2.5vw,2.2rem); color:var(--teal-light); display:block; margin-bottom:20px; }
.cta-banner p { font-size:1.05rem; color:rgba(255,255,255,0.8); max-width:560px; margin:0 auto 28px; line-height:1.7; }
.cta-contact { display:flex; justify-content:center; gap:32px; margin-bottom:32px; flex-wrap:wrap; }
.cta-contact-item { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,0.9); font-weight:500; }
.cta-icon { font-size:1.2rem; }

/* ── FOOTER ── */
footer { background:var(--navy); color:rgba(255,255,255,0.75); }
.footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px; padding:64px 60px 48px;
}
.footer-brand p { font-size:0.88rem; line-height:1.7; margin-bottom:16px; }
.footer-tagline { font-family:'Dancing Script',cursive; color:var(--teal-light); font-size:1.1rem; }
.footer-col h4 { color:white; font-size:0.85rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:20px; font-family:'DM Sans',sans-serif; }
.footer-col a { display:block; color:rgba(255,255,255,0.65); text-decoration:none; font-size:0.88rem; margin-bottom:10px; transition:color 0.2s; }
.footer-col a:hover { color:var(--teal-light); }
.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 60px; border-top:1px solid rgba(255,255,255,0.1);
  font-size:0.8rem;
}
.footer-bottom a { color:var(--teal-light); text-decoration:none; }

/* ── BADGE ── */
.badge {
  display:inline-flex; align-items:center; gap:8px;
  background:white; border:1.5px solid rgba(42,181,160,0.4);
  color:var(--teal); padding:7px 18px; border-radius:50px;
  font-size:0.78rem; font-weight:700; letter-spacing:0.07em;
  text-transform:uppercase; box-shadow:0 2px 12px rgba(42,181,160,0.15);
}
.badge::before { content:'●'; font-size:0.55rem; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── MODAL ── */
.modal {
  display:none; position:fixed; inset:0; z-index:999;
  background:rgba(15,38,81,0.6); backdrop-filter:blur(4px);
  align-items:center; justify-content:center;
}
.modal.active { display:flex; }
.modal-content {
  background:white; border-radius:24px; padding:40px;
  max-width:480px; width:90%; position:relative;
  box-shadow:0 24px 60px rgba(15,38,81,0.25);
  animation:fadeUp 0.3s ease;
}
.modal-close {
  position:absolute; top:16px; right:16px;
  background:none; border:none; font-size:1.3rem;
  cursor:pointer; color:var(--text-muted);
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:background 0.2s;
}
.modal-close:hover { background:rgba(42,181,160,0.1); }
.modal-content h3 { font-size:1.5rem; color:var(--navy); margin-bottom:6px; }
.modal-subtitle { color:var(--text-muted); font-size:0.9rem; margin-bottom:24px; }

/* ── FORMS ── */
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:0.85rem; font-weight:600; color:var(--navy); margin-bottom:6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width:100%; padding:12px 16px; border-radius:10px;
  border:1.5px solid rgba(42,181,160,0.3);
  font-family:'DM Sans',sans-serif; font-size:0.95rem;
  color:var(--text-dark); outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(42,181,160,0.12);
}
.form-group textarea { resize:vertical; min-height:100px; }
.form-submit {
  width:100%; padding:14px; border-radius:50px;
  background:var(--teal); color:white;
  font-family:'DM Sans',sans-serif; font-size:1rem; font-weight:600;
  border:none; cursor:pointer;
  transition:background 0.2s, transform 0.2s;
}
.form-submit:hover { background:var(--teal-light); transform:translateY(-1px); }
.form-message { font-size:0.82rem; color:var(--text-muted); text-align:center; margin-top:12px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation:fadeUp 0.8s ease both; }

/* ── UTILITIES ── */
.text-teal  { color:var(--teal); }
.text-navy  { color:var(--navy); }
.text-muted { color:var(--text-muted); }
.mb-0 { margin-bottom:0; }
.mt-8 { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.mt-32 { margin-top:32px; }
.center { text-align:center; }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  nav { padding:16px 32px; }
  .section-white, .section-mint, .section-navy { padding:60px 32px; }
  .page-hero { padding:120px 32px 60px; }
  .cta-banner { padding:60px 32px; }
  .footer-top { grid-template-columns:1fr 1fr; gap:32px; padding:48px 32px 36px; }
  .footer-bottom { padding:16px 32px; }
  .card-grid-4 { grid-template-columns:repeat(2,1fr); }
  .card-grid-3 { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:768px) {
  nav { padding:14px 20px; }
  .nav-links {
    display:none; position:absolute; top:100%; left:0; right:0;
    background:white; flex-direction:column; gap:0;
    box-shadow:0 8px 24px rgba(42,181,160,0.15);
    border-bottom:2px solid var(--teal);
  }
  .nav-links.active { display:flex; }
  .nav-links a { padding:14px 24px; border-bottom:1px solid rgba(42,181,160,0.08); width:100%; }
  .hamburger { display:flex; }
  .section-white, .section-mint, .section-navy { padding:50px 20px; }
  .page-hero { padding:110px 20px 50px; }
  .cta-banner { padding:50px 20px; }
  .footer-top { grid-template-columns:1fr; gap:28px; padding:36px 20px; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; padding:16px 20px; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .cta-contact { flex-direction:column; gap:12px; align-items:center; }
}
