/*
  Alimentação Escolar | Prefeitura de Campos Gerais - MG
  Paleta, componentes e pontos de quebra centralizados neste arquivo.
*/

:root {
  --green-950: #073a26;
  --green-900: #0c5938;
  --green-800: #126340;
  --green-700: #18764e;
  --green-200: #cfe6bd;
  --green-100: #e9f4df;
  --cream: #f8f7f0;
  --white: #ffffff;
  --ink: #173128;
  --muted: #587066;
  --yellow: #f3c963;
  --yellow-soft: #fbefc9;
  --orange: #df7d35;
  --sand: #f3e4be;
  --line: rgba(12, 89, 56, 0.14);
  --shadow-sm: 0 12px 30px rgba(10, 68, 42, 0.08);
  --shadow: 0 20px 55px rgba(10, 68, 42, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
  --font-scale: 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: calc(100% * var(--font-scale)); }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not([disabled]), a { cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 3px solid #d87726; outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-950);
  font-weight: 700;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(78px, 10vw, 132px) 0; }
.section-soft { background: var(--cream); }

.section-heading h2,
.about h2,
.education h2,
.family h2,
.faq-intro h2,
.location h2,
.contact-heading h2,
.operations-intro h2,
.team-intro h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 4.2vw, 4.45rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.06;
}

