/* Kinard Applied Solutions — brand clone stylesheet */
:root {
  --green-900: #12302e;
  --green-800: #1a3735;
  --green-700: #234a47;
  --cream-100: #f4f0e8;
  --cream-200: #eae3d7;
  --gold-500: #aa7942;
  --gold-600: #96682f;
  --ink-900: #1c1c1a;
  --ink-700: #3a3a37;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(12, 32, 30, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  background: var(--cream-100);
  color: var(--ink-900);
  line-height: 1.5;
  font-size: 20px;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }

.container { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }

.gold { color: var(--gold-500); }
em, .italic { font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-800);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand img { width: 150px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  color: rgba(255,255,255,0.9);
  font-family: "Marcellus", serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav-item { position: relative; }

.nav-item > a,
.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font: inherit;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-item > a:hover,
.nav-item > button:hover,
.nav-item.active > a { color: var(--gold-500); }

.caret { width: 9px; height: 9px; fill: currentColor; opacity: 0.85; transition: transform 0.2s ease; }
.nav-item.open > button .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  margin-top: 10px;
  background: var(--green-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* invisible bridge so moving the cursor from the button to the menu keeps it open */
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.86);
  transition: background 0.18s ease, color 0.18s ease;
}

.dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--gold-500); }

.header-cta { justify-self: end; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-family: "Marcellus", serif;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #b58a51 0%, #a3712f 100%);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: none;
  cursor: pointer;
}

.pill:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 26px rgba(150, 104, 47, 0.3); }

.pill.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green-800);
  color: var(--white);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,40,38,0.9) 0%, rgba(16,44,42,0.72) 40%, rgba(16,44,42,0.5) 70%, rgba(16,44,42,0.62) 100%),
    url("../assets/hero-iso.svg");
  background-size: cover, 1100px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
}

.hero .container { position: relative; z-index: 2; padding: 90px 0; }

