/* Cuinaima — site styles */

:root {
  --ink: #211a16;
  --ink-soft: #645a52;
  --paper: #fbf7f0;
  --paper-alt: #f2e9da;
  --surface: #ffffff;
  --dark: #221b17;
  --accent: #b8452b;
  --accent-dark: #933520;
  --accent-soft: #f5e1d6;
  --sun: #efb93f;
  --teal: #2f5d5a;
  --whatsapp: #15803d;
  --whatsapp-dark: #116632;
  --line: rgba(33, 26, 22, 0.14);
  --radius: 22px;
  --radius-sm: 10px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(33, 26, 22, 0.05), 0 10px 30px rgba(33, 26, 22, 0.08);
  --shadow-lift: 0 2px 4px rgba(33, 26, 22, 0.06), 0 22px 48px rgba(33, 26, 22, 0.16);
  --header-h: 76px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }
p a, .prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, .prose a:hover { color: var(--accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--sun); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--paper-alt); }

/* Dark call-to-action panel (contact) */
.section--dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #fff;
}
.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.section--dark::before {
  width: clamp(180px, 26vw, 360px);
  aspect-ratio: 1;
  right: -6%;
  top: -38%;
  background: var(--sun);
}
.section--dark::after {
  width: clamp(140px, 20vw, 280px);
  aspect-ratio: 1;
  left: -5%;
  bottom: -40%;
  background: var(--accent);
}
.section--dark a { color: #fff; }

.section-title { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title h1,
.section-title h2 { margin-bottom: 0; }
.section-title p { color: var(--ink-soft); font-size: 1.1rem; max-width: 640px; margin: 18px 0 0; }
.section--dark .section-title { text-align: center; margin-left: auto; margin-right: auto; }
.section--dark .section-title p { color: rgba(255, 255, 255, 0.82); margin-left: auto; margin-right: auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block;
  padding: 8px 13px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 99px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-dark); }

.nav .has-sub { position: relative; }
.nav .has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lift);
}
.nav .sub a { border-radius: 14px; }
.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub { display: flex; }

@media (min-width: 941px) {
  .nav > ul > li:last-child { margin-left: 10px; }
  .nav > ul > li:last-child > a {
    padding: 10px 20px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
  }
  .nav > ul > li:last-child > a:hover { background: var(--accent); color: #fff; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(33, 26, 22, 0.12);
    padding: 4px var(--gutter) 24px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li + li { border-top: 1px solid var(--line); }
  .nav a {
    padding: 14px 2px;
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 0;
  }
  .nav a:hover { background: none; }
  .nav .has-sub > a::after { display: none; }
  .nav .sub {
    display: flex;
    position: static;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 12px 0;
  }
  .nav .sub a {
    padding: 7px 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--ink-soft);
    border-radius: 0;
  }
}

/* Home hero */
.hero-home {
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero-home .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-home h1 {
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.45em;
}
.hero-home h1 em { font-style: italic; color: var(--accent); }
.hero-home .lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 0 32px;
}
.hero-home__media {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  margin-right: 3%;
}
.hero-home__media::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 52%;
  aspect-ratio: 1;
  top: 6%;
  right: -11%;
  border-radius: 50%;
  background: var(--sun);
}
.hero-home__main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--paper-alt);
}
.hero-home__side {
  position: absolute;
  left: -15%;
  bottom: -7%;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid var(--paper);
  background: var(--paper-alt);
}
@media (max-width: 860px) {
  .hero-home .container { grid-template-columns: 1fr; }
  .hero-home__media { max-width: 380px; justify-self: center; margin: 0 0 6%; width: 82%; }
  .hero-home__side { left: -12%; border-width: 6px; }
}

/* Page hero (title panel with photo on subpages) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(60vh, 500px);
  margin: 4px clamp(10px, 2vw, 24px) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-alt);
}
.hero__img {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 200px 0 0 0;
}
.hero .container {
  width: 54%;
  max-width: none;
  margin: 0;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin-bottom: 0.35em; }
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  max-width: 30em;
  margin: 0;
  color: var(--ink-soft);
}
.hero .btn-row { margin-top: 28px; }
@media (max-width: 800px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__img { position: static; width: 100%; height: auto; aspect-ratio: 5 / 4; object-position: center 22%; border-radius: 0; }
  .hero .container { width: 100%; padding: 28px 24px 36px; }
}

/* Cards */
.grid {
  display: grid;
  gap: clamp(36px, 4vw, 48px) clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-alt);
  transition: border-radius 0.35s, transform 0.35s, box-shadow 0.35s;
}
a.card:hover img {
  border-radius: 120px 120px var(--radius) var(--radius);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card-body {
  padding: 20px 2px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 { margin-bottom: 8px; transition: color 0.2s; }
a.card:hover h3 { color: var(--accent); }
.card-body p {
  color: var(--ink-soft);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.card-link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transition: color 0.2s, border-color 0.2s;
}
a.card:hover .card-link { color: var(--accent); border-color: var(--accent); }

/* Split text/image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper-alt);
}
.split p { margin: 0 0 24px; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse > :first-child { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

.prose { max-width: 760px; }

/* Gallery */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-alt);
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery img { border-radius: 16px; }
}

.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) {
  .gallery--3, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Products */
.coffee-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.coffee {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.coffee h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.coffee h3 small { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; color: var(--ink-soft); font-size: 0.9rem; }
.coffee dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-size: 0.95rem; }
.coffee dt { color: var(--ink-soft); }
.coffee dd { margin: 0; }
.coffee .score {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.coffee p { margin: 12px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.coffee .checklist { margin: 14px 0 0; font-size: 0.97rem; }
.coffee .checklist li:last-child { margin-bottom: 0; }

.price { font-family: var(--font-head); font-weight: 600; color: var(--accent); white-space: nowrap; }

.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Clients */
.clients { margin-top: 48px; text-align: center; }
.clients h3 { margin-bottom: 18px; }
.clients__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.clients__list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
}

/* Video */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Partner logos */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.logos img {
  height: 96px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  color: var(--ink-soft);
  padding: 28px 0 36px;
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--ink); font-weight: 500; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
