/* ============================================
   Panadería San Juan — Custom Styles
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #FDF8F5;
  color: #1F1F25;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- GEO SHAPES (fixed background decoration) ---------- */
.geo-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.geo-shapes .shape-1 {
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: #7B2D3B;
  border-radius: 50%;
  opacity: 0.04;
}
.geo-shapes .shape-2 {
  position: absolute;
  top: 40%; left: -120px;
  width: 300px; height: 300px;
  background: #F5D5CC;
  border-radius: 50%;
  opacity: 0.12;
}
.geo-shapes .shape-3 {
  position: absolute;
  bottom: 10%; right: 5%;
  width: 200px; height: 200px;
  background: #7B2D3B;
  border-radius: 50%;
  opacity: 0.04;
}
.geo-shapes .shape-4 {
  position: absolute;
  bottom: 30%; left: 10%;
  width: 150px; height: 150px;
  background: #F5D5CC;
  transform: rotate(45deg);
  opacity: 0.08;
}

/* ---------- SECTION LABELS & TITLES ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7B2D3B;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 32px; height: 2px;
  background: #7B2D3B;
  border-radius: 2px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #1F1F25;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.1rem;
  color: #4A4A52;
  max-width: 600px;
  line-height: 1.7;
}
.text-burgundy { color: #7B2D3B; }
.text-blush { color: #E06E4A; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(253, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(253, 248, 245, 0.96);
  box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #7B2D3B;
}
.nav-brand-text { display: none; }
@media (min-width: 640px) {
  .nav-brand-text { display: inline; }
}
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1F1F25;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #7B2D3B;
  transition: width 0.3s;
}
.nav-links a:hover { color: #7B2D3B; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: #7B2D3B !important;
  color: #FDF8F5 !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #5c1f2c !important; transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 44px; height: 44px;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(123, 45, 59, 0.08); }
.nav-toggle .close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .menu-icon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: block; }
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px; left: 0; right: 0;
  background: rgba(253, 248, 245, 0.98);
  backdrop-filter: blur(16px);
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.nav-mobile-open .nav-links a { font-size: 1rem; }

/* ---------- 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;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(61, 19, 26, 0.88) 0%,
      rgba(123, 45, 59, 0.72) 50%,
      rgba(92, 31, 44, 0.82) 100%);
}
/* Geometric overlay pattern */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(245, 213, 204, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 213, 204, 0.06) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 213, 204, 0.15);
  border: 1px solid rgba(245, 213, 204, 0.3);
  color: #F5D5CC;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: #FDF8F5;
  margin-bottom: 24px;
}
.hero-accent {
  color: #F5D5CC;
  font-style: italic;
  font-weight: 400;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 213, 204, 0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 213, 204, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(245,213,204,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #7B2D3B;
  color: #FDF8F5;
  border: 2px solid #7B2D3B;
}
.btn-primary:hover {
  background: #5c1f2c;
  border-color: #5c1f2c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}
.btn-outline-light {
  background: transparent;
  color: #F5D5CC;
  border: 2px solid rgba(245, 213, 204, 0.5);
}
.btn-outline-light:hover {
  background: rgba(245, 213, 204, 0.12);
  border-color: #F5D5CC;
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: #7B2D3B;
  border: 2px solid #7B2D3B;
}
.btn-outline-dark:hover {
  background: #7B2D3B;
  color: #FDF8F5;
  transform: translateY(-2px);
}
.btn-light {
  background: #FDF8F5;
  color: #7B2D3B;
  border: 2px solid #FDF8F5;
}
.btn-light:hover {
  background: #F5D5CC;
  border-color: #F5D5CC;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-full { width: 100%; justify-content: center; }

/* ---------- SPECIALTIES ---------- */
.specialties {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}
.geo-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.geo-accent-1 {
  top: 60px; right: -60px;
  width: 200px; height: 200px;
  background: #7B2D3B;
  border-radius: 50%;
  opacity: 0.04;
}
.geo-accent-2 {
  bottom: 40px; left: -40px;
  width: 160px; height: 160px;
  background: #F5D5CC;
  transform: rotate(45deg);
  opacity: 0.12;
}
.geo-accent-3 {
  top: 80px; left: -80px;
  width: 240px; height: 240px;
  background: #7B2D3B;
  border-radius: 50%;
  opacity: 0.04;
}
.geo-accent-4 {
  top: -40px; right: 10%;
  width: 180px; height: 180px;
  background: #F5D5CC;
  transform: rotate(30deg);
  opacity: 0.1;
}
.specialties .container { position: relative; z-index: 1; }
.specialties .section-label,
.specialties .section-title,
.specialties .section-desc { text-align: center; display: block; }
.specialties .section-label::before { margin: 0 auto; }
.specialties .section-desc { margin: 0 auto 60px; }
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .specialty-grid { grid-template-columns: repeat(4, 1fr); }
}
.specialty-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid rgba(123, 45, 59, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.specialty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}
.specialty-card-geo {
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: #7B2D3B;
  border-radius: 50%;
  opacity: 0.05;
  transition: transform 0.4s, opacity 0.3s;
}
.specialty-card:hover .specialty-card-geo {
  transform: scale(1.5);
  opacity: 0.08;
}
.specialty-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(123, 45, 59, 0.06);
}
.specialty-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1F1F25;
  margin-bottom: 10px;
}
.specialty-desc {
  font-size: 0.92rem;
  color: #4A4A52;
  line-height: 1.65;
}