.hero h1 {
  font-family: "Marcellus", serif;
  font-size: clamp(3rem, 6vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
}

.hero h1 .impact { color: var(--gold-500); font-style: italic; display: block; font-size: 0.9em; }
.hero .eyebrow { font-style: italic; margin-bottom: 18px; }
.hero-lede strong { color: #fff; font-weight: 700; }

.hero-lede {
  max-width: 640px;
  margin: 130px 0 0 auto;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
}

@media (max-width: 900px) { .hero-lede { margin-top: 48px; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--green-900);
  color: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 48s linear infinite;
  font-family: "Marcellus", serif;
  font-size: 1.25rem;
}

.marquee-track span { padding: 0 20px; }
.marquee-track .dot { color: var(--gold-500); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section.green { background: var(--green-800); color: var(--white); }
.section.cream { background: var(--cream-100); }

.eyebrow {
  display: block;
  font-family: "Marcellus", serif;
  color: var(--gold-500);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.display-2 {
  font-family: "Marcellus", serif;
  font-size: clamp(2.1rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.display-2 em { color: var(--gold-500); }

/* Large hero-style statement headings (e.g. "From Opportunity to Results") */
.display-xl {
  font-family: "Marcellus", serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.display-xl em { color: var(--gold-500); }

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.results-copy p { font-size: 1.3rem; color: var(--ink-900); max-width: 520px; line-height: 1.5; }
.results-copy p em { color: var(--gold-500); }
.results-img { border-radius: 4px; margin-top: 24px; box-shadow: var(--shadow); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  align-items: start;
}
.stats-col { display: flex; flex-direction: column; }
.stats-eyebrow { grid-column: 1 / -1; display: block; font-family: "Marcellus", serif; color: var(--gold-500); letter-spacing: 0.08em; text-transform: uppercase; font-size: 1rem; margin-bottom: 8px; }
.stats-col--left { gap: 60px; }
.stats-col--right { gap: 72px; margin-top: 235px; padding-left: 6%; }
.stat strong {
  font-family: "Marcellus", serif;
  color: var(--gold-500);
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: 0.92;
  display: block;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-family: "PT Serif", serif;
  font-size: 1.15rem;
  color: var(--ink-900);
}
.stat--lead { margin-left: 14%; }
.stats-caption {
  grid-column: 1 / -1;
  color: var(--gold-500);
  font-style: italic;
  margin-top: 40px;
}

/* Service portfolio */
.portfolio-head { margin-bottom: 54px; }
.portfolio-head .display-2 { color: var(--white); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.svc-card {
  background: var(--white);
  color: var(--ink-900);
  border-radius: 6px;
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  box-shadow: 0 18px 44px rgba(10, 26, 24, 0.22);
}

.svc-card h4 { font-family: "Marcellus", serif; font-size: 1.5rem; color: var(--green-800); margin-bottom: 18px; }
.svc-card p { color: var(--ink-700); font-size: 1.1rem; line-height: 1.5; flex: 1; }
.svc-card .pill { align-self: flex-start; margin-top: 26px; }

.card-grid.row-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  margin-top: 30px;
}

/* CTA */
.cta-section { background: var(--cream-100); padding: 120px 0; }
.cta-section .eyebrow { margin-bottom: 26px; }
.cta-section h2 {
  font-family: "Marcellus", serif;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 1000px;
  margin: 0 0 40px;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; color: var(--white); overflow: hidden; }

.site-footer .footer-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/skyline.webp") center/cover no-repeat;
}
.site-footer .footer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,24,22,0.86) 0%, rgba(10,24,22,0.5) 60%, rgba(10,24,22,0.8) 100%);
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding: 120px 0 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-inner h2 { font-family: "Marcellus", serif; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
.footer-inner h2.footer-email { font-size: clamp(1rem, 1.5vw, 1.3rem); white-space: nowrap; }
.footer-email a { color: inherit; }
.footer-note { margin: 14px 0 0; font-size: 0.9rem; color: rgba(244,240,232,0.72); max-width: 360px; }
.footer-links { margin: 16px 0 0; }
.footer-links a { color: rgba(244,240,232,0.82); font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid rgba(244,240,232,0.3); padding-bottom: 2px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); border-bottom-color: var(--white); }
.footer-contact { text-align: right; }

/* ---------- FAQ page ---------- */
.faq-list { margin-top: 48px; display: grid; gap: 30px; max-width: 840px; }
.faq-item { border-bottom: 1px solid rgba(26,55,53,0.14); padding-bottom: 30px; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item h3 { font-family: "Marcellus", serif; font-size: 1.4rem; line-height: 1.3; margin: 0 0 14px; color: var(--green-800); }
.faq-item p { margin: 0; }

/* ---------- Sub-page hero ---------- */
.page-hero { background: var(--green-800); color: var(--white); padding: 120px 0 90px; }
.page-hero .eyebrow { color: var(--gold-500); }
.page-hero h1 { font-family: "Marcellus", serif; font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px; }
.page-hero p { max-width: 640px; font-size: 1.3rem; line-height: 1.5; color: rgba(255,255,255,0.9); }

/* Sub-page hero with full-bleed photo (matches live site) */
.page-hero.has-image { position: relative; background: var(--green-900); padding: 0; min-height: 540px; display: flex; align-items: center; overflow: hidden; }
.page-hero.has-image .hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero.has-image .hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(238,233,223,0.62) 0%, rgba(90,96,88,0.2) 40%, rgba(14,36,34,0.42) 68%, rgba(12,34,32,0.72) 100%);
}
.page-hero.has-image .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 80px 0; }
.page-hero.has-image .hero-head .eyebrow { color: var(--green-800); font-style: italic; margin-bottom: 14px; }
.page-hero.has-image .hero-head h1 { color: var(--green-800); margin: 0; }
.page-hero.has-image .hero-intro { color: #fff; text-align: right; font-size: 1.22rem; line-height: 1.55; margin: 0; text-shadow: 0 1px 10px rgba(10,24,22,0.45); }
.page-hero.has-image .hero-intro em { font-style: italic; }

/* Section with a side image (matches "What We Do" layout) */
.section-img-head { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: center; margin-bottom: 10px; }
.section-img-head .display-2 { margin: 0; }
.section-img-head .section-photo { border-radius: 6px; box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 380px; object-fit: cover; }
.section-band-img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); margin: 0 0 44px; max-height: 420px; object-fit: cover; }

.team-grid .feature { padding-top: 0; overflow: hidden; }

/* ---------- The KAS Experience page ---------- */
.mission-gold {
  text-align: center;
  color: var(--cream-100);
  background:
    radial-gradient(circle at 18% 26%, rgba(230,200,152,.45), transparent 42%),
    radial-gradient(circle at 82% 66%, rgba(234,208,162,.4), transparent 46%),
    radial-gradient(circle at 58% 12%, rgba(242,224,186,.3), transparent 40%),
    linear-gradient(135deg, #b78747 0%, #9a6a30 100%);
}
.mission-gold h1 { color: var(--cream-100); }
.mission-gold .mission-sub {
  font-family: "PT Serif", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--green-900);
  font-size: 1.7rem;
  margin: 12px auto 30px;
}
.mission-gold p { color: var(--cream-100); max-width: 640px; margin: 0 auto 20px; line-height: 1.55; }

.approach-head { text-align: right; }
.approach-copy { max-width: 560px; margin-top: 24px; }
.gold-link { color: var(--gold-500); text-decoration: underline; }

.team-bronze {
  background: #a9773d;
  clip-path: polygon(0 0, 100% 74px, 100% 100%, 0 100%);
  padding-top: 120px;
  padding-bottom: 96px;
}
.team-list { display: flex; flex-direction: column; gap: 52px; }
.team-sep { height: 1px; background: rgba(244,240,232,.55); max-width: 520px; margin-bottom: 40px; }
.team-row { display: flex; gap: 40px; align-items: flex-start; }
.team-info { max-width: 460px; }
.team-photo { width: 320px; height: 320px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-name { font-family: "Marcellus", serif; color: var(--cream-100); font-size: 2.6rem; line-height: 1; margin: 0; }
.team-role { font-family: "Marcellus", serif; color: var(--green-900); font-size: 1.45rem; margin: 12px 0 18px; }
.team-bio { color: var(--cream-100); font-weight: 700; font-size: 1rem; line-height: 1.5; margin: 0; }
@media (max-width: 700px) {
  .team-row { flex-direction: column; gap: 20px; }
  .approach-head { text-align: left; }
}

/* "What You Can Expect" — image + statement + deliverables */
.expect-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; margin-top: 42px; }
.expect-photo { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.expect-lead { font-family: "Marcellus", serif; font-size: 1.6rem; line-height: 1.25; color: #fff; margin: 0 0 24px; font-weight: 400; }
.expect-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.expect-list li {
  position: relative;
  padding-left: 26px;
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  line-height: 1.45;
}
.expect-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 9px;
  background: var(--gold-500);
  border-radius: 2px;
  transform: rotate(45deg);
}

.start-intro { font-size: 1.3rem; line-height: 1.5; color: var(--ink-900); max-width: 760px; margin: 0 0 36px; }

/* "What We Do" two-column: accordion (left) + tall image (right) */
.wwd-layout { display: grid; grid-template-columns: 1fr 0.82fr; gap: 56px; align-items: stretch; }
.wwd-main { align-self: start; }
.wwd-photo { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }

.accordion { margin-top: 30px; }
.accordion-item { border-top: 1px solid rgba(26,28,26,0.28); }
.accordion-item:last-child { border-bottom: 1px solid rgba(26,28,26,0.28); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 22px 2px;
  cursor: pointer;
  text-align: left;
  font-family: "Marcellus", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink-900);
  transition: color 0.2s ease;
}
.accordion-trigger:hover { color: var(--gold-600); }

.accordion-icon { position: relative; width: 20px; height: 20px; flex: none; }
.accordion-icon::before,
.accordion-icon::after { content: ""; position: absolute; background: var(--ink-900); transition: transform 0.25s ease, opacity 0.25s ease; }
.accordion-icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.accordion-icon::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.accordion-item.open .accordion-icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.accordion-item.open .accordion-trigger { color: var(--gold-600); }
.accordion-item.open .accordion-icon::before { background: var(--gold-600); }

.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.accordion-panel > div { overflow: hidden; }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel p { margin: 0 0 22px; max-width: 560px; color: var(--ink-700); font-size: 1.12rem; line-height: 1.5; }

@media (max-width: 900px) {
  .wwd-layout { grid-template-columns: 1fr; gap: 28px; }
  .wwd-photo { min-height: 260px; max-height: 340px; order: -1; }
}

/* Split hero on cream (e.g. Resource Optimization): title+intro left, image right */
.hero-split { background: var(--white); color: var(--ink-900); padding: 90px 0; display: block; min-height: 0; }
.hero-split .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-split .eyebrow { color: var(--gold-500); font-style: italic; margin-bottom: 14px; }
.hero-split h1 { font-family: "Marcellus", serif; font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--green-800); margin: 0 0 24px; }
.hero-split .hero-intro { color: var(--ink-900); font-size: 1.22rem; line-height: 1.55; margin: 0; text-align: left; text-shadow: none; }
.hero-split .hero-photo-img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }

