/* =========================================================
   The Idea Essential — modern rebuild
   Design system + homepage + shared page styles
   ========================================================= */

:root {
  /* palette */
  --cream:      #efe9e0;
  --cream-2:    #f6f2ec;
  --paper:      #ffffff;
  --ink:        #211e1a;
  --charcoal:   #28241f;
  --sage:       #4c665b;
  --sage-soft:  #7c8a7e;
  --text:       #2f2b26;
  --muted:      #6f6760;
  --rule:       rgba(33, 30, 26, 0.14);

  /* type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-ui:      "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 4rem);
  --header-h: 104px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; font-family: var(--font-ui);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- shared bits ---------- */
.section { padding: clamp(3.5rem, 7vw, 7rem) var(--gut); }
.eyebrow {
  font-family: var(--font-ui); font-weight: 400;
  text-transform: uppercase; letter-spacing: .34em;
  font-size: .72rem; color: var(--sage); margin-bottom: 1.1rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar {
  background: var(--charcoal);
  text-align: center;
  padding: .55rem 1rem;
}
.wordmark {
  font-family: var(--font-ui); font-weight: 400;
  letter-spacing: .42em; font-size: .7rem; color: #efe7da;
  padding-left: .42em;
}
.mainnav {
  background: var(--cream-2);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0 var(--gut); min-height: 64px;
}
.nav-brand {
  font-family: var(--font-display); font-size: 1.18rem; letter-spacing: .02em;
  color: var(--ink); white-space: nowrap;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem);
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-ui); font-weight: 300; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--text);
  padding: .4rem 0; position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--sage); transition: width .28s ease;
}
.nav-links a:hover { color: var(--sage); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
  color: var(--sage); font-weight: 400;
}

/* hamburger */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; margin-left: auto;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%; background: var(--ink);
  margin: 5px 0; transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero { position: relative; height: clamp(440px, 78vh, 760px); overflow: hidden; background: var(--cream); }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease; pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide--brand {
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(140% 120% at 20% 90%, rgba(124,138,126,.18), transparent 55%),
    var(--cream);
}
.hero-brand { width: min(560px, 70vw); padding: 1rem; }
.hero-logotype { width: 100%; height: auto; opacity: .92; }
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 1.4rem;
  display: flex; justify-content: center; gap: .55rem; z-index: 5;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  padding: 0; transition: background .25s, transform .25s;
}
.hero-dots button.is-active { background: #fff; transform: scale(1.25); }

/* =========================================================
   INTRO
   ========================================================= */
.intro { max-width: var(--maxw); margin-inline: auto; text-align: center; }
.intro .eyebrow { color: var(--muted); }
.display {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; color: var(--ink);
  letter-spacing: .01em; margin-bottom: 2.2rem;
}
.intro-body { max-width: 760px; margin: 0 auto; }
.intro-body p { margin-bottom: 1.3rem; color: var(--text); }
.tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--sage);
  max-width: 820px; margin: 2.6rem auto 0;
}

/* =========================================================
   CATEGORIES
   ========================================================= */
.categories { background: var(--paper); }
.cat-grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
}
.cat-card { display: block; text-align: center; }
.cat-img {
  display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--cream-2);
}
.cat-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1); filter: saturate(.97);
}
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-name {
  display: block; font-family: var(--font-ui); text-transform: uppercase;
  letter-spacing: .22em; font-size: .82rem; color: var(--ink);
  margin-top: 1.3rem; font-weight: 400;
}
.cat-sub {
  display: block; font-family: var(--font-display); font-style: italic;
  color: var(--muted); font-size: 1rem; margin-top: .35rem;
}

/* =========================================================
   ESG
   ========================================================= */
