/*
  Dr Charles Linale Dental & Orthodontic Clinic — styles.css
  Real: brand colours, layout for real clinic content
  Placeholder: visual treatment of hours / team / testimonials sections
  Theme: Coastal Clinical Premium
*/

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --deep: #0B3B4A;
  --primary: #128299;
  --aqua: #3FC8C1;
  --mint: #E6F7F5;
  --sand: #F7F5F0;
  --ink: #10262C;
  --muted: #5B7278;
  --gold: #C9A24B;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-soft: 0 12px 32px -16px rgba(11, 59, 74, 0.22);
  --shadow-lift: 0 20px 40px -20px rgba(11, 59, 74, 0.28);
  --shadow-glow: 0 8px 28px -8px rgba(18, 130, 153, 0.45);

  --header-h: 72px;
  --mab-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: ease-out;

  --section-pad: clamp(3.5rem, 8vw, 7rem);
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--aqua);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  overflow-x: clip;
  padding-bottom: calc(var(--mab-h) + 0.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--aqua);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1 {
  font-size: clamp(2.35rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: balance;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.65rem, 5vw, 3rem);
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

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

@media (min-width: 768px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

@media (max-width: 379px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }
}

.accent {
  color: var(--primary);
}

.accent-aqua {
  color: var(--aqua);
}

.placeholder-note {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
}

/* ========== EYEBROWS ========== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.85rem;
  position: relative;
  padding-bottom: 0.45rem;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.eyebrow--light {
  color: var(--aqua);
}

.eyebrow--light::after {
  background: var(--gold);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    transform 0.18s var(--ease-out),
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 379px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding-inline: 1.1rem;
  }
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #0f6f84;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(18, 130, 153, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--deep);
  border-color: rgba(11, 59, 74, 0.28);
}

.btn-ghost:hover {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    backdrop-filter 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px -8px rgba(11, 59, 74, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  width: min(100% - 1.5rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--deep);
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.wordmark:hover {
  color: var(--primary);
}

.wordmark-mark {
  display: flex;
  flex-shrink: 0;
  color: var(--primary);
}

.wordmark-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

@media (min-width: 480px) {
  .wordmark-logo {
    width: 40px;
    height: 40px;
  }
}

.wordmark--footer .wordmark-logo {
  width: 36px;
  height: 36px;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.wordmark-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(0.82rem, 3.6vw, 0.95rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wordmark-cred {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-desktop {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: block;
  }

  .nav-desktop ul {
    display: flex;
    gap: 0.25rem;
  }

  .nav-desktop a {
    position: relative;
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
  }

  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--aqua);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }

  .nav-desktop a:hover {
    color: var(--primary);
  }

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.phone-chip {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--deep);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}

.phone-chip:hover {
  background: var(--aqua);
  color: var(--deep);
}

@media (min-width: 1100px) {
  .phone-chip {
    display: inline-flex;
  }
}

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

@media (min-width: 640px) {
  .header-actions .btn-primary {
    display: inline-flex;
  }
}

/* Hamburger */
.nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  z-index: 99;
  background: rgba(247, 245, 240, 0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem 1.25rem calc(var(--mab-h) + 1.5rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.mobile-nav nav a:not(.btn) {
  display: block;
  padding: 0.9rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7vw, 1.75rem);
  font-weight: 700;
  color: var(--deep);
  border-bottom: 1px solid rgba(11, 59, 74, 0.08);
}

.mobile-nav .btn {
  margin-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .mobile-nav {
    display: none !important;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0;
  background: linear-gradient(165deg, var(--mint) 0%, var(--sand) 45%, var(--white) 100%);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    min-height: 100svh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(63, 200, 193, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(18, 130, 153, 0.1), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
  flex: 1;
  align-content: center;
  padding: 1.25rem 0 1.5rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 3rem;
    padding: 1rem 0 2.5rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
  min-width: 0;
  max-width: 100%;
}

.hero-sub {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  max-width: 32rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.hero-ctas .btn {
  width: 100%;
}

@media (min-width: 420px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-ctas .btn {
    width: auto;
  }
}

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
  max-width: 100%;
}

.hero-trust .dot {
  display: none;
}

@media (min-width: 480px) {
  .hero-trust {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .hero-trust .dot {
    display: inline;
    color: var(--gold);
  }
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary), var(--deep));
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero-image-wrap {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    aspect-ratio: 5 / 4;
    max-height: 560px;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroFloat 8s ease-in-out infinite;
  will-change: transform;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: 48px;
  display: block;
}

@media (min-width: 768px) {
  .hero-wave svg {
    height: 72px;
  }
}

.credential-card {
  position: absolute;
  left: 0.75rem;
  right: auto;
  bottom: 2.5rem;
  z-index: 3;
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border-left: 3px solid var(--gold);
  max-width: min(220px, calc(100% - 1.5rem));
  animation: cardFloat 6s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 768px) {
  .credential-card {
    left: -0.5rem;
    bottom: 3.5rem;
    padding: 1.25rem 1.5rem;
    max-width: 250px;
  }
}

.credential-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.25rem;
}

.credential-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .credential-label {
    font-size: 0.7rem;
  }

  .credential-title {
    font-size: 1.05rem;
  }
}

.credential-uni {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(1.02) translateY(0); }
  50% { transform: scale(1.05) translateY(-1.5%); }
}

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

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-mint { background: var(--mint); }
.section-deep {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(63, 200, 193, 0.15), transparent 50%),
    radial-gradient(ellipse 40% 40% at 90% 100%, rgba(18, 130, 153, 0.2), transparent 45%),
    var(--deep);
  color: var(--white);
}

