/* ============================================================================
   Dr. Shipra Chadda, DMD — token system
   Concept: "Quiet Enamel" — warm ivory + glazed teal + a single kiln-coral accent.
   Every component below reads these custom properties; no raw colors in markup.
   ========================================================================== */

@font-face {
  font-family: "Piazzolla";
  src: url("./fonts/piazzolla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Piazzolla";
  src: url("./fonts/piazzolla-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Piazzolla";
  src: url("./fonts/piazzolla-600italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("./fonts/work-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("./fonts/work-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("./fonts/work-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("./fonts/work-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- color: HSL components (h s% l%), composed via hsl(var(--x)) ---- */
  --background: 36 42% 96%;
  --background-alt: 34 36% 91%;
  --surface: 36 46% 98%;
  --foreground: 200 16% 15%;
  --muted: 30 10% 46%;
  --muted-foreground: 30 8% 40%;
  --border: 30 16% 85%;

  --primary: 182 46% 24%;
  --primary-glow: 182 40% 36%;
  --primary-foreground: 36 42% 97%;

  --accent: 14 76% 55%;
  --accent-glow: 14 82% 66%;
  --accent-foreground: 36 42% 97%;

  /* ---- gradients ---- */
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
  --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--background-alt)));
  --gradient-accent-wash: radial-gradient(circle at 25% 20%, hsl(var(--accent) / 0.16), transparent 55%);
  --gradient-sheen: linear-gradient(100deg, hsl(var(--primary)) 30%, hsl(var(--accent-glow)) 45%, hsl(var(--primary)) 60%);

  /* ---- brand-tinted shadows ---- */
  --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.35);
  --shadow-glow: 0 0 40px hsl(var(--accent) / 0.25);
  --shadow-soft: 0 2px 14px hsl(var(--foreground) / 0.07);
  --shadow-card: 0 1px 2px hsl(var(--foreground) / 0.05), 0 8px 24px -12px hsl(var(--primary) / 0.18);

  /* ---- radius scale (one scale, site-wide) ---- */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* ---- spacing rhythm ---- */
  --space-3xs: 0.375rem;
  --space-2xs: 0.75rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 4rem;
  --space-xl: 6.5rem;
  --space-2xl: 9rem;

  /* ---- type ---- */
  --font-display: "Piazzolla", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 65ch;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-med: 320ms;
}

@keyframes sheen-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -40% 0; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rail-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: hsl(var(--foreground));
}

p { margin: 0; }

.measure { max-width: var(--measure); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

section { position: relative; }

/* ---------------------------------------------------------------------------
   Buttons — one identity per CTA intent, defined once
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

/* call-intent — appears wherever the phone number is the action, site-wide */
.btn--call {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-elegant);
}
.btn--call:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn--call:active { transform: translateY(0); }

/* quiet secondary — internal navigation intent (View services, etc.) */
.btn--quiet {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn--quiet:hover { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.06); }

/* directions intent — used only on location/contact context */
.btn--directions {
  background: hsl(var(--surface));
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: var(--shadow-soft);
}
.btn--directions:hover { background: hsl(var(--primary) / 0.08); }

/* ---------------------------------------------------------------------------
   Demo attribution banner (compliance)
   ------------------------------------------------------------------------ */
.demo-banner {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-align: center;
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
}

