/* =========================================================
   Aglio theme — exact match of the approved design
   cream / olive green / red, Playfair Display + Lato
   Loaded after style.css + global.css on every page.
   ========================================================= */
:root {
  --ag-green: #2d5016;
  --ag-green-mid: #4a7c59;
  --ag-red: #b91c1c;
  --ag-red-dark: #991b1b;
  --ag-cream: #fdf6e3;
  --ag-white: #ffffff;
  --ag-link: #32b8c6;
  --ag-serif: "Playfair Display", Georgia, serif;
  --ag-sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --ag-header-h: 75px;

  /* re-map template variables so interior pages follow the theme */
  --primary-color: var(--ag-red);
  --primary-color-dark: var(--ag-red);
  --primary-color-light: var(--ag-cream);
  --text-dark: var(--ag-green);
  --text-light: var(--ag-green-mid);
  --main-color: var(--ag-red);
  --primary: var(--ag-red);
  --headerColor: var(--ag-green);
  --bodyTextColor: var(--ag-green-mid);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--ag-header-h); }
body {
  font-family: var(--ag-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ag-green);
  background: var(--ag-white);
}
h1, h2, h3, h4, .section__header, .cs-title { font-family: var(--ag-serif); color: var(--ag-green); }
.section__description, .cs-text { color: var(--ag-green-mid); }

/* ---------- Buttons ---------- */
.btn, .cs-button-solid, .ag-btn {
  display: inline-block;
  font-family: var(--ag-sans);
  font-size: 15.4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--ag-red);
  border: 0;
  border-radius: 10px;
  padding: 15px 30px;
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.3);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.btn:hover, .cs-button-solid:hover, .ag-btn:hover {
  background: var(--ag-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 28, 28, 0.4);
}

/* ---------- Section title + underline ---------- */
.ag-title {
  font-family: var(--ag-serif);
  font-size: 49px;
  font-weight: 600;
  letter-spacing: -0.98px;
  line-height: 1.2;
  color: var(--ag-green);
  text-align: center;
  margin: 0;
}
.ag-underline {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: var(--ag-red);
  margin: 20px auto 0;
}
.ag-head { margin-bottom: 50px; text-align: center; }

/* ---------- Header ---------- */
.ag-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--ag-header-h);
  background: rgba(253, 246, 227, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.ag-header.scrolled { box-shadow: 0 2px 20px rgba(45, 80, 22, 0.1); }
.ag-header__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ag-header__logo img { display: block; width: 45px; height: 45px; object-fit: cover; }
.ag-nav { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.ag-nav a {
  position: relative;
  font-family: var(--ag-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ag-green);
  padding: 5px 0;
  transition: color 0.3s ease;
}
.ag-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--ag-red);
  transition: width 0.3s ease;
}
.ag-nav a:hover, .ag-nav a.active { color: var(--ag-red); }
.ag-nav a:hover::after, .ag-nav a.active::after { width: 100%; }

