/* Gray Street Surgery — site stylesheet */

:root {
  --cream: #e5e0da;
  --charcoal: #3c3e3d;
  --charcoal-dark: #313332;
  --ink: #26292b;
  --muted: #656565;
  --line: #ddd7cd;
  --teal: #2ba89c;
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: 2.6rem; line-height: 1.2; }
h2 { font-size: 2rem; letter-spacing: 0.02em; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo img { height: 28px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease-in-out;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(rgba(30, 33, 34, 0.72), rgba(30, 33, 34, 0.72)), url("../img/hero-bg.webp") center/cover no-repeat;
  padding: 120px 0 180px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  max-width: 760px;
  margin: 0 auto 0.5em;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 1.8em;
  font-size: 1.1rem;
  color: #e9e7e3;
}

.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: opacity 0.1s linear;
}

.btn:hover { opacity: 0.8; }

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn-outline:hover { opacity: 0.8; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}

.page-hero h1 { color: #fff; }
.page-hero p { color: #cfd0cf; max-width: 640px; margin: 0.5em auto 0; }

/* ---------- Section wave divider ---------- */
.wave-down {
  display: block;
  width: 100%;
  margin-top: -1px;
  fill: var(--charcoal);
}

.wave-up {
  display: block;
  width: 100%;
  fill: #fff;
}

/* ---------- Doctors section (dark) ---------- */
.section-dark {
  background: var(--charcoal);
  color: #e8e7e3;
  padding: 10px 0 90px;
}

.section-dark h2 { color: #fff; text-align: center; margin-bottom: 50px; }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.doctor-card {
  background: var(--charcoal-dark);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 217 / 277;
  object-fit: cover;
}

.doctor-card .doctor-info { padding: 20px 18px 26px; }
.doctor-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.2em; }
.doctor-card .role { color: var(--teal); font-size: 0.85rem; letter-spacing: 0.03em; margin-bottom: 1em; }
.doctor-card .read-more {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 3px;
  transition: opacity 0.15s ease-in-out;
}
.doctor-card .read-more:hover,
.other-grid .read-more:hover { opacity: 0.65; }

/* ---------- Procedures ---------- */
.section-light { padding: 0; }
.procedures-intro { padding: 90px 0 10px; }
.procedures-intro h2 { text-align: center; margin-bottom: 10px; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto; color: var(--muted); }

.procedure-category { padding: 70px 0; }
.procedure-category.bg-cream { background: var(--cream); }
.procedure-category.bg-white { background: #fff; }

.procedure-category h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 44px;
  text-align: center;
}

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 40px;
}

.procedure-card {
  text-align: center;
}

.procedure-card .icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: block;
}

.procedure-card h4 { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5em; color: var(--ink); }
.procedure-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-section { padding: 90px 0; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.contact-details p { margin: 0 0 0.3em; }
.contact-details a { color: var(--ink); text-decoration: underline; }
.contact-details a:hover { color: var(--teal); }
.contact-details .location { margin-top: 1.2em; color: var(--ink); }

form.contact-form { display: grid; gap: 18px; }
.contact-form .field-group-label { font-size: 0.95rem; color: var(--ink); margin-bottom: -4px; }
.contact-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 30px;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  cursor: pointer;
  justify-self: start;
  transition: opacity 0.1s linear;
}
.contact-form button:hover { opacity: 0.8; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-success, .form-error { padding: 14px 16px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-success { background: #e4efe4; color: #2a5c2a; }
.form-error { background: #f3e0e0; color: #7a2a2a; }

/* ---------- Map ---------- */
.map-wrap { margin-top: 24px; max-width: 420px; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; border-radius: 6px; }

/* ---------- Doctor detail page ---------- */
.doctor-detail { padding: 80px 0; }
.doctor-detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
}
.doctor-detail-grid img { border-radius: 8px; width: 100%; }
.doctor-detail .role { color: var(--teal); margin-bottom: 1.4em; font-size: 1rem; }
.interest-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.interest-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.doctor-bio p { color: var(--muted); }

.other-specialists { padding: 70px 0; background: var(--cream); }
.other-specialists h2 { text-align: center; margin-bottom: 40px; font-size: 1.5rem; }
.other-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.other-grid .card { background: #fff; border-radius: 8px; padding: 22px; text-align: center; border: 1px solid var(--line); }
.other-grid h4 { margin-bottom: 0.4em; }
.other-grid p { color: var(--muted); font-size: 0.9rem; }
.other-grid .read-more { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--teal); padding-bottom: 2px; }

/* ---------- Team page (admin) ---------- */
.team-section { padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: 40px; }
.team-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
.team-card img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.team-card h4 { margin-bottom: 0.2em; }
.team-card .role { color: var(--teal); font-size: 0.85rem; margin-bottom: 0.8em; }
.team-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal-dark);
  color: #cfd0cf;
  padding: 50px 0 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid img { height: 24px; margin-bottom: 14px; }
.footer-grid p { color: #a8aaa8; font-size: 0.9rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: #cfd0cf; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #8f9190;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .doctor-detail-grid { grid-template-columns: 1fr; }
  .other-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .procedure-grid { --cols: 2 !important; }
  .map-wrap { max-width: 100%; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .site-header.nav-open .main-nav li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  h1 { font-size: 1.9rem; }
  .hero { padding: 80px 0 120px; }
  .doctor-grid { grid-template-columns: 1fr 1fr; }
  .contact-form .two-col { grid-template-columns: 1fr; }
  .procedure-grid { --cols: 1 !important; }
}
