/* Delta Foot and Wound Care — site styles
   Palette and type come from design/design-spec.md */

:root {
  --cream: #E6DFD3;
  --cream-light: #EFEAE2;
  --olive: #505942;
  --olive-line: #657056;
  --walnut: #493A2C;
  --bronze: #66543D;
  --tobacco: #806247;
  --oak: #C5A77F;
  --line: #D3C9B8;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--walnut);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--tobacco); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--olive);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.7rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; }

h1 em, h2 em { font-style: italic; color: var(--tobacco); }

p { margin: 0 0 1.1em; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  margin-bottom: 1rem;
}

.lede { font-size: 1.25rem; max-width: 36em; }

/* Placeholder text to be replaced once the client supplies it */
.todo {
  outline: 1px dashed var(--tobacco);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.btn {
  display: inline-block;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--olive);
  background-color: var(--olive);
  color: var(--cream);
  background-image: linear-gradient(var(--oak), var(--oak));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.5s ease, color 0.35s ease, border-color 0.5s ease;
}
.btn:hover,
.btn:focus-visible {
  background-size: 100% 100%;
  color: var(--walnut);
  border-color: var(--oak);
}

.btn--outline {
  background-color: transparent;
  color: var(--olive);
  background-image: linear-gradient(var(--olive), var(--olive));
}
.btn--outline:hover,
.btn--outline:focus-visible {
  color: var(--cream);
  border-color: var(--olive);
}

.btn--light {
  background-color: var(--cream);
  color: var(--olive);
  border-color: var(--cream);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--olive);
  color: var(--cream);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand img { height: 44px; width: auto; }
.brand-text {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}
.brand-text small {
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-left: 0.8em;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--oak); border-color: var(--oak); }
.nav .btn { padding: 0.7em 1.4em; border-color: var(--oak); background-color: transparent; color: var(--cream); }
.nav .btn:hover { color: var(--walnut); border-color: var(--oak); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px var(--gutter) 28px;
    background: var(--olive);
    border-top: 1px solid var(--olive-line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px);
  background:
    radial-gradient(1200px 520px at 85% 0%, rgba(197,167,127,0.38), transparent 70%),
    linear-gradient(180deg, var(--cream-light), var(--cream));
}
/* Video slot: drop a muted loop in assets/video/hero.mp4 and uncomment the <video> in index.html */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.25) saturate(0.85); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cream) 0%, rgba(230,223,211,0.85) 45%, rgba(230,223,211,0.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 10em; }

/* ---------- Services band ---------- */

.band {
  background: var(--cream-light);
  border-block: 1px solid var(--line);
}
.band ul {
  list-style: none;
  margin: 0;
  padding: 26px 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 32px);
}
.band li {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2.3vw, 1.7rem);
  color: var(--olive);
  white-space: nowrap;
  text-align: center;
  flex: 1;
}
@media (max-width: 560px) {
  .band ul { flex-wrap: wrap; }
  .band li { flex: 1 1 45%; white-space: normal; padding: 6px 0; }
}

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

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--light { background: var(--cream-light); }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 60px); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  text-decoration: none;
  color: var(--walnut);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.section--light .card { background: var(--cream); }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--oak);
  box-shadow: 0 14px 30px -18px rgba(73,58,44,0.45);
  color: var(--walnut);
}
.card h3 { margin-bottom: 0.4em; }
.card p { flex: 1; font-size: 1rem; }
.card .more {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
}

/* Wound care (olive) */
.wound { background: var(--olive); color: var(--cream); }
.wound h2 { color: var(--cream); }
.wound h2 em { color: var(--oak); }
.wound .eyebrow { color: var(--oak); }
.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 48px;
  counter-reset: stage;
}
@media (max-width: 900px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }
.stage { border-top: 1px solid var(--olive-line); padding-top: 22px; counter-increment: stage; }
.stage::before {
  content: "0" counter(stage);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--oak);
  margin-bottom: 10px;
}
.stage h3 { color: var(--oak); }
.stage p { font-size: 1rem; opacity: 0.92; }

/* Provider */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--oak), var(--tobacco));
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .placeholder-note {
  position: absolute;
  inset: auto 16px 16px 16px;
  font-size: 0.8rem;
  color: var(--cream);
  letter-spacing: 0.08em;
}
.creds { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); font-weight: 600; }

/* Referral strip */
.refer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--cream-light);
}
.refer h2 { margin-bottom: 0.2em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.refer p { margin: 0; max-width: 34em; }

/* Video section */
.video-slot {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--olive), #3f4733);
  display: grid;
  place-items: center;
  color: var(--cream);
}
.video-slot video { width: 100%; height: 100%; object-fit: cover; }

/* Inner pages */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); background: var(--cream-light); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }

.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .list-grid { grid-template-columns: 1fr; } }

.note {
  border-left: 3px solid var(--oak);
  background: var(--cream-light);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid dt { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-top: 1.4em; }
.contact-grid dd { margin: 0.2em 0 0; font-size: 1.15rem; }

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

.site-footer { background: var(--olive); color: var(--cream); padding: clamp(56px, 7vw, 90px) 0 36px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--oak); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--olive-line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); font-weight: 600; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-brand img { height: 90px; width: auto; }
.footer-brand .brand-text { font-size: 1.5rem; }
.footer-brand p { margin-top: 1em; font-size: 0.95rem; max-width: 20em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 0.88rem; }

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

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cream); color: var(--olive); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.footer-brand .brand-text small { display: block; margin: 8px 0 0; }
.portrait img { object-position: center 20%; filter: sepia(0.14) saturate(0.92) contrast(0.96) brightness(1.02); }
.portrait img { z-index: 1; }

