/* ============================================================
   SONNY Medical LLC — Medical Transcription & Documentation
   Shared stylesheet for all pages
   ============================================================ */

:root {
  --green: #1c3a13;
  --green-deep: #12260c;
  --green-hover: #2a501d;
  --cream: #f6f6f4;
  --sage: #d2d8d0;
  --sage-soft: #e9ede5;
  --ink: #1f2a1a;
  --muted: #5c6b55;
  --white: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(28, 58, 19, .06), 0 16px 40px -24px rgba(28, 58, 19, .20);
  --shadow-soft: 0 1px 3px rgba(28, 58, 19, .08);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--green); color: var(--cream); }

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

a { color: var(--green); }

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

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(80px, 11vw, 120px) 0;
  scroll-margin-top: 88px;
}

.section--white { background: var(--white); }
.section--green { background: var(--green); color: var(--cream); }

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
  flex: none;
}

.section--green .eyebrow { color: var(--sage); }
.section--green .eyebrow::before { background: var(--sage); }

.display {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(40px, 5.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--green);
}

.section-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green);
  margin-bottom: 20px;
}

.section--green .section-title { color: var(--cream); }

.lede {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.section--green .lede { color: var(--sage); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 246, 244, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--green);
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green);
  opacity: 0;
  transition: opacity .2s ease;
}

.main-nav a:not(.btn):hover::after { opacity: 1; }

.main-nav a.btn { color: var(--cream); }
.main-nav a.btn:hover { color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, background-color .25s ease;
}

.btn:hover { background: var(--green-hover); transform: scale(1.02); }

.btn--sm { min-height: 42px; padding: 0 22px; font-size: 14px; }

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn--outline:hover { background: var(--green); color: var(--cream); }

.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: var(--white); }

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

.hero {
  padding: clamp(150px, 18vw, 190px) 0 clamp(80px, 9vw, 110px);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero .display { margin-bottom: 26px; }

.hero .lede { margin-bottom: 36px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 14px;
  color: var(--muted);
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.hero-art { position: relative; }

/* ---------- Marquee divider ---------- */

.marquee {
  background: var(--green);
  color: var(--cream);
  overflow: hidden;
  padding: 15px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-segment {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.marquee-segment i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  flex: none;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Service / pricing ---------- */

.service-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.service-copy p { color: var(--muted); max-width: 420px; }

.price-card {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: clamp(30px, 4vw, 46px);
}

.price-card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}

.price-card h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.25;
  color: var(--green);
  margin-bottom: 18px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--sage);
}

.price {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(44px, 5vw, 56px);
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.02em;
}

.price-note { font-size: 14px; color: var(--muted); }

.price-card > p { color: var(--muted); margin-bottom: 26px; }

.includes {
  list-style: none;
  margin-bottom: 32px;
}

.includes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 15.5px;
}

.includes li svg { flex: none; margin-top: 4px; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 60px);
}

.step {
  border-top: 1px solid var(--green);
  padding-top: 26px;
}

.step-num {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(52px, 5.5vw, 68px);
  line-height: 1;
  color: var(--sage);
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 10px;
}

.step p { color: var(--muted); font-size: 16px; }

/* ---------- Who we serve ---------- */

.who-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.who-grid .lede { margin-bottom: 24px; }

.who-grid p.body { color: var(--muted); max-width: 520px; }

.doc-list { list-style: none; border-top: 1px solid var(--sage); }

.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--sage);
  font-family: var(--serif);
  font-weight: 420;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--green);
}

.doc-list li span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  max-width: 220px;
  line-height: 1.5;
}

/* ---------- Disclaimer band ---------- */

.disclaimer { text-align: left; }

.disclaimer blockquote {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 880px;
  color: var(--cream);
}

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

.faq-list { max-width: 820px; margin-top: clamp(30px, 4vw, 44px); }

.faq-item { border-bottom: 1px solid var(--sage); }

.faq-item:first-child { border-top: 1px solid var(--sage); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.35;
  color: var(--green);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--green);
  transition: transform .3s ease;
}

.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }

.faq-item.is-open .faq-icon::after { transform: rotate(90deg) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a p {
  padding: 0 4px 28px;
  color: var(--muted);
  max-width: 680px;
}

/* ---------- Refund ---------- */

.refund-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.refund-card {
  border-left: 1px solid var(--sage);
  padding-left: clamp(24px, 3vw, 40px);
}

.refund-card h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 21px;
  color: var(--green);
  margin-bottom: 10px;
}

.refund-card p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }

.text-link {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: opacity .2s ease;
}

.text-link:hover { opacity: .7; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 3.5vw, 40px);
}

.contact-rows { list-style: none; }

.contact-rows li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sage-soft);
  align-items: start;
}

.contact-rows li:last-child { border-bottom: none; }

.contact-rows .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.contact-rows .value { font-size: 16.5px; line-height: 1.55; }

.contact-rows .value a { text-decoration: none; font-weight: 500; }
.contact-rows .value a:hover { text-decoration: underline; }

.contact-copy p { color: var(--muted); max-width: 460px; margin-bottom: 28px; }

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

.site-footer {
  background: var(--green-deep);
  color: var(--sage);
  padding: clamp(56px, 7vw, 80px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 60px);
}

.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { font-size: 15px; line-height: 1.7; margin-top: 16px; max-width: 320px; }
.footer-brand a { color: var(--sage); text-decoration: none; }
.footer-brand a:hover { color: var(--cream); }

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

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

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

.footer-col a {
  color: var(--sage);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid rgba(210, 216, 208, .18);
  padding: 22px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(210, 216, 208, .75);
}

/* ---------- Policy pages ---------- */

.page-hero {
  padding: clamp(150px, 18vw, 180px) 0 clamp(40px, 5vw, 56px);
  background: var(--cream);
  border-bottom: 1px solid var(--sage);
}

.page-hero .display { font-size: clamp(36px, 5vw, 54px); }

.page-hero .updated {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  padding: clamp(56px, 7vw, 80px) 0 clamp(80px, 9vw, 110px);
}

.prose h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 24px;
  color: var(--green);
  margin: 44px 0 14px;
}

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

.prose p { color: var(--muted); margin-bottom: 16px; }

.prose ul {
  color: var(--muted);
  padding-left: 22px;
  margin-bottom: 16px;
}

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

.prose a { font-weight: 500; }

/* ---------- Scroll reveal ---------- */

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

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

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

@media (max-width: 960px) {
  .hero-grid,
  .service-grid,
  .who-grid,
  .refund-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-art { max-width: 520px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sage);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    display: none;
  }

  .main-nav.is-open { display: flex; }

  .main-nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--sage-soft);
    font-size: 16px;
  }

  .main-nav a:not(.btn)::after { display: none; }

  .main-nav .btn { margin-top: 14px; }

  .nav-toggle { display: block; }

  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-grid { grid-template-columns: 1fr; }

  .contact-rows li { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq-icon::before, .faq-icon::after { transition: none; }
}