.ag-menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  color: var(--ag-green);
  cursor: pointer;
  line-height: 1;
}
@media (max-width: 860px) {
  .ag-menu-btn { display: block; }
  .ag-nav {
    position: absolute;
    top: var(--ag-header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ag-cream);
    box-shadow: 0 10px 20px rgba(45, 80, 22, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .ag-nav.open { max-height: 400px; }
  .ag-nav li { border-top: 1px solid rgba(45, 80, 22, 0.08); }
  .ag-nav a { display: block; padding: 15px 20px; }
  .ag-nav a::after { display: none; }
}

/* push interior pages below the fixed header */
#header-container { height: var(--ag-header-h); }
body.ag-home #header-container { height: 0; }

/* ---------- Hero ---------- */
.ag-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.ag-hero__bg {
  position: absolute;
  inset: 0;
  /* hero photo (hosted) */
  background-image:
    url("https://user-gen-media-assets.s3.amazonaws.com/seedream_images/a56c5f73-0707-4557-91f5-74ae14a8ce1e.png");
  background-size: cover;
  background-position: center;
}
.ag-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}
.ag-hero__content { position: relative; z-index: 2; padding: 0 20px; }
.ag-hero__title {
  font-family: var(--ag-serif);
  color: #f5f5f5;
  margin: 0 0 30px;
  letter-spacing: -0.3px;
}
.ag-hero__welcome {
  display: block;
  font-size: 49px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
}
.ag-hero__name {
  display: block;
  font-size: 84px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
.ag-hero .ag-underline { margin-top: 0; }

/* ---------- Sections ---------- */
.ag-section { padding: 100px 0; }
.ag-section--white { background: var(--ag-white); }
.ag-section--cream { background: var(--ag-cream); }
.ag-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* About */
.ag-about__body { max-width: 800px; margin: 0 auto; }
.ag-about__body p {
  font-size: 15.4px;
  line-height: 1.8;
  color: var(--ag-green-mid);
  text-align: justify;
  margin: 0 0 24px;
}
.ag-about__body p:last-child { margin-bottom: 0; }

/* Chef */
.ag-chef {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--ag-white);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.1);
  position: relative;
  overflow: hidden;
}
.ag-chef::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--ag-red), var(--ag-green-mid));
}
.ag-chef__grid { display: grid; grid-template-columns: 440px 400px; justify-content: space-between; gap: 60px; align-items: start; }
.ag-chef__name { font-family: var(--ag-serif); font-size: 35px; font-weight: 600; line-height: 1.2; color: var(--ag-green); margin: 0 0 12px; }
.ag-chef__role {
  font-family: var(--ag-sans);
  font-size: 18.2px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ag-red); margin: 0 0 30px;
}
.ag-chef__text p { font-size: 15.4px; line-height: 1.8; color: var(--ag-green-mid); margin: 0 0 20px; text-align: justify; }
.ag-chef__text p:last-child { margin-bottom: 0; }
.ag-chef__photo {
  width: 400px;
  height: 453px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.ag-chef__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.ag-chef__photo:hover img { transform: scale(1.05); }

/* Menu preview */
.ag-fresh__grid { display: flex; gap: 60px; align-items: center; max-width: 1000px; margin: 0 auto; }
.ag-fresh__text { flex: 0 0 540px; padding-right: 20px; }
.ag-fresh__text p { font-size: 15.4px; line-height: 1.8; color: var(--ag-green-mid); margin: 0 0 24px; text-align: justify; }
.ag-fresh__img { position: relative; flex: 0 0 400px; width: 400px; height: 400px; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.ag-fresh__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.ag-fresh__img:hover img { transform: scale(1.05); }
.ag-fresh__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff; font-family: var(--ag-sans); font-weight: 700; font-size: 15.4px;
  letter-spacing: 1px; text-transform: uppercase; text-align: center;
}

/* Contact */
.ag-contact { max-width: 800px; margin: 0 auto; }
.ag-contact__grid { display: grid; grid-template-columns: repeat(2, 380px); gap: 40px; justify-content: center; }
.ag-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--ag-white);
  border-radius: 15px; padding: 30px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ag-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(45, 80, 22, 0.12); }
.ag-card > i { color: var(--ag-red); font-size: 20px; margin-top: 2px; width: 20px; text-align: center; }
.ag-card h4 { font-family: var(--ag-serif); font-size: 16.8px; font-weight: 550; color: var(--ag-green); margin: 0 0 8px; }
.ag-card p { font-size: 14px; line-height: 1.6; color: var(--ag-green-mid); margin: 0; }
.ag-card a.map-link { color: var(--ag-link); text-decoration: none; font-size: 14px; line-height: 1.6; }
.ag-card a.map-link:hover { text-decoration: underline; }
.ag-card a.phone-link { color: var(--ag-green-mid); text-decoration: none; }

/* Reveal on scroll */
.ag-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.ag-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ag-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .ag-chef__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ag-chef__photo { width: 100%; }
  .ag-fresh__text { flex: 1 1 auto; }
  .ag-fresh__img { flex: 0 0 360px; width: 360px; height: 360px; }
}
@media (max-width: 860px) {
  .ag-section { padding: 70px 0; }
  .ag-title { font-size: 36px; }
  .ag-hero__welcome { font-size: 34px; }
  .ag-hero__name { font-size: 60px; }
  .ag-chef { padding: 30px 22px; }
  .ag-chef__grid { grid-template-columns: 1fr; gap: 30px; }
  .ag-chef__photo { order: -1; width: 100%; max-width: 400px; height: auto; aspect-ratio: 400 / 453; margin: 0 auto; }
  .ag-fresh__grid { flex-direction: column; gap: 40px; }
  .ag-fresh__text { padding-right: 0; }
  .ag-fresh__img { width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; flex: none; }
  .ag-contact__grid { grid-template-columns: 1fr; gap: 20px; }
  .ag-about__body p, .ag-chef__text p, .ag-fresh__text p { text-align: left; }
}

