:root {
  --primary: #139e99;
  --primary-dark: #0f827d;
  --ink: #0c1e1e;
  --muted: #4c5b63;
  --background: #f5fbfa;
  --card: #ffffff;
  --border: rgba(19, 158, 153, 0.18);
  --shadow-soft: 0 24px 50px rgba(12, 30, 30, 0.12);
  --shadow-tight: 0 10px 30px rgba(8, 25, 25, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  font-size: 16px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Space Grotesk", sans-serif;
  line-height: 1.6;
  background: linear-gradient(180deg, #ffffff 0%, var(--background) 45%, #ffffff 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

.container {
  width: min(1200px, 100% - 1.5rem);
  margin: 0 auto;
  padding: 0 0.75rem;
}

.container.nav-bar {
  width: min(1200px, 100% - 1rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 30, 30, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-tight);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--primary);
  box-shadow: var(--shadow-tight);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  color: var(--ink);
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-tight);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn.outline {
  border-color: rgba(19, 158, 153, 0.4);
  color: var(--primary);
  background: rgba(19, 158, 153, 0.08);
}

.btn.outline:hover {
  border-color: var(--primary);
  background: rgba(19, 158, 153, 0.16);
}

.btn.small {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}

.btn.full-width {
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  opacity: 0;
  animation: fadeUp 0.85s ease forwards;
  animation-delay: 0.05s;
  will-change: transform, opacity;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtext {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 2rem 0 0;
}

.hero-stats li span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.95s ease forwards;
  animation-delay: 0.25s;
  will-change: transform, opacity;
}

.logo-ring {
  border-radius: var(--radius-lg);
  background: var(--primary);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatPulse 7s ease-in-out infinite;
}

.logo-wrap {
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-width: 240px;
}

.logo-wrap img {
  border-radius: 0;
  width: 100%;
  height: auto;
}

.hero-note ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.hero-review {
  background: var(--background);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.section {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1fr);
  align-items: start;
}

.about-grid > div:first-child {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.15s;
  will-change: transform, opacity;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.25s;
  will-change: transform, opacity;
}

.about-cards article {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  transition: transform 0.3s ease, color 0.3s ease;
}

.about-cards article:hover {
  transform: translateY(-6px);
  color: var(--primary);
}

.section-heading {
  text-align: left;
  max-width: 640px;
}

.pricing-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(12, 30, 30, 0.08);
  opacity: 0;
  animation: fadeUp 0.85s ease forwards;
  will-change: transform, opacity;
  transform-origin: center bottom;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(12, 30, 30, 0.12);
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.15s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }
.pricing-card:nth-child(4) { animation-delay: 0.25s; }
.pricing-card:nth-child(5) { animation-delay: 0.3s; }
.pricing-card:nth-child(6) { animation-delay: 0.35s; }
.pricing-card:nth-child(7) { animation-delay: 0.4s; }
.pricing-card:nth-child(8) { animation-delay: 0.45s; }

.pricing-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.price {
  font-weight: 700;
  color: var(--primary);
}

.reviews {
  background: #ffffff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.4fr);
  gap: 3rem;
  align-items: start;
  grid-template-areas:
    "intro slider"
    "intro map";
}

.reviews-grid > * {
  min-width: 0;
}

.review-intro {
  grid-area: intro;
}

.review-carousel {
  grid-area: slider;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 720px);
  flex: 1;
}

.review-list {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.25rem;
  flex: 1;
}

.review-list::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  border: none;
  background: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-tight);
  color: var(--primary);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.map-embed {
  grid-area: map;
  width: min(100%, 560px);
  justify-self: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: var(--background);
  flex: 0 0 min(360px, 80vw);
  scroll-snap-align: start;
  opacity: 0;
  animation: fadeUp 0.85s ease forwards;
  will-change: transform, opacity;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-tight);
}

.review-card:nth-of-type(1) { animation-delay: 0.1s; }
.review-card:nth-of-type(2) { animation-delay: 0.15s; }
.review-card:nth-of-type(3) { animation-delay: 0.2s; }
.review-card:nth-of-type(4) { animation-delay: 0.25s; }
.review-card:nth-of-type(5) { animation-delay: 0.3s; }
.review-card:nth-of-type(6) { animation-delay: 0.35s; }
.review-card:nth-of-type(7) { animation-delay: 0.4s; }
.review-card:nth-of-type(8) { animation-delay: 0.45s; }

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.review-stars svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--primary);
}

.hours {
  background: var(--background);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 0.2s;
  will-change: transform, opacity;
}

.hours-table {
  margin: 0;
  padding: 0;
}

.hours-table > div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(12, 30, 30, 0.08);
}

.hours-table dt {
  font-weight: 600;
}

.hours-table dd {
  margin: 0;
  color: var(--muted);
}

.cta {
  padding-bottom: 5rem;
}

.cta-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--primary), #0f827d);
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  background-size: 200% 200%;
  animation: fadeUp 0.95s ease forwards, gradientMove 8s ease infinite alternate;
  animation-delay: 0.15s, 0s;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: var(--shadow-soft);
}

.cta .btn.outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.site-footer {
  border-top: 1px solid rgba(12, 30, 30, 0.08);
  padding: 2rem 0 3rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* Contact page */

.contact-hero {
  background: var(--primary);
  color: #ffffff;
  padding: 4rem 0 3rem;
}

.contact-hero .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info-cards {
  display: grid;
  gap: 1rem;
}

.contact-info-cards article {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact-info-cards article a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-tight);
}

.contact-info-cards article a:hover {
  background: rgba(255, 255, 255, 0.9);
}

.contact-section {
  padding-top: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.8rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--muted);
}

.address-autocomplete {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(12, 30, 30, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tight);
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  max-height: 220px;
  overflow-y: auto;
  z-index: 5;
}

.address-suggestions li {
  margin: 0;
}

.address-suggestions button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.address-suggestions button:hover,
.address-suggestions button:focus-visible {
  background: rgba(19, 158, 153, 0.08);
}

.address-suggestions__status {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 30, 30, 0.15);
  padding: 0.9rem 1rem;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 158, 153, 0.18);
}

.form-footnote {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.95rem;
  color: var(--primary);
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-details article {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(12, 30, 30, 0.09);
  background: #ffffff;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }

  .btn.small {
    width: 100%;
    justify-content: center;
  }

  .hero-copy,
  .section-heading,
  .about-grid > div:first-child {
    text-align: center;
  }

  .section-heading {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-panel {
    text-align: center;
  }

  .contact-info-cards article a {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .cta-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .about-cards {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .review-carousel {
    gap: 0.5rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "slider"
      "map";
    gap: 2rem;
  }

  .map-embed {
    height: auto;
  }
}

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