h2 em, h1 em { color: var(--green-700); font-style: italic; }
.education h2 em, .family h2 em, .contact-strip h2 em { color: var(--yellow); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--green-800);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow > span { display: inline-block; width: 31px; height: 2px; background: currentColor; }
.eyebrow-light { color: var(--yellow); }
.eyebrow-dark { color: var(--green-700); }
.centered { text-align: center; }
.centered .eyebrow { justify-content: center; }
.row-heading { display: flex; justify-content: space-between; align-items: end; gap: 56px; margin-bottom: 48px; }
.row-heading > p { max-width: 385px; margin: 0 0 5px; color: var(--muted); font-size: 1.04rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  transition: transform .24s ease, background-color .24s ease, color .24s ease, box-shadow .24s ease;
}
.button:hover { transform: translateY(-3px); }
.button i { font-size: .84em; }
.button-primary { color: var(--white); background: var(--green-900); box-shadow: 0 12px 24px rgba(12, 89, 56, .18); }
.button-primary:hover { background: var(--green-950); box-shadow: 0 18px 30px rgba(12, 89, 56, .25); }
.button-ghost { color: var(--green-900); border-color: rgba(12, 89, 56, .25); background: rgba(255,255,255,.46); }
.button-ghost:hover { background: var(--white); border-color: var(--green-900); }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent; background: rgba(255,255,255,.89); backdrop-filter: blur(14px); transition: box-shadow .28s ease, border-color .28s ease, background .28s ease; }
.site-header.scrolled { border-color: rgba(12, 89, 56, .1); background: rgba(255,255,255,.97); box-shadow: 0 8px 30px rgba(12, 89, 56, .09); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; }
.brand-symbol { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border-radius: 12px 12px 12px 3px; color: var(--green-900); background: var(--yellow); transform: rotate(-5deg); }
.brand-symbol i { transform: rotate(5deg); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text small { color: #547064; font-size: .54rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.brand-text strong { color: var(--green-900); font-family: var(--serif); font-size: 1.07rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; justify-content: end; gap: clamp(12px, 1.45vw, 22px); }
.main-nav > a:not(.nav-cta) { position: relative; color: #35594a; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.main-nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--green-700); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .23s ease; }
.main-nav > a:not(.nav-cta):hover::after, .main-nav > a:not(.nav-cta).active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; border-radius: 999px; color: var(--white); background: var(--green-900); font-size: .72rem; font-weight: 700; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.nav-cta:hover { background: var(--green-950); transform: translateY(-2px); }
.menu-toggle { display: none; width: 45px; height: 44px; border: 1px solid var(--line); border-radius: 11px; color: var(--green-900); background: var(--white); }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(62px, 8vw, 108px) 0 clamp(72px, 9vw, 122px); background: #f4f7ed; }
.section-pattern::before { position: absolute; z-index: 0; top: -300px; right: -210px; width: min(56vw, 900px); aspect-ratio: 1; border: 1px solid rgba(12,89,56,.09); border-radius: 50%; box-shadow: 0 0 0 92px rgba(12,89,56,.032), 0 0 0 184px rgba(12,89,56,.025); content: ""; }
.section-pattern::after { position: absolute; z-index: 0; bottom: 1%; left: -50px; width: 105px; height: 105px; border-radius: 50%; background: var(--yellow); content: ""; opacity: .5; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .94fr) minmax(420px, .96fr); align-items: center; gap: clamp(46px, 8vw, 115px); }
.hero-copy { padding: 18px 0; }
.hero-copy .eyebrow { margin-bottom: 21px; }
.hero h1 { max-width: 650px; margin: 0; color: var(--green-950); font-family: var(--serif); font-size: clamp(3.4rem, 6.65vw, 6.85rem); font-weight: 600; letter-spacing: -.075em; line-height: .93; }
.hero-lead { max-width: 535px; margin: 29px 0 15px; color: var(--green-900); font-size: clamp(1.15rem, 1.62vw, 1.4rem); font-weight: 700; line-height: 1.35; }
.hero-text { max-width: 560px; margin: 0; color: #456258; font-size: 1.01rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.hero-media { position: relative; min-height: 470px; }
.hero-media > img { position: relative; z-index: 2; width: 100%; height: clamp(470px, 44vw, 590px); border-radius: 32% 32% 20px 32%; box-shadow: var(--shadow); object-fit: cover; }
.hero-media::before { position: absolute; z-index: 1; top: 8%; right: -5%; width: 92%; height: 94%; border: 1px dashed rgba(12,89,56,.35); border-radius: 31% 33% 17px 31%; content: ""; transform: rotate(6deg); }
.hero-stamp { position: absolute; z-index: 3; bottom: 30px; left: -38px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 13px; border: 1px solid rgba(255,255,255,.66); border-radius: 15px; color: var(--green-950); background: rgba(255,255,255,.91); box-shadow: 0 13px 28px rgba(5,47,30,.14); font-size: .77rem; font-weight: 700; line-height: 1.25; backdrop-filter: blur(5px); }
.hero-stamp i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--white); background: var(--orange); }
.hero-orbit { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.hero-orbit-one { top: 3%; right: -8%; width: 110px; height: 110px; border: 10px solid var(--yellow); }
.hero-orbit-two { bottom: 4%; left: -7%; width: 52px; height: 52px; background: var(--green-200); }

/* Indicators */
.indicator-strip { position: relative; z-index: 3; color: var(--white); background: var(--green-900); }
.indicator-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.indicator { position: relative; min-height: 150px; padding: 33px clamp(17px, 3.1vw, 42px); }
.indicator:not(:last-child)::after { position: absolute; top: 25px; right: 0; bottom: 25px; width: 1px; background: rgba(255,255,255,.2); content: ""; }
.indicator strong { display: block; margin-bottom: 6px; color: var(--yellow); font-family: var(--serif); font-size: clamp(2.1rem, 3.1vw, 3rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.indicator span { display: block; max-width: 170px; color: rgba(255,255,255,.82); font-size: .82rem; font-weight: 500; line-height: 1.35; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .72fr); align-items: center; gap: clamp(50px, 9vw, 128px); }
.about-content > p:not(.eyebrow) { max-width: 690px; margin: 19px 0 0; color: var(--muted); font-size: .98rem; }
.about-content h2 { margin-bottom: 25px; }
.value-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 31px; color: var(--green-800); font-size: .7rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.value-line i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.about-media { position: relative; padding: 0 14px 25px 0; }
.about-media::before { position: absolute; z-index: 0; top: 35px; right: -18px; width: 83%; height: 94%; border-radius: var(--radius-lg); background: var(--yellow-soft); content: ""; }
.about-media > img { position: relative; z-index: 1; width: 100%; height: clamp(430px, 44vw, 635px); border-radius: var(--radius-lg); box-shadow: var(--shadow); object-fit: cover; }
.about-media-note { position: absolute; z-index: 2; right: -13px; bottom: 0; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 12px; color: var(--white); background: var(--green-900); box-shadow: 0 14px 30px rgba(6,61,37,.2); font-size: .75rem; font-weight: 700; }
.about-media-note i { color: var(--yellow); }

/* Food group cards */
.food-groups .section-heading { margin-bottom: 48px; }
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.food-card { min-height: 226px; padding: 28px 27px; border: 1px solid rgba(12,89,56,.07); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 8px 22px rgba(18,83,53,.035); transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease; }
.food-card:hover { border-color: rgba(12,89,56,.18); box-shadow: var(--shadow-sm); transform: translateY(-7px); }
.food-icon { display: grid; width: 45px; height: 45px; margin-bottom: 21px; place-items: center; border-radius: 14px; font-size: 1.1rem; }
.icon-yellow { color: #a76e00; background: var(--yellow-soft); }
.icon-green, .icon-leaf { color: var(--green-800); background: var(--green-100); }
.icon-orange { color: #b85a1c; background: #fbe1ce; }
.icon-blue { color: #317389; background: #dbeef0; }
.icon-sand { color: #9a6e23; background: #f4e9c8; }
.food-card h3 { min-height: 50px; margin: 0 0 9px; color: var(--green-950); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.food-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

/* Education */
.education { position: relative; overflow: hidden; color: var(--white); background: var(--green-900); }
.education::before { position: absolute; right: -140px; bottom: -230px; width: 560px; height: 560px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.035), 0 0 0 151px rgba(255,255,255,.02); content: ""; }
.education-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1fr); align-items: center; gap: clamp(55px, 9vw, 135px); }
.education-media { position: relative; padding: 0 0 15px 18px; }
.education-media::before { position: absolute; top: 25px; bottom: 0; left: 0; width: 88%; border: 1px dashed rgba(243,201,99,.6); border-radius: 24px; content: ""; transform: rotate(-5deg); }
.education-media > img { position: relative; z-index: 1; width: 100%; height: clamp(370px, 40vw, 550px); border-radius: 22px; box-shadow: 0 24px 45px rgba(2,35,21,.27); object-fit: cover; }
.education-badge { position: absolute; z-index: 2; right: -20px; bottom: 40px; display: flex; align-items: center; gap: 10px; padding: 12px 17px 12px 12px; border-radius: 15px; color: var(--green-950); background: var(--yellow); box-shadow: 0 12px 25px rgba(0,0,0,.16); line-height: 1.2; }
.education-badge span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; color: var(--white); background: var(--green-900); font-family: var(--serif); font-size: .87rem; font-weight: 700; }
.education-badge small { font-size: .7rem; font-weight: 700; }
.education-content > p:not(.eyebrow) { max-width: 570px; margin: 26px 0 29px; color: rgba(255,255,255,.8); font-size: 1rem; }
.education-list { display: grid; gap: 21px; max-width: 570px; margin: 0; padding: 0; list-style: none; }
.education-list li { display: flex; align-items: flex-start; gap: 17px; }
.education-list > li > span { display: grid; flex: 0 0 37px; width: 37px; height: 37px; margin-top: 2px; place-items: center; border: 1px solid rgba(243,201,99,.45); border-radius: 50%; color: var(--yellow); font-size: .86rem; }
.education-list h3 { margin: 0 0 2px; color: var(--white); font-size: .95rem; line-height: 1.3; }
.education-list p { margin: 0; color: rgba(255,255,255,.68); font-size: .82rem; line-height: 1.45; }

/* Operations */
.operations-intro, .team-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .88fr); align-items: end; gap: 70px; margin-bottom: 51px; }
.operations-intro > p, .team-intro > p { max-width: 495px; margin: 0 0 4px; color: var(--muted); font-size: 1rem; }
.operations-grid { display: grid; grid-template-columns: minmax(340px, .73fr) minmax(390px, 1.05fr); align-items: stretch; gap: 32px; }
.operations-stats { display: grid; gap: 17px; }
.operations-stats article { display: flex; align-items: center; gap: 24px; min-height: 50%; padding: 31px; border-radius: var(--radius-md); color: var(--white); background: var(--green-900); }
.operations-stats article:nth-child(2) { color: var(--green-950); background: var(--yellow); }
.operations-stats strong { flex: 0 0 auto; color: var(--yellow); font-family: var(--serif); font-size: clamp(2.55rem, 4.1vw, 4.3rem); font-weight: 600; letter-spacing: -.07em; line-height: .9; }
.operations-stats article:nth-child(2) strong { color: var(--green-900); }
.operations-stats strong small { font-family: var(--sans); font-size: .43em; letter-spacing: -.03em; vertical-align: middle; }
.operations-stats h3 { margin: 0 0 4px; color: inherit; font-size: 1rem; line-height: 1.2; }
.operations-stats p { margin: 0; color: rgba(255,255,255,.68); font-size: .76rem; line-height: 1.42; }
.operations-stats article:nth-child(2) p { color: rgba(7,58,38,.7); }
.operations-media { min-height: 420px; }
.operations-media img { width: 100%; height: 100%; min-height: 420px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); object-fit: cover; }

/* Timeline */
.process .section-heading { margin-bottom: 61px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; z-index: 0; top: 28px; right: 8.4%; left: 8.4%; height: 1px; background: rgba(12,89,56,.26); content: ""; }
.timeline li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 0 6px; text-align: center; }
.timeline span { display: grid; width: 56px; height: 56px; margin-bottom: 16px; place-items: center; border: 6px solid var(--cream); border-radius: 50%; color: var(--white); background: var(--green-900); box-shadow: 0 0 0 1px rgba(12,89,56,.3); font-size: .75rem; font-weight: 700; }
.timeline li:nth-child(even) span { color: var(--green-950); background: var(--yellow); }
.timeline h3 { max-width: 130px; margin: 0; color: var(--green-900); font-size: .76rem; line-height: 1.35; }

