:root {
  --bg: #f9f8f5;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f3f1ec;
  --text: #1c2433;
  --muted: #5a6575;
  --gold: #a67c00;
  --gold-mid: #c9a227;
  --gold-light: #d4af37;
  --line: #e6e2d9;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(28, 36, 51, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
}

body.logo-intro-active {
  overflow: hidden;
}

/* Logo entrance */
.logo-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.logo-intro--exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo-intro__stage {
  perspective: 640px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

.logo-intro__mark {
  display: block;
  width: min(78vw, 440px);
  height: auto;
  background: transparent;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
  filter: drop-shadow(0 6px 20px rgba(28, 36, 51, 0.1));
  animation: logoIntroFlyIn 1.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoIntroFlyIn {
  0% {
    opacity: 0;
    transform: translateZ(-720px) scale(0.18);
    filter: blur(12px);
  }
  40% {
    opacity: 1;
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateZ(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-intro {
    display: none !important;
  }
}

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(28, 36, 51, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo-link {
  display: flex;
  align-items: center;
  background: transparent;
}

.logo-img {
  height: 62px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  background: transparent;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  background: linear-gradient(145deg, var(--gold-mid), var(--gold));
  color: #1a1508;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}

.header-cta:hover {
  filter: brightness(1.06);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .nav-desktop {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(28, 36, 51, 0.1);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.2s;
  }

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

  .nav-desktop a:not(.header-cta) {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header-cta--in-nav {
    margin-top: 1rem;
    text-align: center;
  }

  .header-cta--bar {
    display: none;
  }
}

@media (min-width: 881px) {
  .header-cta--in-nav {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201, 162, 39, 0.1), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, filter 0.2s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--gold-mid), var(--gold));
  color: #1a1508;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--gold-mid);
  color: var(--gold);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-row strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--gold-mid);
}

.stat-row span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 38%;
}

.hero-card-note a {
  color: var(--gold);
  font-weight: 600;
}

.hero-card-note a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery-block {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.gallery-block:last-child {
  margin-bottom: 0;
}

.gallery-block__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

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

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--wide img {
    aspect-ratio: 21 / 9;
    max-height: 440px;
  }
}

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

  .gallery-item--wide {
    grid-column: span 3;
  }

  .gallery-item--accent img {
    aspect-ratio: 21 / 8;
    max-height: 400px;
    object-position: center 42%;
  }
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(28, 36, 51, 0.06);
}

.gallery-item:hover img {
  transform: scale(1.02);
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 8px 24px rgba(28, 36, 51, 0.1);
}

.gallery-item figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.address-link {
  font-weight: 600;
  color: var(--text);
}

.address-link:hover {
  color: var(--gold);
}

.address-hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-mid);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
  color: var(--text);
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 38rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold-mid);
  font-size: 1.25rem;
}

/* Process */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-mid), var(--gold));
  color: #1a1508;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #fff9eb 0%, #f5f0e4 50%, #fff 100%);
  color: var(--text);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
  border-block: 1px solid var(--line);
}

.cta-band h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.cta-band .btn-primary {
  background: linear-gradient(145deg, var(--gold-mid), var(--gold));
  color: #1a1508;
}

.cta-band .btn-primary:hover {
  filter: brightness(1.06);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-box dl {
  margin: 0;
}

.contact-box dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-top: 1.25rem;
}

.contact-box dt:first-child {
  margin-top: 0;
}

.contact-box dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--text);
}

.contact-box a:hover {
  color: var(--gold);
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.site-footer a:hover {
  color: var(--gold);
}
