:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --card: #ffffff;
  --border: #e0e0e0;
  --charcoal: #2d2d2d;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  font-weight: 300;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--charcoal);
}

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

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: var(--charcoal);
  color: var(--bg);
}

.btn--primary:hover,
.btn--primary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background-color: transparent;
  color: var(--bg);
  border: 1px solid var(--bg);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.header__logo {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.header__toggle-line {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__link:hover,
.header__link:focus {
  color: var(--muted);
}

.header__cta {
  padding: 0.625rem 1.5rem;
  background-color: var(--charcoal);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header__cta:hover,
.header__cta:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__image-wrapper {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero__content {
  text-align: center;
  color: var(--bg);
  z-index: 1;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about__text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about__badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.badge__icon {
  font-size: 2rem;
}

.badge__text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

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

.service-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.service-card__duration {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.service-card__price {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.service-card__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.service-card__link:hover,
.service-card__link:focus {
  background-color: var(--charcoal);
  color: var(--bg);
  border-color: var(--charcoal);
}

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

.team-card {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.team-card__image-wrapper {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--border);
}

.team-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-card:hover .team-card__image {
  filter: grayscale(0%);
}

.team-card__name {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.team-card__specialty {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.team-card__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.team-card__link:hover,
.team-card__link:focus {
  background-color: var(--charcoal);
  color: var(--bg);
  border-color: var(--charcoal);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4 / 3;
  background-color: var(--border);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.gallery__item:hover .gallery__image {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.reviews__carousel {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.reviews__track {
  position: relative;
  min-height: 200px;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  padding: 2rem;
}

.review-card.active {
  opacity: 1;
  pointer-events: auto;
}

.review-card__text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-card__author {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.reviews__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.reviews__dot:hover,
.reviews__dot:focus {
  transform: scale(1.2);
}

.reviews__dot.active {
  background-color: var(--charcoal);
}

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

.visit__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visit__block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.visit__block:last-of-type {
  border-bottom: none;
}

.visit__subtitle {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.visit__address {
  font-style: normal;
  line-height: 1.8;
  color: var(--muted);
}

.visit__phone {
  font-size: 1.125rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.visit__phone:hover,
.visit__phone:focus {
  color: var(--muted);
}

.visit__hours {
  width: 100%;
  border-collapse: collapse;
}

.visit__hours td {
  padding: 0.5rem 0;
  color: var(--muted);
}

.visit__hours td:first-child {
  font-weight: 500;
  color: var(--text);
}

.visit__hours td:last-child {
  text-align: right;
}

.visit__map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

.visit__map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.footer {
  background-color: var(--charcoal);
  color: var(--bg);
  padding: 3rem 0 2rem;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.footer__social {
  display: flex;
  gap: 1.5rem;
}

.footer__social-link {
  color: var(--bg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer__social-link:hover,
.footer__social-link:focus {
  opacity: 0.7;
  transform: translateY(-2px);
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
  opacity: 0.7;
}

.footer__copyright {
  font-size: 0.875rem;
  opacity: 0.7;
}

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

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--card);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
  }

  .header__nav.active {
    right: 0;
  }

  .header__cta {
    width: 100%;
    text-align: center;
  }

  .header__toggle.active .header__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__toggle.active .header__toggle-line:nth-child(2) {
    opacity: 0;
  }

  .header__toggle.active .header__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero {
    min-height: 500px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto;
  }

  .section {
    padding: 3rem 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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