/* =============================================================
   Igagasi Consulting
   Hand-built static design system. No framework, no CDN.

   House style: this is a Meerkat Energy company, so the tokens below mirror
   meerkat_energy_website_v2 and third_party_wheeling — white page, Sora
   headings on Inter body, cool-slate neutrals, one locked green->teal
   "energy" gradient, hairline-bordered white cards that lift on hover.
   Third Party Wheeling is the base (radius tokens + AA-safe accent).

   It also happens to fit Igagasi's own logo: the iC monogram runs cyan->green
   (≈ the energy gradient) and the IGAGASI wordmark is gold (≈ --amber).
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Accent — the house energy gradient endpoints (identical in both sibling sites) */
  --energy-green: #16c062;
  --energy-teal:  #00bce0;
  /* Green for small text/links on white. NOTE: the house token is #0a8f63, but that
     measures 4.1:1 on white and misses AA; this is the same hue nudged darker to 4.6:1. */
  --energy-deep:  #09855c;
  --amber:        #ca8606;   /* secondary highlight — matches the gold IGAGASI wordmark */

  /* Neutrals — cool slate family, one palette for the whole site */
  --ink:         #0c1622;   /* headings */
  --slate-deep:  #0f1c2b;   /* dark hero / footer / CTA bands */
  --body:        #334155;   /* body copy on light */
  --muted:       #64748b;   /* secondary text */
  --line:        #e2e8f0;   /* hairlines */
  --line-soft:   #eef2f6;
  --surface:     #ffffff;
  --surface-alt: #f6f9fb;   /* alternating band */

  --radius-card:  16px;
  --radius-input: 10px;
  --radius-pill:  999px;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 18px 40px -18px rgba(15, 23, 42, 0.16);

  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, sans-serif;

  --nav-h: 68px;
}

