/* ============================================================
   Physicians Surgery Center (PSC) - pscsurgical.com
   Calm, premium, typography-led. Navy / slate / soft blue.
   ============================================================ */

:root {
  --navy: #0f2b4c;
  --navy-deep: #0a1e36;
  --ink: #16283c;
  --slate: #5b6b7e;
  --mist: #8fa1b5;
  --blue: #4f83bd;
  --blue-soft: #a9c6e8;
  --wash: #eef4fa;
  --wash-warm: #f7fafd;
  --line: #dfe7f0;
  --white: #ffffff;
  --radius: 16px;
  --shadow-soft: 0 10px 30px -12px rgba(15, 43, 76, 0.18);
  --shadow-card: 0 1px 2px rgba(15, 43, 76, 0.05), 0 12px 32px -18px rgba(15, 43, 76, 0.22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--blue-soft); color: var(--navy-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap { max-width: 1380px; }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}

.brand-mark::after {
  content: "";
  display: none;
}

.brand-rule {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.brand-name {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.45;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  padding: 8px 9px;
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--navy);
  background: var(--wash);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

.header-call {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.3;
  margin-left: 8px;
}

.header-call .call-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.header-call .call-number {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.header-call .call-number:hover { text-decoration: none; color: var(--blue); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; stroke: var(--navy); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--blue-soft);
  background: var(--wash);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(169, 198, 232, 0.28), transparent 65%),
    var(--white);
}

.hero-arcs {
  position: absolute;
  right: -180px;
  top: -160px;
  width: 720px;
  height: 720px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  padding: 108px 0 116px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--blue-soft);
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--navy);
}

h1 .soft { color: var(--blue); }

.hero-copy {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 58ch;
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mist);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg { width: 15px; height: 15px; stroke: var(--blue); flex-shrink: 0; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-wash { background: var(--wash-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy {
  background:
    radial-gradient(900px 420px at 12% 118%, rgba(79, 131, 189, 0.35), transparent 60%),
    var(--navy-deep);
  color: #fff;
}

.section-head { max-width: 640px; margin-bottom: 56px; }

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

.section-navy h2 { color: #fff; }

.section-head p {
  margin-top: 16px;
  font-size: 17.5px;
  color: var(--slate);
}

.section-navy .section-head p { color: var(--blue-soft); }

h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* ---------- Cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card { text-decoration: none !important; display: block; }

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--blue-soft);
}

.card h3 { margin-bottom: 10px; }

.card p { font-size: 15.5px; color: var(--slate); }

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 18px;
  display: block;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg { width: 22px; height: 22px; stroke: var(--blue); }

/* ---------- Check grid (Why choose) ---------- */

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.check-item .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-item .tick svg { width: 13px; height: 13px; stroke: var(--blue); stroke-width: 3; }

/* ---------- Prose (interior pages) ---------- */

.page-hero {
  background:
    radial-gradient(900px 400px at 92% -20%, rgba(169, 198, 232, 0.24), transparent 65%),
    var(--wash-warm);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-arcs { opacity: 0.35; top: -260px; }

.page-hero-inner {
  position: relative;
  padding: 84px 0 72px;
  max-width: 720px;
}

.page-hero p.lede {
  margin-top: 20px;
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 56ch;
}

.prose { max-width: 720px; }

.prose h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose p { margin-bottom: 16px; color: #2b3d51; }

.prose ul, .prose ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
  color: #2b3d51;
}

.prose li { margin-bottom: 8px; }

.prose .note {
  background: var(--wash);
  border: 1px solid var(--blue-soft);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 15.5px;
  margin: 28px 0;
  color: var(--navy);
}

.prose .warn {
  background: #fdf3f0;
  border: 1px solid #f0c8bc;
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 15.5px;
  margin: 28px 0;
  color: #7c3a24;
}

/* Two column layout: prose + aside */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}

.aside-card {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.aside-card h3 { font-size: 17px; margin-bottom: 14px; }

.aside-card ul {
  list-style: none;
  font-size: 14.5px;
}

.aside-card li { margin-bottom: 10px; }

.aside-card li a { color: var(--slate); }
.aside-card li a:hover { color: var(--navy); }

.aside-card .aside-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--slate);
}

.aside-card .aside-cta strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-top: 4px;
}

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-body {
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: #2b3d51;
}

.faq .faq-body p { margin-bottom: 12px; }
.faq .faq-body ul { padding-left: 22px; margin-bottom: 12px; }
.faq .faq-body li { margin-bottom: 6px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-block { margin-bottom: 30px; }

.contact-block .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 6px;
}

.contact-block .value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.5;
}

.contact-block .value a { color: var(--navy); }
.contact-block .value a:hover { color: var(--blue); text-decoration: none; }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

form.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--wash-warm);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.form-note {
  font-size: 13px;
  color: var(--mist);
  margin-top: 16px;
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }

.cta-band .cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--blue-soft);
}

.cta-band .hero-ctas { justify-content: center; }

.cta-band .call-big {
  display: block;
  margin-top: 30px;
  font-size: 14px;
  color: var(--mist);
}

.cta-band .call-big a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: block;
  margin-top: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--blue-soft);
  padding: 64px 0 40px;
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand-mark { color: #fff; font-size: 24px; }

.footer-brand .brand-name { color: var(--mist); margin-top: 8px; }

.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  line-height: 1.7;
  color: var(--mist);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a { color: var(--blue-soft); }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-col address {
  font-style: normal;
  line-height: 1.7;
  color: var(--blue-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(169, 198, 232, 0.16);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--mist);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-bottom a { color: var(--mist); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1220px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    font-size: 16px;
    padding: 13px 12px;
    border-radius: 10px;
  }

  .nav-toggle { display: flex; }

  .header-call { margin-left: 0; }
}

@media (max-width: 900px) {
  .grid-3, .check-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .aside-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header-inner { gap: 14px; }
  .section { padding: 68px 0; }
  .hero-inner { padding: 72px 0 80px; }
  .grid-3, .grid-2, .check-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .header-call .call-label { display: none; }
  .header-call .call-number { font-size: 15px; }
  .brand-name { display: none; }
  .brand-rule { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  form.contact-form { padding: 26px 22px; }
  .hero-arcs { right: -320px; }
}