.section-header {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-header--light h2 {
  color: var(--white);
}

.section-header--light .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

.section-lead {
  font-size: 1.05rem;
  margin-top: -0.25rem;
}

/* ========== SERVICES — open list, no cards ========== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(11, 59, 74, 0.12);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  align-items: start;
  padding: 1.2rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(11, 59, 74, 0.12);
  box-shadow: none;
  border-radius: 0;
  transition: color 0.2s var(--ease-out);
  min-width: 0;
}

@media (min-width: 640px) {
  .service-card {
    grid-template-columns: 28px 1fr;
    column-gap: 1rem;
    padding: 1.35rem 0.15rem 1.35rem 0;
  }

  .service-card:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(11, 59, 74, 0.08);
  }

  .service-card:nth-child(even) {
    padding-left: 1.5rem;
  }
}

.service-card:hover {
  transform: none;
  box-shadow: none;
}

.service-card:hover .service-icon {
  color: var(--aqua);
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card--featured {
  background: transparent;
}

.service-icon {
  grid-row: 1 / span 2;
  width: auto;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.15rem;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  margin-bottom: 0;
  transition: color 0.2s;
}

.service-card h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.15rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.service-card p {
  grid-column: 2;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
  max-width: 28rem;
}

.service-badge {
  display: inline;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.about-visual {
  position: relative;
  max-width: 100%;
}

.about-accent {
  position: absolute;
  inset: -4% 0 auto auto;
  width: 58%;
  height: 58%;
  background: linear-gradient(135deg, var(--aqua), var(--gold));
  border-radius: var(--radius-xl);
  opacity: 0.35;
  z-index: 0;
}

@media (min-width: 800px) {
  .about-accent {
    inset: -8% -6% auto auto;
    width: 70%;
    height: 70%;
  }
}

.about-image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--mint), var(--primary));
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content p {
  margin-bottom: 1rem;
}

.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.cred-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--deep);
  max-width: 100%;
}

@media (min-width: 480px) {
  .cred-badges {
    gap: 0.65rem;
  }

  .cred-badges li {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
}

.cred-badge-icon {
  display: flex;
  color: var(--primary);
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  max-width: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.team-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--mint), var(--primary));
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-card h3,
.team-card .team-role,
.team-card .team-bio {
  padding-inline: 1.25rem;
}

.team-card h3 {
  margin: 1.15rem 0 0.25rem;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.team-bio {
  font-size: 0.9rem;
  padding-bottom: 1.35rem;
  margin: 0;
}

/* ========== EXPERIENCE BAND — open strip, no boxes ========== */
.experience-band .value-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 700px) {
  .experience-band .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .experience-band .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  padding: 1.35rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  transition: color 0.2s;
  min-width: 0;
}

@media (min-width: 700px) {
  .value-card {
    padding: 1.75rem 1.25rem 1.75rem 0;
  }

  .value-card:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .value-card:nth-child(even) {
    padding-left: 1.5rem;
    padding-right: 0;
  }
}

@media (min-width: 1000px) {
  .value-card {
    padding: 1.75rem 1.35rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .value-card:first-child {
    padding-left: 0;
  }

  .value-card:last-child {
    padding-right: 0;
    border-right: none;
  }

  .value-card:nth-child(odd),
  .value-card:nth-child(even) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .value-card:last-child {
    border-right: none;
  }
}

.value-card:hover {
  background: transparent;
  transform: none;
}

.value-icon {
  color: var(--aqua);
  margin-bottom: 0.85rem;
  opacity: 0.95;
}

.value-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.value-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
  max-width: 22rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials-track {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .testimonials-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--aqua);
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 480px) {
  .testimonial-card {
    padding: 1.75rem 1.5rem;
  }
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.25rem;
  flex: 1;
}

.testimonial-card blockquote p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 800;
  color: var(--deep);
  font-size: 0.9rem;
}

