/* John R. Glenny, D.D.S. — preview site
   Calm, premium dental design. Mobile first. */

:root {
  --bg: #f6f3ee;
  --bg-soft: #eef4f3;
  --paper: #ffffff;
  --ink: #12363c;
  --ink-muted: #4a6368;
  --ink-faint: #6b8186;
  --teal: #1a6b73;
  --teal-mid: #2a818a;
  --teal-deep: #0c3d44;
  --teal-deep-2: #082c31;
  --accent: #c4844a;
  --accent-soft: #f3e4d2;
  --accent-hover: #a86d38;
  --star: #c9892e;
  --line: #e6e1d8;
  --line-strong: #d5cfc4;
  --focus: #1a6b73;
  --danger: #8a3a32;
  --shadow: 0 16px 48px rgba(12, 61, 68, 0.1);
  --shadow-soft: 0 8px 28px rgba(12, 61, 68, 0.07);
  --header-h: 4.5rem;
  --mobile-cta-h: 4.35rem;
  --radius: 1.15rem;
  --radius-sm: 0.7rem;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.85rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Layout */

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

.wrap-narrow {
  width: min(100% - 2rem, 42rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 243, 238, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 243, 238, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(12, 61, 68, 0.05);
}

.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-deep);
  min-width: 0;
}

.logo:hover {
  color: var(--teal-deep);
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  background: var(--teal-deep);
  color: #f7f5f1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.logo-mark svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-cred {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal-deep);
  background: rgba(26, 107, 115, 0.08);
}

.btn.btn-header {
  display: none;
}

.menu-btn {
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 0.7rem;
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.menu-btn svg {
  width: 1.35rem;
  height: 1.35rem;
}

.mobile-nav {
  display: none;
  padding: 0.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.is-open,
.mobile-nav:not([hidden]) {
  display: block;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  color: var(--teal-deep);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.is-active {
  color: var(--accent);
}

.mobile-nav .btn {
  margin-top: 1rem;
  width: 100%;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.05rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 550;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 132, 74, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--teal-deep);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--teal-deep);
}

.btn-outline:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(42rem, calc(100svh - var(--header-h)));
  display: grid;
  align-items: end;
  color: #f7f5f1;
  overflow: hidden;
  background: var(--teal-deep-2);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media .hero-poster,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.08);
  animation: kenburns 24s ease-in-out infinite alternate;
}

.hero-media .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 1;
  background: transparent;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 32, 36, 0.28) 0%, rgba(8, 32, 36, 0.15) 32%, rgba(8, 32, 36, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 32, 36, 0.78) 0%, rgba(8, 32, 36, 0.35) 55%, rgba(8, 32, 36, 0.15) 100%);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-shapes span:nth-child(1) {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: 12%;
  background: radial-gradient(circle, rgba(196, 132, 74, 0.55), transparent 70%);
}

.hero-shapes span:nth-child(2) {
  width: 14rem;
  height: 14rem;
  left: 8%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(42, 129, 138, 0.55), transparent 70%);
  animation-duration: 22s;
  animation-delay: -4s;
}

.hero-shapes span:nth-child(3) {
  width: 7rem;
  height: 7rem;
  right: 22%;
  bottom: 28%;
  background: radial-gradient(circle, rgba(247, 245, 241, 0.28), transparent 70%);
  animation-duration: 14s;
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 4.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 0.1s forwards;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  color: #f7f5f1;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.15em);
  animation: rise 0.95s var(--ease) forwards;
  animation-delay: calc(0.18s + var(--i) * 0.08s);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 32rem;
  color: rgba(247, 245, 241, 0.86);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.9s forwards;
}

.hero-actions {
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 1.05s forwards;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(247, 245, 241, 0.12);
  border: 1px solid rgba(247, 245, 241, 0.18);
  backdrop-filter: blur(10px);
  color: #f7f5f1;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards, float 5.5s ease-in-out infinite;
  animation-delay: var(--d, 1.2s), calc(var(--d, 1.2s) + 0.4s);
}

.trust-chip svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

/* Page hero (inner pages) */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--teal-deep);
  color: #f7f5f1;
  min-height: 18rem;
  display: grid;
  align-items: end;
}

.page-hero .hero-media img {
  animation-duration: 28s;
  object-position: 50% 45%;
}

.page-hero .hero-inner {
  padding: 4.25rem 0 2.75rem;
}

.page-hero h1 {
  color: #f7f5f1;
  max-width: 16ch;
  margin-bottom: 0.4rem;
}

.page-hero .hero-lead {
  margin-bottom: 0;
  animation-delay: 0.35s;
}

/* Sections */

