/* Doctors of California, Inc.
   Design language takes cues from lavitalitymd.com: Cormorant Garamond display,
   Inter body, cream and warm dark, brass accent used sparingly, full-bleed
   photographic bands under a scrim, generous air.
   Deliberately NOT the La Vitality MD identity: separate legal entity,
   separate mark, deeper and less saturated brass. */

:root {
  --ink:        #14120E;
  --ink-soft:   #2A2620;
  --cream:      #F3F0E8;
  --cream-deep: #EAE5D9;
  --white:      #FCFBF8;
  --brass:      #B08A46;
  --brass-lt:   #C8A24C;
  --muted:      #6B6459;
  --rule:       #DCD5C6;
  --maxw:       1140px;
  --readw:      680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); font-weight: 400; }

p { margin: 0 0 1.3em; }
a { color: var(--brass); text-decoration: none; border-bottom: 1px solid rgba(176,138,70,.35); transition: border-color .2s, color .2s; }
a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.read { max-width: var(--readw); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin: 0 0 1.4em;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243,240,232,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brandmark { display: flex; align-items: center; gap: 13px; border: 0; }
.brandmark:hover { border: 0; }
.brandmark .glyph {
  width: 38px; height: 38px; flex: none;
  border: 1px solid var(--brass);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; letter-spacing: .04em;
  color: var(--brass);
}
.brandmark .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem; color: var(--ink); line-height: 1.15;
}
.brandmark .sub {
  display: block; font-family: 'Inter', sans-serif;
  font-size: .62rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.nav { display: flex; gap: 30px; align-items: center; }
.nav a {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); border: 0; font-weight: 500;
}
.nav a:hover { color: var(--brass); border: 0; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(440px, 64vh, 620px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,14,.42) 0%, rgba(20,18,14,.58) 55%, rgba(20,18,14,.72) 100%);
}
.hero .inner { position: relative; z-index: 2; padding: 96px 28px; max-width: 860px; }
.hero h1 { color: var(--white); }
.hero .lede {
  color: rgba(252,251,248,.9);
  font-size: 1.04rem; max-width: 620px; margin: 1.4em auto 0;
}
.hero .eyebrow { color: var(--brass-lt); }

/* page banner (inner pages) */
.banner { padding: 86px 0 52px; border-bottom: 1px solid var(--rule); background: var(--white); }
.banner h1 { margin-bottom: .25em; }
.banner .lede { color: var(--muted); max-width: var(--readw); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 9vw, 108px) 0; }
.sec-white { background: var(--white); }
.sec-deep  { background: var(--cream-deep); }
.rule-top  { border-top: 1px solid var(--rule); }

.figure-band { position: relative; overflow: hidden; }
.figure-band img { display: block; width: 100%; height: clamp(260px, 38vw, 440px); object-fit: cover; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 82px); align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.two-col.stretch { align-items: stretch; }
.two-col picture { display: block; height: 100%; }
.two-col img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

/* consent page: form column carries more weight than the aside */
.consent-layout {
  display: grid; grid-template-columns: 1.18fr .82fr;
  gap: clamp(36px, 5vw, 64px); align-items: start;
}
@media (max-width: 940px) { .consent-layout { grid-template-columns: 1fr; } }
.consent-layout .form-card { max-width: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 46px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--rule); padding: 34px 30px; }
.card h3 { margin-bottom: .45em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.creds { list-style: none; padding: 0; margin: 0; }
.creds li {
  padding: 15px 0 15px 26px; border-bottom: 1px solid var(--rule);
  position: relative; font-size: .96rem;
}
.creds li:last-child { border-bottom: 0; }
.creds li::before {
  content: ''; position: absolute; left: 0; top: 25px;
  width: 11px; height: 1px; background: var(--brass);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 32px; border: 1px solid var(--brass); border-radius: 999px;
  background: var(--brass); color: var(--white);
  font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--brass); border-color: var(--brass); }
.btn.ghost { background: transparent; color: var(--brass); }
.btn.ghost:hover { background: var(--brass); color: var(--white); }
.hero .btn.ghost { color: var(--white); border-color: rgba(252,251,248,.6); }
.hero .btn.ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- legal / long-form ---------- */
.legal { max-width: var(--readw); }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.1em; margin: 0 0 1.3em; }
.legal li { margin-bottom: .5em; }
.effective {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--rule);
  padding-bottom: 1.4em; margin-bottom: 2.4em;
}
.callout {
  background: var(--cream-deep); border-left: 2px solid var(--brass);
  padding: 26px 30px; margin: 2em 0; font-size: .96rem;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--rule);
  padding: clamp(32px, 5vw, 52px); max-width: 620px;
}
.field { margin-bottom: 24px; }
.field label {
  display: block; font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink); font-weight: 500; margin-bottom: 9px;
}
.field input[type=text], .field input[type=tel], .field input[type=email] {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--rule); background: var(--cream);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  border-radius: 2px;
}
.field input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 7px; }

.consent {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--rule);
  padding: 24px 26px; margin: 30px 0;
}
.consent input[type=checkbox] {
  margin: 4px 0 0; width: 19px; height: 19px; flex: none; accent-color: var(--brass);
}
.consent label { font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }

.req { color: var(--brass); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(252,251,248,.68); padding: 72px 0 40px; font-size: .9rem; }
.site-foot h4 {
  font-family: 'Inter', sans-serif; font-size: .7rem; letter-spacing: .19em;
  text-transform: uppercase; color: var(--brass-lt); margin: 0 0 18px; font-weight: 600;
}
.site-foot a { color: rgba(252,251,248,.82); border-bottom-color: rgba(252,251,248,.22); }
.site-foot a:hover { color: var(--brass-lt); border-bottom-color: var(--brass-lt); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 38px; } }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 10px; }
.foot-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--white); margin: 0 0 10px; }
.foot-bottom {
  border-top: 1px solid rgba(252,251,248,.13); margin-top: 52px; padding-top: 26px;
  font-size: .8rem; color: rgba(252,251,248,.5);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 0; }