/* ---------------------------------------------------------------------------
   Nav
   ------------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(var(--background) / 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2xs);
  gap: var(--space-sm);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  color: hsl(var(--foreground));
  min-width: 0;
  flex-shrink: 1;
}
.nav__brand img { width: 34px; height: 34px; flex-shrink: 0; }
.nav__brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: hsl(var(--muted));
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .nav__brand { font-size: 0.92rem; }
  .nav__brand small { display: none; }
  .nav__row { gap: var(--space-2xs); }
  .nav__cta.btn { padding: 0.7rem 1rem; font-size: 0.85rem; }
}
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.94rem;
  font-weight: 500;
}
.nav__links a { color: hsl(var(--muted-foreground)); transition: color var(--dur-fast) var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: hsl(var(--primary)); }
@media (min-width: 860px) { .nav__links { display: flex; } }
.nav__cta { flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   Hero — asymmetric bleed, headline sheen (the wow moment)
   ------------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 76dvh;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; min-height: 88dvh; }
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-sm) var(--space-lg);
  position: relative;
  z-index: 2;
}
@media (min-width: 900px) {
  .hero__copy { padding: var(--space-lg) var(--space-lg) var(--space-lg) max(var(--space-lg), calc((100vw - 1180px) / 2 + var(--space-sm))); margin-right: -3rem; }
}
.hero__headline {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  max-width: 11ch;
  background: var(--gradient-sheen);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen-sweep 1.4s var(--ease-out) 0.15s both;
}
@media (prefers-reduced-motion: reduce) {
  .hero__headline { background-position: 0 0; animation: none; }
}
.hero__sub {
  font-size: 1.14rem;
  color: hsl(var(--muted-foreground));
  max-width: 42ch;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.hero__figure {
  position: relative;
  min-height: 40vh;
  overflow: hidden;
}
@media (min-width: 900px) { .hero__figure { min-height: 88dvh; } }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, hsl(var(--background)) 0%, hsl(var(--background) / 0) 22%);
}
@media (min-width: 900px) { .hero__figure::after { background: linear-gradient(90deg, hsl(var(--background)) 0%, hsl(var(--background) / 0) 18%); } }

/* ---------------------------------------------------------------------------
   Promise strip — hairline three-up, no cards
   ------------------------------------------------------------------------ */
.strip {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
}
.strip__row {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .strip__row { grid-template-columns: repeat(3, 1fr); } }
.strip__item {
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 760px) {
  .strip__item { border-top: none; border-left: 1px solid hsl(var(--border)); }
  .strip__item:first-child { border-left: none; }
}
.strip__item h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 0.4rem; }
.strip__item p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; }

/* ---------------------------------------------------------------------------
   Offset service rows
   ------------------------------------------------------------------------ */
.rows { padding-block: var(--space-xl); }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
  padding-block: var(--space-lg);
}
@media (min-width: 860px) {
  .row { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .row--flip .row__figure { order: 2; }
  .row--flip .row__copy { order: 1; }
}
.row + .row { border-top: 1px solid hsl(var(--border)); }
.row__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3.1;
}
.row__figure img { width: 100%; height: 100%; object-fit: cover; }
.row__copy h3 { font-size: 1.7rem; margin-bottom: var(--space-2xs); }
.row__copy p { color: hsl(var(--muted-foreground)); max-width: 46ch; }
.row__copy .btn { margin-top: var(--space-sm); }

/* ---------------------------------------------------------------------------
   Full-bleed color-field statement break
   ------------------------------------------------------------------------ */
.statement {
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  padding: var(--space-2xl) var(--space-sm);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.statement::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-accent-wash);
  pointer-events: none;
}
.statement__text {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.3;
}
.statement__cite {
  position: relative;
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: hsl(var(--primary-foreground) / 0.78);
}

/* ---------------------------------------------------------------------------
   Vertical process rail
   ------------------------------------------------------------------------ */
.rail { padding-block: var(--space-xl); }
.rail__list { position: relative; max-width: 640px; margin-inline: auto; }
.rail__list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: hsl(var(--border));
  transform-origin: top;
  animation: rail-grow 0.9s var(--ease-out) both;
}
.rail__step {
  position: relative;
  padding-left: 3.2rem;
  padding-bottom: var(--space-lg);
}
.rail__step:last-child { padding-bottom: 0; }
.rail__marker {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: hsl(var(--surface));
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
}
.rail__step h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.rail__step p { color: hsl(var(--muted-foreground)); max-width: 46ch; }

/* ---------------------------------------------------------------------------
   Visit / CTA band
   ------------------------------------------------------------------------ */
