/* =========================================================
   Café Raia — Stylesheet
   Aesthetic: Refined Italian café · warm cream + restrained
   Italian flag accents, exactly as in the logo.
   ========================================================= */

:root {
  --app-height: 100vh;
  --hero-mobile-extra: 2.5rem;

  /* Colors pulled from the logo */
  --c-bg:        #fbf8f3;   /* warm off-white / cream */
  --c-bg-alt:    #f4eee3;   /* slightly deeper cream */
  --c-paper:     #ffffff;   /* logo background */
  --c-ink:       #1c1c1c;   /* logo script color */
  --c-ink-soft:  #4a4744;
  --c-muted:     #8a857d;
  --c-line:      #d9d2c5;

  --c-italy-green: #2a8d4f; /* logo green */
  --c-italy-red:   #d11a2a; /* logo red */

  /* Typography */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-script:  'Dancing Script', 'Brush Script MT', cursive;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* Reusable utilities */
.script { font-family: var(--f-script); font-weight: 600; letter-spacing: 0.02em; }
.sub    { font-family: var(--f-body); font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--c-ink-soft); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
  overflow: visible;
}
.nav.is-scrolled {
  border-bottom-color: var(--c-line);
  padding: 12px var(--pad-x);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.nav__brand-script {
  font-family: var(--f-script);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--c-ink);
  margin-bottom: 2px;
}
.nav__brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--c-ink-soft);
}

.nav__links {
  display: flex;
  gap: 38px;
}
.nav__links a {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--c-ink);
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--c-italy-green);
  transition: all 0.35s var(--ease);
  transform: translateX(-50%);
}
.nav__links a:hover { color: var(--c-italy-green); }
.nav__links a:hover::after { width: 100%; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--c-ink);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: var(--app-height);
  background: var(--c-bg);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
}
.nav__close svg { width: 24px; height: 24px; }

.nav.nav--menu-open {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.nav__mobile-links a {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--c-ink);
  letter-spacing: 0.04em;
  position: relative;
}
.nav__mobile-links a::before {
  content: '';
  position: absolute;
  left: -28px; top: 50%;
  width: 18px; height: 1px;
  background: var(--c-italy-green);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__mobile-links a:hover::before { transform: translateY(-50%) scaleX(1); }

.nav__mobile-foot {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.nav__mobile-foot .script { font-size: 1.8rem; }
.nav__mobile-foot .sub { font-size: 0.6rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--pad-x) 80px;
  overflow: hidden;
  background: var(--c-bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
  pointer-events: none;
}
/* Italian flag accent lines as decorative element */
.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  width: clamp(60px, 12vw, 140px);
  height: 2px;
  top: 50%;
  opacity: 0.55;
}
.hero__bg::before {
  left: 8%;
  background: var(--c-italy-green);
}
.hero__bg::after {
  right: 8%;
  background: var(--c-italy-red);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  animation: fadeUp 1.2s var(--ease) both;
}

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 0 0 28px;
  animation: fadeUp 1s var(--ease) 0.2s both;
}

.hero__logo {
  width: clamp(220px, 34vw, 360px);
  margin: 0 auto 16px;
  animation: fadeUp 1s var(--ease) 0.4s both;
}

.hero__tag {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--c-ink-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0;
  animation: fadeUp 1s var(--ease) 0.6s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--c-ink-soft);
  animation: fadeUp 1s var(--ease) 1s both;
}
.scroll-indicator__label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.scroll-indicator__line {
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--c-line);
  overflow: hidden;
}
.scroll-indicator__dot {
  position: absolute;
  top: 0; left: 50%;
  width: 1px;
  height: 18px;
  background: var(--c-ink);
  transform: translateX(-50%);
  animation: scrollDot 2.4s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { transform: translate(-50%, -100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(-50%, 100%); opacity: 0; }
}

/* =========================================================
   SECTION HEADER (shared)
   ========================================================= */
.section-head { margin-bottom: 64px; }
.section-head--center { text-align: center; }

.section-head__kicker {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--c-italy-green);
  margin-bottom: 18px;
  font-weight: 500;
}
.section-head__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-ink);
}
.section-head__title em {
  font-style: italic;
  font-family: var(--f-script);
  font-weight: 600;
  color: var(--c-italy-red);
}
.section-head__sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  margin: 14px 0 0;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 120px var(--pad-x);
  background: var(--c-bg);
}
.about__inner { max-width: var(--maxw); margin: 0 auto; }

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

.about__images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about__img {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
}
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.about__img:hover img { transform: scale(1.05); }

.about__img--1 { aspect-ratio: 3 / 4; transform: translateY(-30px); }
.about__img--2 { aspect-ratio: 3 / 4; transform: translateY(30px); }

