/* =========================================================
   Gelats Moyà · Sitio web
   Sistema de diseño: minimalista mediterráneo
   Paleta: rosa F4B3EA · azul marino 282B61 · amarillo F8DE6A
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, iframe { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* === Tokens === */
:root {
  --navy: #282B61;
  --navy-ink: #1F2350;
  --pink: #F4B3EA;
  --yellow: #F8DE6A;
  --cream: #FAF3EA;
  --white: #FFFFFF;
  --navy-78: rgba(40, 43, 97, 0.78);
  --navy-70: rgba(40, 43, 97, 0.70);
  --navy-55: rgba(40, 43, 97, 0.55);
  --navy-50: rgba(40, 43, 97, 0.50);
  --navy-30: rgba(40, 43, 97, 0.30);
  --navy-18: rgba(40, 43, 97, 0.18);

  --font-display: 'Lilita One', 'Recoleta', system-ui, sans-serif;
  --font-body: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;

  --radius-card: 14px;
  --radius-pill: 30px;
  --section-pad-y: 100px;
  --section-pad-x: 28px;
  --container: 680px;
}

/* === Utilities === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--pink);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* === Focus === */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Nav === */
.site-nav {
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 50;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: box-shadow 0.3s ease;
}
.site-nav.scrolled {
  box-shadow: 0 1px 0 var(--navy-18);
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 0.6; }

.lang-switcher {
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
}
.lang-switcher a {
  color: var(--navy-30);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.lang-switcher a:hover { color: var(--navy-70); }
.lang-switcher a[aria-current="true"] {
  color: var(--navy);
  border-bottom: 1.5px solid var(--navy);
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* === Hero === */
.hero {
  background: var(--pink);
  padding: 110px var(--section-pad-x) 120px;
  text-align: center;
  position: relative;
}
.hero-inner { max-width: var(--container); margin: 0 auto; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
}
.hero .eyebrow {
  color: var(--navy);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 11vw, 88px);
  color: var(--navy);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--navy);
  opacity: 0.85;
  max-width: 360px;
  margin: 32px auto 38px;
  line-height: 1.55;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--pink);
  font-size: 13px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta:hover { transform: translateY(-2px); background: var(--navy-ink); }
.cta::after { content: '→'; transition: transform 0.2s ease; }
.cta:hover::after { transform: translateX(3px); }

/* === Curve transition === */
.curve {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* === Sections (shared) === */
.section {
  padding: 30px var(--section-pad-x) var(--section-pad-y);
  background: var(--cream);
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.section .eyebrow {
  color: var(--navy);
  opacity: 0.55;
  margin-bottom: 20px;
}
.section h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 24px;
}

.section-lead {
  font-size: 14px;
  color: var(--navy-70);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 48px;
}

/* === About / Stats === */
.about p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--navy-78);
  max-width: 460px;
  margin: 0 auto;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 68px;
  flex-wrap: wrap;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 56px);
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--navy-55);
  margin-top: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

/* === Flavors === */
.flavors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.flavor-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.25s ease;
}
.flavor-card:hover { transform: translateY(-3px); }

.flavor-photo {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  display: block;
}
.flavor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.flavor-card:hover .flavor-photo img { transform: scale(1.05); }

.flavor-content { min-width: 0; flex: 1; text-align: left; }
.flavor-category {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--navy-50);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.flavor-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 7px;
}
.flavor-desc {
  font-size: 12px;
  color: var(--navy-70);
  line-height: 1.55;
}

.flavor-card--extra { display: none; }
.flavors-grid.expanded .flavor-card--extra {
  display: flex;
  animation: fadeUp 0.5s ease both;
}

.flavors-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1.5px solid var(--navy);
  padding: 0 0 2px;
  transition: opacity 0.2s ease;
}
.flavors-toggle::after {
  content: '↓';
  transition: transform 0.3s ease;
  display: inline-block;
}
.flavors-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.flavors-toggle:hover { opacity: 0.65; }

