/* ── SHARED STYLES — Redruth Osteopathic Clinic ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2ab5a8;
  --green-dark:  #1a7fa0;
  --green-deeper:#0d5070;
  --green-light: #e6f6f5;
  --green-mid:   #aadbd7;
  --text:        #1a2e38;
  --muted:       #4a6070;
  --white:       #ffffff;
  --radius:      4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

/* ── TOP BAR ── */
#top-bar {
  background: var(--green-deeper);
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
#top-bar a, #top-bar span {
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#top-bar a:hover { color: #fff; }
#top-bar .sep { color: rgba(255,255,255,0.3); }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  position: relative;
}
nav .brand {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
nav .brand img {
  height: 44px;
  width: auto;
  mix-blend-mode: screen;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
nav ul a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav ul a:hover, nav ul a.active { color: var(--white); }
nav ul a.active { border-bottom: 2px solid var(--green); padding-bottom: 2px; }
nav .book-btn {
  background: var(--white);
  color: var(--green-dark);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
nav .book-btn:hover { background: var(--green-light); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #0d5070 0%, #1a7fa0 45%, #2ab5a8 80%, #2dc8b8 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 2rem;
}
.page-hero h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
}
.page-hero p {
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* ── SECTIONS ── */
section { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}
h3 { color: var(--green-dark); margin-bottom: 0.4rem; }
p { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── BUTTONS ── */
.btn-green {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-green:hover { background: var(--green-deeper); }

/* ── FOOTER ── */
footer {
  background: var(--green-deeper);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
.footer-inner p { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 0.3rem; }
.footer-inner a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; }
.footer-inner a:hover { color: var(--white); }
.footer-credit {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
.footer-credit a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 1rem; justify-content: center; margin-top: 0.8rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white) !important;
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }

/* ── HAMBURGER BUTTON ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
nav.nav-open .mobile-menu-btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
nav.nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
nav.nav-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  nav {
    flex-wrap: wrap;
    height: auto;
    min-height: 70px;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 0;
  }
  nav ul {
    display: none;
    position: static;
    transform: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    order: 3;
    align-items: flex-start;
  }
  nav.nav-open ul { display: flex; }
  nav ul a {
    padding: 0.6rem 0;
    font-size: 0.9rem;
    display: block;
    width: 100%;
  }
  nav .brand { flex: 1; }
  nav .book-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  #top-bar { flex-direction: column; gap: 0.3rem; padding: 0.5rem 1rem; }
  #top-bar .sep { display: none; }
}
