/* ============================================================
   NOEMI URBAN ATHENS — Main Stylesheet
   Mobile-first, minimal Mediterranean aesthetic
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:           #f8f5ef;
  --surface:      #ece5d6;
  --surface-alt:  #e4dccb;
  --accent:       #7d5c3a;
  --accent-hover: #5e4328;
  --text:         #1a1a1a;
  --text-muted:   #635c52;
  --border:       #d3c9b5;
  --white:        #ffffff;
  --radius:       3px;
  --radius-lg:    6px;
  --max-width:    1100px;
  --nav-h:        64px;
  --transition:   0.2s ease;
  --font-head:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-hover); }

address { font-style: normal; }

ul { list-style: none; }

/* ── Skip Link (Accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus { top: 0.5rem; color: var(--white); }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Section Spacing ───────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--alt { background: var(--surface); }
.section--dark {
  background: var(--accent);
  color: var(--white);
}

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

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.section--alt .section-header h2 { color: var(--text); }

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 8vw, 4rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 500; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 1rem auto 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Focus visible outline for all interactive elements */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Header & Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
}
.logo-text {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  font-weight: 700;
  text-transform: uppercase;
}
.logo-sub {
  font-family: 'Jost', Arial, sans-serif;
  font-size: 0.30rem;
  letter-spacing: 0.22em;
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  margin-top: 0.10rem;
}
.site-logo:hover .logo-text { color: var(--accent); }

/* Hamburger toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Primary nav — mobile */
.primary-nav {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  z-index: 99;
}
.primary-nav.is-open { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a,
.nav-list .lang-toggle {
  display: block;
  padding: 0.55rem 0.25rem;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a.active {
  color: var(--accent);
  font-weight: 500;
}

/* External nav links */
.nav-external::after {
  content: '↗';
  font-size: 0.7em;
  margin-left: 3px;
  opacity: 0.6;
}

/* Language toggle */
.lang-toggle-item { margin-top: 0.5rem; }
.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.3rem 0.75rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  display: inline-flex !important;
  gap: 0.4rem;
  align-items: center;
  color: var(--text-muted) !important;
  transition: border-color var(--transition);
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-option { transition: color var(--transition), font-weight var(--transition); }
.lang-option.active { color: var(--accent); font-weight: 600; }
.lang-sep { opacity: 0.4; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--surface);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface) 60%, var(--surface-alt) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 680px;
}

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

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Decorative grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── About Section ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.pillar-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pillar-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Gallery ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  color: var(--white);
  font-size: 0.75rem;
  padding: 1.5rem 0.75rem 0.5rem;
  letter-spacing: 0.04em;
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-body h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-body a,
.contact-body p {
  font-size: 0.95rem;
  color: var(--text);
}

/* ── Menu Page ─────────────────────────────────────────────── */
.menu-page-header {
  background: var(--surface);
  padding: 3rem 0 2rem;
  text-align: center;
}

.menu-page-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.menu-page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.menu-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}

.menu-nav a {
  padding: 0.85rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.menu-nav a:hover,
.menu-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-section {
  padding: 3rem 0;
}
.menu-section + .menu-section {
  border-top: 1px solid var(--border);
}

.menu-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
  margin-bottom: 0.3rem;
}

.menu-section-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.menu-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.menu-item {
  background: var(--white);
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 1rem;
}

.menu-item-name {
  font-weight: 500;
  font-size: 0.95rem;
  grid-column: 1;
  grid-row: 1;
}

.menu-item-price {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--accent);
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  font-weight: 600;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  grid-column: 1;
  grid-row: 2;
  line-height: 1.4;
}

/* ── Place Page ────────────────────────────────────────────── */
.place-header {
  background: var(--surface);
  padding: 3rem 0 2.5rem;
}

.place-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.place-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 540px;
}

.place-story {
  padding: 3.5rem 0;
}

.place-story p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  max-width: 680px;
}

.place-story blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text);
  font-style: italic;
  margin: 2rem 0;
  line-height: 1.5;
}

.place-features {
  background: var(--surface);
  padding: 3rem 0;
}

.features-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-body h4 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feature-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Legal Page ────────────────────────────────────────────── */
.legal-header {
  background: var(--surface);
  padding: 3rem 0 2rem;
}

.legal-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-content {
  padding: 3rem 0;
  max-width: 720px;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
}

.legal-section p,
.legal-section li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-section ul li { margin-bottom: 0.25rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #1a1714;
  color: rgba(255,255,255,0.82);
  padding: 3.5rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.footer-col address,
.footer-col p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  border: none;
  display: block;
  margin-top: 0.25rem;
  filter: grayscale(20%);
}

.hours-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.875rem;
}

.hours-list dt {
  color: rgba(255,255,255,0.6);
}

.hours-list dd {
  color: rgba(255,255,255,0.85);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  transition: color var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }
.footer-copy { color: rgba(255,255,255,0.35); }

/* ── Utility Classes ───────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ── Responsive — Tablet (≥ 640px) ────────────────────────── */
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .features-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Responsive — Desktop (≥ 900px) ───────────────────────── */
@media (min-width: 900px) {

  /* Nav becomes horizontal */
  .nav-toggle { display: none; }

  .primary-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav-list a,
  .nav-list .lang-toggle {
    padding: 0.35rem 0.85rem;
    border-bottom: none;
    font-size: 0.84rem;
  }

  .nav-list a.active {
    color: var(--accent);
  }

  .lang-toggle-item { margin-top: 0; }

  /* Hero */
  .hero {
    padding: 8rem 0 7rem;
  }

  /* About grid */
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Menu */
  .menu-list {
    grid-template-columns: 1fr 1fr;
  }

  /* Place features */
  .features-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
  }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .site-header,
  .nav-toggle,
  .footer-social { display: none; }
  body { background: white; color: black; }
}