.section-cta-link {
  display: inline-block;
  margin-top: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.section-cta-link:hover { opacity: 0.65; }

/* === Gallery === */
.gallery-bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--radius-card);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  position: relative;
}
.gallery-item.has-photo {
  padding: 0;
  background: var(--cream);
}
.gallery-item picture,
.gallery-item picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item.has-photo:hover img {
  transform: scale(1.03);
}
.gallery-item span {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  opacity: 0.75;
  z-index: 2;
  position: relative;
}
.gallery-tall { grid-row: span 2; background: var(--navy); }
.gallery-tall span { color: var(--pink); }
.gallery-pink  { background: var(--pink); }
.gallery-pink span { color: var(--navy); }
.gallery-yellow { background: var(--yellow); }
.gallery-yellow span { color: var(--navy); }
.gallery-navy { background: var(--navy); }
.gallery-navy span { color: var(--pink); }

/* === Contact === */
.contact .section-lead { margin-bottom: 44px; }

.contact-map {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 320px;
  background: var(--navy-ink);
  max-width: 600px;
  margin: 0 auto;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 600px;
  margin: 28px auto 0;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  text-align: left;
}
.contact-card .field-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--navy-50);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-card address {
  font-style: normal;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.6;
  font-weight: 500;
}

.directions-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1.5px solid var(--navy);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.directions-link:hover { opacity: 0.65; }

.hours-list { font-size: 12px; color: var(--navy); line-height: 1.55; }
.hours-list dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.hours-list dd {
  color: var(--navy-70);
  margin-bottom: 14px;
}
.hours-list dd:last-child { margin-bottom: 0; }

.contact-info { font-size: 12px; color: var(--navy); }
.contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}
.contact-info a:hover { opacity: 0.65; }
.contact-info svg { flex-shrink: 0; opacity: 0.6; }

.contact-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  font-size: 18px;
  color: var(--navy);
}
.contact-social a { transition: opacity 0.2s ease; }
.contact-social a:hover { opacity: 0.6; }
.contact-social svg { width: 18px; height: 18px; }

/* === Footer === */
.site-footer {
  background: var(--navy);
  color: var(--pink);
  padding: 64px var(--section-pad-x) 36px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--pink);
  opacity: 0.85;
  margin-bottom: 32px;
}

.footer-info {
  border-top: 0.5px solid rgba(244, 179, 234, 0.18);
  border-bottom: 0.5px solid rgba(244, 179, 234, 0.18);
  padding: 22px 0;
  margin-bottom: 24px;
}
.footer-info-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244, 179, 234, 0.65);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
}
.footer-info-line {
  font-size: 13px;
  color: var(--pink);
  line-height: 1.7;
  margin: 0;
}
.footer-info-line a {
  color: var(--pink);
  transition: opacity 0.2s ease;
}
.footer-info-line a:hover { opacity: 0.65; }
.footer-sep {
  margin: 0 8px;
  opacity: 0.4;
}
.footer-address {
  margin-top: 4px;
  opacity: 0.78;
}

.footer-copy {
  font-size: 10px;
  color: rgba(244, 179, 234, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-copy a {
  color: inherit;
  border-bottom: 0.5px solid rgba(244, 179, 234, 0.3);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.footer-copy a:hover { opacity: 0.7; }

@media (max-width: 540px) {
  .footer-sep { display: none; }
  .footer-info-line a {
    display: block;
    margin: 4px 0;
  }
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
}
.reveal.visible {
  animation: fadeUp 0.7s ease forwards;
}
.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

.hero .eyebrow,
.hero h1,
.hero-sub,
.hero .cta {
  animation: fadeUp 0.8s ease both;
}
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1       { animation-delay: 0.15s; }
.hero-sub      { animation-delay: 0.30s; }
.hero .cta     { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* === Responsive === */
@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; }
}

@media (max-width: 720px) {
  :root {
    --section-pad-y: 70px;
    --section-pad-x: 22px;
  }
  .site-nav { padding: 16px 22px; gap: 12px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 22px;
    border-bottom: 0.5px solid var(--navy-18);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  }
  .nav-links.open li { padding: 6px 0; }

  .hero { padding: 80px 22px 90px; }
  .hero-sub { margin: 26px auto 30px; }

  .stats { gap: 32px; margin-top: 50px; }

  .flavors-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .gallery-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 140px);
    max-width: 420px;
  }
  .gallery-tall { grid-row: span 2; }

  .contact-map { height: 240px; }
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 420px) {
  .gallery-bento {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 140px);
  }
  .gallery-tall { grid-row: span 1; }
}
