/* ============================================
   KYMA — Modern Greek Dining
   ============================================ */

/* Fonts */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa/BodoniModa-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/BodoniModa/BodoniModa-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --off-black: #111111;
  --warm-charcoal: #1A1A1A;
  --deeper: #0B0B0B;
  --ivory: #F5F1EB;
  --ivory-dim: rgba(245, 241, 235, 0.7);
  --ivory-faint: rgba(245, 241, 235, 0.45);
  --ivory-ghost: rgba(245, 241, 235, 0.12);
  --line: rgba(245, 241, 235, 0.18);
  --olive: #66715C;
  --copper: #A56A43;
  --copper-glow: rgba(165, 106, 67, 0.35);

  /* Type */
  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;

  /* Layout */
  --nav-h: 84px;
  --gutter: clamp(20px, 4vw, 64px);
  --max-w: 1680px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--off-black);
  color: var(--ivory);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

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

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: none;
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.92 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--copper);
  border-radius: 50%;
  transition: opacity 0.2s, transform 0.15s var(--ease);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 241, 235, 0.4);
  border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s, background 0.3s, opacity 0.2s;
}
.cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: var(--copper);
  background: rgba(165, 106, 67, 0.08);
}
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(165, 106, 67, 0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: screen;
}
@media (max-width: 900px) {
  .cursor-dot, .cursor-ring, .cursor-glow { display: none; }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--off-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.loader-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: rise 0.9s var(--ease) forwards;
}
.loader-logo span:nth-child(1) { animation-delay: 0.05s; }
.loader-logo span:nth-child(2) { animation-delay: 0.15s; }
.loader-logo span:nth-child(3) { animation-delay: 0.25s; }
.loader-logo span:nth-child(4) { animation-delay: 0.35s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.loader-wave {
  width: 120px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 0.6s forwards;
}
@keyframes fade-in {
  to { opacity: 1; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ivory);
}
.nav-menu {
  display: flex;
  gap: 44px;
  align-items: center;
  list-style: none;
}
.nav-menu a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivory-dim);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.4s var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ivory);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}
.nav-cta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  padding: 14px 26px;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.nav-cta:hover {
  color: var(--off-black);
}
.nav-cta:hover::before {
  transform: translateY(0);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu, .nav-cta {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--off-black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  }
  .nav-menu {
    flex-direction: column;
    gap: 32px;
    padding: 60px var(--gutter) 20px;
    border-top: 1px solid var(--line);
    align-items: flex-start;
    height: auto;
    z-index: 99;
  }
  .nav-menu a { font-size: 18px; letter-spacing: 0.16em; }
  .nav-cta {
    margin: 0 var(--gutter) 40px;
    justify-content: center;
    padding: 18px 26px;
    top: calc(var(--nav-h) + 280px);
    z-index: 99;
  }
  .nav.open .nav-menu,
  .nav.open .nav-cta {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--copper);
}

.h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.italic {
  font-style: italic;
  font-weight: 400;
}
.body-lg {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ivory-dim);
  font-weight: 300;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  border: 1px solid var(--ivory);
  color: var(--ivory);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.4s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover {
  color: var(--off-black);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn.copper {
  border-color: var(--copper);
  color: var(--copper);
}
.btn.copper::before {
  background: var(--copper);
}
.btn.copper:hover {
  color: var(--ivory);
}
.btn-arrow {
  width: 16px;
  height: 10px;
  position: relative;
  display: inline-block;
}
.btn-arrow::before,
.btn-arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.btn-arrow::before {
  top: 4.5px;
  left: 0;
  right: 0;
  height: 1px;
}
.btn-arrow::after {
  right: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  background: none;
}

/* ============================================
   WAVE ELEMENT
   ============================================ */
.wave {
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}
.wave-divider {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  color: var(--copper);
  opacity: 0.6;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) var(--gutter);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-mask {
  overflow: hidden;
}
.reveal-mask > * {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.reveal-mask.in > * {
  transform: translateY(0);
}
.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img img {
  transform: scale(1.15);
  transition: transform 1.4s var(--ease);
}
.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--off-black);
  transform: translateY(0);
  transition: transform 1.2s var(--ease);
}
.reveal-img.in img {
  transform: scale(1);
}
.reveal-img.in::after {
  transform: translateY(-101%);
}

/* delays */
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.4s; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--deeper);
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 40px;
  position: relative;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-tagline {
  font-style: italic;
  font-family: var(--serif);
  color: var(--ivory-dim);
  font-size: 18px;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--copper);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a,
.footer-col li {
  font-size: 14px;
  color: var(--ivory-dim);
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--ivory);
}
.footer-base {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ivory-faint);
  letter-spacing: 0.08em;
}
.footer-base a:hover { color: var(--ivory); }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { font-size: 36px; }
  .footer-base {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--off-black);
  z-index: 9998;
  transform: translateY(100%);
  pointer-events: none;
}
.page-transition.out {
  animation: transition-out 0.8s var(--ease) forwards;
}
@keyframes transition-out {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* ============================================
   UTILITIES
   ============================================ */
.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: inline-block;
}
