/* ============================================================
   Avetalive — shared stylesheet
   Professional B2B medical-billing visual system
   Plastic Surgery page (plastic-surgery-billing.html) uses a
   slightly warmer accent via the .specialty-page body class.
   ============================================================ */

:root {
  --navy:        #0b2545;
  --navy-deep:   #07182f;
  --teal:        #1b8a8a;
  --teal-dark:   #126e6e;
  --accent:      #c9a96a;   /* understated gold for main site */
  --ink:         #1a1f2b;
  --body:        #3a4250;
  --muted:       #6b7280;
  --line:        #e4e8ef;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --bg-dark:     #07182f;
  --success:     #2a7d5a;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 2px rgba(11,37,69,.06), 0 2px 8px rgba(11,37,69,.04);
  --shadow-md:   0 4px 12px rgba(11,37,69,.08), 0 12px 24px rgba(11,37,69,.06);
  --maxw:        1160px;
  --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif:  "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

/* Warmer accent for the dedicated plastic-surgery page */
body.specialty-page {
  --accent:    #b98a6a;    /* soft rose-gold */
  --accent-2:  #8a5a48;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

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

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfd8e3;
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cfd8e3; }
.topbar a:hover { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-footer .brand-logo {
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
@media (max-width: 680px) {
  .brand-logo { height: 32px; }
  .brand-footer .brand-logo { height: 30px; }
}
/* Legacy text mark (kept for fallback; no longer rendered) */
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-sans);
  font-size: .95rem; letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--teal-dark); border-bottom-color: var(--teal); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--accent); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s, background .15s, border-color .15s, color .15s;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-accent { background: var(--accent); color: #1a1200; }
.btn-accent:hover { filter: brightness(.95); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, #07182f 0%, #0b2545 55%, #123863 100%);
  color: #eaf0f7;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(27,138,138,.25), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 780px; }
.hero .lead {
  font-size: 1.15rem;
  max-width: 720px;
  color: #c9d3e0;
  margin-bottom: 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}

/* Specialty page hero variant */
.specialty-page .hero {
  background: linear-gradient(120deg, #0b2545 0%, #2a3a55 60%, #5a4a48 100%);
}
.specialty-page .hero::after {
  background: radial-gradient(circle, rgba(185,138,106,.28), transparent 60%);
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.compact { padding: 48px 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--navy-deep); color: #d5dce7; }
section.dark h2, section.dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grid utility ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d4dbe5; }
.card h3 { margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--body); margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.specialty-page .card .icon {
  background: linear-gradient(135deg, var(--navy), var(--accent));
}

/* Specialty mini-card (specialties section + specialties.html) */
.specialty-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.specialty-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.specialty-card h3 { margin-bottom: 6px; color: var(--navy); font-size: 1.1rem; }
.specialty-card p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.specialty-card .tag {
  position: absolute; top: 14px; right: 14px;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #1a1200;
  padding: 4px 8px; border-radius: 999px; font-weight: 700;
}
.specialty-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.specialty-card a.more {
  font-size: .88rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.specialty-card a.more::after { content: " \2192"; }

/* ---------- Metric stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.stat { text-align: center; border-right: 1px solid var(--line); padding: 8px 12px; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat .label {
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Feature list (two-column text+list) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--teal);
}
.check-list li strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* CPT code chips */
.code-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.code-chips .chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
}
.code-chips .chip strong { color: var(--teal-dark); }

/* Testimonial placeholder */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); line-height: 1.5; }
.testimonial cite { display: block; margin-top: 14px; font-style: normal; color: var(--muted); font-size: .9rem; }

/* ---------- Video block (responsive 16:9) ---------- */
.video-section {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}
.video-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}
.video-block .copy h2 { margin-bottom: 12px; }
.video-block .copy p { color: var(--body); }
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0b2545;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.video-wrap iframe,
.video-wrap video,
.video-wrap img.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-wrap img.video-thumb {
  transition: transform .3s ease, filter .3s ease;
  filter: brightness(.85);
}
.video-wrap:hover img.video-thumb {
  transform: scale(1.03);
  filter: brightness(.95);
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
  z-index: 2;
}
.video-wrap:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(220, 0, 0, 1);
}
.video-play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
}
.video-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  background: rgba(0,0,0,.55);
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: .02em;
}
@media (max-width: 680px) {
  .video-play { width: 60px; height: 60px; }
  .video-play::before { border-width: 11px 0 11px 17px; margin-left: 4px; }
}
@media (max-width: 920px) {
  .video-block { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: box-shadow .15s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #d4dbe5; }
.faq summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.3rem; color: var(--teal); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--body); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--teal));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d5e1ec; }
.specialty-page .cta-band { background: linear-gradient(120deg, var(--navy), var(--accent-2)); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,138,138,.18);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #aab5c4;
  padding: 56px 0 24px;
  font-size: .92rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .88rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #c8d2e0; }
.site-footer a:hover { color: #fff; }
.site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem;
  color: #8592a5;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .stat:nth-child(2) { border-right: 0; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--line); gap: 14px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; text-align: center; justify-content: center; }
  .site-footer .grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}
