@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
  }
  body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  button, input, select, textarea {
    font: inherit;
  }
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
  }
  button:disabled {
    cursor: default;
  }
  a {
    color: inherit;
  }
  h1, h2, h3, h4, p {
    margin: 0;
  }
  ul, ol {
    margin: 0;
    padding-left: 1.25em;
  }
  dialog {
    color: inherit;
  }
  [hidden] {
    display: none !important;
  }
}

:root {
  /* Warm Porcelain & Linen Ground System */
  --bg: #FBF8F5;
  --surface: #F3ECE5;
  --surface-raised: #FFFFFF;
  --surface-hover: #ECE4DC;
  --surface-tint: #E8DED4;
  --border-light: rgba(43, 22, 37, 0.08);
  --border-strong: rgba(43, 22, 37, 0.16);
  --border-focus: #2B1625;

  /* Typography Colors */
  --ink: #2B1625;
  --ink-soft: #5C4556;
  --ink-muted: #846E7E;

  /* Nocturnal Dark Section Colors */
  --dark-bg: #22121E;
  --dark-surface: #2E1B2A;
  --dark-surface-elevated: #3A2335;
  --dark-border: rgba(251, 248, 245, 0.1);
  --dark-border-subtle: rgba(251, 248, 245, 0.06);
  --dark-ink: #FBF8F5;
  --dark-ink-soft: #D7C6D3;
  --dark-ink-muted: #9F8A9B;

  /* Fonts */
  --font-display: 'Gambarino', Georgia, serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid Spacing */
  --page-gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(48px, 6vw, 84px);
  --ease: cubic-bezier(.2, .7, .25, 1);

  /* Geometry & Architectural Precision (de-rounded, crisp) */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-pill: 4px;

  --shadow-xs: 0 1px 3px rgba(43, 22, 37, 0.04);
  --shadow-sm: 0 4px 14px -2px rgba(43, 22, 37, 0.06);
  --shadow-md: 0 12px 30px -8px rgba(43, 22, 37, 0.08), 0 2px 6px -1px rgba(43, 22, 37, 0.03);
  --shadow-lg: 0 24px 50px -12px rgba(43, 22, 37, 0.12), 0 6px 16px -3px rgba(43, 22, 37, 0.04);
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 160ms var(--ease), text-decoration-color 160ms var(--ease);
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1, h2, h3 {
  font-family: var(--font-display);
}

p {
  max-width: 65ch;
  color: var(--ink-soft);
}

h1, h2 {
  text-wrap: balance;
}

.section-shell {
  padding-inline: var(--page-gutter);
  max-width: 1440px;
  margin-inline: auto;
}

.section-heading {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 26ch;
}

.section-intro {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 14px;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 54px);
}

.section-heading-row .section-intro {
  max-width: 44ch;
  margin-top: 0;
}

/* Primary & Secondary Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  min-height: 52px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.button:hover {
  background: #3e2236;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.button-light {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--border-light);
}

.button-light:hover {
  background: #FFFFFF;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.text-link:hover {
  opacity: 0.8;
  transform: translateX(2px);
}

.demo-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 60ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 20px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript-note {
  padding: 16px var(--page-gutter);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

/* Header & Demo Utility Bar */
.demo-banner {
  padding: 8px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.demo-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 36px;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  transition: background-color 160ms var(--ease);
}

@media (pointer: coarse), (max-width: 768px) {
  .demo-info::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    width: 100%;
    height: 100%;
  }
}

.demo-info:hover {
  background: var(--surface-hover);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 96px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--ink);
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.9;
}

.wordmark span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: center;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.desktop-nav a {
  padding: 8px 4px;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}

.desktop-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 4px;
  gap: 2px;
}

.lang-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 150ms var(--ease), background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

@media (pointer: coarse), (max-width: 768px) {
  .lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 44px;
    min-height: 44px;
    width: 100%;
    height: 100%;
  }
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(43, 22, 37, 0.08);
}

.lang-sep {
  display: none;
}

.header-call {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--shadow-xs);
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.header-call:hover {
  background: #3e2236;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.mobile-lang-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  padding: 16px var(--page-gutter) 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  text-decoration: none;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a:last-child {
  border-bottom: 0;
  font-weight: 600;
  margin-top: 8px;
}

/* Hero Section */
.hero {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-copy > p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

.hero-location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding: 18px 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 520px;
}

.hero-location-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
}