/* ---------- ABOUT ---------- */
.about {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.about-images {
  position: relative;
}
.about-img-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(123, 45, 59, 0.15);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-float {
  position: absolute;
  bottom: -30px; right: -20px;
  width: 55%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  border: 4px solid #FDF8F5;
}
.about-img-float img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  top: -20px; left: -10px;
  background: #7B2D3B;
  color: #F5D5CC;
  padding: 16px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(123, 45, 59, 0.3);
}
.about-badge-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.about-content .section-title { margin-bottom: 24px; }
.about-text {
  font-size: 1rem;
  color: #4A4A52;
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(123, 45, 59, 0.1);
}
@media (max-width: 480px) {
  .about-stats { flex-direction: column; gap: 20px; }
}
.stat { flex: 1; text-align: center; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
  color: #7B2D3B;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: #4A4A52;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: rgba(123, 45, 59, 0.15);
  align-self: stretch;
}

/* ---------- GALLERY ---------- */
.gallery {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}
.gallery .container { position: relative; z-index: 1; }
.gallery .section-label,
.gallery .section-title { text-align: center; display: block; }
.gallery .section-label::before { margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .gallery-item--wide { grid-column: span 2; }
}
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item--wide { aspect-ratio: 16/9; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,19,26,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  color: #FDF8F5;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- VISIT ---------- */
.visit {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: #fff;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.visit-info .section-title { margin-bottom: 32px; }
.visit-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.visit-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.visit-detail-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(123, 45, 59, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visit-detail-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7B2D3B;
  margin-bottom: 4px;
}
.visit-detail-value {
  display: block;
  font-size: 0.95rem;
  color: #1F1F25;
  line-height: 1.6;
}
.visit-phone { transition: color 0.2s; }
.visit-phone:hover { color: #E06E4A; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.visit-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
  min-height: 450px;
}

/* ---------- CONTACT CTA ---------- */
.contact-cta {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  background: #7B2D3B;
  overflow: hidden;
}
.contact-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-cta-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.contact-cta-text .section-title { color: #FDF8F5; margin-bottom: 16px; }
.contact-cta-desc {
  font-size: 1.05rem;
  color: rgba(245, 213, 204, 0.85);
  line-height: 1.7;
  max-width: 480px;
}
.cta-link {
  color: #F5D5CC;
  font-weight: 700;
  border-bottom: 1px solid rgba(245, 213, 204, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.cta-link:hover { color: #fff; border-color: #fff; }

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 213, 204, 0.15);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(12px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #F5D5CC;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 213, 204, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #FDF8F5;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: rgba(245, 213, 204, 0.4); }
.form-input:focus {
  outline: none;
  border-color: #F5D5CC;
  background: rgba(255, 255, 255, 0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2D8A4E;
  margin: 16px 0 8px;
}
.form-success-desc {
  color: rgba(245, 213, 204, 0.7);
  font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #1F1F25;
  color: rgba(245, 213, 204, 0.7);
  padding: 80px 0 0;
  z-index: 1;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 60px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #F5D5CC;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 213, 204, 0.55);
}
.footer-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #F5D5CC;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(245, 213, 204, 0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: #F5D5CC; }
.footer-contact, .footer-hours {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 213, 204, 0.55);
}
.footer-phone {
  color: #F5D5CC;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-phone:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(245, 213, 204, 0.08);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(245, 213, 204, 0.35);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal.delay-1 { transition-delay: 0.1s; }
  .reveal.delay-2 { transition-delay: 0.2s; }
  .reveal.delay-3 { transition-delay: 0.3s; }
  .reveal.delay-4 { transition-delay: 0.4s; }
}

/* ---------- MOBILE ADJUSTMENTS ---------- */
@media (max-width: 480px) {
  .hero-content { padding: 100px 20px 60px; }
  .specialties, .about, .gallery, .visit, .contact-cta { padding: 80px 0; }
  .about-img-float { width: 60%; bottom: -20px; right: -10px; }
  .about-badge { top: -12px; left: 0; padding: 12px 16px; }
  .about-badge-number { font-size: 1.5rem; }
}
</style>
