/* =========================================================
   CAFE GLAS — minimal, modern, glass design
   Colors: white, modern grays, black
   Fonts: Jost (logo / display) + Cormorant Garamond (accents)
   ========================================================= */

:root {
  --app-height: 100vh;
  --hero-mobile-extra: 2.5rem;
  --white: #f7f7f5;
  --paper: #ececea;
  --gray-100: #d8d8d6;
  --gray-300: #9a9a98;
  --gray-500: #5a5a58;
  --gray-700: #2a2a28;
  --black: #0e0e0d;

  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-dark: rgba(20, 20, 18, 0.35);
  --glass-border: rgba(255, 255, 255, 0.55);

  --max-w: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 4rem);

  --font-display: "Jost", sans-serif;
  --font-body: "Jost", sans-serif;
  --font-accent: "Cormorant Garamond", serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* ---------- glass utility ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad-x);
  border-left: none;
  border-right: none;
  border-top: none;
}

.nav-logo {
  display: flex;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  color: var(--black);
}
.nav-logo span { display: inline-block; }
.nav-logo-space { width: 1.2em; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  font-weight: 300;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: opacity 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--black);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  padding: 0.5rem;
  color: var(--black);
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: lowercase;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
  background: linear-gradient(180deg, #fafaf8 0%, #ececea 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.orb-a {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, #d4d4d2, transparent 65%);
  top: -120px; left: -120px;
  animation: float 14s ease-in-out infinite alternate;
}
.orb-b {
  width: 620px; height: 620px;
  background: radial-gradient(circle at 70% 70%, #b8b8b6, transparent 70%);
  bottom: -180px; right: -180px;
  animation: float 18s ease-in-out infinite alternate-reverse;
}
@keyframes float {
  from { transform: translate(0, 0); }
  to   { transform: translate(60px, 40px); }
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  animation: fadeUp 1.2s ease 0.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: lowercase;
  color: var(--gray-500);
  font-weight: 300;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3.2rem, 11vw, 8rem);
  line-height: 1;
  letter-spacing: 0.28em;
  color: var(--black);
}
.logo-row {
  display: flex;
  justify-content: center;
  gap: 0.05em;
  margin-bottom: 0.15em;
}
.logo-row span {
  display: inline-block;
  animation: letterIn 0.9s ease both;
}
.logo-row span:nth-child(1) { animation-delay: 0.30s; }
.logo-row span:nth-child(2) { animation-delay: 0.40s; }
.logo-row span:nth-child(3) { animation-delay: 0.50s; }
.logo-row span:nth-child(4) { animation-delay: 0.60s; }
.logo-row:nth-child(2) span:nth-child(1) { animation-delay: 0.70s; }
.logo-row:nth-child(2) span:nth-child(2) { animation-delay: 0.80s; }
.logo-row:nth-child(2) span:nth-child(3) { animation-delay: 0.90s; }
.logo-row:nth-child(2) span:nth-child(4) { animation-delay: 1.00s; }
@keyframes letterIn {
  from { opacity: 0; transform: translateY(15px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--gray-500);
  font-weight: 300;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--gray-500);
}
.scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: lowercase;
}
.scroll-line {
  position: relative;
  width: 1px;
  height: 60px;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 12px;
  background: var(--black);
  animation: scrollDot 2.2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -12px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 60px;  opacity: 0; }
}

/* =========================================================
   SHARED SECTION HEAD
   ========================================================= */
section {
  padding: clamp(5rem, 10vw, 9rem) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 1.4rem;
}
.section-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray-300);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--black);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 46ch;
  font-size: 1rem;
  color: var(--gray-700);
}
.about-lead {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--black);
  font-weight: 400;
}

.about-images {
  position: relative;
  min-height: 520px;
}
.about-img {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
  transition: transform 0.6s ease;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.1);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.about-img img.is-loaded { opacity: 1; }
.about-img-1 {
  width: 70%;
  aspect-ratio: 4 / 5;
  top: 0;
  left: 0;
}
.about-img-2 {
  width: 55%;
  aspect-ratio: 3 / 4;
  bottom: 0;
  right: 0;
}
.about-img:hover { transform: translateY(-6px); }

/* =========================================================
   MENU
   ========================================================= */
.menu-note {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  margin-top: -2.5rem;
  font-size: 1rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.menu-list {
  display: flex;
  flex-direction: column;
}
.menu-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.98rem;
  color: var(--gray-700);
}
.menu-list li:last-child { border-bottom: none; }
.menu-list .dots {
  border-bottom: 1px dotted var(--gray-100);
  height: 1px;
  align-self: end;
  margin-bottom: 0.4em;
}
.menu-list .price {
  font-variant-numeric: tabular-nums;
  color: var(--black);
}
.menu-fineprint {
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--gray-300);
  max-width: 60ch;
  line-height: 1.6;
}

/* =========================================================
   FIND US
   ========================================================= */
.find-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.find-info {
  display: flex;
  flex-direction: column;
  gap: 2.3rem;
}
.info-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: lowercase;
  color: var(--gray-300);
  margin-bottom: 0.7rem;
}
.info-block a {
  font-size: 1.05rem;
  color: var(--black);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
  display: inline-block;
}
.info-block a:hover { border-bottom-color: var(--black); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.hours td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--black);
}
.hours tr:last-child td { border-bottom: none; }

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--gray-100);
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.socials a:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.find-map {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25);
  filter: grayscale(0.4) contrast(1.02);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--gray-100);
  padding: 2rem var(--pad-x);
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-300);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .about-grid,
  .menu-grid,
  .find-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    min-height: clamp(320px, 80vw, 520px);
  }
  .about-img-1 {
    width: 70%;
    aspect-ratio: 4 / 5;
    top: 0;
    left: 0;
  }
  .about-img-2 {
    width: 55%;
    aspect-ratio: 3 / 4;
    bottom: -0.85rem;
    right: 0;
  }

  .find-map { min-height: 360px; }

  .menu-note { margin-top: -1.5rem; }

  .footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 2.75rem);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(var(--app-height) + var(--hero-mobile-extra));
  }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 0.8rem; letter-spacing: 0.28em; }
  .nav-logo-space { width: 0.9em; }
}
