/* ===================================
   LAS CAROLINAS BISTRÔ CAFÉ
   Retro / Vintage Design System
   =================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --cream: #F5ECD7;
  --espresso: #2C1A0E;
  --terracotta: #C0603A;
  --olive: #5C6B3A;

  --cream-dark: #E8DCC2;
  --espresso-70: rgba(44, 26, 14, 0.7);
  --espresso-90: rgba(44, 26, 14, 0.9);
  --terracotta-l: #D97B56;
  --olive-l: #7A8F50;

  --ff-heading: 'Playfair Display', serif;
  --ff-body: 'Lato', sans-serif;
  --ff-script: 'Great Vibes', cursive;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 3.5rem;
  --fs-hero: clamp(3rem, 6vw, 5.5rem);

  --radius: 8px;
  --radius-lg: 16px;

  --shadow: 0 4px 24px rgba(44, 26, 14, 0.12);
  --shadow-lg: 0 8px 48px rgba(44, 26, 14, 0.18);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea {
  font-family: inherit;
}

/* ---------- GRAIN OVERLAY ---------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.06;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--cream);
  border: 2px solid var(--terracotta);
}

.btn--primary:hover {
  background: transparent;
  color: var(--terracotta);
}

.btn--outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn--outline:hover {
  background: var(--terracotta);
  color: var(--cream);
}

.btn--small {
  padding: 10px 24px;
  font-size: var(--fs-xs);
}

/* ---------- ORNAMENTAL DIVIDERS ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.ornament__line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.5;
}

.ornament__icon,
.ornament__leaf {
  width: 20px;
  height: 20px;
  color: var(--terracotta);
  flex-shrink: 0;
}

.ornament--small .ornament__line {
  width: 40px;
}

.ornament--small .ornament__leaf {
  width: 16px;
  height: 16px;
}

/* ---------- SECTION HEADER ---------- */
.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.section__title {
  font-size: var(--fs-2xl);
  color: var(--espresso);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--espresso-90);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: var(--shadow);
}

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

.navbar__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.logo__main {
  font-family: var(--ff-script);
  font-size: 2.5rem;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: -4px;
  transition: var(--transition);
}

.logo__sub {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--terracotta-l);
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.navbar.scrolled .logo__main {
  font-size: 2rem;
}

.navbar.scrolled .logo__sub {
  font-size: 0.55rem;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}

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

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(44, 26, 14, 0.55) 0%,
      rgba(44, 26, 14, 0.75) 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--cream);
  padding: 120px 24px 80px;
}

.hero__tagline {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta-l);
  margin-bottom: 16px;
  animation: fadeUp 1s ease both;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 8px;
  animation: fadeUp 1s 0.2s ease both;
}

.hero__title span {
  font-style: italic;
  font-weight: 400;
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.06em;
  color: var(--cream-dark);
}

.hero__subtitle {
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0.9;
  animation: fadeUp 1s 0.5s ease both;
}

.hero .btn {
  animation: fadeUp 1s 0.7s ease both;
}

.hero .ornament {
  animation: fadeUp 1s 0.35s ease both;
}

.hero .ornament__line {
  background: var(--cream-dark);
}

.hero .ornament__icon {
  color: var(--cream-dark);
}

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

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

.about__text p {
  font-size: var(--fs-md);
  margin-bottom: 20px;
  color: var(--espresso);
  line-height: 1.8;
}

.about__text strong {
  color: var(--terracotta);
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.feature__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--terracotta);
}

.feature h3 {
  font-size: var(--fs-md);
  margin-bottom: 4px;
  color: var(--espresso);
}

.feature p {
  font-size: var(--fs-sm);
  color: var(--espresso);
  opacity: 0.75;
}

/* ---------- MENU ---------- */
.menu {
  padding: 100px 0;
  background: var(--espresso);
  color: var(--cream);
}

.menu .section__label {
  color: var(--terracotta-l);
}

.menu .section__title {
  color: var(--cream);
}

.menu .ornament__line {
  background: var(--cream);
  opacity: 0.2;
}

.menu .ornament__leaf {
  color: var(--cream);
  opacity: 0.4;
}

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

.menu__tab {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 28px;
  border: 1px solid rgba(245, 236, 215, 0.2);
  border-radius: 4px;
  color: var(--cream);
  opacity: 0.6;
  transition: var(--transition);
}

.menu__tab:hover {
  opacity: 1;
  border-color: var(--terracotta);
}

.menu__tab.active {
  opacity: 1;
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.menu__panel {
  display: none;
}

.menu__panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.menu__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.menu__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.menu__card-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.menu__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu__item {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 236, 215, 0.1);
}

.menu__item:last-child {
  border-bottom: none;
}

.menu__item--note {
  border-bottom: none;
  padding: 12px 16px;
  background: rgba(245, 236, 215, 0.06);
  border-radius: var(--radius);
  margin-top: 4px;
}

