@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Kalam:wght@400;700&display=swap');

:root {
  --accent: #C9A227;
  --ink: #1C1F2A;
  --muted: #62697A;
  --band: #23262E;
  --band-deep: #15171D;
  --hero-overlay: rgba(10, 10, 14, 0.4);
  --panel-bg: #f2f2f2;
  --header-h: 76px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--band); }
a:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(21, 23, 29, .4);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled {
  background: rgba(21, 23, 29, .97);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}
.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.brand img { height: 46px; width: auto; }

/* ---------- Desktop nav ---------- */
.main-nav > ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a,
.main-nav .nav-toggle-label {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
}
.main-nav a:hover,
.main-nav .has-children:hover > a,
.main-nav .has-children:focus-within > a,
.main-nav .nav-toggle-label:hover {
  color: var(--accent);
}
.main-nav .has-children { position: relative; }
.main-nav .submenu {
  list-style: none;
  margin: 0; padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(21, 23, 29, .98);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.main-nav .has-children:hover > .submenu,
.main-nav .has-children:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .submenu a {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  padding: 8px 20px;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--band);
  color: #fff;
  padding: calc(var(--header-h) + 20px) 24px 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero--home { min-height: 100vh; min-height: 560px; height: 100vh; }
.hero--page { min-height: 56vh; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

/* ---------- Page band (no image) ---------- */
.page-band {
  background: var(--band);
  color: #fff;
  text-align: center;
  padding: calc(var(--header-h) + 48px) 24px 48px;
}
.page-band h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}
.page-band .rule {
  width: 64px; height: 3px;
  background: var(--accent);
  margin: 18px auto 0;
}

/* ---------- Content ---------- */
.content {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.content h2 { font-size: 1.9rem; font-weight: 700; margin: 1.6em 0 .5em; line-height: 1.25; }
.content h3 { font-size: 1.55rem; font-weight: 700; margin: 1.5em 0 .5em; line-height: 1.3; }
.content h4 { font-size: 1.3rem; font-weight: 600; margin: 1.4em 0 .5em; color: var(--ink); }
.content h5 { font-size: 1.08rem; font-weight: 600; margin: 1em 0 .4em; color: var(--muted); }
.content h6 { font-size: 1rem; font-weight: 400; margin: 1em 0 .6em; color: var(--ink); line-height: 1.7; }
.content h2:first-child,
.content h3:first-child,
.content h4:first-child,
.content h5:first-child,
.content h6:first-child,
.content p:first-child { margin-top: 0; }
.content p { margin: 0 0 1.1em; }
.content ul, .content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.content li { margin: 0 0 .55em; }
.content ol > li { padding-left: .3em; }
.content ol > li p { margin: 0 0 .4em; }
.content em { color: var(--muted); }

.accent { color: var(--accent); }
.content .accent { color: #8A6B1E; font-weight: 600; } /* readable yellow on white */

/* ---------- Engagements (revamp) ---------- */
.engagement-section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid #e4e7ec;
  scroll-margin-top: var(--header-h);
}
.engagement-section:first-child { padding-top: 0; }
.engagement-section:last-child { border-bottom: 0; padding-bottom: 0; }
.engagement-section:nth-child(even) { flex-direction: row-reverse; }
.engagement-section__body { flex: 1 1 56%; min-width: 0; }
.engagement-section__body h2 { margin: 0 0 .5em; }
.engagement-section__body p { margin: 0; }
.engagement-section__figure { flex: 1 1 38%; }
.engagement-section__figure img {
  width: 100%;
  border-radius: 12px;
  background: var(--panel-bg);
}

/* ---------- Tools sections (2-col) ---------- */
.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;
}
.tool-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  scroll-margin-top: var(--header-h);
}
.tool-section__media {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: var(--band);
  display: flex;
  align-items: center;
  padding: 56px;
}
.tool-section:first-of-type .tool-section__media {
  padding-top: calc(var(--header-h) + 56px);
}
.tool-section--home:first-of-type .tool-section__media {
  padding-top: 56px;
}
.tool-section__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.tool-section__media-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tool-section__media-inner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
  text-align: center;
}
.tool-quote {
  margin: 0;
  font-family: 'Kalam', cursive;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #fff;
  text-align: center;
  line-height: 1.5;
}
.tool-lead {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: left;
}
.tool-section__panel {
  background: var(--panel-bg);
  padding: 85px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tool-section__panel h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.tool-group h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.tool-group ul,
.tool-flat-list {
  margin: 0;
  padding-left: 1.2em;
}
.tool-group li,
.tool-flat-list li {
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.55;
}
.tool-section__panel > p { margin: 0; color: var(--ink); line-height: 1.6; }
.tool-cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 5px;
  transition: filter .2s ease;
}
.tool-cta:hover { filter: brightness(.92); color: var(--ink); }

/* ---------- Section divider ---------- */
.section-divider {
  height: 6px;
  margin: 0;
  border: 0;
  background: var(--band);
}

/* ---------- Contact form ---------- */
.contact-success {
  background: #FBF3DC;
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 6px;
  margin: 0 0 20px;
  font-weight: 600;
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 8px 0 20px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid #c8ced4;
  border-radius: 5px;
  background: #fff;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .25);
}
.contact-form textarea { resize: vertical; }
.contact-form button {
  justify-self: start;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border: 0;
  border-radius: 5px;
  padding: 13px 34px;
  cursor: pointer;
  transition: filter .2s ease;
}
.contact-form button:hover { filter: brightness(.92); }
.contact-fallback { font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--band-deep);
  border-top: 3px solid var(--accent);
  color: #a9afba;
  text-align: center;
  padding: 40px 24px;
}
.site-footer img { height: 26px; width: auto; margin: 0 auto 18px; background: rgba(255, 255, 255, .94); padding: 8px 16px; border-radius: 10px; }
.site-footer .foot-links {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.site-footer .foot-links a {
  color: #d7dbe0;
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.site-footer .foot-links a:hover { color: var(--accent); }
.site-footer .copyright {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .08em;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .tool-section {
    grid-template-columns: 1fr;
  }
  .tool-section__media {
    min-height: 420px;
    padding: 40px 24px;
  }
  .tool-section:first-of-type .tool-section__media {
    padding-top: calc(var(--header-h) + 32px);
  }
  .tool-section--home:first-of-type .tool-section__media {
    padding-top: 40px;
  }
  .tool-section__panel {
    padding: 36px 24px;
  }
  .tool-lead {
    font-size: 1.05rem;
  }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(320px, 84vw);
    height: calc(100vh - var(--header-h));
    background: rgba(21, 23, 29, .98);
    padding: 12px 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .3);
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a,
  .main-nav .nav-toggle-label {
    padding: 14px 22px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .main-nav .has-children { position: static; }
  .main-nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .25);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav .has-children.open > .submenu { max-height: 600px; }
  .main-nav .submenu a { padding-left: 40px; }
  .main-nav .has-children > a::after,
  .main-nav .has-children > .nav-toggle-label::after {
    content: "+";
    float: right;
    font-weight: 400;
  }
  .main-nav .has-children.open > a::after,
  .main-nav .has-children.open > .nav-toggle-label::after {
    content: "\2013";
  }
  body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .engagement-section,
  .engagement-section:nth-child(even) {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }
}