/* Actions */
.actions-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; grid-auto-rows: 250px; gap: 17px; }
.action-card { position: relative; overflow: hidden; border: 0; border-radius: var(--radius-md); color: var(--white); text-align: left; background: var(--green-900); }
.action-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.action-card:hover > img { transform: scale(1.06); }
.action-card-featured { grid-row: span 2; }
.action-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 26px; background: linear-gradient(180deg, rgba(0,0,0,0) 27%, rgba(4,45,28,.86) 100%); }
.card-tag { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: var(--white); font-size: .63rem; font-weight: 700; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.action-card h3 { margin: 0; color: inherit; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.7rem); font-weight: 600; line-height: 1.13; }
.action-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; color: var(--yellow); font-size: .73rem; font-weight: 700; }
.text-card { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 28px; color: var(--green-950); background: var(--green-100); transition: transform .24s ease, background .24s ease; }
.text-card:hover { background: #ddecce; transform: translateY(-4px); }
.text-card:nth-child(5) { background: var(--yellow-soft); }
.text-card:nth-child(6) { background: #fce9d7; }
.text-card .food-icon { flex: 0 0 auto; margin-bottom: 15px; }
.text-card h3 { font-size: 1.25rem; }
.text-card p { margin: 7px 0 0; color: #4d695c; font-size: .79rem; line-height: 1.45; }
.text-card .action-more { color: var(--green-800); }
.center-action { margin-top: 38px; text-align: center; }

/* Agriculture family */
.family { position: relative; overflow: hidden; padding: clamp(75px, 9vw, 116px) 0; color: var(--white); background: var(--green-950); }
.family::before { position: absolute; top: -193px; left: -160px; width: 490px; height: 490px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 95px rgba(255,255,255,.025); content: ""; }
.family-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .88fr); align-items: center; gap: clamp(55px, 10vw, 145px); }
.family-content > p:not(.eyebrow) { max-width: 485px; margin: 25px 0 0; color: rgba(255,255,255,.78); font-size: 1rem; }
.family-media { position: relative; }
.family-media::before { position: absolute; top: -17px; right: -17px; width: 69%; height: 70%; border: 1px solid rgba(243,201,99,.58); border-radius: var(--radius-md); content: ""; }
.family-media img { position: relative; width: 100%; height: clamp(340px, 36vw, 470px); border-radius: var(--radius-md); box-shadow: 0 23px 45px rgba(0,0,0,.24); object-fit: cover; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.team-card { min-height: 285px; padding: 30px; border: 1px solid rgba(12,89,56,.1); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 8px 24px rgba(10,68,42,.035); transition: transform .24s ease, box-shadow .24s ease; }
.team-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-6px); }
.team-icon { display: grid; width: 53px; height: 53px; margin-bottom: 23px; place-items: center; border-radius: 50%; color: var(--green-900); background: var(--green-100); font-size: 1.15rem; }
.team-role { display: block; margin-bottom: 8px; color: var(--orange); font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.team-card h3 { margin: 0 0 9px; color: var(--green-950); font-family: var(--serif); font-size: 1.36rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.13; }
.team-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.48; }
.team-collaboration { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; padding: 16px 19px; border-radius: 12px; color: var(--green-800); background: var(--green-100); font-size: .83rem; font-weight: 600; line-height: 1.45; }
.team-collaboration i { color: var(--orange); font-size: 1.2rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; grid-auto-rows: 215px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 15px; background: var(--green-900); }
.gallery-large { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--white); background: rgba(4,61,38,.66); opacity: 0; transition: opacity .25s ease; }
.gallery-item:hover > span, .gallery-item:focus-visible > span { opacity: 1; }
.gallery-item > span i { font-size: 1.15rem; }
.gallery-item > span small { font-size: .71rem; font-weight: 700; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(450px, 1fr); align-items: start; gap: clamp(55px, 11vw, 150px); }
.faq-intro > p:not(.eyebrow) { max-width: 350px; margin: 24px 0 0; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item h3 button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border: 0; color: var(--green-950); background: transparent; text-align: left; font-size: .97rem; font-weight: 700; line-height: 1.35; }
.faq-item h3 button i { flex: 0 0 auto; color: var(--green-800); font-size: .77rem; transition: transform .22s ease; }
.faq-item h3 button[aria-expanded="true"] i { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-answer > p { min-height: 0; margin: 0; overflow: hidden; color: var(--muted); font-size: .88rem; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding: 0 30px 21px 0; }

/* Location and contact */
.location-grid { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(330px, .85fr); align-items: center; gap: clamp(50px, 9vw, 125px); }
.map-wrap { min-height: 445px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--green-100); }
.map-wrap iframe { display: block; width: 100%; height: 445px; border: 0; filter: saturate(.72) contrast(.95); }
.location-content > p:not(.eyebrow) { margin: 24px 0; color: var(--muted); font-size: .97rem; }
.location-content address { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 27px; color: var(--muted); font-size: .89rem; line-height: 1.5; }
.location-content address > i { margin-top: 4px; color: var(--orange); }
.location-content address span { display: grid; }
.location-content address strong { color: var(--green-900); }
.contact-strip { padding: clamp(74px, 9vw, 113px) 0; color: var(--white); background: var(--green-900); }
.contact-heading { margin-bottom: 41px; text-align: center; }
.contact-heading .eyebrow { justify-content: center; }
.contact-heading h2 { margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.contact-card { min-height: 177px; padding: 23px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.06); transition: background .2s ease, transform .2s ease; }
.contact-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.contact-card > i { display: grid; width: 35px; height: 35px; margin-bottom: 19px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--yellow); font-size: .8rem; }
.contact-card h3 { margin: 0 0 7px; font-size: .89rem; }
.contact-card p { margin: 0; color: rgba(255,255,255,.76); font-size: .76rem; line-height: 1.45; }

