/* ============================================
   The Potlee House — Brand Styles
   Cream · Rose · Gold · Deep Wine
   ============================================ */

:root {
  --cream: #fbf7f2;
  --cream-dark: #f0e6d8;
  --cream-deeper: #e8d9c8;
  --rose: #b76e79;
  --rose-light: #d4a0a7;
  --rose-soft: #f5e6e8;
  --gold: #c4a35a;
  --gold-light: #e0c878;
  --gold-deep: #9a7b3c;
  --wine: #5c1a2e;
  --wine-deep: #3d1020;
  --wine-soft: #7a2e45;
  --ink: #2c1810;
  --ink-soft: #5c4033;
  --muted: #8b7355;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(92, 26, 46, 0.1);
  --shadow-soft: 0 4px 20px rgba(92, 26, 46, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 76px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--wine);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-deep);
}

ul {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--wine);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 36em;
}

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

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header .lead {
  margin: 0.75rem auto 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(92, 26, 46, 0.25);
}

.btn-primary:hover {
  background: var(--wine-soft);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(92, 26, 46, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--wine-deep);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.35);
}

.btn-gold:hover {
  color: var(--wine-deep);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border-color: var(--wine);
  color: var(--wine);
}

.btn-outline:hover {
  background: var(--wine);
  color: var(--cream);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--cream);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: var(--cream);
  color: var(--wine);
  border-color: var(--cream);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(92, 26, 46, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--wine);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.5rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--wine);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wine);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(61, 16, 32, 0.82) 0%,
      rgba(92, 26, 46, 0.55) 45%,
      rgba(92, 26, 46, 0.25) 100%
    ),
    url("../assets/images/hero.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--cream);
  max-width: 640px;
  padding: 4rem 0;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero .eyebrow {
  color: var(--gold-light);
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(251, 247, 242, 0.88);
  margin-bottom: 2rem;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(224, 200, 120, 0.35);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

/* ---- Feature cards / intro strip ---- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 163, 90, 0.15);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(92, 26, 46, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose-soft);
  color: var(--wine);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---- Product / gallery grids ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 26, 46, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.card-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(92, 26, 46, 0.88);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.35rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-price span {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ---- Gallery ---- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--cream-deeper);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--cream-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(61, 16, 32, 0.75));
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  color: var(--cream);
  font-size: 0.9rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item.hidden {
  display: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(44, 24, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.95rem;
  text-align: center;
}

/* ---- Forms ---- */
.form {
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field label .req {
  color: var(--rose);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cream-deeper);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.2);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--rose-soft);
  border-left: 3px solid var(--rose);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  background: #fce8ea;
  color: #7a1f2b;
  border: 1px solid #e8b4bc;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.checkbox-field input {
  margin-top: 0.25rem;
  accent-color: var(--wine);
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(135deg, var(--wine-deep) 0%, var(--wine) 55%, var(--wine-soft) 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 20%,
    rgba(196, 163, 90, 0.2),
    transparent 50%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--cream);
}

.page-hero .lead {
  color: rgba(251, 247, 242, 0.85);
  margin: 0.75rem auto 0;
}

.page-hero .eyebrow {
  color: var(--gold-light);
}

/* ---- About ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
  padding: 1.15rem 0.75rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 163, 90, 0.2);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--wine);
  font-weight: 600;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ---- Split / custom order ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 26, 46, 0.06);
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

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

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(196, 163, 90, 0.18);
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--wine);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-size: 0.85rem;
}

.social-link:hover {
  background: var(--wine-soft);
  color: var(--white);
}

/* ---- CTA band ---- */
.cta-band {
  background:
    linear-gradient(120deg, var(--wine-deep), var(--wine) 50%, #7a2e45);
  color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.12);
  top: -120px;
  right: -80px;
}

.cta-band h2 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(251, 247, 242, 0.85);
  max-width: 32em;
  margin: 0 auto 1.75rem;
}

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

/* ---- Footer ---- */
.site-footer {
  background: var(--wine-deep);
  color: rgba(251, 247, 242, 0.8);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: var(--cream);
  margin-bottom: 0.85rem;
}

.footer-brand .logo-sub {
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: rgba(251, 247, 242, 0.75);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(251, 247, 242, 0.55);
}

/* ---- Floating WhatsApp ---- */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease);
  text-decoration: none;
}

.float-wa:hover {
  transform: scale(1.08);
  color: white;
}

.float-wa svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ---- Shop modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(44, 24, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--cream);
  border-radius: var(--radius);
  width: min(100%, 520px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal-close {
  border: none;
  background: var(--cream-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--wine);
  flex-shrink: 0;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

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

/* ---- Utility ---- */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 0;
  color: var(--gold);
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .intro-grid,
  .grid-3,
  .about-layout,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .split-sticky {
    position: static;
  }
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(251, 247, 242, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    padding: 2rem;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    font-family: var(--font-display);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 90vh;
  }

  .intro-grid {
    margin-top: 0;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 520px) {
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
