/* ==========================================================================
   Taguchi Women's Clinic — rebuilt static site
   Palette & type pulled from the original Web.com "DesignTest1c_rx" template:
   nav #81A5C7, button #42A5F5, header overlay rgb(0,20,66)/.8, Open Sans
   ========================================================================== */

:root {
  --navy: #001442;
  --nav-blue: #81A5C7;
  --accent-blue: #42A5F5;
  --accent-green: #7ac143;
  --ink: #333333;
  --muted: #666666;
  --border: #e2e6ea;
  --bg-soft: #f5f7fa;
  --white: #ffffff;
  --radius: 6px;
  --max: 1140px;
  --font: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-blue);
  color: #fff;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease;
}
.btn:hover { background: #2f8fd8; text-decoration: none; }
.btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--dark { background: var(--navy); }
.btn--dark:hover { background: #002266; }

/* ---------------- Header ---------------- */
.site-header { padding: 14px 0; }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand img { height: 80px; width: auto; }
.phone-box {
  border: 2px solid var(--navy);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.phone-box a { color: var(--navy); }
.yt-brand img { height: 74px; width: auto; }

/* ---------------- Top utility bar ---------------- */
.topbar { background: var(--nav-blue); color: #fff; }
.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-tagline { font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.topbar-specials { color: #fff; font-weight: 700; }
.topbar-specials:hover { text-decoration: underline; }
.nav-toggle {
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- Nav (slide-out panel) ---------------- */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--nav-blue);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.25);
  padding-top: 20px;
}
.nav-panel.open { transform: translateX(0); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel > ul > li > a {
  display: block;
  padding: 14px 26px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nav-panel > ul > li > a:hover, .nav-panel > ul > li > a.active {
  background: rgba(0,20,66,.25);
}
.nav-sub { padding-left: 14px; }
.nav-sub a {
  display: block;
  padding: 10px 26px;
  color: rgba(255,255,255,.9);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.nav-sub a:hover, .nav-sub a.active { text-decoration: underline; color: #fff; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
}
.nav-overlay.open { display: block; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--navy);
  padding: 110px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.8) 38%, rgba(255,255,255,.35) 68%, rgba(255,255,255,.1) 100%);
}
.hero .container { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--navy); }
.hero p { font-size: 18px; color: #333; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent-blue);
}
.hero-serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--nav-blue);
}
.hero--sub { padding: 70px 0; }
.hero--sub .container { max-width: var(--max); }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-top: 0; }

.icon-card { text-align: center; }
.icon-card img { width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: var(--radius); }

/* ---------------- Testimonials ---------------- */
.testimonial {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent-blue);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
}
.testimonial p { font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); display: block; margin-top: 10px; }

/* ---------------- Staff ---------------- */
.staff-card { text-align: center; }
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 32px;
  background: linear-gradient(135deg, var(--nav-blue), var(--navy));
}
.staff-card h3 { margin-bottom: 2px; }
.staff-role { color: var(--accent-blue); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.staff-bio { font-size: 14px; color: var(--muted); text-align: left; }

/* ---------------- Before / after ---------------- */
.ba-figure { text-align: center; }
.ba-figure figcaption { margin-top: 10px; font-weight: 700; color: var(--navy); }

/* ---------------- Lists with checks ---------------- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* ---------------- Forms ---------------- */
.form-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd3da;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------- Doc list (patient forms) ---------------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.doc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 700;
}
.doc-list a:hover { background: #eef2f6; text-decoration: none; }
.doc-list a::before { content: "📄"; font-size: 18px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: #cbd6e5;
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.site-footer a { color: #cbd6e5; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row img { width: 30px; height: 30px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: #93a5bd;
}
.footer-bottom a { color: #93a5bd; }

/* ---------------- Badges strip ---------------- */
.badge-strip {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.badge-strip img { height: 70px; width: auto; object-fit: contain; }

/* ---------------- Utility ---------------- */
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.tag {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 6px 6px 0;
}
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Homepage "meet doctor" photo + badge overlay */
.doctor-portrait { position: relative; }
.doctor-portrait img.badge-overlay {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
@media (max-width: 600px) {
  .doctor-portrait img.badge-overlay { width: 72px; height: 72px; bottom: -10px; right: -10px; }
}
