:root {
  --bg: #f7f3ec;
  --bg-soft: #f0eae1;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #26221d;
  --muted: #645d54;
  --line: rgba(52, 44, 36, 0.12);
  --wine: #7d4c45;
  --gold: #b89254;
  --blue: #314a65;
  --shadow: 0 24px 60px rgba(55, 44, 32, 0.1);
  --radius: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(184, 146, 84, 0.12), transparent 22%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(90, 74, 54, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 74, 54, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 44%, transparent 100%);
  opacity: 0.35;
}

.topbar,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(var(--container), calc(100% - 28px));
  margin: 18px auto 0;
  padding: 16px 18px;
  position: sticky;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(251, 248, 243, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(55, 44, 32, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8f2e8, #eadcc3);
  border: 1px solid rgba(125, 76, 69, 0.12);
  color: var(--wine);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand__text strong,
h1,
h2,
h3 {
  font-family: "Spectral", serif;
  letter-spacing: 0.01em;
}

.brand__text strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.1;
}

.brand__text small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: #403a34;
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--wine);
  color: #fffdf9;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(125, 76, 69, 0.14);
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--line);
  box-shadow: none;
  color: var(--text);
}

.section {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  padding: 42px 0;
}

.section--tight {
  padding-top: 18px;
}

.section--soft {
  margin-top: 10px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.24));
  padding-left: 18px;
  padding-right: 18px;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 28px;
  align-items: center;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  line-height: 0.95;
  font-weight: 600;
}

.hero__lead {
  max-width: 44rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.84;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__meta,
.cards,
.contact-grid {
  display: grid;
  gap: 18px;
}

.hero__meta {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.panel,
.card,
.quote-card,
.contact-card,
.hero-card,
.feature-copy,
.map-card,
.support-block,
.history-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.panel {
  padding: 18px;
}

.panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 1rem;
}

.panel span,
.card p,
.feature-copy p,
.map-card p,
.support-block p,
.history-block p,
.contact-card strong {
  color: var(--muted);
  line-height: 1.75;
}

.hero__visual {
  perspective: 1200px;
}

.hero-card {
  min-height: 500px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.6)),
    radial-gradient(circle at top right, rgba(184, 146, 84, 0.16), transparent 36%);
}

.hero-card__cross {
  width: 88px;
  height: 132px;
  position: relative;
  margin-bottom: 18px;
}

.hero-card__cross::before,
.hero-card__cross::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, #c6a879, #8e6b3c);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(184, 146, 84, 0.16);
}

.hero-card__cross::before {
  width: 10px;
  height: 132px;
  left: 39px;
  top: 0;
}

.hero-card__cross::after {
  width: 68px;
  height: 10px;
  left: 10px;
  top: 34px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 2.45rem;
  font-weight: 600;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.hero-card__grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hero-card__grid div {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(52, 44, 36, 0.08);
}

.hero-card__grid span,
.card__label,
.photo-tile span,
.contact-card span,
.map-card__meta span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-card__grid strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.25rem;
  color: var(--text);
}

.hero-card__grid small {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 600;
}

.cards--three {
  grid-template-columns: repeat(3, 1fr);
}

.cards--two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 24px;
}

.card h3,
.map-card h3 {
  margin: 0 0 10px;
  font-size: 1.48rem;
  font-weight: 600;
}

.card__time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.feature-copy,
.quote-card,
.map-card,
.support-block,
.history-block {
  padding: 26px;
}

.feature-copy p + p,
.history-block p + p {
  margin-top: 14px;
}

.feature-actions {
  margin-top: 22px;
}

.quote-card {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(184, 146, 84, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.84);
}

.quote-card p {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 2rem;
  line-height: 1.4;
  color: #322d28;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.photo-tile {
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at top left, rgba(184, 146, 84, 0.16), transparent 35%),
    linear-gradient(135deg, #d9d2c7, #f1ece5 55%, #d8ceb9);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.photo-tile--large {
  grid-row: span 2;
  min-height: 460px;
}

.photo-tile strong {
  font-family: "Spectral", serif;
  font-size: 1.5rem;
  line-height: 1.25;
}

.map-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.map-stage {
  min-height: 500px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, #f4efe7, #ece5da);
}

.map-layers {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: 56% 56%;
  transition: transform 2600ms cubic-bezier(.22, .61, .36, 1);
}

.map-stage.is-visible .map-layers {
  transform: scale(1.42) translateY(2%);
}

.map-layer,
.map-roads {
  position: absolute;
  inset: 0;
}

