/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #14535c;
  --teal-light:  #1a6e78;
  --teal-muted:  #e8f4f5;
  --slate:       #374151;
  --slate-light: #6b7280;
  --slate-muted: #f3f4f6;
  --warm:        #d4a373;
  --warm-light:  #f5e6d3;
  --white:       #ffffff;
  --off-white:   #fafbfb;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --nav-width:   260px;
  --ease:        cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--slate);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-light); }

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

/* ── Side navigation ── */
#side-nav {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: var(--teal);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.75rem;
  z-index: 100;
  transition: transform .4s var(--ease);
}

.nav-top .logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 3rem;
}
.nav-top .logo:hover { color: var(--white); opacity: .85; }

.nav-links { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.nav-links li a {
  display: block;
  padding: .6rem .75rem;
  color: rgba(255,255,255,.6);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-left: 1px solid transparent;
  transition: all .25s var(--ease);
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--white);
  border-left-color: var(--warm);
  padding-left: 1rem;
}

.nav-bottom .nav-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.45);
  font-size: .75rem;
  letter-spacing: .05em;
}
.nav-bottom .nav-phone:hover { color: var(--white); }

/* ── Mobile menu toggle ── */
#menu-toggle {
  display: none;
  position: fixed;
  top: 1.25rem; left: 1.25rem;
  z-index: 200;
  background: var(--teal);
  border: none;
  cursor: pointer;
  padding: .6rem;
  border-radius: 6px;
}
#menu-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--white);
  margin: 5px 0;
  transition: all .3s var(--ease);
}
#menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 90;
}

/* ── Main content offset ── */
#main-content { margin-left: var(--nav-width); }

/* ── Section base ── */
.section { padding: 7rem 0; }
.section-label {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.25rem;
}
.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

/* ── Hero ── */
.section-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 0;
  background: var(--off-white);
}

.hero-content {
  padding: 4rem 4rem 4rem 3rem;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--slate-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); color: var(--white); }

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

.hero-image {
  height: 100vh;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Grid two ── */
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text-block p {
  color: var(--slate-light);
  margin-bottom: 1rem;
  font-size: .9375rem;
}

.image-block img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
}

/* ── Products ── */
.section-products { background: var(--white); }
.section-products h2 { margin-bottom: 3rem; }

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

.product-card {
  border: 1px solid var(--slate-muted);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover {
  box-shadow: 0 8px 30px rgba(20,83,92,.08);
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-card h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--teal);
  padding: 1.25rem 1.5rem .5rem;
}

.product-card p {
  font-size: .875rem;
  color: var(--slate-light);
  padding: 0 1.5rem 1.5rem;
  line-height: 1.7;
}

/* ── Panadería ── */
.section-panaderia { background: var(--teal-muted); }

.panaderia-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.panaderia-image img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 2px;
}

.panaderia-text h2 {
  margin-top: .5rem;
}

.panaderia-text > p {
  color: var(--slate-light);
  font-size: .9375rem;
  margin-bottom: 2rem;
}

.pan-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.pan-list li {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(20,83,92,.1);
}
.pan-list li:last-child { border-bottom: none; }

.pan-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--teal);
}

.pan-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warm);
}

.pan-desc {
  font-size: .8125rem;
  color: var(--slate-light);
  text-align: right;
}

.pan-note {
  font-size: .8125rem;
  color: var(--slate-light);
  font-style: italic;
}

/* ── Contact ── */
.section-contact { background: var(--white); }
.section-contact h2 { margin-bottom: 3rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: .2rem;
}

.contact-item strong {
  display: block;
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .35rem;
}

.contact-item p {
  font-size: .9375rem;
  color: var(--slate-light);
  line-height: 1.6;
}
.contact-item a { color: var(--slate-light); border-bottom: 1px solid rgba(55,65,81,.2); }
.contact-item a:hover { color: var(--teal); border-color: var(--teal); }

/* ── Form ── */
.contact-form-wrapper {
  background: var(--off-white);
  border: 1px solid var(--slate-muted);
  border-radius: 2px;
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 300;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--slate-muted);
  border-radius: 2px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }

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

.btn-full { width: 100%; justify-content: center; }

.form-success {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--teal-muted);
  color: var(--teal);
  font-size: .875rem;
  border-radius: 2px;
}

/* ── Footer ── */
.footer {
  background: var(--teal);
  color: var(--white);
  padding: 3rem 0;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--white);
}
.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --nav-width: 220px; }
  .hero-content { padding: 3rem 2.5rem; }
  .grid-two, .panaderia-layout, .contact-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
  #menu-toggle { display: block; }

  #side-nav {
    transform: translateX(-100%);
  }
  #side-nav.open { transform: translateX(0); }

  #overlay.open { display: block; }

  #main-content { margin-left: 0; }

  .section-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 7rem 2rem 4rem;
    max-width: 100%;
  }
  .hero-image {
    height: 50vh;
    order: -1;
  }

  .section { padding: 4rem 0; }

  .grid-two,
  .panaderia-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .panaderia-image img { height: 400px; }

  .pan-list li {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .pan-desc { text-align: left; }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 6rem 1.25rem 3rem; }
  .contact-form-wrapper { padding: 1.5rem; }
}
