/* ============================================================
   FRONT STREET CAFE & SWEETS — Main Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --cream:      #FAF7F2;
  --espresso:   #1C1410;
  --amber:      #C8874A;
  --amber-light: rgba(200, 135, 74, 0.15);
  --rose:       #D4A898;
  --charcoal:   #2C2420;
  --off-white:  #F0EBE3;
  --taupe:      #8A7968;
  --border:     #E8E0D5;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;
  --gap:         2rem;

  /* Transitions */
  --ease: 0.3s ease;
}

/* ------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

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

.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: inherit;
}

.section-heading--light {
  color: var(--off-white);
}

/* ------------------------------------------------------------
   3. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--ease), padding var(--ease), border-bottom var(--ease);
}

.nav.scrolled {
  background: var(--espresso);
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(200, 135, 74, 0.3);
}

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

.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav__logo-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--off-white);
  letter-spacing: 0.02em;
}

.nav__logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 2px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  transition: color var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width var(--ease);
}

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

.nav__cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 0.5rem 1.25rem;
  transition: background var(--ease), color var(--ease);
}

.nav__cta:hover {
  background: var(--amber);
  color: var(--espresso);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--off-white);
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay menu */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--espresso);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease);
  }

  .nav__menu.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    font-size: 0.85rem;
  }

  .nav__cta {
    margin-top: 1rem;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* ------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image:
    linear-gradient(rgba(28, 20, 16, 0.55), rgba(28, 20, 16, 0.72)),
    url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__content {
  max-width: 720px;
  padding: 2rem;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

.hero__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.1;
  color: var(--off-white);
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(240, 235, 227, 0.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn--solid {
  background: var(--amber);
  color: var(--espresso);
  border: 1px solid var(--amber);
}

.btn--solid:hover {
  background: transparent;
  color: var(--amber);
}

.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(240, 235, 227, 0.6);
}

.btn--ghost:hover {
  background: var(--off-white);
  color: var(--espresso);
  border-color: var(--off-white);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(240, 235, 227, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll i {
  animation: bounce 2s infinite;
  color: var(--amber);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ------------------------------------------------------------
   5. FEATURE BAR
   ------------------------------------------------------------ */
.feature-bar {
  background: var(--espresso);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(200, 135, 74, 0.2);
  border-bottom: 1px solid rgba(200, 135, 74, 0.2);
}

.feature-bar__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.feature-bar__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--off-white);
}

.feature-bar__item i {
  font-size: 1.1rem;
  color: var(--amber);
}

.feature-bar__item span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .feature-bar__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .feature-bar__list li:not(:last-child) {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(240, 235, 227, 0.1);
    width: 100%;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   6. ABOUT
   ------------------------------------------------------------ */
.about {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--amber);
  z-index: 0;
}

.about__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__body {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--taupe);
}

.about__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  line-height: 1.4;
  color: var(--charcoal);
  border-left: 2px solid var(--amber);
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.about__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  transition: gap var(--ease);
}

.about__link:hover {
  gap: 0.875rem;
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image-wrap::before {
    display: none;
  }
}

/* ------------------------------------------------------------
   7. MENU
   ------------------------------------------------------------ */
.menu-section {
  padding: var(--section-pad) 0;
  background: var(--espresso);
}

.menu-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-section__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: rgba(240, 235, 227, 0.55);
  margin-top: 0.75rem;
}

/* Tabs */
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid rgba(240, 235, 227, 0.12);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.45);
  padding: 0.875rem 1.75rem;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
  position: relative;
  bottom: -1px;
  cursor: pointer;
}

.menu-tab.active,
.menu-tab:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Panels */
.menu-panel {
  display: none;
}

.menu-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
}

.menu-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(240, 235, 227, 0.08);
  padding-inline: 1rem;
}

.menu-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.menu-item__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--off-white);
}

.menu-item__price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--amber);
  white-space: nowrap;
}

.menu-item__desc {
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--taupe);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   8. HOURS
   ------------------------------------------------------------ */
.hours {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.hours__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hours__table-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hours table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours thead th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.hours thead th:last-child {
  text-align: right;
}

.hours tbody td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
  color: var(--charcoal);
}

.hours tbody td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--amber);
}

.hours tbody tr.today td {
  background: var(--amber-light);
}

.hours tbody tr.today td:first-child {
  padding-left: 0.75rem;
  border-left: 2px solid var(--amber);
}

.hours tbody tr.today td:last-child {
  padding-right: 0.75rem;
}

.hours__address {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--taupe);
}

.hours__address i {
  color: var(--amber);
  font-size: 0.85rem;
}

.hours__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hours__grid {
    grid-template-columns: 1fr;
  }

  .hours__image {
    aspect-ratio: 16/9;
  }
}

/* ------------------------------------------------------------
   9. CONTACT
   ------------------------------------------------------------ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--espresso);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact__header {
  margin-bottom: 2rem;
}

.contact__header .section-heading {
  margin-top: 0.5rem;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(240, 235, 227, 0.45);
  transition: transform 0.25s ease, font-size 0.25s ease, color 0.25s ease;
  pointer-events: none;
  transform-origin: left top;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240, 235, 227, 0.2);
  padding: 1rem 0 0.625rem;
  color: var(--off-white);
  font-weight: 300;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--ease);
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--amber);
}

/* Floating label triggers */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(0.78);
  color: var(--amber);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 4rem;
}

.contact__info-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.contact__info-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-weight: 300;
  font-size: 0.9rem;
  color: rgba(240, 235, 227, 0.7);
  line-height: 1.5;
}

.contact__info-item i {
  color: var(--amber);
  font-size: 0.9rem;
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.contact__info-item a {
  color: inherit;
  transition: color var(--ease);
}

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

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

.contact__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(240, 235, 227, 0.2);
  color: rgba(240, 235, 227, 0.6);
  font-size: 0.85rem;
  transition: border-color var(--ease), color var(--ease);
}

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

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__info {
    padding-top: 0;
  }
}

/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: #120d0a;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(200, 135, 74, 0.2);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--off-white);
}

.footer__logo-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.4);
  transition: color var(--ease);
}

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

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(200, 135, 74, 0.3);
}

.footer__copy {
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(240, 235, 227, 0.3);
  line-height: 1.7;
}

.footer__copy a {
  color: var(--amber);
  opacity: 0.7;
  transition: opacity var(--ease);
}

.footer__copy a:hover {
  opacity: 1;
}

/* ------------------------------------------------------------
   11. UTILITY / AOS OVERRIDES
   ------------------------------------------------------------ */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}