.hero-location-text span {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.hero-location-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hero-location-links .text-link {
  font-size: 14px;
  padding: 0;
}

.hero-hours-link {
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-hours-link:hover {
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.hero-art {
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 1774 / 887;
  object-fit: contain;
  display: block;
  transition: transform 320ms var(--ease);
}

.hero-art:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Dark Sections: Care Preparation & Contact */
.dark-section {
  background: var(--dark-bg);
  color: var(--dark-ink);
  max-width: none;
  padding-inline: var(--page-gutter);
}

.dark-section .section-heading {
  color: var(--dark-ink);
}

.dark-section .section-intro {
  color: var(--dark-ink-soft);
}

.dark-section .demo-note {
  color: var(--dark-ink-muted);
}

.dark-section p {
  color: var(--dark-ink-soft);
}

.dark-section .text-link {
  color: var(--dark-ink);
}

.dark-section > .section-heading-row,
.dark-section > .care-topics,
.dark-section > .visit-checklist,
.dark-section > .contact-grid {
  max-width: 1440px;
  margin-inline: auto;
}

/* Care / Visit Preparation Section */
.care-section {
  padding-block: var(--section-gap);
}

.care-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: 36px;
}

.care-topic {
  background: transparent;
  border: none;
  border-top: 1px solid var(--dark-border);
  border-radius: 0;
  padding: 18px 0 0;
  transition: border-color 200ms var(--ease);
}

.care-topic:hover {
  border-color: rgba(251, 248, 245, 0.25);
}

.care-topic h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--dark-ink);
}

.care-topic p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dark-ink-soft);
}

.visit-checklist {
  background: transparent;
  border: none;
  border-top: 1px solid var(--dark-border);
  border-radius: 0;
  padding: 24px 0 0;
  margin-bottom: 28px;
}

.visit-checklist h3 {
  font-size: 21px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark-ink);
}

.visit-checklist ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.visit-checklist li {
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--dark-ink-muted);
  margin-bottom: 8px;
}

.visit-checklist h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark-ink);
}

.visit-checklist p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-ink-soft);
}

/* Contact Section & Grid */
.contact-section {
  padding-top: var(--section-gap);
  padding-bottom: clamp(60px, 8vw, 96px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}

.contact-card h3 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--dark-ink);
}

.contact-address address {
  font-style: normal;
  margin-bottom: 20px;
}

.contact-address address strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--dark-ink);
}

.contact-address address span {
  font-size: 17px;
  color: var(--dark-ink-soft);
}

.contact-address .button {
  width: 100%;
  margin-top: 20px;
}

.arrival-note {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border-subtle);
}

.arrival-note h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-ink);
  margin-bottom: 8px;
}

.arrival-note p {
  font-size: 14px;
  line-height: 1.6;
}

/* Hours Panel */
.hours-panel .hours-status {
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--dark-ink-muted);
}

.hours-panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.hours-panel th {
  text-align: left;
  font-weight: 400;
  color: var(--dark-ink-soft);
}

.hours-panel td {
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  color: var(--dark-ink);
}

.hours-panel th, .hours-panel td {
  padding: 11px 0;
  border-bottom: 1px solid var(--dark-border-subtle);
}

.hours-panel tr.is-open-day td {
  color: var(--dark-ink);
}

.schedule-source {
  font-size: 13px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--dark-ink-muted);
}

.schedule-source summary {
  cursor: pointer;
  padding-block: 4px;
}

.schedule-source p {
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.5;
  color: var(--dark-ink-muted);
}

.schedule-source a {
  color: var(--dark-ink-soft);
}

/* Contact Phone Card */
.phone-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  white-space: nowrap;
  text-decoration: none;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--dark-ink);
  transition: opacity 160ms var(--ease);
}

.phone-number:hover {
  opacity: 0.85;
  text-decoration: none;
}

.contact-phone p {
  font-size: 15px;
  line-height: 1.6;
}

.contact-phone .button {
  width: 100%;
  margin-top: 24px;
}

.contact-phone .contact-status {
  font-size: 13px;
  margin: 14px 0 10px;
  color: var(--dark-ink-muted);
}

.contact-phone .text-link {
  font-size: 14px;
  margin-top: auto;
}

/* Site Footer */
.site-footer {
  padding-block: 40px 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--dark-border);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 36px;
  text-decoration: none;
  line-height: 1;
  color: var(--dark-ink);
}

.site-footer p {
  font-size: 14px;
  color: var(--dark-ink-muted);
  margin-top: 8px;
}

.site-footer nav {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-footer nav a {
  padding-block: 6px;
  text-decoration: none;
  color: var(--dark-ink-soft);
}

.site-footer nav a:hover {
  color: var(--dark-ink);
  text-decoration: underline;
}

.footer-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--dark-ink-muted);
}

