/* ============================================================
   Camllo Cuina, Catalan cooking without vegetable oil
   Palette: Costa Brava sea ink, warm ivory, burnt sugar caramel,
   romesco garnet, olive grove. Type: Fraunces + Karla.
   ============================================================ */

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

:root {
  --ink: #17272f;
  --sea: #1c4453;
  --sea-deep: #0f2d38;
  --paper: #f8f4ea;
  --paper-soft: #fdfaf2;
  --card: #fffdf6;
  --caramel: #c8862e;
  --caramel-soft: #e3aa54;
  --garnet: #93332a;
  --olive: #77794b;
  --muted: #55636b;
  --line: rgba(23, 39, 47, 0.14);
  --ivory: #f6efdf;
  --shadow-lg: 0 30px 60px -22px rgba(15, 45, 56, 0.38);
  --shadow-sm: 0 12px 28px -14px rgba(15, 45, 56, 0.28);
  --trencadis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='28' viewBox='0 0 240 28'%3E%3Crect width='240' height='28' fill='%23f8f4ea'/%3E%3Cpolygon points='0,2 26,0 30,14 12,26 0,22' fill='%231c4453'/%3E%3Cpolygon points='30,0 58,3 52,18 34,15' fill='%23c8862e'/%3E%3Cpolygon points='14,28 34,17 54,20 58,28' fill='%2393332a'/%3E%3Cpolygon points='60,0 86,1 90,22 66,20 55,19' fill='%2377794b'/%3E%3Cpolygon points='62,22 88,24 84,28 60,28' fill='%231c4453'/%3E%3Cpolygon points='90,0 116,4 112,26 92,23' fill='%2393332a'/%3E%3Cpolygon points='118,2 142,0 146,16 124,20 114,12' fill='%231c4453'/%3E%3Cpolygon points='120,22 144,18 150,28 118,28' fill='%23c8862e'/%3E%3Cpolygon points='148,0 172,2 168,20 150,17' fill='%23c8862e'/%3E%3Cpolygon points='152,20 174,22 178,28 148,28' fill='%230f2d38'/%3E%3Cpolygon points='174,0 198,0 202,24 180,26 170,20' fill='%2377794b'/%3E%3Cpolygon points='200,0 226,2 222,18 204,22' fill='%231c4453'/%3E%3Cpolygon points='204,24 228,20 240,24 240,28 202,28' fill='%2393332a'/%3E%3Cpolygon points='228,0 240,0 240,20 226,16' fill='%23c8862e'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--garnet); }

::selection { background: var(--caramel); color: #fff; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- Kickers & shared bits ---------- */

.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--caramel);
}

.kicker--left { text-align: left; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--garnet);
  font-size: 17px;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 70px;
  background: var(--line);
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(15, 45, 56, 0.9);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: var(--sea-deep);
  box-shadow: 0 10px 30px -12px rgba(10, 30, 38, 0.55);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-logo:hover { color: var(--caramel-soft); }

.logo-mark { font-size: 24px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246, 239, 223, 0.86);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--caramel-soft); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(200, 134, 46, 0.16), transparent 62%),
    radial-gradient(700px 520px at 6% 96%, rgba(147, 51, 42, 0.18), transparent 60%),
    linear-gradient(152deg, var(--sea-deep) 0%, var(--sea) 58%, #235265 100%);
  color: var(--ivory);
  overflow: hidden;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 168px 28px 120px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.hero-copy .kicker { color: var(--caramel-soft); }

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(46px, 5.6vw, 74px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 20px 0 26px;
  color: #fbf7ec;
}

.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--caramel-soft);
}

.hero-lede {
  font-size: 19.5px;
  line-height: 1.72;
  color: rgba(246, 239, 223, 0.82);
  max-width: 54ch;
}

.hero-actions { margin-top: 38px; }

.btn-primary {
  display: inline-block;
  background: var(--caramel);
  color: #14262c;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 38px;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(200, 134, 46, 0.55);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--caramel-soft);
  color: #14262c;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(200, 134, 46, 0.65);
}

.hero-fats {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-style: italic;
  color: rgba(246, 239, 223, 0.75);
}

