/* ============================================
   BRÛLÉ COFFEE — Design System
   Palette: Terracotta Studio
   ============================================ */

:root {
  --terracotta:    #B5563E;
  --terracotta-lt: #D4896A;
  --cream:         #F2E6D9;
  --cream-dk:      #E8D5C0;
  --brown-dk:      #3D2B1F;
  --brown-md:      #6B4226;
  --white:         #FDFAF7;
  --text:          #2A1A0E;
  --text-muted:    #7A5C48;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --radius:   12px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============ UTILITIES ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }

.section-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--brown-dk);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}
.section-header { margin-bottom: 3.5rem; }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brown-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,86,62,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(253,250,247,0.96);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  box-shadow: 0 2px 24px rgba(61,43,31,0.08);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.4s;
}
.nav.scrolled .nav__logo { color: var(--brown-dk); }
.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s;
}
.nav__links a:hover::after { width: 100%; }
.nav.scrolled .nav__links a { color: var(--text-muted); }
.nav__links a:hover { color: var(--terracotta); }
.nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  background: var(--terracotta);
  color: var(--white);
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--brown-dk);
  transform: translateY(-1px);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav.scrolled .nav__burger span { background: var(--brown-dk); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--brown-dk);
  z-index: 99;
  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: all;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  font-weight: 400;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--terracotta-lt); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease;
}
.hero.loaded .hero__img { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61,43,31,0.75) 0%,
    rgba(61,43,31,0.4) 60%,
    rgba(181,86,62,0.2) 100%
  );
}
.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 3rem;
  max-width: 700px;
}
.hero__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 1.5rem;
  transition-delay: 0.1s;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  transition-delay: 0.2s;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta-lt);
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(242,230,217,0.85);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  transition-delay: 0.3s;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  transition-delay: 0.4s;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--terracotta-lt);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Steam particles */
.steam {
  position: absolute;
  bottom: 15%;
  right: 15%;
  z-index: 2;
  pointer-events: none;
}
.steam__particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(242,230,217,0.3);
  animation: steamRise 4s ease-in infinite;
}
.steam__particle:nth-child(1) { left: 0; animation-delay: 0s; }
.steam__particle:nth-child(2) { left: 20px; animation-delay: 1.3s; }
.steam__particle:nth-child(3) { left: 40px; animation-delay: 2.6s; }
@keyframes steamRise {
  0%   { transform: translateY(0) scale(1); opacity: 0.6; }
  50%  { transform: translateY(-60px) scale(1.5) translateX(10px); opacity: 0.3; }
  100% { transform: translateY(-120px) scale(0.5) translateX(-5px); opacity: 0; }
}

/* ============ MARQUEE ============ */
.marquee-strip {
  background: var(--terracotta);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.05em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ MENU ============ */
.menu { background: var(--white); }
.menu__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--cream-dk);
  transition: var(--transition);
  background: transparent;
}
.tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.tab.active {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream-dk);
  transition: var(--transition);
  animation: fadeIn 0.4s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(61,43,31,0.12);
  border-color: var(--terracotta-lt);
}
.menu-card.hidden { display: none; }
.menu-card__img {
  height: 200px;
  overflow: hidden;
}
.menu-card__img img {
  transition: transform 0.6s ease;
}
.menu-card:hover .menu-card__img img { transform: scale(1.08); }
.menu-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.menu-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown-dk);
  margin-bottom: 0.4rem;
}
.menu-card__body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--terracotta);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ ABOUT ============ */
.about {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.about__visual {
  position: relative;
  overflow: hidden;
}
.about__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about__badge {
  position: absolute;
  bottom: 3rem;
  right: -1.5rem;
  background: var(--terracotta);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 12px 32px rgba(181,86,62,0.4);
}
.about__badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}
.about__badge-text {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.4;
}
.about__content {
  padding: 6rem 5rem 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about__stats {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0 2.5rem;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
}
.stat__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============ GALLERY ============ */
.gallery { background: var(--brown-dk); }
.gallery .section-tag { color: var(--terracotta-lt); }
.gallery .section-title { color: var(--cream); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 1rem;
}
.gallery__item {
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__item img {
  transition: transform 0.6s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall {
  grid-row: span 2;
}
.gallery__item--wide {
  grid-column: span 2;
}

/* ============ TESTIMONIALS ============ */
.testimonials { background: var(--cream); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.testimonial {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--cream-dk);
  transition: var(--transition);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61,43,31,0.1);
}
.testimonial__stars {
  color: var(--terracotta);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brown-dk);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial__author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial__author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-dk);
}
.testimonial__author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ CONTACT ============ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.contact__map {
  position: relative;
  overflow: hidden;
}
.contact__map img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.contact__map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(61,43,31,0.3), transparent);
}
.contact__info {
  background: var(--brown-dk);
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__info .section-tag { color: var(--terracotta-lt); }
.contact__info .section-title { color: var(--cream); }
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__item svg {
  width: 22px; height: 22px;
  color: var(--terracotta-lt);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 0.25rem;
}
.contact__item span {
  font-size: 0.95rem;
  color: rgba(242,230,217,0.8);
  line-height: 1.6;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact__form input,
.contact__form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(242,230,217,0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  resize: none;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(242,230,217,0.4); }
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--terracotta-lt);
}

/* ============ FOOTER ============ */
.footer {
  background: #1E0F08;
  color: var(--cream);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  padding: 5rem 3rem 4rem;
  border-bottom: 1px solid rgba(242,230,217,0.1);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
  color: var(--cream);
}
.footer__brand p {
  font-size: 0.9rem;
  color: rgba(242,230,217,0.55);
  line-height: 1.7;
}
.footer__links h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 1.25rem;
}
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(242,230,217,0.6);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--terracotta-lt); }
.footer__newsletter h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 0.75rem;
}
.footer__newsletter p {
  font-size: 0.88rem;
  color: rgba(242,230,217,0.55);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0;
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(242,230,217,0.2);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.25rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.newsletter-form input::placeholder { color: rgba(242,230,217,0.35); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  background: var(--terracotta);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.3s;
}
.newsletter-form button:hover { background: var(--terracotta-lt); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  font-size: 0.82rem;
  color: rgba(242,230,217,0.35);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .menu__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .about__content { padding: 4rem 3rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { padding: 1.25rem 1.5rem; }
  .nav.scrolled { padding: 1rem 1.5rem; }

  .hero__content { padding: 0 1.5rem; }
  .hero__scroll { left: 1.5rem; }

  .about {
    grid-template-columns: 1fr;
  }
  .about__visual { height: 400px; }
  .about__badge { right: 1.5rem; }
  .about__content { padding: 3rem 1.5rem; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }

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

  .contact {
    grid-template-columns: 1fr;
  }
  .contact__map { height: 300px; }
  .contact__info { padding: 3rem 1.5rem; }

  .footer__top {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem;
  }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  .menu__grid { grid-template-columns: 1fr; }
  .about__stats { gap: 1.5rem; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}