/* Logo lockup: mark + DELTA wordmark images, tagline as live text */
.brand { gap: 14px; }
.brand .brand-mark { height: 40px; width: auto; }
.brand .brand-word { height: 20px; width: auto; }
.brand .brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--olive-line);
  line-height: 1.2;
}
@media (max-width: 520px) {
  .brand .brand-tag { display: none; }
  .brand .brand-mark { height: 36px; }
}
.footer-brand img { height: 150px; }
.nav a, .brand .brand-tag { white-space: nowrap; }
@media (max-width: 1120px) { .brand .brand-tag { display: none; } }

/* ---------- Appointment request form ---------- */
.form { max-width: 34em; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form label { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-bottom: 6px; }
.form .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--walnut);
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(197,167,127,0.45); }
.form input[aria-invalid="true"] { border-color: #8a3b2a; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.92rem; color: var(--bronze); margin: 4px 0 22px; }
.form-status { margin: 16px 0 0; font-weight: 600; min-height: 1.5em; }
.form-status.is-error { color: #8a3b2a; }
.form-status.is-ok { color: var(--olive); }
.form button[disabled] { opacity: 0.6; cursor: wait; }

.plans { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; max-width: 52em; }
.plans li {
  padding: 0.7em 1.3em;
  background: var(--cream);
  border: 1.5px solid var(--olive);
  border-radius: var(--radius);
  color: var(--olive);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  cursor: default;
  background-image: linear-gradient(var(--oak), var(--oak));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.45s ease, color 0.3s ease, border-color 0.45s ease;
}
.plans li:hover {
  background-size: 100% 100%;
  color: var(--walnut);
  border-color: var(--oak);
}
@media (prefers-reduced-motion: reduce) { .plans li { transition: none; } }
@media (max-width: 600px) { .plans { gap: 10px; } .plans li { font-size: 0.9rem; padding: 0.65em 1.1em; } }

/* Header logo: the client's one-line logo */
.brand .brand-logo { height: 58px; width: auto; }
@media (max-width: 520px) { .brand .brand-logo { height: 44px; } }

/* About page: name, credentials (half the size of the name), and bio in one block with the portrait */
.about-intro h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.about-intro .creds { font-size: clamp(1.1rem, 2.1vw, 1.8rem); letter-spacing: 0.08em; margin: 0.3rem 0 1.6rem; }

.contact-col { max-width: 36em; }
.contact-col dl { margin: 2.2rem 0 0; }
.contact-col dt { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); font-weight: 600; margin-top: 1.4em; }
.contact-col dt:first-child { margin-top: 0; }
.contact-col dd { margin: 0.2em 0 0; font-size: 1.15rem; }

/* Mid-width screens: keep the header menu in one row, just tighter */
@media (max-width: 1000px) and (min-width: 761px) {
  .nav { gap: 20px; }
  .nav a { font-size: 0.74rem; letter-spacing: 0.1em; }
  .nav .btn { padding: 0.65em 1.1em; }
  .brand .brand-logo { height: 48px; }
  .site-header .wrap { gap: 16px; }
}

/* ---------- Treatment and condition bubbles ---------- */
.bubbles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .bubbles { grid-template-columns: 1fr; } }

.bubble {
  background: var(--cream-light);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}
.section--light .bubble { background: var(--cream); }
.bubble:hover { border-color: var(--oak); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(73,58,44,0.5); }
.bubble[open] { border-color: var(--olive); box-shadow: 0 14px 30px -20px rgba(73,58,44,0.5); }

.bubble summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: block;
  padding: 24px 64px 24px 26px;
  border-radius: var(--radius);
}
.bubble summary::-webkit-details-marker { display: none; }
.bubble-title { display: block; font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; color: var(--olive); margin-bottom: 0.35em; }
.bubble-text { display: block; font-size: 1rem; line-height: 1.5; }

.bubble-icon {
  position: absolute;
  top: 26px;
  right: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--olive);
  transition: background-color 0.3s ease, transform 0.35s ease;
}
.bubble-icon::before, .bubble-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--olive);
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, background-color 0.3s ease;
}
.bubble-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.bubble:hover .bubble-icon { background: var(--oak); border-color: var(--oak); }
.bubble:hover .bubble-icon::before, .bubble:hover .bubble-icon::after { background: var(--walnut); }
.bubble[open] .bubble-icon { transform: rotate(180deg); }
.bubble[open] .bubble-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.bubble-body { padding: 0 26px 26px; border-top: 1px solid var(--line); margin: 0 26px; padding: 20px 0 26px; }
.bubble[open] .bubble-body { animation: bubble-in 0.45s ease both; }
.bubble-body p { font-size: 1rem; }
.bubble-body .btn-row { margin-top: 1.4rem; }
.bubble-body .btn { padding: 0.8em 1.4em; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble, .bubble-icon, .bubble-icon::before, .bubble-icon::after { transition: none; } .bubble[open] .bubble-body { animation: none; } }