.hero-fats .dot { color: var(--caramel); font-style: normal; font-size: 13px; }

/* Hero figure */

.hero-figure { position: relative; margin: 0; }

.hero-frame {
  position: absolute;
  inset: -20px 24px 30px -20px;
  border: 2px solid rgba(227, 170, 84, 0.5);
  border-radius: 22px;
  pointer-events: none;
}

.hero-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.hero-tile img { width: 100%; height: 520px; object-fit: cover; }

.hero-tile-base {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 58%;
  height: 120px;
  border-radius: 14px;
  background-color: var(--paper);
  background-image: var(--trencadis);
  background-repeat: repeat;
  background-size: auto 28px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.hero-caption {
  position: absolute;
  left: -26px;
  bottom: 34px;
  z-index: 3;
  background: var(--card);
  color: var(--ink);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.cap-mark { color: var(--garnet); font-size: 18px; }

.cap-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.cap-sub {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero entrance */

@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroFig {
  from { opacity: 0; transform: translateY(34px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.hero-copy .kicker { animation: heroUp 0.7s 0.08s both; }
.hero-copy h1 { animation: heroUp 0.7s 0.18s both; }
.hero-lede { animation: heroUp 0.7s 0.3s both; }
.hero-actions { animation: heroUp 0.7s 0.42s both; }
.hero-fats { animation: heroUp 0.7s 0.52s both; }
.hero-figure { animation: heroFig 0.9s 0.35s both; }

/* ---------- Principles ---------- */

.principles {
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.principles-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 92px 28px 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

.principle {
  border-top: 2px solid rgba(200, 134, 46, 0.55);
  padding-top: 26px;
}

.p-word {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  color: var(--caramel);
  margin-bottom: 12px;
}

.principle h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 12px;
}

.principle p { font-size: 17px; color: var(--muted); }

/* ---------- Recipes ---------- */

.recipes-section { padding: 104px 0 116px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 68px;
}

.section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 560;
  line-height: 1.12;
  margin: 16px 0 18px;
}

.section-head h2 em { font-style: italic; color: var(--garnet); }

.section-head p { color: var(--muted); font-size: 18.5px; }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

.recipe-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.recipe-media {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-img { transform: scale(1.05); }

.recipe-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(15, 45, 56, 0.85);
  color: var(--ivory);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.recipe-info { padding: 30px 32px 34px; }

.recipe-info h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.18;
}

.recipe-sub {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 17.5px;
  color: var(--garnet);
  margin: 6px 0 14px;
}

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.recipe-meta .sep { color: var(--caramel); }

.recipe-desc { color: var(--muted); font-size: 17px; margin-bottom: 22px; }

.btn-expand {
  font-family: "Karla", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
  background: none;
  border: 1.5px solid var(--sea);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-expand:hover { background: var(--sea); color: var(--ivory); }

.recipe-details { display: none; padding-top: 26px; }

.recipe-details.active { display: block; animation: detailsIn 0.4s ease; }

@keyframes detailsIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.recipe-details h4 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--garnet);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 14px;
}

.recipe-details h4 + ul,
.recipe-details h4 + ol { margin-bottom: 24px; }

.recipe-details ul { list-style: none; }

.recipe-details ul li {
  font-size: 16.5px;
  padding: 5px 0 5px 22px;
  position: relative;
  color: var(--ink);
}

.recipe-details ul li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 11px;
  color: var(--caramel);
}

.recipe-details ol {
  list-style: none;
  counter-reset: steps;
}

.recipe-details ol li {
  counter-increment: steps;
  font-size: 16.5px;
  padding: 7px 0 7px 40px;
  position: relative;
}

.recipe-details ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--ivory);
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- About ---------- */

.about-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.about-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 108px 28px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 76px;
  align-items: center;
}

.about-figure { position: relative; margin: 0; }

.about-frame {
  position: absolute;
  inset: -18px 26px 26px -18px;
  border: 2px solid rgba(200, 134, 46, 0.45);
  border-radius: 20px;
  pointer-events: none;
}

.about-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.about-tile img { width: 100%; height: 470px; object-fit: cover; }

.about-tile-base {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 52%;
  height: 96px;
  border-radius: 12px;
  background-color: var(--paper);
  background-image: var(--trencadis);
  background-repeat: repeat;
  background-size: auto 28px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.about-copy h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 560;
  line-height: 1.14;
  margin: 16px 0 24px;
}

.about-copy h2 em { font-style: italic; color: var(--garnet); }

.about-copy p { color: var(--muted); margin-bottom: 18px; max-width: 60ch; }

.about-sign {
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  color: var(--ink);
  margin-top: 26px;
}

.about-sign .mahl {
  font-style: italic;
  color: var(--caramel);
  font-weight: 600;
}

/* ---------- Trencadis band ---------- */

.trencadis-band {
  height: 28px;
  background-color: var(--paper);
  background-image: var(--trencadis);
  background-repeat: repeat-x;
  background-size: auto 100%;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--sea-deep);
  color: rgba(246, 239, 223, 0.82);
  padding: 78px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 16px;
}