.visit-band {
  background: hsl(var(--background-alt));
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
}
.visit-band__panel {
  max-width: 700px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.visit-band address {
  font-style: normal;
  color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------------------------
   Bento profile panel (about page)
   ------------------------------------------------------------------------ */
.bento {
  position: relative;
  min-height: 74dvh;
  display: flex;
  align-items: flex-end;
}
.bento__figure { position: absolute; inset: 0; }
.bento__figure img { width: 100%; height: 100%; object-fit: cover; }
.bento__figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, hsl(var(--foreground) / 0.55), transparent 55%);
}
.bento__card {
  position: relative;
  z-index: 2;
  margin: var(--space-sm);
  margin-bottom: var(--space-lg);
  background: hsl(var(--surface));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elegant);
  padding: var(--space-md);
  max-width: 560px;
}
@media (min-width: 860px) { .bento__card { margin: var(--space-lg); margin-bottom: var(--space-lg); } }
.bento__card h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: var(--space-xs); }
.bento__card p { color: hsl(var(--muted-foreground)); }

/* credentials strip */
.creds {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}
.creds__row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .creds__row { grid-template-columns: repeat(3, 1fr); } }
.creds__item {
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}
@media (min-width: 760px) {
  .creds__item { border-top: none; border-left: 1px solid hsl(var(--border)); }
  .creds__item:first-child { border-left: none; }
}
.creds__item strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.3rem; }
.creds__item span { color: hsl(var(--muted-foreground)); font-size: 0.92rem; }

/* plain community note band */
.note-band { padding: var(--space-xl) var(--space-sm); }
.note-band__inner { max-width: 62ch; margin-inline: auto; text-align: center; }
.note-band p { color: hsl(var(--muted-foreground)); font-size: 1.06rem; }

/* ---------------------------------------------------------------------------
   Page intro (services/contact headers)
   ------------------------------------------------------------------------ */
.page-intro {
  padding: var(--space-xl) var(--space-sm) var(--space-md);
  text-align: center;
}
.page-intro h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.page-intro p { color: hsl(var(--muted-foreground)); max-width: 52ch; margin: var(--space-xs) auto 0; }

/* catalog scaffolding list band */
.also-band { background: hsl(var(--surface)); border-top: 1px solid hsl(var(--border)); padding: var(--space-lg) var(--space-sm); }
.also-band__inner { max-width: 900px; margin-inline: auto; }
.also-band h2 { font-size: 1.3rem; margin-bottom: var(--space-sm); text-align: center; }
.also-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 700px) { .also-list { grid-template-columns: 1fr 1fr; } }
.also-list li {
  padding: var(--space-2xs) 0;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}
.also-list li:nth-child(-n+2) { border-top: none; }

/* ---------------------------------------------------------------------------
   Contact page — stacked info rail + split figure, map band
   ------------------------------------------------------------------------ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0 var(--space-xl);
}
@media (min-width: 900px) { .contact-split { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact-rail { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-rail__item { display: flex; gap: var(--space-xs); align-items: flex-start; }
.contact-rail__item strong { display: block; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.2rem; }
.contact-rail__item span, .contact-rail__item a { color: hsl(var(--muted-foreground)); }
.contact-rail__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.contact-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4/3.2; }
.contact-figure img { width: 100%; height: 100%; object-fit: cover; }

.map-band { padding: 0 0 var(--space-xl); }
.map-card {
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  background: var(--gradient-subtle);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.map-card__pin {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.map-card__address { color: hsl(var(--muted-foreground)); font-size: 1.02rem; }

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */
.footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: var(--space-lg) var(--space-sm) var(--space-md);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer__brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.05rem; }
.footer__brand img { width: 28px; height: 28px; }
.footer address { font-style: normal; color: hsl(var(--background) / 0.65); font-size: 0.92rem; line-height: 1.7; }
.footer nav { display: flex; gap: var(--space-sm); flex-wrap: wrap; font-size: 0.92rem; }
.footer nav a { color: hsl(var(--background) / 0.75); }
.footer nav a:hover { color: hsl(var(--background)); }
.footer__legal {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid hsl(var(--background) / 0.15);
  font-size: 0.82rem;
  color: hsl(var(--background) / 0.55);
}
.footer__legal a { color: hsl(var(--background) / 0.8); text-decoration: underline; text-underline-offset: 2px; }
