:root {
  --bg: #FEFCF8;
  --bg-alt: #F5EFE2;
  --dark: #1A1611;
  --gold: #BF8B3A;
  --gold-hover: #A67830;
  --gold-light: #E8C97A;
  --text: #2C2520;
  --text-muted: #8A7E76;
  --border: #E5DDD0;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --section-pad: 6rem 2rem;
  --radius: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 30px rgba(26, 22, 17, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 22, 17, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-top: 0.4rem; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(191, 139, 58, 0.3);
}
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold); border-color: transparent; padding-left: 0; }
.btn-ghost:hover { gap: 0.75rem; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.6rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(254, 252, 248, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 38px; object-fit: contain; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
#navbar.scrolled .logo-text { color: var(--dark); }

.nav-links { display: flex; align-items: center; list-style: none; gap: 2.5rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); }
#navbar.scrolled .nav-links a { color: var(--text-muted); }
#navbar.scrolled .nav-links a:hover { color: var(--text); }

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 500;
}
.nav-links a.nav-cta:hover { background: var(--gold-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .nav-toggle span { background: var(--dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.unicroissant.com/img/croissants-destaques/franchising.png');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.22;
  transform: scale(1.04);
  transition: transform 10s ease, opacity 1s ease;
}
#hero.loaded .hero-bg { transform: scale(1); opacity: 0.28; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,22,17,0.1) 0%,
    rgba(26,22,17,0.3) 50%,
    rgba(26,22,17,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 820px;
  animation: heroIn 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}

.hero-content h1 { color: var(--white); font-weight: 400; margin-bottom: 1.4rem; }
.hero-content h1 em { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }
.hero-actions .btn-outline { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }
.hero-actions .btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.35);
  animation: bounce 2.5s ease infinite;
  transition: color 0.2s;
}
.hero-scroll:hover { color: rgba(255,255,255,0.7); }

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

/* ── Sobre ── */
#sobre { padding: var(--section-pad); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.sobre-text h2 { margin: 0.3rem 0 1.5rem; }
.sobre-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.02rem; }
.sobre-text .btn-ghost { margin-top: 0.8rem; font-size: 0.9rem; font-weight: 500; }

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.image-frame:hover img { transform: scale(1.04); }

/* ── Especialidades ── */
#especialidades { padding: var(--section-pad); background: var(--bg-alt); }

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

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-icon { font-size: 1.8rem; margin-bottom: 1.4rem; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.product-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }

/* ── Horários ── */
#horarios { padding: var(--section-pad); }

.horarios-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.horarios-text h2 { margin: 0.3rem 0 1rem; }
.horarios-text p { color: var(--text-muted); font-size: 0.95rem; }

.horarios-table { border-top: 1px solid var(--border); }
.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.horario-row .dia { font-size: 0.9rem; }
.horario-row .hora { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; letter-spacing: 0.02em; }
.horario-row.closed .hora { color: var(--border); font-style: italic; }

/* ── Localização ── */
#localizacao { padding: var(--section-pad); background: var(--bg-alt); }

.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

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

.info-item { display: flex; gap: 1.2rem; align-items: flex-start; }

.info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.info-item strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.info-item p { font-size: 0.92rem; line-height: 1.6; }
.info-item a { color: var(--gold); transition: color 0.2s; }
.info-item a:hover { color: var(--gold-hover); }

.mapa-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.mapa-container iframe { display: block; }

/* ── Contacto ── */
#contacto { padding: var(--section-pad); text-align: center; }

.contacto-inner { max-width: 580px; margin: 0 auto; }
.contacto-inner h2 { margin: 0.3rem 0 1rem; }
.contacto-inner p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.02rem; }
.contacto-links { display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: var(--dark);
  padding: 4.5rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
}

.footer-logo {
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  margin: 0 auto 0.4rem;
  object-fit: contain;
}
.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand p {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  :root { --section-pad: 4.5rem 1.5rem; }

  .sobre-grid,
  .horarios-inner { grid-template-columns: 1fr; gap: 3rem; }
  .sobre-image { order: -1; }

  .localizacao-grid { grid-template-columns: 1fr; gap: 2.5rem; }

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

@media (max-width: 600px) {
  :root { --section-pad: 3.5rem 1.25rem; }

  .nav-toggle { display: flex; z-index: 1001; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(254, 252, 248, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem !important; color: var(--text) !important; }

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

  .hero-actions { flex-direction: column; align-items: stretch; max-width: 300px; margin: 0 auto; }
  .hero-actions .btn { justify-content: center; }
}