.footer-brand p { font-size: 16.5px; max-width: 40ch; }

.footer-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 16px;
  color: var(--caramel-soft);
}

.footer h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel-soft);
  margin-bottom: 20px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a,
.footer-company a {
  color: rgba(246, 239, 223, 0.82);
  text-decoration: none;
}

.footer-links a:hover,
.footer-company a:hover { color: var(--caramel-soft); text-decoration: underline; }

.footer-company p { font-size: 16px; line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(246, 239, 223, 0.14);
  padding: 26px 0 34px;
  text-align: center;
  font-size: 14.5px;
  color: rgba(246, 239, 223, 0.6);
}

/* ---------- Legal pages ---------- */

.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 158px 28px 96px;
}

.legal-main h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 4.4vw, 52px);
  font-weight: 560;
  line-height: 1.1;
  margin-bottom: 14px;
}

.legal-main h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 42px 0 14px;
}

.legal-main h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  margin: 26px 0 10px;
}

.legal-main p { margin-bottom: 16px; color: #33424a; }

.legal-main ul, .legal-main ol { margin: 0 0 18px 24px; color: #33424a; }

.legal-main li { margin-bottom: 8px; }

.legal-meta { color: var(--muted); font-size: 16px; }

.company-contact-box {
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--caramel);
  border-radius: 12px;
  padding: 28px 32px;
}

.company-contact-box p { margin-bottom: 8px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 84px;
    padding: 150px 28px 100px;
  }
  .hero-tile img { height: 440px; }
  .hero-caption { left: 10px; }
  .principles-grid { gap: 38px; padding: 76px 28px; }
  .recipes-grid { gap: 32px; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 76px;
    padding: 88px 28px;
  }
  .about-tile img { height: 400px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sea-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 28px 22px;
    display: none;
    box-shadow: 0 22px 34px -18px rgba(10, 30, 38, 0.6);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; }
  .principles-grid { grid-template-columns: 1fr; gap: 44px; }
  .recipes-grid { grid-template-columns: 1fr; }
  .recipes-section { padding: 84px 0 92px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(40px, 9vw, 56px); }
  .hero-tile img { height: 380px; }
  .legal-main { padding: 138px 24px 80px; }
}

@media (max-width: 480px) {
  body { font-size: 17.5px; }
  .container { padding: 0 20px; }
  .nav-container { padding: 15px 20px; }
  .nav-logo { font-size: 20px; }
  .hero-inner { padding: 128px 20px 84px; gap: 68px; }
  .hero-lede { font-size: 18px; }
  .hero-tile img { height: 300px; }
  .hero-caption { padding: 12px 16px; bottom: 22px; }
  .hero-fats { flex-wrap: wrap; font-size: 15.5px; }
  .principles-grid { padding: 60px 20px 68px; }
  .about-inner { padding: 70px 20px; }
  .about-tile img { height: 280px; }
  .recipe-info { padding: 24px 22px 28px; }
  .recipe-media { height: 200px; }
  .section-head { margin-bottom: 48px; }
  .btn-primary { padding: 15px 30px; }
}