.section {
  padding: 4.25rem 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.section-alt {
  background: var(--bg-soft);
}

.section-ink {
  background: var(--teal-deep);
  color: #e8efef;
}

.section-ink h2,
.section-ink h3 {
  color: #f7f5f1;
}

.section-ink .lede,
.section-ink .kicker {
  color: #d3e0e1;
}

.section-ink .kicker {
  color: var(--accent-soft);
}

/* Services */

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9ddd9;
}

.service-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.8rem;
  background: var(--bg-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.service-card h3 {
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Reviews */

.reviews {
  overflow: hidden;
}

.reviews-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.rating-badge .stars {
  color: var(--star);
  letter-spacing: 0.06em;
}

.carousel {
  position: relative;
}

.carousel:focus-visible {
  outline-offset: 6px;
  border-radius: var(--radius);
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap, 1rem);
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.review-card {
  flex: 0 0 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.3rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}

.review-stars {
  color: var(--star);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.review-text {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  white-space: pre-line;
  flex: 1 1 auto;
}

.review-text.is-open {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.read-more {
  margin: 0.55rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 550;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  align-self: flex-start;
}

.read-more[hidden] {
  display: none !important;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.google-g {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.review-name {
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.2;
}

.review-date {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
}

.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.carousel-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d2d1;
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: var(--teal-deep);
  transform: scale(1.25);
}

.reviews-cta {
  margin-top: 1.75rem;
  text-align: center;
}

/* Split / about teaser */

.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hours / visit */

.facts {
  display: grid;
  gap: 1rem;
}

.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
}

.fact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.fact-card a {
  color: var(--teal-deep);
  font-weight: 500;
  text-decoration: none;
}

.fact-card a:hover {
  text-decoration: underline;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.hours-table th {
  color: var(--ink);
  font-weight: 500;
  padding-right: 1rem;
}

.hours-table td {
  color: var(--ink-muted);
  text-align: right;
}

.hours-table tr.is-closed td {
  color: var(--ink-faint);
}

.hours-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.map-embed {
  border: 0;
  width: 100%;
  height: 16rem;
  border-radius: var(--radius);
  filter: grayscale(0.15) contrast(1.02);
}

/* Forms */

.appt-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.appt-form h2,
.form-block h2 {
  margin-bottom: 0.4rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--teal-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  background: #fcfbf9;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
  appearance: none;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
  background: #fff;
}

.form-note {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin: 0.85rem 0 0;
}

.form-success {
  background: var(--bg-soft);
  border: 1px solid #c9ddd9;
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  color: var(--teal-deep);
  font-size: 1.05rem;
  font-weight: 500;
}

/* About extras */

.quote-pull {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--teal-deep);
  margin: 1.5rem 0 0.6rem;
}

.quote-attr {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.amenity-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.amenity-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-muted);
}

.amenity-list svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--teal);
  margin-top: 0.2rem;
}

/* Footer */

.site-footer {
  background: var(--teal-deep-2);
  color: #d3e0e1;
  padding: 3rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer a {
  color: #f7f5f1;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.site-footer h3 {
  color: #f7f5f1;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.site-footer .logo-name {
  color: #f7f5f1;
  font-size: 1.4rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-meta {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #9bb0b3;
}

.footer-meta a {
  color: var(--accent-soft);
}

/* Mobile sticky CTA */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(247, 245, 241, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.mobile-cta .btn {
  min-height: 2.85rem;
  padding-inline: 0.6rem;
  font-size: 0.95rem;
}

body {
  padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom));
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-1.1rem);
}

[data-reveal="right"] {
  transform: translateX(1.1rem);
}

/* Animations */

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.08) translate(0, 0);
  }
  to {
    transform: scale(1.18) translate(-2.2%, -1.4%);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-6%, 8%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Breakpoints */

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .review-card {
    flex-basis: calc((100% - var(--carousel-gap, 1rem)) / 2);
  }

  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid.two .full {
    grid-column: 1 / -1;
  }

  .hero-inner {
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .map-embed {
    height: 20rem;
  }
}

@media (min-width: 900px) {
  .nav,
  .btn.btn-header {
    display: inline-flex;
  }

  .menu-btn,
  .mobile-nav,
  .mobile-cta {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: 3rem;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .review-card {
    flex-basis: calc((100% - (var(--carousel-gap, 1rem) * 2)) / 3);
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse .split-copy {
    order: 2;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  }

  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .reviews-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .facts.three {
    grid-template-columns: 1fr 1fr 1.3fr;
  }

  .page-hero {
    min-height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-shapes span,
  .trust-chip,
  .hero-title .word,
  .eyebrow,
  .hero-lead,
  .hero-actions {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-media img,
  .hero-media .hero-poster {
    transform: none;
  }

  .hero-media .hero-video {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel-track,
  .btn,
  .service-card {
    transition: none;
  }
}
