/* ==========================================================================
   Creative Supplier Solutions - Design System
   Sister brand of Creative Marketing Concepts. Look derived from
   getcreativemarketing.com CSS launch page: deep green hero gradients with
   dot texture, sage green accents, light gray panels, charcoal pill buttons,
   Inter headings / Poppins UI / Open Sans body.
   ========================================================================== */

:root {
  /* Brand greens (from CSS logo + hero art) */
  --green-hero-from: #266b2e;
  --green-hero-to: #071408;
  --green-deep: #0d2412;
  --forest: #4a7c4e;
  --sage: #7bba7d;
  --sage-soft: #a9d3aa;
  --sage-tint: #eef5ee;

  /* Neutrals (from CMC site) */
  --charcoal: #252525;
  --charcoal-soft: #3d3d3d;
  --ink: #111111;
  --text: #555555;
  --text-light: #777777;
  --gray-panel: #ededed;
  --gray-panel-2: #ebebeb;
  --white: #ffffff;

  /* Type */
  --font-display: "Inter", Helvetica, Arial, sans-serif;
  --font-ui: "Poppins", Helvetica, Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;

  /* Rhythm */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;
  --container: 1160px;
  --radius: 16px;
  --radius-pill: 100px;
  --shadow-card: 0 8px 30px rgba(13, 36, 18, 0.10);
  --shadow-card-hover: 0 14px 44px rgba(13, 36, 18, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--sage); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--gray-panel);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.site-header .nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--sp-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: auto; }
.brand .brand-word {
  font-family: var(--font-ui); font-weight: 600; color: var(--charcoal);
  font-size: 0.95rem; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase;
}
.brand .brand-word span { display: block; color: var(--forest); font-weight: 400; letter-spacing: 0.22em; font-size: 0.78rem; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-nav a {
  font-family: var(--font-ui); font-weight: 400; color: var(--charcoal);
  font-size: 1rem; transition: color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--forest); font-weight: 500; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: 0.25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--gray-panel); flex-direction: column; align-items: flex-start;
    padding: var(--sp-3); gap: var(--sp-2); box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .site-nav.open { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block; font-family: var(--font-ui); font-weight: 500;
  font-size: 1rem; padding: 13px 30px; border-radius: var(--radius-pill);
  border: 1px solid var(--charcoal); background: var(--charcoal); color: #fff;
  cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; transform: translateY(-2px); }
.btn-sage { background: var(--sage); border-color: var(--sage); color: var(--green-deep); font-weight: 600; }
.btn-sage:hover { background: var(--sage-soft); border-color: var(--sage-soft); color: var(--green-deep); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-outline-dark { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-6) 0; }
.section-gray { background: var(--gray-panel-2); }
.section-sage { background: var(--sage-tint); }

/* Dark green "texture" panel - matches hero art (gradient + dot matrix) */
.section-dark {
  position: relative;
  background: linear-gradient(105deg, var(--green-hero-from) 0%, var(--green-hero-to) 72%);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.13) 2.2px, transparent 2.6px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 45%, transparent 70%);
          mask-image: linear-gradient(115deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.18) 45%, transparent 70%);
}
.section-dark > * { position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

/* Section headings */
.kicker {
  font-family: var(--font-ui); font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; font-size: 0.82rem; color: var(--forest);
  display: block; margin-bottom: var(--sp-2);
}
.section-dark .kicker { color: var(--sage); }
.section-head { max-width: 780px; margin-bottom: var(--sp-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: var(--sp-2); font-size: 1.08rem; }

/* Display treatment (hero wordmark style: white bold + sage tracked) */
.display-stack { text-transform: uppercase; }
.display-stack .line-strong { display: block; color: #fff; letter-spacing: 0.04em; }
.display-stack .line-sage {
  display: block; color: var(--sage); font-weight: 400;
  letter-spacing: 0.38em; font-size: 0.62em; margin-top: 0.35em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: var(--sp-8) 0; }
.hero .hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-6); align-items: center; }
.hero p.lead { font-size: 1.18rem; margin: var(--sp-3) 0 var(--sp-4); max-width: 620px; color: rgba(255,255,255,0.85); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 900px) { .hero .hero-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cards
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3); }
.card {
  background: var(--white); border-radius: var(--radius); padding: var(--sp-4);
  box-shadow: var(--shadow-card); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card .card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.card h3 { margin-top: 4px; }
.card p { font-size: 0.99rem; }
.card .card-link { margin-top: auto; font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem; }
.card .card-link::after { content: " \2192"; }

/* Dark-section variant */
.section-dark .card { background: rgba(255,255,255,0.06); box-shadow: none; border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(4px); }
.section-dark .card p { color: rgba(255,255,255,0.78); }
.section-dark .card .card-icon { background: rgba(123,186,125,0.18); }

/* Solution / pricing cards */
.price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--charcoal); }
.price .per { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--text-light); }
.badge {
  display: inline-block; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep);
  background: var(--sage); border-radius: var(--radius-pill); padding: 4px 14px;
}
.check-list { list-style: none; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; font-size: 0.97rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--forest); font-weight: 700; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.step { counter-increment: step; }
.step .step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--sage);
  line-height: 1;
}
.step .step-num::before { content: "0" counter(step); }
.step h3 { margin: var(--sp-1) 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--font-ui); font-weight: 500; font-size: 0.9rem; color: var(--charcoal); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  padding: 13px 16px; border: 1px solid #d5d5d5; border-radius: 12px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(123,186,125,0.25); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--text-light); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.7); padding: var(--sp-6) 0 var(--sp-4); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--sage); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.footer-grid h4 { color: #fff; font-family: var(--font-ui); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: var(--sp-3); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Utility + motion
   ========================================================================== */
.center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