.about__text p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--c-ink-soft);
  margin: 0 0 18px;
}
.about__lead {
  font-family: var(--f-display) !important;
  font-size: 1.4rem !important;
  font-style: italic;
  color: var(--c-ink) !important;
  line-height: 1.5 !important;
  margin-bottom: 28px !important;
}
.about__text strong {
  color: var(--c-ink);
  font-weight: 500;
}
.about__text em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--c-italy-red);
  font-size: 1.05em;
}

.about__sign {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 24px;
  border-left: 2px solid var(--c-italy-green);
}
.about__sign .script {
  font-size: 2.2rem;
  color: var(--c-ink);
  line-height: 1;
}
.about__sign .sub {
  font-size: 0.65rem;
  color: var(--c-italy-red);
}

/* =========================================================
   MENU
   ========================================================= */
.menu {
  padding: 120px var(--pad-x);
  background: var(--c-bg-alt);
  position: relative;
}
.menu::before,
.menu::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 60%;
  left: 20%;
  background: var(--c-line);
}
.menu::before { top: 0; }
.menu::after { bottom: 0; }

.menu__inner { max-width: var(--maxw); margin: 0 auto; }

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
}

.menu__col { position: relative; }

.menu__cat {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.menu__cat::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.menu__cat-it {
  display: block;
  font-family: var(--f-script);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--c-italy-red);
  margin-bottom: 26px;
}

.menu__list li {
  margin-bottom: 22px;
}

.menu__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.menu__name {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.005em;
}
.menu__dots {
  flex: 1;
  border-bottom: 1px dotted var(--c-line);
  transform: translateY(-4px);
}
.menu__price {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-italy-green);
  white-space: nowrap;
}

.menu__desc {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.menu__note {
  text-align: center;
  margin-top: 64px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* =========================================================
   FIND US
   ========================================================= */
.find {
  padding: 120px var(--pad-x);
  background: var(--c-bg);
}
.find__inner { max-width: var(--maxw); margin: 0 auto; }

.find__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.find__info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.find__block h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--c-ink);
  position: relative;
  padding-left: 18px;
}
.find__block h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 2px;
  background: var(--c-italy-green);
  transform: translateY(-50%);
}

.find__link {
  font-size: 1rem;
  color: var(--c-ink-soft);
  line-height: 1.65;
  transition: color 0.3s var(--ease);
  display: inline-block;
}
.find__link:hover { color: var(--c-italy-red); }

.hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.94rem;
  color: var(--c-ink-soft);
  padding: 6px 0;
  border-bottom: 1px dotted var(--c-line);
}
.hours li span:first-child {
  font-weight: 400;
  color: var(--c-ink);
}
.hours li span:last-child {
  font-family: var(--f-display);
  font-style: italic;
}
.hours li.hours--closed span:last-child {
  color: var(--c-italy-red);
}

.socials {
  display: flex;
  gap: 14px;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  transition: all 0.35s var(--ease);
}
.socials a svg { width: 20px; height: 20px; }
.socials a:hover {
  background: var(--c-ink);
  color: var(--c-bg);
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

.find__map {
  border-radius: 2px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  filter: grayscale(0.15) contrast(0.95);
  transition: filter 0.5s var(--ease);
}
.find__map:hover { filter: none; }
.find__map iframe { display: block; min-height: 480px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 50px var(--pad-x);
  background: var(--c-ink);
  color: var(--c-bg);
  border-top: 4px solid;
  border-image: linear-gradient(90deg,
    var(--c-italy-green) 0%, var(--c-italy-green) 33%,
    var(--c-paper) 33%, var(--c-paper) 66%,
    var(--c-italy-red) 66%, var(--c-italy-red) 100%) 1;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer__brand {
  font-size: 2.2rem;
  line-height: 1;
}
.footer__tag {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7);
}
.footer__copy {
  margin-top: 14px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .about__grid { grid-template-columns: 1fr; gap: 48px; }

  .menu__grid { grid-template-columns: 1fr; gap: 50px; }

  .find__grid { grid-template-columns: 1fr; }
  .find__map { min-height: 380px; }
  .find__map iframe { min-height: 380px; }
}

@media (max-width: 860px) {
  .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: 560px) {
  .nav { padding: 14px var(--pad-x); }
  .nav__brand-script { font-size: 1.6rem; }
  .nav__brand-sub { font-size: 0.5rem; }

  .about, .menu, .find { padding: 80px var(--pad-x); }
  .section-head { margin-bottom: 44px; }

  .about__lead { font-size: 1.2rem !important; }

  .menu__cat { font-size: 1.6rem; }
  .menu__name { font-size: 1.05rem; }
}

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