/* Two-column "What We Do" + "What You Can Expect" (Resource Optimization) */
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-cols .accordion { margin-top: 26px; }
.expect-col .display-2 { margin-bottom: 20px; }
.expect-lead-p { font-size: 1.15rem; line-height: 1.5; color: var(--ink-900); margin: 0 0 26px; }
.expect-list--dark { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.expect-list--dark li { position: relative; padding-left: 26px; color: var(--ink-700); font-size: 1.08rem; line-height: 1.45; }
.expect-list--dark li::before { content: ""; position: absolute; left: 0; top: 10px; width: 9px; height: 9px; background: var(--gold-500); border-radius: 2px; transform: rotate(45deg); }

.band-section { padding: 0 0 20px; }
.band-section .band-full { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); display: block; }
.band-section .band-full.band-short { height: 360px; object-fit: cover; }

/* Plain cream hero: eyebrow + title + intro (left), full-width banner follows */
.hero-plain { background: var(--white); color: var(--ink-900); padding: 90px 0 44px; display: block; min-height: 0; }
.hero-plain .eyebrow { color: var(--gold-500); font-style: italic; margin-bottom: 14px; }
.hero-plain h1 { font-family: "Marcellus", serif; font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--green-800); margin: 0 0 22px; }
.hero-plain .hero-intro { color: var(--ink-900); font-size: 1.22rem; line-height: 1.55; max-width: 760px; margin: 0; text-align: left; text-shadow: none; }