.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: center;
  }

  .map-wrap {
    min-height: 380px;
    aspect-ratio: 16 / 11;
  }
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0;
  min-width: 0;
}

.contact-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

@media (min-width: 480px) {
  .contact-list li {
    gap: 1rem;
  }
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--primary);
}

@media (min-width: 480px) {
  .contact-icon {
    width: 44px;
    height: 44px;
  }
}

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 0.25rem;
}

.contact-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-list a {
  font-weight: 600;
  color: var(--primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-list li > div {
  min-width: 0;
  flex: 1;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 11;
  background: var(--mint);
  margin-bottom: 0;
  min-height: 240px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 480px) {
  .map-wrap {
    min-height: 280px;
  }
}

.booking-band {
  margin-top: 3.5rem;
  background: var(--deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.booking-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(63, 200, 193, 0.14), transparent 55%);
  pointer-events: none;
}

.booking-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 1.25rem;
}

@media (min-width: 800px) {
  .booking-band {
    margin-top: 4.5rem;
  }

  .booking-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.15rem 2.35rem;
  }
}

.booking-band-copy {
  max-width: 26rem;
}

.booking-band-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.booking-band-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.booking-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .booking-actions {
    flex-direction: row;
    width: auto;
  }
}

/* Pair of flat, equal-weight CTAs — no glow, no stacked labels */
.btn-book,
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  flex: 1;
  width: 100%;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.btn-book:active,
.btn-call:active {
  transform: scale(0.98);
}

.btn-book {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}

.btn-book:hover {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--deep);
}

.btn-call {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

@media (min-width: 480px) {
  .btn-book,
  .btn-call {
    flex: 0 0 auto;
    min-width: 10.5rem;
    width: auto;
  }
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(63, 200, 193, 0.35), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(18, 130, 153, 0.25), transparent 40%),
    linear-gradient(160deg, var(--mint), #c5e8e6);
  color: var(--deep);
  z-index: 0;
}

.map-fallback p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--deep);
}

.map-fallback span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.map-wrap iframe {
  position: relative;
  z-index: 1;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  height: 100% !important;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}

.map-directions {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--white);
  color: var(--deep);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(18, 130, 153, 0.15);
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  max-width: calc(100% - 1.5rem);
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .map-directions {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    font-size: 0.7rem;
  }
}

.map-directions:hover {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.5rem 0 0;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 1.25rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 2rem;
  }
}

.wordmark--footer {
  color: var(--white);
  margin-bottom: 1rem;
}

.wordmark--footer:hover {
  color: var(--aqua);
}

.wordmark--footer .wordmark-cred {
  color: rgba(255, 255, 255, 0.55);
}

.wordmark--footer .wordmark-mark {
  color: var(--aqua);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 22rem;
}

.footer-nav h3,
.footer-contact h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1rem;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--aqua);
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  overflow-wrap: anywhere;
}

/* ========== MOBILE ACTION BAR ========== */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 32px -12px rgba(11, 59, 74, 0.2);
  border-top: 1px solid rgba(11, 59, 74, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .mobile-action-bar {
    display: none;
  }
}

.mab-btn {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s;
}

.mab-btn:active {
  transform: scale(0.97);
}

.mab-call {
  background: var(--mint);
  color: var(--deep);
}

.mab-book {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 480px) {
  .modal {
    align-items: center;
    padding: 1.25rem;
  }
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 59, 74, 0.55);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.75rem 1.35rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lift);
  animation: modalIn 0.3s var(--ease);
  max-height: min(90dvh, 640px);
  overflow-y: auto;
}

@media (min-width: 480px) {
  .modal-panel {
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
  }
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--sand);
  color: var(--deep);
}

.modal-panel h2 {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal-panel > p {
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-actions .btn {
  white-space: normal;
  text-align: center;
  width: 100%;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .services-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-ready .services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-ready .services-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.js-ready .services-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.js-ready .services-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.js-ready .services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.js-ready .services-grid .reveal:nth-child(7) { transition-delay: 0.35s; }
.js-ready .services-grid .reveal:nth-child(8) { transition-delay: 0.4s; }

.js-ready .team-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-ready .team-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.js-ready .team-grid .reveal:nth-child(3) { transition-delay: 0.25s; }

.js-ready .value-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-ready .value-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.js-ready .value-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.js-ready .value-grid .reveal:nth-child(4) { transition-delay: 0.35s; }

.js-ready .testimonials-track .reveal:nth-child(1) { transition-delay: 0.05s; }
.js-ready .testimonials-track .reveal:nth-child(2) { transition-delay: 0.15s; }
.js-ready .testimonials-track .reveal:nth-child(3) { transition-delay: 0.25s; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-image,
  .credential-card {
    animation: none !important;
  }
}
