/* WindTwin marketing site — design system + page styles
   Pure CSS, no framework. Mobile-first; tablet/desktop layered via media queries.
   ------------------------------------------------------------------ */

:root {
  /* Brand */
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-300: #5eead4;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-900: #134e4a;

  /* Neutrals */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Surfaces */
  --bg:           #ffffff;
  --bg-soft:      var(--slate-50);
  --text:         var(--slate-900);
  --text-muted:   var(--slate-600);
  --border:       var(--slate-200);

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 760px;
  --radius:    14px;
  --radius-sm: 8px;

  /* Type */
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--text); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--slate-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.92em;
}

/* Layout helpers ------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: var(--container-narrow); }
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--text);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--brand-500);
}
.logo-img {
  display: block;
  height: 28px;
  width: auto;
}
.site-footer .logo-img { height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--slate-700);
  font-weight: 500;
}
.nav-links a:hover { color: var(--brand-600); text-decoration: none; }
.nav-links a.is-active { color: var(--brand-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: var(--slate-700);
}

/* Buttons ------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.04s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--brand-600);
  color: white;
}
.btn-primary:hover {
  background: var(--brand-700);
  color: white;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: white;
  color: var(--slate-900);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--slate-50); text-decoration: none; }

/* Hero (home) --------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(1200px 600px at 80% -20%, var(--brand-100), transparent 70%),
    radial-gradient(900px 500px at 0% 0%, var(--brand-50), transparent 70%),
    var(--bg);
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 { max-width: 22ch; }
.hero p.lead { max-width: 60ch; margin-top: 1rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Pillar cards (home) ------------------------------------------------- */
.pillars {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.pillar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar h3 { margin-top: 0; color: var(--brand-700); }
.pillar p { color: var(--text-muted); margin-bottom: 0; }

/* Section header (used widely) --------------------------------------- */
.section-head {
  text-align: left;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

/* Generic page section ----------------------------------------------- */
section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

/* Features overview table -------------------------------------------- */
.features-group { margin-top: 2.5rem; }
.features-group h2 {
  margin-top: 0;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.features-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.features-table th,
.features-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.features-table th {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.features-table td:first-child { width: 30%; }
.features-table td:last-child  { width: 25%; color: var(--text-muted); }
.features-table a { font-weight: 600; }

/* Feature page hero --------------------------------------------------- */
.feature-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(900px 400px at 70% 0%, var(--brand-100), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--text-muted); }
.feature-hero h1 { max-width: 22ch; }
.feature-hero .lead { max-width: 58ch; }

/* Feature page body --------------------------------------------------- */
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { color: var(--slate-700); }
.prose li strong { color: var(--text); }

/* Specs box ----------------------------------------------------------- */
.specs {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.specs h3 { margin-top: 0; font-size: 1rem; color: var(--brand-700); }
.specs ul { margin-bottom: 0; }

/* Solution cards (solutions overview) -------------------------------- */
.solution-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.solution-card:hover {
  border-color: var(--brand-300);
  text-decoration: none;
}
.solution-card h3 { margin-top: 0; color: var(--brand-700); }
.solution-card p { color: var(--text-muted); margin-bottom: 0.75rem; }
.solution-card .card-cta {
  display: inline-block;
  color: var(--brand-600);
  font-weight: 600;
  font-size: 0.95rem;
}
.solution-card .card-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* Outcomes / KPI strip (used on solution pages) ---------------------- */
.kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.kpi {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.kpi strong {
  display: block;
  font-size: 1.4rem;
  color: var(--brand-700);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.kpi span { color: var(--text-muted); font-size: 0.92rem; }
@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
}

/* Cross-link strip --------------------------------------------------- */
.related { background: var(--bg-soft); border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.related-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.05s ease, border-color 0.15s ease;
}
.related-card:hover {
  border-color: var(--brand-300);
  text-decoration: none;
  color: var(--brand-700);
}
.related-card::after { content: '→'; color: var(--brand-500); font-weight: 700; }

/* CTA strip ----------------------------------------------------------- */
.cta {
  background:
    radial-gradient(800px 400px at 20% 100%, var(--brand-100), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}
.cta-inner {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}
.cta-inner h2 { margin-top: 0; }
.cta-inner p { color: var(--text-muted); }

/* Footer -------------------------------------------------------------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--brand-600); }
.site-footer .footer-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

/* Contact page ------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.contact-card h3 { margin-top: 0; color: var(--brand-700); }
.contact-card p { color: var(--text-muted); margin-bottom: 0.75rem; }
.contact-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-form-wrap h2 { margin-top: 0; }
.contact-form-wrap .text-muted { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-form { margin-top: 0.5rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate-700);
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--text);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.contact-form .btn-primary {
  margin-top: 0.5rem;
  border: 1px solid var(--brand-600);
  cursor: pointer;
}
.form-hint {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-aside {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  align-self: start;
}
.contact-aside h3 { margin-top: 1.25rem; font-size: 1rem; color: var(--brand-700); }
.contact-aside h3:first-child { margin-top: 0; }
.contact-aside p,
.contact-aside li { color: var(--text-muted); font-size: 0.95rem; }
.contact-aside ul { margin-bottom: 0; }

/* Responsive ---------------------------------------------------------- */
@media (min-width: 720px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }
  .contact-grid  { grid-template-columns: repeat(3, 1fr); }
  .form-row      { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .pillars-grid   { grid-template-columns: repeat(4, 1fr); }
  .contact-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; }
}

/* Mobile nav --------------------------------------------------------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    inset: 64px 0 auto 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0.5rem 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { margin: 0; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border);
  }
  .nav-links .btn-primary {
    margin: 0.75rem 1.25rem;
    text-align: center;
  }
}
