/* ============================================
   TAHocha — Bakery & Grocery
   Fresh, airy, burgundy + blush palette
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5A1F2A;
  --burgundy-deeper: #3D151E;
  --blush: #F5E6E8;
  --blush-light: #FBF4F5;
  --blush-mid: #EDCDD3;
  --cream: #FFFAF8;
  --cream-dark: #F7EDEB;
  --text-dark: #2A1518;
  --text-mid: #5A3A3F;
  --text-light: #8A6068;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.06), 0 1px 2px rgba(123, 45, 59, 0.04);
  --shadow-md: 0 4px 16px rgba(123, 45, 59, 0.08), 0 2px 4px rgba(123, 45, 59, 0.04);
  --shadow-lg: 0 12px 40px rgba(123, 45, 59, 0.12), 0 4px 12px rgba(123, 45, 59, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --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-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 250, 248, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo-light {
  color: var(--blush);
}

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--burgundy);
  background: var(--blush-light);
}

.nav-cta {
  background: var(--burgundy) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  padding: 10px 20px !important;
}

.nav-cta:hover {
  background: var(--burgundy-dark) !important;
  color: var(--white) !important;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: 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, 21, 30, 0.82) 0%,
    rgba(123, 45, 59, 0.70) 50%,
    rgba(90, 31, 42, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  padding-top: 72px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(245, 230, 232, 0.15);
  border: 1px solid rgba(245, 230, 232, 0.3);
  border-radius: 50px;
  color: var(--blush);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--blush);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(245, 230, 232, 0.85);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(245, 230, 232, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 230, 232, 0.5);
}

.btn-outline-light:hover {
  background: rgba(245, 230, 232, 0.1);
  border-color: var(--blush);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blush);
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--burgundy);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--white);
}

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

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-float {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  height: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.about-img-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .section-tag {
  margin-bottom: 16px;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--blush);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--burgundy);
}

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

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  background: var(--cream);
}

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

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

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

.product-img {
  height: 260px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-info {
  padding: 28px;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

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

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   VISIT
   ============================================ */
.visit {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--cream) 100%);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.visit-info .section-tag {
  margin-bottom: 16px;
}

.visit-info .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.visit-info > p {
  color: var(--text-mid);
  margin-bottom: 36px;
  font-size: 1.02rem;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.visit-detail svg {
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.visit-detail p {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.7;
}

.visit-detail a {
  color: var(--burgundy);
  font-weight: 500;
  transition: var(--transition);
}

.visit-detail a:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
}

.visit-map {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--burgundy-deeper);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 230, 232, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 230, 232, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.contact .container {
  position: relative;
  z-index: 1;
}

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

.contact-text .section-tag {
  background: rgba(245, 230, 232, 0.12);
  color: var(--blush);
}

.contact-text .section-title {
  color: var(--white);
  text-align: left;
  margin-bottom: 16px;
}

.contact-text .section-title em {
  color: var(--blush);
}

.contact-text > p {
  color: rgba(245, 230, 232, 0.7);
  font-size: 1.02rem;
}

.contact-form {
  background: rgba(255, 250, 248, 0.06);
  border: 1px solid rgba(245, 230, 232, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blush);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 250, 248, 0.08);
  border: 1px solid rgba(245, 230, 232, 0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 230, 232, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blush);
  background: rgba(255, 250, 248, 0.12);
}

.form-group 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='%23F5E6E8' stroke-width='2' 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 14px center;
  padding-right: 40px;
  color: var(--white);
}

.form-group select option {
  background: var(--burgundy-dark);
  color: var(--white);
}

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

.btn-submit {
  background: var(--blush);
  color: var(--burgundy-dark);
  border: none;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-submit:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: var(--radius-sm);
  color: #81C784;
  font-size: 0.9rem;
}

.form-success svg {
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--burgundy-deeper);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 230, 232, 0.1);
}

.footer-brand p {
  color: rgba(245, 230, 232, 0.6);
  font-size: 0.92rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blush);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(245, 230, 232, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blush);
}

.footer-contact p {
  color: rgba(245, 230, 232, 0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-contact a {
  color: var(--blush);
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(245, 230, 232, 0.4);
  font-size: 0.82rem;
}

/* ============================================
   REVEAL ANIMATIONS (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Default visible state for no-JS */
.reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }

  .about-images {
    height: 480px;
  }

  .contact-wrapper {
    gap: 48px;
  }
}

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 250, 248, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

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

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

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

  .about-images {
    height: 400px;
    order: -1;
  }

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

  .about-text {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

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

  .visit-map {
    min-height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .about-images {
    height: 320px;
  }

  .contact-form {
    padding: 24px;
  }
}