/* ---------- Footer (kept for legal + iOrders links) ---------- */
.ag-footer { background: var(--ag-green); color: rgba(253, 246, 227, 0.85); font-family: var(--ag-sans); }
.ag-footer__grid {
  max-width: 1200px; margin: 0 auto; padding: 60px 20px 36px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.ag-footer__logo { width: 64px; height: 64px; object-fit: cover; margin-bottom: 14px; }
.ag-footer h4 { font-family: var(--ag-serif); font-size: 1.15rem; font-weight: 600; color: var(--ag-cream); margin: 0 0 14px; }
.ag-footer p, .ag-footer li { font-size: 0.9rem; line-height: 1.8; margin: 0; }
.ag-footer ul { list-style: none; margin: 0; padding: 0; }
.ag-footer a { color: rgba(253, 246, 227, 0.85); text-decoration: none; transition: color 0.2s ease; }
.ag-footer a:hover { color: #fff; }
.ag-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.ag-footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(253, 246, 227, 0.12);
}
.ag-footer__social a:hover { background: var(--ag-red); }
.ag-footer__bottom {
  border-top: 1px solid rgba(253, 246, 227, 0.15);
  max-width: 1200px; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
  font-size: 0.8rem;
}
.ag-footer__policy { display: flex; gap: 18px; }
.ag-footer__company span { color: #fff; font-weight: 700; }
@media (max-width: 860px) { .ag-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .ag-footer__grid { grid-template-columns: 1fr; }
  .ag-footer__bottom { flex-direction: column; text-align: center; }
}

/* =========================================================
   Menu page
   ========================================================= */
.ag-menu-hero {
  background: var(--ag-white);
  padding: 60px 0;
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
  text-align: center;
}
.ag-menu-hero__title {
  font-family: var(--ag-serif);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -1.12px;
  line-height: 1.2;
  color: var(--ag-green);
  margin: 0 0 20px;
}
.ag-menu-hero__underline {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #b91c1c, #dc2626);
  margin: 0 auto 20px;
}
.ag-menu-hero__subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18.2px;
  line-height: 1.6;
  color: var(--ag-green-mid);
}
.ag-menu-content { background: var(--ag-cream); padding: 80px 0; }
.ag-menu-cat {
  background: var(--ag-white);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 0 50px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.08);
  scroll-margin-top: calc(var(--ag-header-h) + 20px);
}
.ag-menu-cat:last-child { margin-bottom: 0; }
.ag-menu-cat__head {
  position: relative;
  background: linear-gradient(135deg, #2d5016, #4a7c59);
  padding: 30px 40px;
  text-align: center;
  color: #fff;
}
.ag-menu-cat__head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--ag-red);
  border-radius: 2px 2px 0 0;
}
.ag-menu-cat__title {
  font-family: var(--ag-serif);
  font-size: 30.8px;
  font-weight: 600;
  letter-spacing: -0.308px;
  line-height: 1.2;
  color: #f5f5f5;
  margin: 0;
}
.ag-menu-cat__desc {
  font-family: var(--ag-sans);
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
  margin: 8px 0 0;
}
.ag-menu-cat__items { padding: 40px; }
.ag-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 0 0 25px;
  margin: 0 0 35px;
  border-bottom: 1px solid rgba(45, 80, 22, 0.1);
}
.ag-menu-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.ag-menu-item__info { flex: 1; padding-right: 20px; }
.ag-menu-item__name {
  font-family: var(--ag-serif);
  font-size: 19.6px;
  font-weight: 500;
  letter-spacing: -0.196px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ag-green);
  margin: 0 0 8px;
}
.ag-menu-item__tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(74, 124, 89, 0.12);
  color: var(--ag-green-mid);
  font-family: var(--ag-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.ag-menu-item__desc {
  font-family: var(--ag-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ag-green-mid);
  margin: 0;
}
.ag-menu-item__price {
  font-family: var(--ag-serif);
  font-size: 18.2px;
  font-weight: 600;
  color: var(--ag-red);
  white-space: nowrap;
}
.ag-menu-item.is-unavailable { opacity: 0.5; }
@media (max-width: 860px) {
  .ag-menu-hero { padding: 40px 0; }
  .ag-menu-hero__title { font-size: 40px; }
  .ag-menu-hero__subtitle { font-size: 16px; }
  .ag-menu-content { padding: 50px 0; }
  .ag-menu-cat { margin-bottom: 30px; }
  .ag-menu-cat__head { padding: 24px 20px; }
  .ag-menu-cat__title { font-size: 26px; }
  .ag-menu-cat__items { padding: 26px 20px; }
  .ag-menu-item { margin-bottom: 22px; padding-bottom: 20px; gap: 12px; }
  .ag-menu-item__info { padding-right: 0; }
  .ag-menu-item__name { font-size: 17px; }
}