.kerning-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.kerning-logo-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.kerning-logo {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.footer-note .text-link {
  font-size: 13px;
  color: var(--dark-ink-muted);
  text-align: left;
}

/* Demo Modal Dialog */
.demo-dialog {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: calc(100% - 40px);
  max-height: 85dvh;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.demo-dialog::backdrop {
  background: rgba(34, 18, 30, 0.75);
  backdrop-filter: blur(8px);
}

.dialog-heading {
  display: flex;
  align-items: start;
  gap: 24px;
  justify-content: space-between;
}

.dialog-heading h2 {
  font-size: 32px;
  line-height: 1.15;
}

.dialog-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 160ms var(--ease);
}

.dialog-close:hover {
  background: var(--surface-hover);
}

.demo-dialog p, .demo-dialog ul {
  font-size: 15px;
  line-height: 1.65;
  margin-top: 18px;
  color: var(--ink-soft);
}

.demo-dialog li + li {
  margin-top: 8px;
}

.demo-dialog .button {
  margin-top: 28px;
}

.dialog-open {
  overflow: hidden;
}

/* Section Spacing Utilities */
.imodent-people,
.imodent-gallery,
.imodent-reviews {
  padding-block: var(--section-gap);
}

/* Mobile Carousel Indicators */
.carousel-indicators {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-block: 8px 4px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  transition: width 200ms var(--ease), background-color 200ms var(--ease);
}

.dark-section .carousel-dot {
  background: var(--dark-border);
}

.carousel-dot.is-active {
  width: 20px;
  background: var(--ink);
}

.dark-section .carousel-dot.is-active {
  background: var(--dark-ink);
}

.mobile-contact-bar {
  display: none;
}

/* Subtle Scroll Enter Animations */
@keyframes enter {
  from {
    opacity: 0.65;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-ready.is-visible {
  animation: enter 0.5s var(--ease) both;
}

/* Responsive Media Queries */
@media (max-width: 1079px) {
  .site-header {
    min-height: 80px;
    gap: 20px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual {
    justify-content: center;
  }
  .hero-art {
    max-width: 480px;
    margin-inline: auto;
  }
  .hero-location-card {
    max-width: 100%;
  }
  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-heading-row .section-intro {
    max-width: 60ch;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .contact-phone {
    grid-column: 1 / -1;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .carousel-indicators {
    display: flex;
  }

  .site-header {
    min-height: 68px;
    gap: 12px;
  }

  .wordmark {
    font-size: 32px;
  }

  .header-call {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  /* Compact Hero with immediate visibility */
  .hero {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(34px, 8.5vw, 48px);
    line-height: 1.08;
  }

  .hero-copy > p {
    font-size: 16.5px;
    margin-top: 14px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 14.5px;
  }

  .hero-location-card {
    margin-top: 20px;
    padding: 14px 18px;
  }

  .hero-art {
    max-width: 320px;
    max-height: 190px;
    margin-inline: auto;
  }

  /* Compact Care Section: Horizontal Scroll Snap Tracks */
  .care-section {
    padding-block: clamp(36px, 5.5vw, 56px);
  }

  .care-topics {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    scrollbar-width: none;
  }

  .care-topic {
    flex: 0 0 min(260px, 78vw);
    scroll-snap-align: start;
    padding: 14px 0 0;
  }

  .visit-checklist {
    padding-top: 20px;
    margin-bottom: 12px;
  }

  .visit-checklist ol {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .visit-checklist li {
    flex: 0 0 min(260px, 78vw);
    scroll-snap-align: start;
  }

  /* Compact Contact Section */
  .contact-section {
    padding-block: clamp(36px, 6vw, 64px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-card {
    padding: 22px 20px;
  }

  .contact-address address strong {
    font-size: 32px;
  }

  .phone-number {
    font-size: 30px;
  }

  .hours-panel th,
  .hours-panel td {
    padding: 8px 0;
    font-size: 14px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: calc(36px + env(safe-area-inset-bottom));
  }

  /* Native Mobile Bottom Action Bar */
  .mobile-contact-bar {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    background: rgba(34, 18, 30, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark-ink);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -4px 24px rgba(34, 18, 30, 0.28);
    border-top: 1px solid var(--dark-border);
  }

  .mobile-contact-bar a {
    padding: 11px 12px;
    font-size: 13.5px;
    font-weight: 600;
    min-height: 46px;
    border-radius: var(--radius-sm);
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .mobile-contact-bar a:first-child {
    background: var(--bg);
    color: var(--ink);
  }

  .mobile-contact-bar a:last-child {
    background: var(--dark-surface-elevated);
    color: var(--dark-ink);
    border: 1px solid var(--dark-border);
  }

  body:has(.mobile-contact-bar) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .wordmark {
    font-size: 28px;
  }
  .hero h1 {
    font-size: clamp(32px, 8.8vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
}