.map-layer--far {
  background:
    radial-gradient(circle at 18% 22%, rgba(115, 136, 111, 0.32) 0 8%, transparent 8.3%),
    radial-gradient(circle at 70% 20%, rgba(115, 136, 111, 0.28) 0 9%, transparent 9.3%),
    radial-gradient(circle at 78% 68%, rgba(115, 136, 111, 0.24) 0 10%, transparent 10.3%),
    linear-gradient(135deg, rgba(255,255,255,0.25), rgba(214, 206, 191, 0.16));
}

.map-layer--mid {
  inset: 8%;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(207, 199, 184, 0.45), rgba(247, 243, 236, 0.72)),
    linear-gradient(0deg, rgba(112, 100, 84, 0.03), rgba(112, 100, 84, 0.03));
  box-shadow: inset 0 -20px 40px rgba(109, 96, 76, 0.08);
  transform: perspective(900px) rotateX(54deg) translateY(2%);
}

.map-layer--near {
  inset: 18%;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(224, 215, 201, 0.75));
  box-shadow:
    0 24px 40px rgba(70, 58, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: perspective(900px) rotateX(58deg) translateY(3%);
}

.map-roads {
  background:
    linear-gradient(90deg, transparent 0 29%, rgba(138, 126, 110, 0.28) 29% 31%, transparent 31% 58%, rgba(138, 126, 110, 0.22) 58% 60%, transparent 60%),
    linear-gradient(transparent 0 34%, rgba(138, 126, 110, 0.22) 34% 36%, transparent 36% 62%, rgba(138, 126, 110, 0.25) 62% 64%, transparent 64%),
    linear-gradient(140deg, transparent 0 42%, rgba(138, 126, 110, 0.18) 42% 44%, transparent 44%),
    linear-gradient(35deg, transparent 0 52%, rgba(138, 126, 110, 0.16) 52% 54%, transparent 54%);
  opacity: 0.8;
  transform: perspective(900px) rotateX(58deg) scale(0.88) translateY(8%);
}

.map-marker {
  position: absolute;
  left: 57%;
  top: 55%;
  width: 180px;
  height: 120px;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition:
    opacity 900ms ease,
    transform 1200ms cubic-bezier(.22, .61, .36, 1);
  transition-delay: 680ms;
}

.map-stage.is-visible .map-marker {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.map-marker__dot,
.map-marker__ring {
  position: absolute;
  left: 18px;
  top: 34px;
  border-radius: 50%;
}

.map-marker__dot {
  width: 16px;
  height: 16px;
  background: linear-gradient(180deg, #c29b60, #7d4c45);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
  z-index: 2;
}

.map-marker__ring {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(125, 76, 69, 0.42);
  animation: pulse 3.2s ease-in-out infinite;
}

.map-marker__label {
  position: absolute;
  left: 48px;
  top: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(52, 44, 36, 0.08);
  color: #2c2722;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(52, 44, 36, 0.09);
}

.map-stage.is-focused .map-marker__label {
  box-shadow: 0 18px 34px rgba(52, 44, 36, 0.14);
}

.map-card__meta {
  margin-top: 18px;
}

.map-card__meta div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(52, 44, 36, 0.08);
}

.map-card__actions {
  margin-top: 20px;
}

.support-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  padding: 22px;
}

.contact-card span {
  display: block;
}

.footer {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto 26px;
  padding: 8px 0 18px;
  color: #7b7268;
  text-align: center;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(4.8);
    opacity: 0;
  }
  100% {
    transform: scale(4.8);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .hero__meta,
  .cards--three,
  .cards--two,
  .feature-layout,
  .photo-grid,
  .map-block,
  .contact-grid,
  .support-block {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .support-block {
    align-items: flex-start;
  }

  .photo-tile--large {
    grid-row: auto;
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: min(100% - 18px, var(--container));
    top: 8px;
  }

  .section,
  .footer {
    width: min(100% - 18px, var(--container));
  }

  h1 {
    font-size: 2.85rem;
  }

  .hero-card,
  .card,
  .quote-card,
  .feature-copy,
  .map-card,
  .support-block,
  .history-block,
  .map-stage,
  .contact-card,
  .photo-tile {
    border-radius: 22px;
  }

  .quote-card p {
    font-size: 1.7rem;
  }

  .map-stage {
    min-height: 380px;
  }
}

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

  .tilt-card,
  .map-layers,
  .map-marker,
  .map-marker__ring,
  .button {
    animation: none !important;
    transition: none !important;
  }

  .map-stage.is-visible .map-layers,
  .map-stage.is-visible .map-marker {
    transform: none;
    opacity: 1;
  }
}
