/* ============================================
   Henry's Fork Surgery Center — concept site
   Clean clinical palette: navy / teal / white
   ============================================ */

:root {
  --navy-deep: #1b3a4b;
  --navy: #2c5a72;
  --teal: #3d8a90;
  --teal-light: #e3f2f2;
  --sky: #eef5f7;
  --ink: #1f2d33;
  --ink-soft: #56676d;
  --white: #ffffff;
  --line: #dce8ea;
  --shadow: 0 10px 30px rgba(27, 58, 75, 0.10);
  --radius: 14px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --head: 'Poppins', var(--sans);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--head);
  color: var(--navy-deep);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Demo watermark banner ---------- */
.demo-banner {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.demo-banner a { color: #bfe3e6; font-weight: 600; text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 1.2rem; font-weight: 700; color: var(--navy-deep); }
.brand .logo-mark { width: 38px; height: 38px; }
.brand small { display:block; font-size:0.62rem; font-weight:500; letter-spacing:0.08em; color: var(--teal); text-transform: uppercase; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); transition: width 0.2s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.current { color: var(--navy-deep); font-weight: 700; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-deep); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; background: var(--sky); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 0.4em; }
.hero p.lead { font-size: 1.1rem; max-width: 48ch; }
.hero-cta { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-deep); padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; text-align: center; }
.trust-item { color: rgba(255,255,255,0.92); font-size: 0.9rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trust-item svg { width: 26px; height: 26px; color: #7fd0d4; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.alt-bg { background: var(--sky); }

/* ---------- Placeholder image panel (used instead of real photography) ---------- */
.img-panel {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-light), var(--sky));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--teal);
  min-height: 220px;
  padding: 24px;
  text-align: center;
}
.img-panel svg { width: 52px; height: 52px; }
.img-panel span { font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }

/* ---------- Grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: center; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(27,58,75,0.16); }
.card .icon { width: 44px; height: 44px; color: var(--teal); margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.card p { font-size: 0.94rem; margin-bottom: 0; }

.alt-bg .card { background: var(--white); }

/* ---------- Facility stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; margin-top: 36px; }
.stat-num { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; border: 1px solid var(--line);
}
.team-avatar svg { width: 38px; height: 38px; }
.team-card h3 { font-size: 1rem; margin-bottom: 0.2em; }
.team-role { font-size: 0.85rem; color: var(--teal); font-weight: 600; margin-bottom: 10px; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.testimonial p { font-style: italic; font-size: 0.98rem; }
.testimonial-name { font-weight: 700; color: var(--navy-deep); font-size: 0.9rem; }
.sample-tag { display:inline-block; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--ink-soft); background: var(--teal-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy-deep), var(--teal)); border-radius: 20px; padding: 54px 40px; text-align: center; color: var(--white); margin-inline: auto; max-width: 1092px; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.88); max-width: 52ch; margin-inline: auto; }
.cta-banner .btn-primary { background: var(--white); color: var(--navy-deep); }
.cta-banner .btn-primary:hover { background: var(--teal-light); }

/* ---------- Accordion (Patient Info FAQ) ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: var(--white); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 20px; font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--navy-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.accordion-trigger .chev { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: var(--teal); }
.accordion-item.open .accordion-trigger .chev { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 20px; }
.accordion-item.open .accordion-panel { max-height: 400px; padding-bottom: 18px; }
.accordion-panel p { margin-bottom: 0; font-size: 0.94rem; }

/* ---------- Info list (pre-op/post-op) ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.info-list li:last-child { border-bottom: none; }
.info-list svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.78); padding: 48px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-bottom: 28px; }
.footer-brand { font-family: var(--head); color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; font-size: 0.82rem; text-align: center; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: #7fd0d4; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info-card { background: var(--sky); border-radius: var(--radius); padding: 34px 28px; border: 1px solid var(--line); }
.contact-info-card h3 { font-size: 1.05rem; margin-top: 22px; }
.contact-info-card h3:first-child { margin-top: 0; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; font-size: 0.95rem; }
.contact-detail svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 0.96rem; background: var(--white); color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(61,138,144,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-weight: 500; font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #e6f4ea; color: #1e6b3a; border: 1px solid #b6e0c2; }
.form-status.error { background: #fdecec; color: #a12a2a; border: 1px solid #f3b8b8; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 20px 24px 28px; display: none; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
