:root {
  --green: #173024;
  --green-dark: #173024;
  --yellow: #f5bd19;
  --red: #d84a32;
  --ink: #141719;
  --muted: #67716d;
  --paper: #f7f7f2;
  --line: #dfe3dc;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(20, 23, 25, .13);
  --shadow-soft: 0 10px 26px rgba(20, 23, 25, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #faf9f3 0, var(--paper) 42%, #f0f1ea 100%);
}

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

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: 80px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(23, 48, 36, .96);
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(23, 48, 36, .18);
}

.brand img { width: 148px; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.7vw, 22px);
}

.main-nav a,
.nav-action {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--white); }

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--green-dark);
  background: var(--yellow);
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
}

.nav-action:hover,
.button:hover,
.branch-actions a:hover,
.service-card:hover,
.location-tile:hover {
  transform: translateY(-2px);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-items: end;
  padding: clamp(70px, 12vw, 150px) clamp(20px, 6vw, 72px);
  color: var(--white);
  background: var(--green-dark);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 12, .82), rgba(8, 13, 12, .36) 55%, rgba(8, 13, 12, .2)),
    linear-gradient(0deg, rgba(8, 13, 12, .62), rgba(8, 13, 12, 0) 55%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy,
.page-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  width: min(840px, 100%);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p,
.page-hero p {
  max-width: 660px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow { color: var(--yellow); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.button.primary {
  color: var(--green-dark);
  background: var(--yellow);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.button.full { width: 100%; border: 0; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 98px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split.align-start { align-items: start; }

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.48;
}

.image-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 16px;
  align-items: start;
}

.image-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.image-grid img:nth-child(2) { margin-top: 54px; }

.story-preview {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.story-preview-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 20px;
  padding: clamp(30px, 5vw, 70px);
}

.story-preview-copy h2 {
  color: var(--white);
}

.story-preview-copy p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 20px;
  line-height: 1.48;
}

.menu-link,
.location-tile {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  color: var(--white);
  background: var(--ink);
  border-left: 6px solid var(--yellow);
  border-radius: 8px;
  text-decoration: none;
}

.menu-link + .menu-link { margin-top: 12px; }

.menu-link span,
.location-tile span {
  color: var(--yellow);
  font-size: 24px;
  font-weight: 950;
  text-transform: uppercase;
}

.menu-link small,
.location-tile small {
  color: rgba(255,255,255,.78);
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 230px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, #15191b, #101314);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 6px solid var(--yellow);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card small {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-card span {
  color: var(--yellow);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.service-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  margin-top: 10px;
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(245, 189, 25, .5);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--green-dark);
  background: var(--yellow);
  border-radius: 50%;
}

.service-icon svg,
.service-card strong svg {
  width: 22px;
  height: 22px;
}

.service-icon svg path,
.service-card strong svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.branch-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 0;
  padding: 0 0 24px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.branch-grid.compact .branch-card { min-height: 0; }

.branch-photo {
  height: 210px;
  overflow: hidden;
}

.branch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.branch-card:hover .branch-photo img { transform: scale(1.04); }

.branch-card h3 {
  margin: 0;
  padding-inline: 24px;
  color: var(--white);
  font-size: 24px;
  line-height: 1.15;
}

.branch-card p {
  margin: 0;
  padding-inline: 24px;
  color: rgba(255,255,255,.76);
}

.branch-card .eyebrow {
  padding-inline: 24px;
  color: var(--yellow);
}

.branch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px;
  padding-inline: 24px;
}

.branch-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  color: var(--green-dark);
  background: var(--yellow);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.branch-delivery {
  display: grid;
  gap: 10px;
  padding-inline: 24px;
}

.branch-delivery > span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.branch-delivery > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.branch-delivery a {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.branch-delivery a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
}

.branch-delivery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  min-height: 410px;
  background-position: center;
  background-size: cover;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-dark);
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(6,12,10,.82), rgba(6,12,10,.42) 56%, rgba(6,12,10,.2)),
    linear-gradient(0deg, rgba(6,12,10,.52), rgba(6,12,10,0) 54%);
}

.page-hero h1,
.page-hero p {
  max-width: 820px;
}

.story-hero::before { background-image: url("/wp-content/uploads/2020/04/b1.jpg"); background-position: center; background-size: cover; }
.reservas-hero::before { background-image: url("/wp-content/uploads/2020/04/pizza-cabecera.jpg"); background-position: center; background-size: cover; }
.branches-hero::before { background-image: url("/wp-content/uploads/2020/04/IMG_1777-uai-1980x848.jpg"); background-position: center; background-size: cover; }
.menu-hero::before { background-image: url("/wp-content/uploads/2020/04/pizza-cabecera.jpg"); background-position: center; background-size: cover; }

.menu-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.location-tile {
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  border-left: 0;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.location-tile img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .28s ease;
}

.location-tile:hover {
  box-shadow: var(--shadow);
}

.location-tile:hover img {
  transform: scale(1.04);
}

.location-tile span,
.location-tile small { margin-inline: 22px; }

.location-tile small { margin-bottom: 22px; }

.story-layout {
  display: grid;
  grid-template-columns: minmax(260px, .65fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.story-aside {
  position: sticky;
  top: 116px;
  display: grid;
  gap: 14px;
}

.story-aside img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.story-copy {
  display: grid;
  gap: 22px;
  font-size: 19px;
  line-height: 1.7;
}

.story-copy p { margin: 0; }

.story-band img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.ghoody-hero::before { background-image: url("/wp-content/uploads/2020/04/A89A3932recortada.jpg"); background-position: center; background-size: cover; }

.ghoody-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: center;
}

.ghoody-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ghoody-panel h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.ghoody-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.ghoody-layout img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: clamp(34px, 6vw, 72px) clamp(20px, 6vw, 72px);
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, #111516, #0b0e0f);
  border-top: 4px solid var(--yellow);
}

.site-footer > div:first-child {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.site-footer .footer-logo {
  width: 178px;
}

.site-footer p {
  max-width: 360px;
  color: rgba(255,255,255,.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--yellow);
  border: 1px solid rgba(245, 189, 25, .55);
  border-radius: 50%;
}

.footer-links .social-icon:hover {
  color: var(--ink);
  background: var(--yellow);
}

.footer-links .social-icon svg {
  width: 23px;
  height: 23px;
}

.footer-links .social-icon svg rect,
.footer-links .social-icon svg circle,
.footer-links .social-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.footer-links .social-icon[aria-label="Facebook"] svg path {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-action { justify-self: end; }

  .split,
  .ghoody-layout,
  .story-preview,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .branch-grid,
  .menu-location-grid,
  .service-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid img,
  .image-grid img:nth-child(2) {
    height: 280px;
    margin-top: 0;
  }

  .story-preview-media img,
  .ghoody-layout img {
    min-height: 300px;
    height: 300px;
  }

  .story-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header { min-height: auto; }
  .brand img { width: 138px; }
  .hero, .page-hero {
    min-height: 460px;
    padding: 64px 20px;
  }
  .hero h1, .page-hero h1 { font-size: 48px; }
  .lead { font-size: 19px; }
  .site-footer { grid-template-columns: 1fr; }
}
