:root {
  --bg: #FAF9F6;
  --bg-tint: #F3EEE6;
  --text: #2C2C2C;
  --muted: #666;
  --accent: #AEC3B0;    
  --accent-dark: #7EA18F;
  --gold: #966b23;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --container: min(1100px, 92vw);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.75;
}

a {
  color: var(--gold);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: #1f2b27;
}
h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.4rem);
  position: relative;
}
.lead {
  font-size: 1.125rem;
}
.muted {
  color: var(--muted);
}
.sect-head .sub {
  color: var(--muted);
  max-width: 50ch;
  margin: 0.25rem auto 0;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1102;  
}

.logo img {
  width: 10rem;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.menu {
  display: flex;
  align-items: center;
}
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 10px 6px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.menu a:hover,
.menu a:focus-visible {
  color: var(--gold);
  background: rgba(214, 168, 90, 0.08);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1f2b27;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.hero {
  position: relative;
  height: clamp(70vh, 62vw, 88vh);
  display: grid;
  place-items: center;
  background: url('../img/background.webp') center/cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
}
.hero__content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero__title {
  font-size: clamp(2.2rem, 2.2rem + 2.2vw, 3.6rem);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  color: #fff;
}
.hero__lead {
  margin: 0.6rem auto 1.2rem;
  max-width: 50ch;
  opacity: 0.95;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  background: transparent; 
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--text);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}
.scroll-down .mouse {
  width: 25px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 20px;
  margin: 0 auto 8px;
  position: relative;
}
.scroll-down .mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}

.section {
  padding: clamp(56px, 6vw, 96px) 0;
}
.section--tint {
  background: var(--bg-tint);
}
.section--white {
  background: #fff;
}
.container {
  width: var(--container);
  margin: 0 auto;
}
.sect-head {
  text-align: center;
  margin-bottom: 26px;
}
.sep {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.content-stack {
  max-width: 78ch;
  margin-inline: auto;
}
.quote {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 20px 26px;
  background: #fff;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-style: italic;
  color: #444;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.tile {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, background 0.2s;
}
.tile__icon {
  font-size: 1.8rem;
  color: var(--accent-dark);
}
.tile:hover {
  transform: translateY(-3px);
  background: #fff;
}

#specializations .container {
  width: 100%;
  padding: 2rem;
}

.note {
  max-width: 80ch;
  margin: 0 auto 20px;
  text-align: center;
  color: #555;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.gallery__item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery__item img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery__item figcaption {
  padding: 10px 14px;
  font-weight: 600;
}

.checks {
  list-style: none;
  padding: 0;
  max-width: 70ch;
  margin: 16px auto 24px;
}
.checks li {
  position: relative;
  padding-left: 26px;
  margin: 0.4rem 0;
}
.checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}
.vcard {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.extras {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.mini {
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 14px;
}
.mini .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.note-left {
  border-left: 3px solid var(--gold);
}

.map-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.map {
  width: 100%;
  max-width: 420px;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.map img {
  width: 100%;
  display: block;
}
.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: var(--text);
}
.map-btn img {
  width: 32px;
  height: auto;
}

.foot {
  background: #fff;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.foot__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.credit {
  color: var(--gold);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 1200;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal__img {
  max-width: min(92vw, 900px);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.modal__cap {
  color: #fff;
  margin-top: 10px;
  text-align: center;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  font-size: 28px;
  cursor: pointer;
}

.to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateY(8px);
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(214, 168, 90, 0.6);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }
  .menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: calc(var(--header-h) + 12px) 20px 20px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateX(110%);
    transition: transform 0.35s;
    overflow: auto;
    overscroll-behavior: contain;
  }
  html.nav-open .menu {
    transform: translateX(0);
  }
  html.nav-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    gap: 4px;
  }
  .nav-links a {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    transition: background 0.18s, color 0.18s, transform 0.18s;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(214, 168, 90, 0.12);
    color: var(--gold);
    transform: translateX(2px);
  }
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

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

@media (min-width: 901px) {
  .burger {
    display: none;
  }
  .menu {
    position: static;
    transform: none;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .menu-backdrop {
    opacity: 0;
    pointer-events: none;
  }
  html.nav-open {
    overflow: auto;
  }
  .site-nav {
    margin-left: auto; 
  }
}

@media (min-width: 1600px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
  #specializations .container {
    width: 85%;
    padding: 5rem;
  }
}
