/* ============================================
   Bean & Brew — Stylesheet
   Palette: warm browns, cream, amber
   ============================================ */

/* ----------- CSS Custom Properties ----------- */
:root {
  --brown-dark:   #3D1F0D;
  --brown-mid:    #7B4A2D;
  --brown-light:  #A06540;
  --amber:        #C8813A;
  --amber-light:  #D4954A;
  --cream:        #F5EDD6;
  --cream-light:  #FBF7EE;
  --cream-deep:   #E8D9BC;
  --text-dark:    #2A1708;
  --text-muted:   #8B6A4E;
  --text-light:   #F5EDD6;
  --white:        #FEFCE8;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;
  --radius-pill:  999px;

  --shadow-sm:    0 2px 8px rgba(61,31,13,0.12);
  --shadow-md:    0 6px 24px rgba(61,31,13,0.18);
  --shadow-lg:    0 16px 48px rgba(61,31,13,0.22);

  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--cream-light);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ----------- Typography ----------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--brown-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ----------- Utilities ----------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--cream);
}

.btn-outline {
  background-color: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline:hover {
  background-color: var(--cream);
  color: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-dark);
}

.btn-outline-dark:hover {
  background-color: var(--brown-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ----------- Navigation ----------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background-color: rgba(61, 31, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  flex-shrink: 0;
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.nav.scrolled .nav__logo {
  filter: none;
  /* keep visible on dark nav */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__links a:hover {
  color: var(--amber-light);
}

.nav__cta {
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--brown-dark);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--cream);
  font-weight: 700;
  transition: var(--transition);
}

.nav__mobile a:hover {
  color: var(--amber);
}

.nav__mobile .btn {
  margin-top: 1rem;
}

/* ----------- Hero ----------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42, 23, 8, 0.78) 0%,
    rgba(61, 31, 13, 0.6) 50%,
    rgba(123, 74, 45, 0.35) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 7rem 0 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--amber);
}

.hero__title {
  color: var(--cream-light);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero__title em {
  font-style: normal;
  color: var(--amber-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-deep);
  margin-bottom: 2.5rem;
  max-width: 480px;
  line-height: 1.7;
}

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

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  opacity: 0.7;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ----------- Menu Section ----------- */
.menu {
  padding: 6rem 0;
  background-color: var(--cream-light);
}

.menu__header {
  text-align: center;
  margin-bottom: 4rem;
}

.menu__header .section-intro {
  margin: 0 auto 0;
  text-align: center;
}

/* Tab navigation for menu categories */
.menu__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.menu__tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1.5px solid var(--cream-deep);
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}

.menu__tab:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.menu__tab.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

/* Category panels */
.menu__panel {
  display: none;
}

.menu__panel.active {
  display: block;
}

/* Product grid — asymmetric, editorial feel */
.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Product card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

.product-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--brown-dark);
  font-weight: 700;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-deep);
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}

.product-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--text-muted);
}

.product-card__badge.featured {
  background: var(--amber);
  color: var(--white);
}

/* ----------- About / Ambiance Section ----------- */
.about {
  padding: 6rem 0;
  background: var(--brown-dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream-light);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about__text .section-label {
  color: var(--amber-light);
}

.about__text h2 {
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.about__text p {
  color: var(--cream-deep);
  margin-bottom: 1rem;
}

.about__text .btn {
  margin-top: 1rem;
}

.about__visual {
  position: relative;
}

.about__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,237,214,0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-deep);
}

.about__divider {
  width: 100%;
  height: 1px;
  background: rgba(245,237,214,0.12);
}

/* ----------- Contact Section ----------- */
.contact-section {
  padding: 6rem 0;
  background: var(--cream-light);
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-info__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

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

.contact-info__value a:hover {
  color: var(--amber);
}

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brown-mid);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--cream-deep);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream-light);
  transition: var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 129, 58, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: var(--amber);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* ----------- Footer ----------- */
.footer {
  background: var(--brown-dark);
  color: var(--cream-deep);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,237,214,0.12);
  margin-bottom: 2rem;
}

.footer__brand .footer__logo {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1) sepia(0.2);
}

.footer__tagline {
  font-size: 0.92rem;
  color: var(--cream-deep);
  opacity: 0.75;
  max-width: 260px;
  line-height: 1.7;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber-light);
  margin-bottom: 1.25rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__list li {
  font-size: 0.9rem;
  color: var(--cream-deep);
  opacity: 0.8;
}

.footer__list a {
  color: var(--cream-deep);
  opacity: 0.8;
  transition: var(--transition);
}

.footer__list a:hover {
  color: var(--amber-light);
  opacity: 1;
}

.footer__hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--cream-deep);
  opacity: 0.8;
}

.footer__hours-row + .footer__hours-row {
  margin-top: 0.4rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--cream-deep);
  opacity: 0.5;
}

.footer__legal a {
  color: inherit;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:hover {
  color: var(--amber-light);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,237,214,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-deep);
  opacity: 0.7;
  transition: var(--transition);
}

.footer__social-link:hover {
  border-color: var(--amber);
  color: var(--amber);
  opacity: 1;
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ----------- Contact Page specific ----------- */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--brown-dark);
  text-align: center;
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--cream-deep);
  font-size: 1.05rem;
}

/* ----------- Decorative Elements ----------- */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ornament__line {
  flex: 1;
  height: 1px;
  background: var(--cream-deep);
}

.ornament__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ----------- Scroll Animations ----------- */
[data-aos] {
  /* AOS handles these */
}

/* ----------- Responsive ----------- */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer__brand {
    grid-column: span 2;
  }
}

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

  .nav__hamburger {
    display: flex;
  }

  .hero__content {
    padding: 7rem 0 5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    padding: 4rem 0;
  }

  .about {
    padding: 5rem 0;
  }

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

  .footer__brand {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  .contact-form {
    padding: 1.5rem;
  }

  .about__card {
    padding: 1.75rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------- AOS overrides ----------- */
[data-aos="fade-up"] {
  transform: translateY(24px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}