/* ---------- Energy gradient (the house signature) ---------- */
.bg-energy-gradient {
  background-image: linear-gradient(100deg, var(--energy-green) 0%, var(--energy-teal) 100%);
}
.text-energy-gradient {
  background-image: linear-gradient(100deg, var(--energy-green) 0%, var(--energy-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.06rem);
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--energy-deep); outline-offset: 3px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.h1, h1 { font-size: clamp(2.15rem, 1.55rem + 2.6vw, 3.35rem); }
.h2, h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.55rem); }
.h3, h3 { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p { max-width: 68ch; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--energy-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background-image: linear-gradient(100deg, var(--energy-green), var(--energy-teal)); }
.lead { font-size: clamp(1.05rem, 1rem + 0.45vw, 1.2rem); line-height: 1.65; color: var(--body); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.75rem, 2.6rem + 5.5vw, 6.5rem); }
.section--tight { padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.5rem); }
.section-head { max-width: 64ch; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.25rem); }
.section-head .h2 { margin-top: 0.85rem; }
.section-head p { margin-top: 1rem; }
.bg-alt { background: var(--surface-alt); }
.bg-deep { background: var(--slate-deep); }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4 { color: #fff; }
.bg-deep p, .bg-deep li { color: #b9c4d4; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ----------
   House pattern: pill, energy-gradient fill, dark text. Dark-on-gradient is the
   accessible choice (7.8:1 at the green end, 8.1:1 at the teal end); white text
   on the green end would be ~2.3:1 and fail. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.94rem;
  padding: 0.8rem 1.5rem; border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary {
  background-image: linear-gradient(100deg, var(--energy-green) 0%, var(--energy-teal) 100%);
  color: var(--ink);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(22, 192, 98, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--energy-deep); color: var(--energy-deep); transform: translateY(-1px); }
.bg-deep .btn-ghost { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); color: #fff; }
.bg-deep .btn-ghost:hover { border-color: var(--energy-teal); color: var(--energy-teal); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--energy-deep); }
.text-link svg { width: 1.05em; height: 1.05em; flex: none; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 18px rgba(12, 22, 34, 0.05); }
.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__brand img { width: 34px; height: auto; }
.nav__brand span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 0.15rem; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__links a.btn-primary { color: var(--ink); }
.nav__links .btn { display: none; }
.nav__cta { margin-left: 0.4rem; }
.nav__toggle { display: none; }

@media (max-width: 980px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; margin-right: -10px; z-index: 110; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 0.35rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.35rem; padding: 0.5rem 1rem; }
  .nav__links .btn { margin-top: 1rem; display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
  background: var(--surface);
}
/* ambient gradient glow, as on the Meerkat hero */
.hero::before {
  content: ""; position: absolute; top: -14rem; right: -12rem;
  width: 38rem; height: 38rem; border-radius: 50%;
  background-image: linear-gradient(100deg, var(--energy-green), var(--energy-teal));
  opacity: 0.16; filter: blur(80px); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin: 1.1rem 0 0; }
.hero__sub { margin-top: 1.2rem; max-width: 54ch; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.18rem); }
.hero__actions { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero__ticks { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.88rem; color: var(--muted); }
.hero__ticks li { display: flex; align-items: center; gap: 0.45rem; }
.hero__ticks svg { width: 15px; height: 15px; color: var(--energy-deep); flex: none; }
.hero__visual img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.stats__item { background: var(--surface); padding: clamp(1.35rem, 2.4vw, 2rem); }
.stats__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stats__label { margin-top: 0.45rem; font-size: 0.86rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 45px -18px rgba(15, 23, 42, 0.18); border-color: transparent; }
.card__edge { height: 4px; flex: none; background-image: linear-gradient(100deg, var(--energy-green), var(--energy-teal)); }
.card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-alt); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 1.4rem 1.4rem 1.6rem; }
.card__body h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.card__body p { font-size: 0.92rem; color: var(--body); }
.card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(22,192,98,0.1); color: var(--energy-deep); margin-bottom: 0.9rem; }
.card .ic svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards--2 { grid-template-columns: 1fr; } }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* ---------- Checklist ---------- */
ul.checklist { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.8rem; color: var(--body); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 11px; height: 11px; border-radius: 3px;
  background-image: linear-gradient(100deg, var(--energy-green), var(--energy-teal));
}
.bg-deep .checklist li { color: #b9c4d4; }

/* ---------- Definition list (values / services) ---------- */
.deflist { display: grid; gap: 1.6rem; }
.deflist > div { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.deflist h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.deflist p { font-size: 0.95rem; }
.bg-deep .deflist > div { border-top-color: rgba(255,255,255,0.12); }

/* ---------- Page head (interior) ---------- */
.phead {
  position: relative; overflow: hidden;
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
  padding-bottom: clamp(2rem, 3.2vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.phead::before {
  content: ""; position: absolute; top: -16rem; right: -10rem;
  width: 32rem; height: 32rem; border-radius: 50%;
  background-image: linear-gradient(100deg, var(--energy-green), var(--energy-teal));
  opacity: 0.13; filter: blur(80px); pointer-events: none;
}
.phead__inner { position: relative; max-width: 880px; }
.phead h1 { margin: 0.9rem 0 0; }
.phead p { margin-top: 1rem; max-width: 66ch; }
.crumbs { font-size: 0.84rem; color: var(--muted); display: flex; gap: 0.45rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--energy-deep); }
.crumbs span[aria-current] { color: var(--body); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.ccard { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-card); padding: 1.1rem 1.2rem; background: rgba(255,255,255,0.04); }
.ccard .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.06); color: var(--energy-teal); }
.ccard .ic svg { width: 19px; height: 19px; }
.ccard h3 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fa0b5; font-weight: 700; }
.ccard a, .ccard p { color: #fff; font-size: 1rem; margin-top: 0.2rem; }
.ccard a:hover { color: var(--energy-teal); }
.ccard address { font-style: normal; color: #b9c4d4; font-size: 0.95rem; margin-top: 0.2rem; line-height: 1.6; }

.form { background: var(--surface); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-card); }
.form h2, .form h3 { color: var(--ink); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.87rem; color: var(--ink); font-weight: 600; }
.field label .req { color: var(--energy-deep); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface); border: 1px solid #cbd5e1; color: var(--ink);
  border-radius: var(--radius-input); padding: 0.75rem 0.9rem; font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--energy-green); box-shadow: 0 0 0 3px rgba(22,192,98,0.14);
}
.field textarea { resize: vertical; min-height: 118px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-hint { font-size: 0.81rem; color: var(--muted); }
.form .btn { width: 100%; margin-top: 0.25rem; }
.form__note { margin-top: 0.85rem; font-size: 0.83rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-recaptcha { margin: 0.25rem 0 1rem; min-height: 78px; }
.captcha-hint { font-size: 0.83rem; color: var(--muted); margin-bottom: 0.5rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--slate-deep); padding-block: clamp(2.75rem, 4vw, 4rem) 1.6rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.25rem; }
.footer__brand img { width: 130px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.9rem; color: #94a3b8; max-width: 34ch; }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fa0b5; margin-bottom: 0.9rem; font-weight: 700; }
.footer ul { display: grid; gap: 0.6rem; }
.footer ul a, .footer ul li { font-size: 0.9rem; color: #b9c4d4; }
.footer ul a:hover { color: var(--energy-teal); }
.footer address { font-style: normal; font-size: 0.9rem; color: #b9c4d4; line-height: 1.7; }
.footer__bottom {
  margin-top: clamp(2.25rem, 3.5vw, 3rem); padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: #8fa0b5;
}
.footer__bottom a { color: #b9c4d4; font-weight: 600; }
.footer__bottom a:hover { color: var(--energy-teal); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 1.75rem; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.07s; }
[data-reveal][data-delay="2"] { transition-delay: 0.14s; }
[data-reveal][data-delay="3"] { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}
