/*
  Tapetum.in — base stylesheet (v2 redesign)
  Full visual overhaul for lead generation + conversion. Content/data is
  untouched — only presentation and lead-capture UI structure changed.
  See DESIGN-SYSTEM.md for the rationale behind these tokens.
*/

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --color-brand: #16a34a;         /* green-energy — primary CTA / energy accent */
  --color-brand-dark: #15803d;
  --color-brand-light: #e7f8ed;
  --color-navy: #0b1f3a;          /* deep navy — header/footer, trust/authority */
  --color-navy-2: #12294d;
  --color-eco: #14966b;           /* eco-green — sustainability accents, success */
  --color-eco-light: #e7f7f1;

  --color-text: #101828;
  --color-text-secondary: #4a5568;
  --color-text-invert: #ffffff;
  --color-border: #e5e9f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-navy: var(--color-navy);

  --color-success: #14966b;
  --color-success-bg: #e7f7f1;
  --color-error: #d92d20;
  --color-error-bg: #fef3f2;

  /* Typography */
  --font-heading: "Poppins", "Work Sans", Arial, sans-serif;
  --font-base: "Inter", "Work Sans", Arial, sans-serif;
  --fs-base: 16px;
  --fs-small: 14px;
  --fs-h1: 40px;
  --fs-h2: 30px;
  --fs-h3: 22px;
  --lh-base: 1.65;

  /* Layout */
  --container-max: 1240px;
  --gutter: 20px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(11,31,58,.06), 0 1px 2px rgba(11,31,58,.08);
  --shadow-md: 0 8px 24px rgba(11,31,58,.10);
  --shadow-lg: 0 16px 40px rgba(11,31,58,.14);
  --breakpoint-desktop: 750px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 700; line-height: 1.2; font-family: var(--font-heading); letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gutter) / -2); }
.grid__item { padding: 0 calc(var(--gutter) / 2); width: 100%; }

@media screen and (min-width: 750px) {
  .grid__item--half { width: 50%; }
  .grid__item--third { width: 33.333%; }
  .grid__item--quarter { width: 25%; }
  .grid__item--fifth { width: 20%; }
}
@media screen and (max-width: 749px) {
  .grid__item--half-mobile { width: 50%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  background-color: var(--color-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  text-align: center;
  user-select: none;
  white-space: normal;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, opacity .12s ease;
}
.btn:hover, .btn:focus-visible { background-color: var(--color-brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn[disabled], .btn--disabled { cursor: default; opacity: .5; transform: none; box-shadow: none; }
.btn--secondary {
  background-color: #fff;
  color: var(--color-navy);
  border-color: var(--color-border);
  box-shadow: none;
}
.btn--secondary:hover, .btn--secondary:focus-visible { background-color: var(--color-bg-alt); border-color: var(--color-navy); }
.btn--outline-invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
  box-shadow: none;
}
.btn--outline-invert:hover, .btn--outline-invert:focus-visible { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--navy { background-color: var(--color-navy); color: #fff; }
.btn--navy:hover, .btn--navy:focus-visible { background-color: var(--color-navy-2); }
.btn--full { display: flex; width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Forms ---------- */
.input, textarea.input, select.input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, textarea.input:focus, select.input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-light);
}
.input--error { border-color: var(--color-error); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--color-navy); }

.errors { border: 1px solid var(--color-error); background-color: var(--color-error-bg); color: var(--color-error); padding: 10px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.form--success { border: 1px solid var(--color-success); background-color: var(--color-success-bg); color: var(--color-success); padding: 10px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 10px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 0;
  color: var(--color-navy); background-color: #fff; padding: 10px;
  position: absolute; top: 0; left: 0; z-index: 10000;
}
