/* ============================================================
   Sesilya — Georgian Gastronomy
   Colour and type follow "Sesilya Visual Identity System v1.0".
   ============================================================ */

:root{
  /* The Georgian Colour Library ------------------------------ */
  --javakheti-night: #2d3b42;   /* deep, muted — grounds the identity */
  --svan-stone:      #dedbcc;   /* cool warm neutral */
  --rtveli-amber:    #d89f61;   /* the accent: autumn harvest */
  --imereti-corn:    #e3ad55;
  --qvevri-clay:     #b0775c;
  --racha-plum:      #a77f80;
  --tkemali-leaf:    #99a285;
  --guria-tea:       #b6bb9b;
  --adjara-horizon:  #aab5b7;
  --imereti-fields:  #7f9e5b;

  /* Working tones derived from the library ------------------- */
  --paper:      #f5f3ed;
  --paper-warm: #edeade;
  --ink:        #222c31;
  --ink-soft:   #5d6a70;
  --hairline:   rgba(45, 59, 66, .14);
  --cream:      #f2efe6;

  /* Type ----------------------------------------------------- */
  --display: "Canela", "Canela Deck", "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Suisse Intl", "Suisse International", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --accent-serif: "Bree Serif", Georgia, serif;

  /* Rhythm --------------------------------------------------- */
  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap-col: clamp(18px, 2.2vw, 30px);
  --section: clamp(72px, 11vw, 160px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--rtveli-amber); color: #fff; }

:focus-visible{
  outline: 2px solid var(--rtveli-amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip{
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--javakheti-night); color: var(--cream);
  padding: 10px 18px; font-size: 13px; text-decoration: none;
}
.skip:focus { top: 16px; }

.shell{
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Shared type ───────────────────────────────────────────── */
.eyebrow{
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 20px;
  font-weight: 500;
}
h2{
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h3{
  font-family: var(--accent-serif);
  font-size: clamp(17px, .55vw + 13.6px, 20px);
  line-height: 1.35;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.lede{
  font-size: clamp(15px, 1.35vw, 17px);
  color: var(--ink-soft);
  max-width: 52ch;
}
.caption{
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.num{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { margin-bottom: 22px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-lg { padding: 16px 36px; font-size: 12.5px; }
.btn-solid{
  background: var(--javakheti-night);
  border-color: var(--javakheti-night);
  color: var(--cream);
}
.btn-solid:hover{
  background: var(--rtveli-amber);
  border-color: var(--rtveli-amber);
  color: var(--javakheti-night);
}
.btn-ghost{
  border-color: rgba(242, 239, 230, .5);
  color: var(--cream);
}
.btn-ghost:hover{
  border-color: var(--cream);
  background: rgba(242, 239, 230, .1);
}
.btn:active { transform: translateY(1px); }

/* ── Header ────────────────────────────────────────────────── */
.site-header{
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header::after{
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.site-header.is-stuck::after { opacity: 1; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--hairline); }

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: block;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.site-header.is-stuck .brand,
.site-header.is-open .brand { opacity: 1; pointer-events: auto; }
.brand img { width: 108px; height: auto; }

.nav{
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav > a:not(.btn){
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  padding: 4px 0;
  position: relative;
  transition: color .4s var(--ease);
}
.nav > a:not(.btn)::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.site-header.is-stuck .nav > a:not(.btn) { color: var(--ink); }
.nav-cta{
  background: transparent;
  border-color: rgba(242, 239, 230, .55);
  color: var(--cream);
  padding: 10px 22px;
}
.nav-cta:hover{
  background: var(--cream);
  border-color: var(--cream);
  color: var(--javakheti-night);
}
.site-header.is-stuck .nav-cta{
  background: var(--javakheti-night);
  border-color: var(--javakheti-night);
  color: var(--cream);
}
.site-header.is-stuck .nav-cta:hover{
  background: var(--rtveli-amber);
  border-color: var(--rtveli-amber);
  color: var(--javakheti-night);
}

.burger{
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span{
  position: absolute;
  left: 11px;
  width: 22px; height: 1px;
  background: var(--cream);
  transition: transform .35s var(--ease), opacity .25s var(--ease), background .5s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
.site-header.is-stuck .burger span,
.site-header.is-open .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--javakheti-night);
}
.hero-img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 50% 44%, rgba(34,44,49,.30) 0%, rgba(34,44,49,.60) 100%),
    linear-gradient(to bottom, rgba(34,44,49,.52) 0%, rgba(34,44,49,.22) 30%,
                               rgba(34,44,49,.42) 70%, rgba(34,44,49,.82) 100%);
}
.hero-inner{
  position: relative;
  text-align: center;
  padding-top: var(--header-h);
  padding-bottom: 40px;
}
.hero-logo{
  width: min(74vw, 205px + 21.9vw, 540px);
  height: auto;
  margin: 0 auto clamp(18px, 2.4vw, 26px);
  filter: invert(1);            /* black lockup → cream on the photograph */
  opacity: .96;
}
.hero-line{
  font-family: var(--accent-serif);
  font-size: clamp(16px, 2.1vw, 22px);
  color: var(--cream);
  opacity: .92;
  margin: 0 auto 40px;
  max-width: min(560px, 88vw);
  text-wrap: balance;
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-actions .btn-solid{
  background: var(--cream);
  border-color: var(--cream);
  color: var(--javakheti-night);
}
.hero-actions .btn-solid:hover{
  background: var(--rtveli-amber);
  border-color: var(--rtveli-amber);
}
.hero-foot{
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 239, 230, .68);
}
.hero-scroll { position: relative; padding-right: 34px; }
.hero-scroll::after{
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 26px; height: 1px;
  background: currentColor;
  transform-origin: right;
  animation: sweep 2.6s var(--ease) infinite;
}
@keyframes sweep{
  0%, 100% { transform: scaleX(.35); opacity: .5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* ── Intro ─────────────────────────────────────────────────── */
.intro{
  padding: clamp(64px, 9vw, 128px) 0;
  background: var(--paper);
}
.intro-text{
  font-family: var(--display);
  font-size: clamp(23px, 3.5vw, 42px);
  line-height: 1.32;
  letter-spacing: -.015em;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}
.intro-text em{
  font-style: italic;
  color: var(--qvevri-clay);
}

/* ── Story ─────────────────────────────────────────────────── */
.story{
  background: var(--paper-warm);
  padding: var(--section) 0;
}
.story-grid{
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.story-media img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.story-copy h2 { margin-bottom: 26px; max-width: 16ch; }
.story-copy p { color: var(--ink-soft); max-width: 56ch; }

blockquote{
  margin: 32px 0 0;
  padding-left: 24px;
  border-left: 2px solid var(--rtveli-amber);
  font-family: var(--accent-serif);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 46ch;
}

.principles{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 38px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--hairline);
}
.principles li{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-left: 16px;
}
.principles li::before{
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--rtveli-amber);
}
.principles li:nth-child(2)::before { background: var(--tkemali-leaf); }
.principles li:nth-child(3)::before { background: var(--racha-plum); }
.principles li:nth-child(4)::before { background: var(--adjara-horizon); }

/* ── Full-bleed break ──────────────────────────────────────── */
.break{
  position: relative;
  height: clamp(340px, 62vh, 620px);
  overflow: hidden;
  background: var(--javakheti-night);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(32px, 5vw, 64px);
}
.break img{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.break-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(34,44,49,.86) 0%, rgba(34,44,49,.5) 30%,
                                      rgba(34,44,49,.08) 72%, rgba(34,44,49,0) 100%);
}
.break-line{
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.18;
  color: var(--cream);
  max-width: 640px;
}

/* ── Spaces ────────────────────────────────────────────────── */
.spaces{
  background: var(--paper);
  padding: var(--section) 0;
}
.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(38px, 4.4vw, 60px) var(--gap-col);
}
.card { margin: 0; }
.card img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .8s var(--ease);
}
.card figcaption{
  display: grid;
  gap: 6px;
  padding-top: 18px;
}
.card figcaption strong{
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.2;
}
.card figcaption > span:last-child{
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.card:hover img { transform: scale(1.028); }

/* stagger the grid a touch — editorial, not uniform */
.grid .card:nth-child(2),
.grid .card:nth-child(5) { margin-top: clamp(16px, 3vw, 44px); }

/* ── Archive ───────────────────────────────────────────────── */
.archive{
  background: var(--javakheti-night);
  color: var(--cream);
  padding: var(--section) 0;
}
.archive .eyebrow { color: rgba(242, 239, 230, .55); }
.archive .lede { color: rgba(242, 239, 230, .68); }

.archive-rail{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.8vw, 64px) var(--gap-col);
}
.story-card img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  outline: 1px solid rgba(242, 239, 230, .10);
  outline-offset: -1px;
}
.story-card-body { padding-top: 18px; }
.story-card-body .num { color: rgba(242, 239, 230, .45); }
.story-card-body h3 { margin: 10px 0 12px; color: var(--cream); }
/* hold two lines so the body copy lines up across a row */
@media (min-width: 721px){
  .story-card-body h3 { min-height: calc(2 * 1.35em); }
}
.story-card-body p{
  font-size: 14px;
  line-height: 1.62;
  color: rgba(242, 239, 230, .62);
  margin: 0;
}
.story-card-body em { color: rgba(242, 239, 230, .85); }

/* ── Visit ─────────────────────────────────────────────────── */
.visit{
  background: var(--svan-stone);
  padding: var(--section) 0;
}
.visit-grid{
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.visit-copy h2 { margin-bottom: 20px; }
.visit-copy .lede { margin-bottom: 34px; }
.visit-copy .btn { margin-bottom: clamp(36px, 5vw, 52px); }

.details{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 40px;
  margin: 0;
  padding-top: 34px;
  border-top: 1px solid rgba(45, 59, 66, .18);
}
.details dt{
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.details dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
}
.details a{
  position: relative;
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid rgba(45, 59, 66, .3);
  padding-bottom: 2px;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.details a:hover { color: var(--qvevri-clay); border-color: var(--qvevri-clay); }
/* a phone number is the thing a guest taps: give it a real target,
   without letting the padding disturb the type rhythm */
.details a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

.visit-media img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer{
  background: var(--javakheti-night);
  color: var(--cream);
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
}
.footer-inner { text-align: center; }
.footer-mark{
  width: min(280px, 58vw);
  margin: 0 auto 22px;
  filter: invert(1);
  opacity: .9;
}
.footer-line{
  font-family: var(--accent-serif);
  font-size: 15px;
  color: rgba(242, 239, 230, .6);
  margin: 0 0 44px;
}
.footer-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(242, 239, 230, .16);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(242, 239, 230, .55);
}
.footer-meta a{
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color .35s var(--ease);
}
.footer-meta a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 38px;
  transform: translateY(-50%);
}
.footer-meta a:hover { color: var(--rtveli-amber); }

/* ── Reveal on scroll ──────────────────────────────────────── */
.js .reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 1600px){
  :root { --shell: 1400px; --gutter: 72px; }
}

/* a phone held sideways has almost no height to give the hero */
@media (orientation: landscape) and (max-height: 540px){
  .hero { min-height: 540px; }
  .hero-logo { width: min(46vw, 320px); margin-bottom: 14px; }
  .hero-line { font-size: 15px; margin-bottom: 22px; }
  .hero-foot { display: none; }
}

@media (max-width: 1080px){
  .grid, .archive-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .card:nth-child(2), .grid .card:nth-child(5) { margin-top: 0; }
  .story-grid, .visit-grid { grid-template-columns: 1fr; }
  .story-media { order: 2; }
  .story-media img, .visit-media img { aspect-ratio: 16 / 10; }
  .visit-media { order: -1; }
}

@media (max-width: 720px){
  :root { --header-h: 64px; }

  .burger { display: block; }
  /* the drawer is a sibling that paints over the header row */
  .brand { position: relative; z-index: 2; }
  .nav{
    position: fixed;
    inset: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
    background: var(--paper);
    transform: translateY(-102%);
    transition: transform .55s var(--ease);
    box-shadow: 0 20px 40px -28px rgba(34, 44, 49, .5);
  }
  .nav.is-open { transform: none; }
  .site-header.is-open::after { opacity: 1; }
  .nav > a:not(.btn){
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 13px;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta{
    margin-top: 24px;
    background: var(--javakheti-night);
    border-color: var(--javakheti-night);
    color: var(--cream);
  }
  body.nav-open { overflow: hidden; }

  .grid, .archive-rail { grid-template-columns: 1fr; }
  /* one card per row needs more air than a tight grid gutter */
  .grid { gap: 48px; }
  .archive-rail { gap: 52px; }
  .card img, .story-media img, .visit-media img { aspect-ratio: 3 / 4; }
  .details { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-foot { display: none; }
  .principles { gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
