/* ============================================
   Cordoba Deli — Styles
   Palette: Terracotta (#C0603A) + Sand (#F5E6D3)
   ============================================ */

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

:root {
  --terracotta: #C0603A;
  --terracotta-dark: #A84E2C;
  --terracotta-light: #D4845E;
  --sand: #F5E6D3;
  --sand-light: #FAF3EB;
  --sand-dark: #E8D5C0;
  --cream: #FFF9F4;
  --brown: #5C3A21;
  --brown-light: #7A5238;
  --text: #3D2B1F;
  --text-light: #6B5344;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(92, 58, 33, 0.08);
  --shadow-md: 0 4px 20px rgba(92, 58, 33, 0.12);
  --shadow-lg: 0 8px 40px rgba(92, 58, 33, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', 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-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--terracotta-dark);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

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

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

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

.btn--light {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
}

.btn--light:hover {
  background: var(--sand);
  border-color: var(--sand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 1rem;
}

/* ===== SECTION HELPERS ===== */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--sand);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.section-title--center {
  text-align: center;
}

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

.section-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

.section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 249, 244, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand-dark);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--terracotta);
  text-decoration: none;
}

.nav__logo:hover {
  color: var(--terracotta-dark);
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__menu a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__menu a:hover {
  color: var(--terracotta);
  background: var(--sand);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  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;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 43, 31, 0.72) 0%,
    rgba(92, 58, 33, 0.55) 50%,
    rgba(192, 96, 58, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 720px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
}

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

.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__highlight svg {
  opacity: 0.8;
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  opacity: 0.6;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

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

.about__images {
  position: relative;
}

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

.about__img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about__img-stack {
  position: absolute;
  bottom: -40px;
  right: -40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.about__img-stack img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

.about__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--terracotta);
}

.about__text {
  padding: 20px 0;
}

.about__text .section-lead {
  margin-bottom: 16px;
}

.about__text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-num {
  font-size: 1.6rem;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== PRODUCTS ===== */
.products {
  padding: 100px 0;
  background: var(--sand-light);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.card__img {
  overflow: hidden;
  height: 220px;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card__body {
  padding: 28px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.card__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== VISIT ===== */
.visit {
  padding: 100px 0;
  background: var(--cream);
}

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

.visit__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

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

.visit__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.visit__detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 4px;
}

.visit__detail p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.visit__detail a {
  color: var(--text-light);
}

.visit__detail a:hover {
  color: var(--terracotta);
}

.visit__hours {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.visit__hours-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--sand);
}

.visit__hours-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.visit__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sand-light);
}

.visit__hours-row:last-child {
  border-bottom: none;
}

.visit__hours-row--closed span:last-child {
  color: var(--terracotta);
  font-weight: 700;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta__text {
  flex: 1;
  min-width: 280px;
}

.cta__text .section-title {
  margin-bottom: 16px;
}

.cta__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--sand-light);
}

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

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.contact__method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact__method:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.contact__method-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border-radius: var(--radius-sm);
}

.contact__method strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 2px;
}

.contact__method span {
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form__input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--sand-light);
  transition: all var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

.form__input::placeholder {
  color: var(--sand-dark);
}

.form__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='%23C0603A' stroke-width='2.5' 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: 44px;
  cursor: pointer;
}

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

.form__note {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 20px;
  background: #E8F5E9;
  border-radius: var(--radius-sm);
  color: #2E7D32;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brown);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__logo:hover {
  color: var(--white);
}

.footer__brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer__links strong,
.footer__contact strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sand);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer__contact p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer__bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .about__grid,
  .visit__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__images {
    max-width: 500px;
  }

  .about__img-stack {
    right: 16px;
    bottom: -24px;
  }

  .about__img-stack img {
    width: 180px;
    height: 130px;
  }

  .products__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  .cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 249, 244, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--sand-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__menu a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__content {
    padding: 100px 24px 60px;
  }

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

  .hero__scroll {
    display: none;
  }

  .about__img-stack {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    flex-direction: row;
    justify-content: center;
  }

  .about__img-stack img {
    width: 160px;
    height: 120px;
  }

  .visit__hours {
    padding: 28px;
  }

  .contact__form-wrap {
    padding: 28px;
  }

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

  .footer__brand {
    grid-column: auto;
  }
}

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

  .hero__title {
    font-size: 2rem;
  }

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

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

  .btn--lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}