.esg {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; max-width: var(--maxw); margin-inline: auto;
}
.esg-media img { width: 100%; object-fit: cover; }
.esg-content .eyebrow { color: var(--sage); }
.esg-title {
  font-family: var(--font-display); font-weight: 500; line-height: 1.18;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: 1.8rem;
}
.esg-title em { color: var(--sage); }
.esg-title-sub { font-size: .62em; font-style: italic; color: var(--muted); }
.esg-content p { margin-bottom: 1.15rem; }
.esg-content a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--charcoal); color: #d8d0c4; }
.footer-inner {
  max-width: var(--maxw); margin-inline: auto; text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--gut);
}
.footer-logo { width: 220px; max-width: 60%; margin: 0 auto 1.8rem; opacity: .95; }
.footer-contact { font-style: normal; display: grid; gap: .55rem; line-height: 1.7; }
.footer-contact strong {
  font-family: var(--font-ui); font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; font-size: .82rem; color: #efe7da;
}
.footer-contact a { color: #cbbfae; transition: color .25s; }
.footer-contact a:hover { color: #fff; }
.footer-contact span { color: #b3a999; font-size: .95rem; }
.footer-copy {
  margin-top: 2.2rem; font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: #8c8275;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .esg { grid-template-columns: 1fr; }
  .esg-media { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-brand { margin-right: auto; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.4rem; background: var(--cream-2); padding: 2rem var(--gut);
    transform: translateX(100%); transition: transform .34s ease;
    box-shadow: -12px 0 40px rgba(0,0,0,.12); margin-left: 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1rem; letter-spacing: .14em; }
  body.nav-open { overflow: hidden; }
  .cat-grid { gap: 2.2rem; }
}

@media (max-width: 540px) {
  .cat-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hero { height: clamp(420px, 70vh, 560px); }
  .display { margin-bottom: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .hero-slide { transition: opacity .2s; }
  .cat-img img { transition: none; }
}

/* =========================================================
   INNER PAGES (shared kit — used by all sub-pages)
   ========================================================= */
.nav-links a[aria-current="page"] { color: var(--sage); }
.nav-links a[aria-current="page"]::after { width: 100%; }

.page-hero {
  position: relative; min-height: clamp(320px, 52vh, 520px);
  display: grid; place-items: center; text-align: center; color: #fff;
  background-size: cover; background-position: center; padding: 4rem var(--gut);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,19,16,.26), rgba(22,19,16,.52));
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { color: rgba(255,255,255,.82); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.1;
  font-size: clamp(2.1rem, 5vw, 3.6rem); text-shadow: 0 2px 34px rgba(0,0,0,.4);
}
.page-hero .kicker {
  font-family: var(--font-display); font-style: italic; margin-top: .8rem;
  font-size: clamp(1rem, 2vw, 1.35rem); color: rgba(255,255,255,.92);
}

.lead { max-width: 880px; margin-inline: auto; text-align: center; }
.lead h2 {
  font-family: var(--font-display); font-weight: 500; line-height: 1.2;
  font-size: clamp(1.55rem, 3.4vw, 2.4rem); color: var(--ink); margin-bottom: 1.4rem;
}
.lead h2 em { font-style: italic; color: var(--sage); }
.lead p { color: var(--text); margin-bottom: 1.1rem; }

.section-label { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3.4rem); }
.section-label h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--sage);
}

.showcase {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3.5vw, 3rem);
}
.showcase-item {
  background: var(--paper); border: 1px solid var(--rule);
  overflow: hidden; display: flex; flex-direction: column;
}
.showcase-img { aspect-ratio: 4 / 3; overflow: hidden; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.showcase-item:hover .showcase-img img { transform: scale(1.05); }
.showcase-body { padding: 1.9rem; text-align: center; }
.showcase-logo { height: 44px; width: auto; max-width: 70%; margin: 0 auto 1rem; object-fit: contain; }
.showcase-name {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .2em;
  font-size: .8rem; color: var(--ink); display: block; margin-bottom: .5rem;
}
.showcase-body p { color: var(--muted); font-size: .97rem; }

.gallery {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem);
}
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.band { background: var(--cream-2); }
.band--paper { background: var(--paper); }

@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; max-width: 460px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* roles + buttons + contact form */
.roles { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 780px; margin: 1.8rem auto 0; }
.roles li {
  font-family: var(--font-ui); font-size: .85rem; letter-spacing: .03em;
  border: 1px solid var(--rule); border-radius: 999px; padding: .5rem 1.15rem;
  color: var(--text); background: var(--paper);
}
.btn {
  display: inline-block; font-family: var(--font-ui); text-transform: uppercase;
  letter-spacing: .18em; font-size: .76rem; padding: .95rem 2.2rem; cursor: pointer;
  border: 1px solid var(--sage); color: var(--sage); background: none; transition: background .25s, color .25s;
}
.btn:hover { background: var(--sage); color: #fff; }
.btn--solid { background: var(--sage); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

.contact-wrap { max-width: 640px; margin-inline: auto; }
.contact-form { display: grid; gap: 1.1rem; margin-top: 2.4rem; text-align: left; }
.contact-form label { font-family: var(--font-ui); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .45rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--rule); padding: .85rem 1rem; border-radius: 2px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(76,102,91,.12); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.form-status { font-family: var(--font-ui); font-size: .9rem; margin-top: 1rem; min-height: 1.2em; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: #b4523f; }
