/* ============================================
   AZUCAR AND SAL — Editorial Café & Bar Site
   Forest Green + Off-White Palette
   ============================================ */

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

:root {
  --green-900: #0B3D2C;
  --green-800: #145A3E;
  --green-700: #1E7D57;
  --green-600: #2A9D6F;
  --green-500: #3DB884;
  --green-100: #D1F2E3;
  --green-50:  #EAF8F0;
  --cream:     #FAF8F4;
  --cream-dark:#F0EDE6;
  --warm:      #F5F0E8;
  --text-dark: #1A1A1A;
  --text-mid:  #3D3D3D;
  --text-light:#6B6B6B;
  --white:     #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-900);
  margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.btn--primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 90, 62, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}

.btn--ghost:hover {
  background: var(--green-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 61, 44, 0.08);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-700);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--green-800);
}

.nav__link::after:hover {
  width: 100%;
}

.nav__link--cta {
  background: var(--green-800);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 6px;
  transition: all var(--transition);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  position: relative;
  transition: all var(--transition);
}

.nav__hamburger::before,
.nav__hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--green-900);
  transition: all var(--transition);
}

.nav__hamburger::before { top: -7px; }
.nav__hamburger::after  { top: 7px; }

.nav__toggle[aria-expanded="true"] .nav__hamburger {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-900);
  padding: 8px;
}

.mobile-menu__list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-900);
  padding: 12px 24px;
  transition: all var(--transition);
  display: block;
}

.mobile-menu__link:hover {
  color: var(--green-600);
}

.mobile-menu__link--cta {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  background: var(--green-800);
  color: var(--white) !important;
  padding: 14px 32px;
  border-radius: 6px;
  margin-top: 16px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero__split {
  display: flex;
  align-items: center;
}

.hero__split--left {
  background: var(--green-900);
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}

.hero__split--left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(46, 157, 111, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero__headline br {
  display: block;
}

.hero__subheadline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero__actions .btn--ghost:hover {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--white);
}

.hero__split--right {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-accent {
  position: absolute;
  bottom: 80px;
  left: -60px;
  width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero__image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- About ---------- */
.about {
  padding: 120px 0;
  background: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-headline {
  margin-bottom: 28px;
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.about__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(11, 61, 44, 0.12);
}

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

/* ---------- Menu ---------- */
.menu {
  padding: 120px 0;
  background: var(--green-900);
}

.menu__header {
  text-align: center;
  margin-bottom: 48px;
}

.menu__header .section-eyebrow {
  color: var(--green-500);
}

.menu__header .section-headline {
  color: var(--white);
}

.menu__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu__tab {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition);
}

.menu__tab:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.menu__tab.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--green-900);
}

.menu__panel {
  max-width: 900px;
  margin: 0 auto;
}

.menu__panel.hidden {
  display: none;
}

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

.menu__item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.menu__item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.menu__item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.menu__item-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.menu__item-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--green-600);
  color: var(--white);
}

.menu__item-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 120px 0;
  background: var(--cream);
}

.gallery__header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--wide {
  grid-column: span 7;
}

.gallery__item:not(.gallery__item--wide) {
  grid-column: span 5;
}

.gallery__item:nth-child(2) { grid-column: 8 / span 5; }
.gallery__item:nth-child(3) { grid-column: 1 / span 5; }
.gallery__item:nth-child(4) { grid-column: 6 / span 6; }
.gallery__item:nth-child(5) { grid-column: span 7; }

/* ---------- Visit ---------- */
.visit {
  padding: 120px 0;
  background: var(--warm);
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit__info .section-headline {
  margin-bottom: 40px;
}

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit__detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.visit__icon {
  flex-shrink: 0;
  color: var(--green-700);
  margin-top: 2px;
}

.visit__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.visit__value {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.visit__value a {
  color: var(--green-700);
  transition: color var(--transition);
}

.visit__value a:hover {
  color: var(--green-500);
  text-decoration: underline;
}

.visit__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(11, 61, 44, 0.12);
  aspect-ratio: 4/3;
}

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  background: var(--cream);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text .section-headline {
  margin-bottom: 20px;
}

.contact__text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-mid);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.contact__input {
  padding: 14px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.contact__input:focus,
.contact__select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(46, 157, 111, 0.1);
}

.contact__input::placeholder {
  color: var(--text-light);
}

.contact__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 8px;
  color: var(--green-800);
  font-size: 0.95rem;
  font-weight: 500;
}

.contact__success svg {
  flex-shrink: 0;
  color: var(--green-600);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__links h4,
.footer__contact h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 20px;
}

.footer__links ul,
.footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a,
.footer__contact a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--white);
}

.footer__contact li:not(:last-child) a {
  /* links handled above */
}

.footer__contact li:last-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- Utility ---------- */
.hidden {
  display: none !important;
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__split--left {
    padding: 100px 40px 60px;
    min-height: auto;
  }

  .hero__split--right {
    min-height: 60vh;
  }

  .hero__image-accent {
    left: 20px;
    bottom: 40px;
    width: 200px;
  }

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

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

  .gallery__item--wide,
  .gallery__item:not(.gallery__item--wide) {
    grid-column: span 12;
  }

  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4) {
    grid-column: span 12;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery__item {
    height: 280px;
  }

  .gallery__item--wide {
    height: 360px;
  }

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

@media (max-width: 768px) {
  .nav__menu {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .hero__split--left {
    padding: 90px 24px 50px;
  }

  .hero__headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero__subheadline {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__image-accent {
    display: none;
  }

  .about,
  .menu,
  .gallery,
  .visit,
  .contact {
    padding: 80px 0;
  }

  .menu__tabs {
    gap: 6px;
  }

  .menu__tab {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__split--left {
    padding: 80px 16px 40px;
  }

  .section-headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}