.menu__item--note p {
  font-size: var(--fs-sm);
  opacity: 0.7;
  font-style: italic;
  line-height: 1.6;
}

.menu__item--note strong {
  font-style: normal;
  color: var(--terracotta-l);
}

.menu__item-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.menu__item-header h3 {
  font-size: var(--fs-md);
  font-weight: 600;
  white-space: nowrap;
}

.menu__dots {
  flex: 1;
  border-bottom: 2px dotted rgba(245, 236, 215, 0.2);
  min-width: 20px;
  margin-bottom: 4px;
}

.menu__price {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--terracotta-l);
  white-space: nowrap;
}

.menu__item p {
  font-size: var(--fs-sm);
  opacity: 0.6;
  line-height: 1.5;
}

/* ---------- PARALLAX BANNER ---------- */
.parallax-banner {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-banner__bg {
  position: absolute;
  inset: -20%;
}

.parallax-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 26, 14, 0.8);
}

.parallax-banner__content {
  position: relative;
  text-align: center;
  padding: 80px 24px;
}

.parallax-banner__quote {
  max-width: 640px;
  margin: 0 auto;
  color: var(--cream);
}

.parallax-banner__quote-icon {
  width: 32px;
  height: 32px;
  color: var(--terracotta);
  opacity: 0.6;
  margin-bottom: 16px;
}

.parallax-banner__quote p {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
}

.parallax-banner__quote cite {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ---------- HOURS ---------- */
.hours {
  padding: 100px 0;
  background: var(--cream);
}

.hours__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.hours__card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(44, 26, 14, 0.06);
}

.hours__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hours__card--map {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hours__map {
  width: 100%;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.1);
}

.hours__icon {
  width: 48px;
  height: 48px;
  color: var(--terracotta);
  margin: 0 auto 20px;
}

.hours__card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 24px;
  color: var(--espresso);
}

.hours__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(44, 26, 14, 0.12);
  font-size: var(--fs-sm);
}

.hours__list li:last-child {
  border-bottom: none;
}

.hours__list li span:last-child {
  font-weight: 700;
  color: var(--terracotta);
}

.hours__address {
  font-size: var(--fs-md);
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--espresso);
  opacity: 0.8;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 100px 0;
  background: var(--espresso);
  color: var(--cream);
}

.contact .section__label {
  color: var(--terracotta-l);
}

.contact .section__title {
  color: var(--cream);
}

.contact .ornament__line {
  background: var(--cream);
  opacity: 0.2;
}

.contact .ornament__leaf {
  color: var(--cream);
  opacity: 0.4;
}

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

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

.form__group label {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--cream-dark);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(245, 236, 215, 0.15);
  border-radius: 4px;
  background: rgba(245, 236, 215, 0.06);
  color: var(--cream);
  font-size: var(--fs-base);
  transition: var(--transition);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(245, 236, 215, 0.35);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(245, 236, 215, 0.1);
}

.form__group textarea {
  resize: vertical;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 12px;
}

.contact__info--centered {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.contact__detail a {
  color: var(--terracotta-l);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.contact__detail a:hover {
  color: var(--cream);
  border-bottom-color: var(--terracotta-l);
}

.contact__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--whatsapp:hover {
  background: transparent;
  color: #25D366;
}

.btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border: 2px solid #e6683c;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--instagram:hover {
  background: transparent;
  color: #e6683c;
}

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

.contact__detail svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--terracotta);
  margin-top: 2px;
}

.contact__detail h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: var(--cream-dark);
}

.contact__detail p {
  font-size: var(--fs-md);
  opacity: 0.7;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1A0F07;
  padding: 48px 0 32px;
  text-align: center;
  color: var(--cream);
}

.footer .ornament {
  margin-bottom: 24px;
}

.footer .ornament__line {
  background: var(--cream);
  opacity: 0.15;
}

.footer .ornament__icon {
  color: var(--cream);
  opacity: 0.2;
}

.footer__brand {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer__copy {
  font-size: var(--fs-xs);
  opacity: 0.4;
  margin-bottom: 4px;
}

.footer__craft {
  font-size: var(--fs-xs);
  opacity: 0.3;
}

.footer__dev-link {
  color: var(--terracotta-l);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.footer__dev-link:hover {
  opacity: 1;
  border-bottom-color: var(--terracotta-l);
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- KEYFRAMES ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {

  .about__grid,
  .menu__grid,
  .hours__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .menu__card-img {
    height: 280px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .section__title {
    font-size: var(--fs-xl);
  }
}

@media (max-width: 680px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--espresso-90);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1001;
  }

  .navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .parallax-banner__quote p {
    font-size: var(--fs-xl);
  }

  .hours__card {
    padding: 32px 24px;
  }
}