/* "What We Do" with a wide accordion + narrow portrait image */
.wwd-layout.acc-wide { grid-template-columns: 1.7fr 0.72fr; }
.wwd-layout.acc-wide .wwd-photo { max-height: 520px; }

/* Full-width "What You Can Expect" (lead + bulleted list) */
.expect-full .expect-lead-p { font-size: 1.3rem; line-height: 1.5; color: var(--ink-900); max-width: 900px; margin: 22px 0 28px; }
.expect-full .expect-list--dark { gap: 14px; max-width: 900px; }

/* Titled "What You Can Expect" blocks (title + description) */
.expect-blocks { display: grid; gap: 22px; margin-top: 10px; }
.expect-blocks .blk h4 { font-family: "Marcellus", serif; font-size: 1.3rem; color: var(--green-800); margin: 0 0 6px; }
.expect-blocks .blk p { margin: 0; color: var(--ink-700); font-size: 1.05rem; line-height: 1.5; }

/* Two images side by side */
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.img-duo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .img-duo { grid-template-columns: 1fr; } }

/* 3-column value cards (image + number + title + desc), e.g. Education */
.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.value-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); display: block; }
.value-card .vnum { font-family: "Marcellus", serif; color: var(--gold-500); font-size: 1rem; display: block; margin: 20px 0 4px; }
.value-card h4 { font-family: "Marcellus", serif; color: var(--green-800); font-size: 1.5rem; margin: 0 0 12px; }
.value-card p { margin: 0; color: var(--ink-700); font-size: 1.04rem; line-height: 1.5; }
@media (max-width: 860px) { .value-cards { grid-template-columns: 1fr; max-width: 520px; } }

@media (max-width: 900px) {
  .hero-split .container { grid-template-columns: 1fr; gap: 26px; }
  .hero-split .hero-photo-img { order: -1; max-height: 300px; }
  .split-cols { grid-template-columns: 1fr; gap: 44px; }
  .wwd-layout.acc-wide { grid-template-columns: 1fr; }
}