/* Transparency */
.transparency-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.transparency-card { min-height: 204px; padding: 27px 24px; border: 1px solid rgba(12,89,56,.1); border-radius: 14px; background: var(--white); transition: transform .22s ease, box-shadow .22s ease; }
.transparency-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-5px); }
.transparency-card > i { color: var(--green-700); font-size: 1.37rem; }
.transparency-card h3 { margin: 22px 0 8px; color: var(--green-950); font-size: .94rem; line-height: 1.3; }
.transparency-card p { margin: 0; color: var(--muted); font-size: .77rem; }

/* Footer */
.site-footer { color: rgba(255,255,255,.73); background: #063720; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 0; }
.brand-footer .brand-text small { color: rgba(255,255,255,.55); }
.brand-footer .brand-text strong { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 13px 21px; }
.footer-nav a { color: rgba(255,255,255,.74); font-size: .74rem; font-weight: 600; transition: color .2s ease; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p, .footer-bottom a { margin: 0; font-size: .69rem; }
.footer-bottom a { color: var(--yellow); font-weight: 700; }

/* Controls */
.back-to-top { position: fixed; z-index: 80; right: 22px; bottom: 23px; display: grid; width: 45px; height: 45px; border: 0; border-radius: 50%; place-items: center; color: var(--white); background: var(--green-900); box-shadow: 0 12px 24px rgba(3,55,34,.23); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.back-to-top:hover { background: var(--green-950); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.accessibility-panel { position: fixed; z-index: 110; top: 112px; right: 0; display: flex; align-items: flex-start; }
.accessibility-toggle { display: grid; width: 42px; height: 43px; padding: 0; border: 0; border-radius: 12px 0 0 12px; place-items: center; color: var(--white); background: var(--green-950); box-shadow: 0 8px 19px rgba(3,55,34,.21); font-size: 1rem; }
.accessibility-options { width: 216px; margin-left: 8px; padding: 16px; border: 1px solid rgba(12,89,56,.12); border-radius: 13px 0 0 13px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.accessibility-options[hidden] { display: none; }
.accessibility-options p { margin: 0 0 11px; color: var(--green-950); font-size: .79rem; font-weight: 700; }
.accessibility-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.accessibility-actions button { min-height: 31px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--green-900); background: #f8fbf4; font-size: .68rem; font-weight: 700; }
.accessibility-actions button[aria-pressed="true"] { color: var(--white); border-color: var(--green-900); background: var(--green-900); }

/* Lightbox */
.lightbox { position: fixed; z-index: 300; inset: 0; display: grid; padding: 70px 88px; place-items: center; color: var(--white); background: rgba(1,22,13,.94); opacity: 0; transition: opacity .2s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { display: grid; max-width: min(100%, 1120px); max-height: 100%; margin: 0; place-items: center; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 145px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { min-height: 21px; padding-top: 9px; color: rgba(255,255,255,.8); font-size: .78rem; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; display: grid; width: 43px; height: 43px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; place-items: center; color: var(--white); background: rgba(255,255,255,.08); font-size: 1rem; transition: background .2s ease; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 22px; right: 25px; }
.lightbox-prev { top: 50%; left: 24px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 24px; transform: translateY(-50%); }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .68s ease, transform .68s cubic-bezier(.2,.7,.2,1); }
.reveal-delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* High-contrast mode retained as a user choice, independent of OS preference. */
body.high-contrast { --green-950: #002819; --green-900: #004c2d; --green-800: #005f36; --green-700: #007b45; --green-100: #e8ffe6; --cream: #ffffff; --ink: #051a10; --muted: #1d4432; --line: rgba(0,0,0,.3); --yellow: #ffe500; --yellow-soft: #fff6b1; --orange: #b84000; }
body.high-contrast .section-soft, body.high-contrast .hero { background: #fff; }
body.high-contrast .food-card, body.high-contrast .team-card, body.high-contrast .transparency-card { border-color: #163d2b; }
body.high-contrast .contact-card { border-color: rgba(255,255,255,.78); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
body.reduce-motion .reveal { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .main-nav { gap: 12px; }
  .main-nav > a:not(.nav-cta) { font-size: .7rem; }
  .nav-cta { font-size: .67rem; }
  .hero-grid { grid-template-columns: minmax(0, .96fr) minmax(360px, .84fr); gap: 54px; }
  .actions-grid { grid-auto-rows: 228px; }
}

@media (max-width: 960px) {
  .header-inner { min-height: 76px; }
  .menu-toggle { display: block; position: relative; z-index: 102; }
  .main-nav { position: absolute; z-index: 101; top: 100%; right: 0; left: 0; display: grid; justify-items: stretch; gap: 0; padding: 15px 24px 22px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 30px rgba(12,89,56,.1); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: transform .22s ease, opacity .22s ease; }
  .main-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav > a:not(.nav-cta) { padding: 10px 1px; font-size: .86rem; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 8px; padding: 13px 15px; font-size: .78rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); gap: 38px; }
  .hero-media > img { height: 472px; }
  .indicator { padding-inline: 22px; }
  .about-grid, .education-grid, .family-grid { gap: 54px; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .operations-grid { grid-template-columns: minmax(270px, .75fr) minmax(330px, 1fr); gap: 21px; }
  .operations-stats article { padding: 23px; }
  .actions-grid { grid-template-columns: 1.1fr 1fr; }
  .action-card-featured { grid-row: span 2; }
  .contact-grid, .transparency-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { gap: 60px; }
}

@media (max-width: 760px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .section { padding: 74px 0; }
  .brand-text small { font-size: .48rem; }
  .brand-text strong { font-size: .98rem; }
  .brand-symbol { flex-basis: 36px; width: 36px; height: 36px; }
  .hero { padding-top: 58px; }
  .hero-grid, .about-grid, .education-grid, .family-grid, .faq-grid, .location-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 0; }
  .hero-media { max-width: 580px; min-height: 0; margin: 9px auto 0; }
  .hero-media > img { height: min(112vw, 510px); min-height: 395px; }
  .hero-stamp { bottom: 18px; left: -6px; }
  .indicator-grid { grid-template-columns: repeat(2, 1fr); }
  .indicator { min-height: 128px; padding: 27px 17px; }
  .indicator:nth-child(2)::after { display: none; }
  .indicator:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .about-media { max-width: 520px; margin: 0 auto; }
  .education-media { max-width: 540px; margin-inline: auto; }
  .education-content { order: -1; }
  .operations-intro, .team-intro { grid-template-columns: 1fr; gap: 22px; margin-bottom: 37px; }
  .operations-grid { grid-template-columns: 1fr; }
  .operations-media { min-height: 330px; }
  .operations-media img { min-height: 330px; }
  .timeline { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 auto; padding-left: 6px; }
  .timeline::before { top: 25px; bottom: 25px; left: 33px; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 56px 1fr; align-items: center; justify-items: start; gap: 19px; padding: 0 0 20px; text-align: left; }
  .timeline span { margin: 0; }
  .timeline h3 { max-width: none; }
  .row-heading { display: grid; gap: 19px; margin-bottom: 34px; }
  .actions-grid { grid-template-columns: 1fr; grid-auto-rows: 242px; }
  .action-card-featured { grid-row: span 1; }
  .text-card { min-height: 220px; }
  .family-media { max-width: 560px; margin-inline: auto; }
  .team-grid { grid-template-columns: 1fr; gap: 13px; }
  .team-card { min-height: 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 185px; }
  .gallery-large { grid-column: span 2; grid-row: span 1; }
  .faq-intro { max-width: 480px; }
  .map-wrap, .map-wrap iframe { min-height: 360px; height: 360px; }
  .location-content { max-width: 570px; }
  .footer-top, .footer-bottom { display: grid; justify-content: start; }
  .footer-nav { justify-content: start; }
  .accessibility-panel { top: 94px; }
}

@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 30px)); }
  .header-inner { min-height: 70px; }
  .brand-text small { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .section-heading h2, .about h2, .education h2, .family h2, .faq-intro h2, .location h2, .contact-heading h2, .operations-intro h2, .team-intro h2 { font-size: clamp(2.17rem, 11vw, 3rem); }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.65rem); }
  .hero-lead { font-size: 1.06rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-media > img { min-height: 380px; border-radius: 27% 27% 16px 27%; }
  .hero-media::before { right: -2%; }
  .indicator { min-height: 123px; padding: 25px 14px; }
  .indicator strong { font-size: 1.87rem; }
  .indicator span { font-size: .72rem; }
  .about-media > img { height: 405px; }
  .food-grid { grid-template-columns: 1fr; }
  .food-card { min-height: 0; }
  .food-card h3 { min-height: 0; }
  .education-media > img { height: 387px; }
  .education-badge { right: -7px; bottom: 18px; }
  .operations-stats article { gap: 16px; }
  .operations-stats strong { font-size: 2.5rem; }
  .contact-grid, .transparency-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 0; }
  .gallery-grid { grid-auto-rows: 148px; gap: 10px; }
  .gallery-item > span { display: none; }
  .lightbox { padding: 58px 18px 66px; }
  .lightbox-prev { left: 11px; }
  .lightbox-next { right: 11px; }
  .lightbox-nav { width: 36px; height: 36px; }
  .back-to-top { right: 14px; bottom: 14px; }
  .accessibility-options { position: absolute; top: 0; right: 49px; width: 206px; border-radius: 12px; }
}
