/* ============================================================
   GROUP FOOD SIERRA NORTE SL. — styles.css
   Palette: pine (sierra), bone paper, bordeaux (carne) accent
   ============================================================ */

:root {
  --pine: #17352a;
  --pine-deep: #0e241c;
  --moss: #3d5c4a;
  --bone: #f4f2ec;
  --paper: #fbfaf6;
  --ink: #17201b;
  --stone: #7c847d;
  --line: #dcd9cf;
  --carne: #8c2b2b;
  --carne-dark: #6e2121;

  --ff-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --ff-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1120px;
  --radius: 10px;
}

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

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

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 40px; height: 40px; flex: none;
  background: var(--pine);
  border-radius: 8px;
  display: grid; place-items: center;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 700; font-size: 15px; line-height: 1.15;
  letter-spacing: .02em; text-transform: uppercase;
}
.brand-name span { display: block; font-size: 10.5px; font-weight: 500; color: var(--stone); letter-spacing: .14em; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 15px; font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--pine); border-bottom-color: var(--pine); }
.nav-cta {
  background: var(--pine); color: #fff !important;
  padding: 10px 20px !important; border-radius: 999px;
  border-bottom: none !important;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--pine-deep); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--pine);
  color: #f1efe6;
  overflow: hidden;
}
.hero-contours {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 120px;
  max-width: 780px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #cfd8c9;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--carne);
}
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: #a9c3ad; }
.hero p.lead {
  font-size: 19px; line-height: 1.65; color: #d9ddd1;
  max-width: 620px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--carne); color: #fff; }
.btn-primary:hover { background: var(--carne-dark); }
.btn-ghost {
  background: transparent; color: #f1efe6;
  border: 1.5px solid rgba(241, 239, 230, .45);
}
.btn-ghost:hover { border-color: #f1efe6; }

/* ridge divider under hero */
.ridge { display: block; width: 100%; height: 56px; margin-top: -1px; }
.ridge path { fill: var(--pine); }

/* ---------- Sections ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bone); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head .eyebrow { color: var(--carne); }
.section-head .eyebrow::before { background: var(--carne); }
.section-head h2 {
  font-family: var(--ff-display);
  font-weight: 800; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12; letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-head p { color: #4c534d; font-size: 17px; }

/* Services — market-tag cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
section.block.alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 53, 42, .10); }
.card::before {
  /* market-tag hole punch */
  content: ""; position: absolute; top: 16px; right: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--line);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--pine); color: #e9eee4;
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--ff-display); font-weight: 700; font-size: 19px;
  margin-bottom: 10px; line-height: 1.25;
}
.card p { font-size: 15.5px; color: #4c534d; }

/* About */
.about-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start;
}
.about-text p { margin-bottom: 18px; color: #333a35; }
.about-facts {
  background: var(--pine); color: #e9eee4;
  border-radius: var(--radius); padding: 34px 30px;
}
.about-facts h3 {
  font-family: var(--ff-display); font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: .1em;
  color: #a9c3ad; margin-bottom: 22px;
}
.fact { padding: 14px 0; border-top: 1px solid rgba(233, 238, 228, .18); }
.fact:first-of-type { border-top: none; padding-top: 0; }
.fact dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: #93a793; margin-bottom: 3px; }
.fact dd { font-size: 15.5px; font-weight: 500; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start;
}
.contact-list { list-style: none; margin-top: 8px; }
.contact-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--bone); color: var(--pine);
  display: grid; place-items: center;
}
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list .label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--stone); margin-bottom: 2px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--carne); }
.contact-list .val { font-weight: 500; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em; margin-bottom: 7px; color: var(--ink);
}
.field input, .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 15.5px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pine);
}
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; }
.consent input { margin-top: 4px; accent-color: var(--pine); }
.consent label { font-size: 13.5px; color: #4c534d; }
.consent a { color: var(--pine); }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--stone); }
.form-status { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--pine); display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-deep); color: #cfd6ca;
  padding: 64px 0 32px; font-size: 14.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(207, 214, 202, .18);
}
.footer-grid h4 {
  font-family: var(--ff-display); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: #8fa68f; margin-bottom: 18px;
}
.footer-brand .brand-name { color: #f1efe6; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: #a8b3a4; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { color: #cfd6ca; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-company li { margin-bottom: 8px; line-height: 1.5; }
.footer-company strong { color: #e9eee4; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; color: #8fa68f; font-size: 13.5px;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--pine); color: #f1efe6;
  padding: 64px 0 56px;
}
.legal-hero h1 {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.01em;
}
.legal-hero p { margin-top: 10px; color: #cfd8c9; }
.legal-body { padding: 64px 0 88px; max-width: 820px; }
.legal-body h2 {
  font-family: var(--ff-display); font-weight: 700; font-size: 22px;
  margin: 40px 0 14px; color: var(--ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #333a35; margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin-bottom: 16px; }
.legal-body a { color: var(--pine); }
.legal-body table {
  width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14.5px;
}
.legal-body th, .legal-body td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top;
}
.legal-body th { background: var(--bone); font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(14, 36, 28, .22);
  padding: 22px 24px; display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 14px; color: #333a35; margin-bottom: 14px; }
.cookie-banner a { color: var(--pine); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 10px 20px; font-size: 14.5px; }
.btn-outline {
  background: transparent; color: var(--pine);
  border: 1.5px solid var(--pine);
}
.btn-outline:hover { background: var(--bone); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-deep); }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--carne); outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 8px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero-inner { padding: 64px 0 88px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  section.block { padding: 64px 0; }
}