/* Full-bleed hero with title + intro stacked on the left (e.g. Business Analytics) */
.page-hero.has-image.hero-left .container { grid-template-columns: 1fr; }
.page-hero.has-image.hero-left .hero-photo::after { background: linear-gradient(90deg, rgba(9,22,20,0.8) 0%, rgba(9,22,20,0.5) 55%, rgba(9,22,20,0.28) 100%); }
.page-hero.has-image.hero-left .hero-head { max-width: 620px; }
.page-hero.has-image.hero-left .hero-head .eyebrow { color: var(--gold-500); font-style: italic; }
.page-hero.has-image.hero-left .hero-head h1 { color: #fff; }
.page-hero.has-image.hero-left .hero-intro { color: #fff; text-align: left; max-width: 560px; margin: 20px 0 0; text-shadow: 0 1px 10px rgba(8,20,18,0.5); }

/* Two-column with image on the LEFT (e.g. Business Analytics "What You Can Expect") */
.wwd-layout.img-left { grid-template-columns: 0.82fr 1fr; }
.wwd-layout.img-left .wwd-photo { order: -1; }
@media (max-width: 900px) {
  .wwd-layout.img-left { grid-template-columns: 1fr; }
  .wwd-layout.img-left .wwd-photo { order: -1; }
}

/* ---------- Carousel ("Where We Create Value" on industry pages) ---------- */
.carousel { position: relative; margin-top: 40px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.carousel-slide { position: relative; min-width: 100%; height: clamp(360px, 44vw, 520px); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-slide .slide-overlay { display: none; }
.carousel-slide .slide-caption {
  position: absolute; left: 0; right: auto; bottom: 44px;
  max-width: 64%;
  padding: 30px 40px;
  background: var(--cream-100);
  color: var(--ink-900);
  z-index: 2;
}
.carousel-slide .slide-caption h3 { font-family: "Marcellus", serif; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 12px; color: var(--green-800); }
.carousel-slide .slide-caption p { margin: 0; max-width: 760px; color: var(--ink-900); font-size: 1.05rem; line-height: 1.5; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 18px rgba(10,24,22,0.25);
}
.carousel-btn:hover { background: #fff; }
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--green-800); fill: none; stroke-width: 2; }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(26,55,53,0.28); cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease; }
.carousel-dots button.active { background: var(--gold-500); transform: scale(1.2); }

/* KAS Applied Expertise — numbered category cards */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 42px; }
.expertise-card { background: var(--white); border: 1px solid rgba(26,55,53,0.08); border-radius: 6px; padding: 30px 30px 32px; box-shadow: 0 14px 34px rgba(12,32,30,0.06); }
.expertise-card .num { font-family: "Marcellus", serif; color: var(--gold-500); font-size: 1.05rem; }
.expertise-card h3 { font-family: "Marcellus", serif; font-size: 1.5rem; color: var(--green-800); margin: 8px 0 14px; }
.expertise-card p { margin: 0; color: var(--ink-700); font-size: 1.04rem; line-height: 1.5; }

@media (max-width: 760px) {
  .carousel-slide .slide-caption { padding: 22px 24px; max-width: 90%; bottom: 20px; }
  .carousel-btn { width: 42px; height: 42px; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .expertise-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .expect-layout { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 900px) {
  .page-hero.has-image .container { grid-template-columns: 1fr; gap: 18px; padding: 110px 0 70px; }
  .page-hero.has-image .hero-intro { text-align: left; }
  .page-hero.has-image .hero-photo::after { background: linear-gradient(180deg, rgba(238,233,223,0.5) 0%, rgba(14,36,34,0.6) 100%); }
  .section-img-head { grid-template-columns: 1fr; gap: 24px; }
}


.prose { padding: 90px 0; }
.prose .lead { font-size: 1.35rem; color: var(--ink-900); max-width: 760px; margin-bottom: 34px; line-height: 1.5; }
.prose p { max-width: 760px; color: var(--ink-900); margin-bottom: 20px; font-size: 1.3rem; line-height: 1.5; }
.prose h3 { font-family: "Marcellus", serif; font-size: 1.75rem; color: var(--green-800); margin: 46px 0 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.feature {
  background: var(--white);
  border: 1px solid rgba(26,55,53,0.08);
  border-radius: 6px;
  padding: 32px 30px;
  box-shadow: 0 14px 34px rgba(12,32,30,0.06);
}
.feature .num { font-family: "Marcellus", serif; color: var(--gold-500); font-size: 1.1rem; }
.feature h4 { font-family: "Marcellus", serif; font-size: 1.5rem; color: var(--green-800); margin: 14px 0 12px; }
.feature p { color: var(--ink-700); font-size: 1.08rem; line-height: 1.5; margin: 0; }

/* Contact form — matches Squarespace layout */
.contact-form { display: grid; gap: 30px; max-width: 760px; margin-top: 10px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group-label { font-size: 1.05rem; color: var(--ink-900); margin-bottom: 6px; }
.field label, .field > .label { display: block; margin-bottom: 8px; font-size: 1rem; color: var(--ink-900); }
.field label .req, .label .req { color: rgba(28,28,26,0.5); font-size: 0.9rem; margin-left: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 18px;
  border: 1px solid rgba(0,0,0,0.75);
  border-radius: 24px;
  font: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--ink-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 2px rgba(170,121,66,0.15);
}
.field textarea { min-height: 150px; resize: vertical; border-radius: 18px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' fill='none' stroke='%23aa7942' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; cursor: pointer; }

.checkbox-group { display: grid; gap: 12px; margin-top: 6px; }
.checkbox-group .opt { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 1.02rem; }
.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 20px; height: 20px;
  border: 1px solid rgba(0,0,0,0.75);
  border-radius: 5px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checkbox-group input[type="checkbox"]::before {
  content: "";
  width: 11px; height: 11px;
  transform: scale(0);
  transition: transform 0.15s ease;
  background: var(--gold-500);
  border-radius: 2px;
}
.checkbox-group input[type="checkbox"]:checked { border-color: var(--gold-500); }
.checkbox-group input[type="checkbox"]:checked::before { transform: scale(1); }

.field-note { margin: 4px 0 14px; }
.field-note strong { display: block; font-family: "Marcellus", serif; font-size: 1.15rem; color: var(--ink-900); margin-bottom: 4px; }
.field-note p { color: var(--ink-700); margin: 0 0 12px; max-width: 620px; }
.contact-form button[type="submit"] { margin-top: 4px; }

/* ---------- Scroll reveal transitions (global fade) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .results-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: 1fr; row-gap: 48px; }
  .stats-col--left { gap: 48px; }
  .stats-col--right { gap: 48px; margin-top: 48px; padding-left: 0; }
  .stat--lead { margin-left: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .footer-inner h2.footer-email { white-space: normal; word-break: break-word; }
}

@media (max-width: 820px) {
  .nav-wrap { grid-template-columns: 1fr auto; min-height: 84px; }
  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 0 22px;
  }
  .main-nav.open { display: flex; }
  .nav-item { position: static; }
  .dropdown {
    position: static;
    transform: none;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    margin: 0;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
  }
  .dropdown::before { display: none; }
  .nav-item.open .dropdown {
    visibility: visible;
    opacity: 1;
    max-height: 420px;
    padding: 6px 10px;
    margin: 4px 0 8px;
    transform: none;
  }
  .nav-item > a, .nav-item > button { justify-content: space-between; width: 100%; }
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    border-radius: 8px;
    padding: 10px 14px;
    font: inherit;
    font-family: "Marcellus", serif;
    cursor: pointer;
  }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .card-grid, .card-grid.row-2, .feature-grid,
  .expect-blocks, .expect-list--dark { grid-template-columns: 1fr !important; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero-lede { margin-top: 40px; font-size: 1.08rem; }
}

/* ---------- Profit Tools / Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 10px; }
.calc-form { display: grid; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field label { font-family: "PT Serif", serif; font-weight: 700; color: var(--ink-900); font-size: 1rem; }
.calc-field label span { font-weight: 400; color: #6b6b63; }
.calc-field input { font-family: "PT Serif", serif; font-size: 1.1rem; padding: 12px 14px; border: 1px solid rgba(26,55,53,0.25); border-radius: 6px; background: #fff; color: var(--ink-900); width: 100%; box-sizing: border-box; }
.calc-field input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(170,121,66,0.15); }
.calc-results { background: var(--green-800); color: var(--white); border-radius: 10px; padding: 36px; display: grid; gap: 24px; position: sticky; top: 24px; }
.calc-result { display: flex; flex-direction: column; gap: 6px; }
.calc-label { font-family: "Marcellus", serif; letter-spacing: 0.04em; font-size: 0.9rem; color: rgba(244,240,232,0.8); text-transform: uppercase; }
.calc-result .figure { font-family: "Marcellus", serif; color: var(--gold-500); font-size: clamp(2.2rem, 4.6vw, 3rem); line-height: 1; }
.calc-result--lead .figure { color: #fff; font-size: clamp(2.6rem, 5.4vw, 3.6rem); }
.calc-sub { font-size: 0.92rem; color: rgba(244,240,232,0.75); line-height: 1.45; }
.calc-formula { font-size: 0.82rem; color: rgba(244,240,232,0.6); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; margin: 0; font-style: italic; line-height: 1.5; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; gap: 28px; } .calc-results { position: static; } }
/* ---------- Premium Calculator ---------- */
.calc-help { font-size: 0.8rem; color: #6b6b63; margin: 2px 0 0; line-height: 1.4; }
.calc-field .slider-row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-field .slider-val { font-family: "Marcellus", serif; color: var(--green-800); font-size: 1.05rem; }
.calc-field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: rgba(26,55,53,0.18); accent-color: var(--gold-500); padding: 0; margin: 6px 0 0; }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-500); cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.calc-field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold-500); cursor: pointer; border: 3px solid #fff; }
.calc-panel-eyebrow { font-family: "Marcellus", serif; color: var(--gold-500); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 6px; }
.calc-lead-label { font-family: "Marcellus", serif; color: rgba(244,240,232,0.82); font-size: 1rem; margin: 0; }
.calc-lead { font-family: "Marcellus", serif; color: var(--gold-500); font-size: clamp(2.8rem, 6.5vw, 4rem); line-height: 1; margin: 2px 0 0; }
.calc-bar-wrap { margin: 22px 0 6px; }
.calc-bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: rgba(244,240,232,0.78); margin-bottom: 7px; }
.calc-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; }
.calc-bar-fill { height: 100%; background: var(--gold-500); border-radius: 999px; transition: width 0.35s ease; }
.calc-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.calc-chip { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 12px; }
.calc-chip strong { display: block; font-family: "Marcellus", serif; color: #fff; font-size: 1.28rem; line-height: 1.1; }
.calc-chip span { display: block; font-size: 0.74rem; color: rgba(244,240,232,0.68); margin-top: 5px; letter-spacing: 0.02em; }
.calc-note { font-size: 0.78rem; color: rgba(244,240,232,0.6); margin: 20px 0 0; line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.calc-compare { display: grid; gap: 14px; margin: 10px 0 2px; }
.cmp-label { font-size: 0.8rem; color: rgba(244,240,232,0.78); margin-bottom: 5px; display: flex; justify-content: space-between; }
.cmp-track { height: 30px; background: rgba(255,255,255,0.1); border-radius: 7px; overflow: hidden; }
.cmp-fill { height: 100%; border-radius: 7px; transition: width 0.35s ease; min-width: 2px; }
.cmp-fill.cur { background: rgba(244,240,232,0.45); }
.cmp-fill.new { background: var(--gold-500); }
@media (max-width: 760px) { .calc-chips { grid-template-columns: 1fr 1fr; } }
/* ===== Section themes mimicking Squarespace ===== */
.t-white, .t-brightinv { background:#ffffff !important; }
.t-light { background:var(--cream-100) !important; }
.t-dark { background:var(--green-800) !important; }
.t-black { background:#0a0a0a !important; }
.t-bright { background:var(--gold-500) !important; }
.t-dark, .t-black { color:#fff !important; }
.t-dark :where(h1,h2,h3,h4,h5,p,li,strong,span,div,button,label),
.t-black :where(h1,h2,h3,h4,h5,p,li,strong,span,div,button,label) { color:#fff !important; }
.t-dark .eyebrow, .t-black .eyebrow, .t-dark em, .t-black em { color:var(--gold-500) !important; }
.t-dark a:not(.pill), .t-black a:not(.pill) { color:var(--gold-500) !important; }
.t-bright { color:#fff !important; }
.t-bright :where(h1,h2,h3,h4,h5,p,li,strong,span,div) { color:#fff !important; }
.t-bright .eyebrow, .t-bright em, .t-bright a:not(.pill) { color:#fff !important; }
/* light themes force readable dark text (override dark-designed content) */
.t-white, .t-light, .t-brightinv { color:var(--ink-900) !important; }
.t-white :where(p,li,strong,span,div,button,label,td), .t-light :where(p,li,strong,span,div,button,label,td), .t-brightinv :where(p,li,strong,span,div,button,label,td) { color:var(--ink-900) !important; }
.t-white :where(h1,h2,h3,h4,h5), .t-light :where(h1,h2,h3,h4,h5), .t-brightinv :where(h1,h2,h3,h4,h5) { color:var(--green-800) !important; }
.t-white .eyebrow, .t-light .eyebrow, .t-brightinv .eyebrow, .t-white em, .t-light em, .t-brightinv em { color:var(--gold-500) !important; }