/* Ellora Foundation — shared styles */
:root {
  --navy: #0a2766;
  --navy-deep: #061a47;
  --green: #00874e;
  --teal: #0b5e63;
  --forest: #0c3b2f;
  --leaf: #e8f4ee;
  --mist: #f4f7f6;
  --ink: #1b2430;
  --muted: #5a6675;
  --line: #dfe6e3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 39, 102, 0.08);
  --max: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.tint { background: var(--mist); }
.section.leaf { background: var(--leaf); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--green); background: var(--leaf); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-links .btn { margin-left: 8px; color: #fff; }
.nav-links .btn:hover { color: #fff; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--green); color: #fff; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--green);
  transition: transform .15s, background .2s, border-color .2s; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--forest); border-color: var(--forest); transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--leaf); border-color: var(--leaf); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 10%, #e3f2ea 0%, transparent 60%),
              linear-gradient(180deg, #f7fbf9 0%, #ffffff 100%);
  padding: 96px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--green); }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-art .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--green), var(--teal), var(--navy), var(--green));
  opacity: .12;
}
.hero-art .ring.inner { inset: 9%; opacity: .1; }
.hero-art img { position: absolute; inset: 16%; width: 68%; height: 68%; object-fit: contain; }

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 70%, var(--green) 130%);
  color: #fff; padding: 84px 0 76px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px;
  background: url("../assets/emblem.png") center/contain no-repeat; opacity: .09;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: #9ee0bd; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 700px; font-size: 1.12rem; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.9); text-decoration: none; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe3d9; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--leaf); color: var(--green); margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; }
.icon.navy { background: #e7ecf7; color: var(--navy); }
.icon.teal { background: #e3f0f1; color: var(--teal); }

/* ESG pillars */
.pillar { border-top: 4px solid var(--green); }
.pillar.s { border-top-color: var(--teal); }
.pillar.g { border-top-color: var(--navy); }
.pillar .letter {
  font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 700; color: var(--green); margin-bottom: 8px;
}
.pillar.s .letter { color: var(--teal); }
.pillar.g .letter { color: var(--navy); }
.pillar ul { margin: 16px 0 0; padding: 0; list-style: none; }
.pillar li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); border-top: 1px dashed var(--line); font-size: .97rem; }
.pillar li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor; color: var(--green); opacity: .7;
}
.pillar.s li::before { color: var(--teal); }
.pillar.g li::before { color: var(--navy); }

/* Feature panel */
.panel {
  background: linear-gradient(135deg, var(--leaf), #eef3fb); border-radius: 22px; padding: 44px;
  position: relative; overflow: hidden;
}
.panel img.emblem { width: 70%; max-width: 300px; margin: 0 auto; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding: 6px 0 6px 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--green);
}

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 45%, var(--teal));
  color: #fff; border-radius: 24px; padding: 56px; display: flex; gap: 32px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.82); margin: 0; max-width: 620px; }

/* Quote */
.quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--navy);
  line-height: 1.4; max-width: 860px; margin: 0 auto; text-align: center; font-weight: 500;
}
.quote::before { content: "\201C"; display: block; font-size: 4rem; color: var(--green); line-height: .6; margin-bottom: 18px; }

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd8d5; border-radius: 10px; font: inherit;
  font-size: 1rem; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,135,78,.15); }
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-weight: 600; color: var(--green); }

.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .icon { margin: 0; flex: 0 0 52px; }
.contact-item strong { display: block; color: var(--navy); }
.contact-item span, .contact-item a { color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--green); line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #9ee0bd; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { width: min(300px, 80%); order: -1; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .page-hero { padding: 60px 0 56px; }
  .grid.cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta, .panel { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
}
