/* Nine Angels Villa — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream: #f5f0e8;
  --cream-deep: #ede5d6;
  --paper: #faf7f1;
  --taupe: #a89b86;
  --taupe-light: #c4b8a3;
  --taupe-dark: #6b6354;
  --ink: #2d2a24;
  --ink-soft: #4a463d;
  --rose: #c9a896;
  --line: #d8cebc;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Ensure [hidden] always wins over display rules */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: #1a1814;
  overscroll-behavior: none;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

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

/* ── Type ─────────────────────────────────────────── */

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 6.5vw, 96px);
}

h2 {
  font-size: clamp(36px, 4.5vw, 64px);
}

h3 {
  font-size: clamp(24px, 2.4vw, 34px);
}

h4 {
  font-size: 22px;
  font-weight: 500;
}

p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}

.lede {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 56ch;
}

/* ── Layout ───────────────────────────────────────── */

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: clamp(80px, 10vw, 140px) 0;
}

/* ── Nav ──────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(216, 206, 188, 0.5);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.mobile-menu {
  display: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 13px;
  font-family: var(--serif);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 38px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-inner.open + .mobile-menu { display: flex; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 48px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(216,206,188,0.5);
    font-size: 14px;
  }
}

/* ── Buttons ──────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
}

.btn-ghost:hover {
  letter-spacing: 0.22em;
}

.arrow {
  display: inline-block;
  transition: transform 0.25s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ── Image placeholders ───────────────────────────── */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      #ddd2bc 0 1px,
      transparent 1px 14px
    ),
    linear-gradient(180deg, #e8dfcc, #d8cebc);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--taupe-dark);
}

.ph::after {
  content: attr(data-label);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  background: rgba(250,247,241,0.85);
  border-top-right-radius: 4px;
  margin: 0;
  border-top: 1px solid rgba(216,206,188,0.6);
  border-right: 1px solid rgba(216,206,188,0.6);
}

/* When a real photo is present, drop the stripe pattern and the label */
.ph[data-img] {
  background: var(--cream-deep);
  background-image: var(--ph-img);
  background-size: cover;
  background-position: var(--ph-pos, center);
}
.ph[data-img]::after { display: none; }

.ph-tall {
  aspect-ratio: 3 / 4;
}

.ph-wide {
  aspect-ratio: 16 / 10;
}

.ph-square {
  aspect-ratio: 1 / 1;
}

.ph-hero {
  aspect-ratio: 16 / 9;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  padding: 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 78vh;
}

.hero-text {
  padding: clamp(60px, 9vw, 130px) clamp(40px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}

.hero-text h1 {
  margin-top: 24px;
  margin-bottom: 28px;
}

.hero-text .lede {
  margin-bottom: 44px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-img {
  position: relative;
}

.hero-img .ph {
  position: absolute;
  inset: 0;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-img {
    aspect-ratio: 4 / 3;
  }
}

/* ── Cards ────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(45,42,36,0.25);
}

.card-body {
  padding: 36px 36px 40px;
}

.card .ph {
  aspect-ratio: 4 / 3;
}

.card h3 {
  margin: 18px 0 14px;
}

.card .meta {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--taupe-dark);
}

/* ── Footer ───────────────────────────────────────── */

.footer {
  background: var(--cream-deep);
  padding: 90px 0 36px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe-dark);
  margin-bottom: 22px;
}

.footer .brand {
  font-size: 28px;
  margin-bottom: 18px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer a:hover {
  color: var(--taupe-dark);
}

.footer p {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: var(--taupe-dark);
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── Decorative divider ───────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--taupe);
}

.divider::before,
.divider::after {
  content: '';
  flex: 0 1 80px;
  height: 1px;
  background: var(--line);
}

.divider-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
}

/* ── Section header ───────────────────────────────── */

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.section-head .eyebrow {
  margin-bottom: 18px;
  display: block;
}

.section-head h2 {
  margin-bottom: 20px;
}

.section-head p {
  margin: 0 auto;
}

/* ── Page header (interior pages) ─────────────────── */

.page-header {
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px);
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.page-header h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  margin-bottom: 24px;
}

.page-header .lede {
  margin: 0 auto;
}

/* ── Util ─────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

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

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  margin-top: 28px;
}

.feature-list li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--taupe);
}

@media (max-width: 600px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────── */

/* Soft cubic-bezier entrance — restrained, ~600-700ms */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.992);
  transition:
    opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Stagger direct children of any .reveal-stagger container */
.reveal-stagger.visible > *:nth-child(1) { --reveal-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { --reveal-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { --reveal-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { --reveal-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { --reveal-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { --reveal-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(7) { --reveal-delay: 480ms; }
.reveal-stagger.visible > *:nth-child(8) { --reveal-delay: 560ms; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* Page load fade */
body { animation: pageFade 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ken Burns hero */
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-img .ph[data-img] {
  animation: kenBurns 22s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

/* Hover lifts on event-types and gallery photos */
.event-type { transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.5s; }
.event-type:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(45,42,36,0.32);
}
.event-type .ph { transition: transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.event-type:hover .ph { transform: scale(1.03); }

.gallery-grid .ph {
  transition: transform 0.7s cubic-bezier(0.22,0.61,0.36,1), filter 0.5s;
  filter: saturate(0.96);
}
.gallery-grid .ph:hover {
  transform: scale(1.015);
  filter: saturate(1.05);
  z-index: 2;
}

/* Arrow nudge on btn hover */
.btn .arrow { display: inline-block; transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1); }
.btn:hover .arrow { transform: translateX(4px); }

/* Nav shrink on scroll */
.nav { transition: padding 0.4s ease, box-shadow 0.4s ease, background 0.4s ease; }
.nav.scrolled {
  background: rgba(250, 247, 241, 0.95);
  box-shadow: 0 4px 18px -10px rgba(45,42,36,0.18);
}
.nav.scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }
.nav-inner { transition: padding 0.4s ease; }

/* Count-up reset */
.count-up { font-variant-numeric: tabular-nums; }

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

/* ── Mark / monogram ──────────────────────────────── */

.monogram {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.04em;
}
