/* ============================================================
   EVERLEADS — style.css
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* --- Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- CSS Variables --- */
:root {
  --charcoal:   #2d3748;
  --body:       #5a6270;
  --light:      #9aa0aa;
  --rule:       #e2ddd7;
  --cream:      #faf8f5;
  --white:      #ffffff;
  --pink:       #e8347a;
  --green:      #a8c832;
  --blue:       #4ab8e0;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --max-w:      1080px;
  --pad-x:      2.5rem;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.2; }

p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
}

a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--pink); }

ul { list-style: none; }

/* --- Layout Helper --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.warm-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ============================================================
   SPARK GRADIENT RULE
   ============================================================ */
.spark-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--green) 50%, var(--blue) 100%);
  width: 100%;
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 72px;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--charcoal);
}

.nav-links a.nav-cta {
  border: 1px solid var(--charcoal);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  color: var(--charcoal);
  transition: background 0.2s, color 0.2s;
}

.nav-links a.nav-cta:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--light);
  font-weight: 300;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: var(--light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--charcoal);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: transparent;
  color: var(--charcoal);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* ============================================================
   EYEBROW LABELS
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  display: block;
  margin-bottom: 0.9rem;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  padding: 4.5rem var(--pad-x) 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-header .eyebrow {
  margin-bottom: 1.1rem;
}

.page-header h1 {
  margin-bottom: 1.2rem;
}

.page-header p {
  max-width: 640px;
}

.page-header .warm-rule {
  margin-top: 3rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 2rem var(--pad-x) 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-cream {
  background: var(--cream);
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero-wrap {
  border-bottom: 1px solid var(--rule);
}

.hero {
  padding: 5.5rem var(--pad-x) 5.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
}

.hero-text .eyebrow {
  margin-bottom: 1.3rem;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text p {
  max-width: 520px;
  margin-bottom: 1rem;
}

.hero-text p + p {
  margin-bottom: 2.2rem;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--rule);
  padding-left: 2.5rem;
  min-width: 190px;
}

.hero-stat {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.hero-stat:first-child { padding-top: 0; }
.hero-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--light);
  text-transform: uppercase;
}

/* ============================================================
   HOME — THREE COLUMN SECTION
   ============================================================ */
.three-col-wrapper {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.three-col {
  padding: 5rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.three-col-item .col-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.2rem;
  display: block;
}

.col-num.pink  { color: var(--pink); }
.col-num.green { color: var(--green); }
.col-num.blue  { color: var(--blue); }

.three-col-item h3 {
  margin-bottom: 0.8rem;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--cream);
}

.cta-band-inner {
  padding: 5.5rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.cta-band-inner h2 {
  margin-bottom: 0.8rem;
}

.cta-band-inner p {
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band-inner h2 + .btn {
  margin-top: 1.5rem;
}

/* ============================================================
   DATA PAGE — VERTICALS GRID
   ============================================================ */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.vertical-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.verticals-grid .vertical-item:nth-child(1),
.verticals-grid .vertical-item:nth-child(2) {
  padding-top: 0;
}

.verticals-grid .vertical-item:nth-child(odd) {
  padding-right: 3.5rem;
  border-right: 1px solid var(--rule);
}

.verticals-grid .vertical-item:nth-child(even) {
  padding-left: 3.5rem;
}

.vertical-item h3 {
  margin-bottom: 0.75rem;
}

/* ============================================================
   DATA PAGE — QUALITY SECTION
   ============================================================ */
.quality-section {
  margin-top: 1rem;
  padding-top: 4rem;
}

.quality-section .eyebrow {
  margin-bottom: 0.7rem;
}

.quality-section h2 {
  margin-bottom: 1.1rem;
}

.quality-section p {
  max-width: 600px;
  margin-bottom: 1rem;
}

.bullet-list {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
}

.bullet-list li {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--light);
  line-height: inherit;
}

/* ============================================================
   HOW WE WORK — PROCESS
   ============================================================ */
.process-section h2 {
  margin-bottom: 1.1rem;
}

.process-section p {
  max-width: 600px;
  margin-bottom: 1rem;
}

.process-section .warm-rule {
  margin: 3.5rem 0;
}

/* ============================================================
   HOW WE WORK — USE CASES
   ============================================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.use-case-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.use-cases-grid .use-case-item:nth-child(1),
.use-cases-grid .use-case-item:nth-child(2) {
  padding-top: 0;
}

.use-cases-grid .use-case-item:nth-child(odd) {
  padding-right: 3.5rem;
  border-right: 1px solid var(--rule);
}

.use-cases-grid .use-case-item:nth-child(even) {
  padding-left: 3.5rem;
}

.use-case-item h3 {
  margin-bottom: 0.75rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5.5rem;
  align-items: start;
}

.about-main p {
  margin-bottom: 1.4rem;
}

.about-main p:last-of-type {
  margin-bottom: 0;
}

.about-main .warm-rule {
  margin: 2.5rem 0;
}

.about-main .eyebrow {
  margin-bottom: 0.8rem;
}

.about-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.about-links a {
  font-size: 0.875rem;
}

.about-sidebar {
  border-top: 1px solid var(--rule);
}

.sidebar-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.sidebar-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.4rem;
}

.sidebar-value {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--body);
}

.contact-info address a {
  color: var(--charcoal);
}

/* ============================================================
   FORMS
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--charcoal);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--light);
  font-weight: 300;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

/* ============================================================
   DO NOT SELL PAGE
   ============================================================ */
.dnsp-address {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--light);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   LEGAL CONTENT (privacy policy, terms)
   ============================================================ */
.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  margin-top: 3rem;
  margin-bottom: 0.9rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  line-height: 1.4;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.6rem 0 1rem;
}

.legal-content ul li {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
  margin-bottom: 0.2rem;
}

.legal-content ol {
  padding-left: 1.5rem;
  margin: 0.6rem 0 1rem;
}

.legal-content ol li {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
  margin-bottom: 0.2rem;
}

/* Categories of Personal Information (section 14) */
.category-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.category-block:first-of-type {
  border-top: 1px solid var(--rule);
}

.category-name {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  display: block;
}

.category-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.category-row p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.category-row strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.3rem;
}

.legal-last-updated {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--light);
}

/* ============================================================
   RESPONSIVE — TABLET ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
  :root { --pad-x: 1.75rem; }

  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stats {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 2rem;
    flex-direction: row;
    min-width: unset;
  }

  .hero-stat {
    flex: 1;
    padding: 0 2rem 0 0;
    border-bottom: none;
    border-right: 1px solid var(--rule);
    margin-right: 2rem;
  }

  .hero-stat:first-child { padding-left: 0; }
  .hero-stat:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .verticals-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .verticals-grid .vertical-item,
  .use-cases-grid .use-case-item {
    padding: 2rem 0 !important;
    border-right: none !important;
    border-bottom: 1px solid var(--rule) !important;
  }

  .verticals-grid .vertical-item:last-child,
  .use-cases-grid .use-case-item:last-child {
    border-bottom: none !important;
  }

}

/* ============================================================
   RESPONSIVE — MOBILE ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  :root { --pad-x: 1.25rem; }

  .nav { height: 64px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    z-index: 200;
  }

  .nav-links.is-open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 1rem var(--pad-x);
    border-bottom: 1px solid var(--rule);
    font-size: 0.75rem;
  }

  .nav-links a.nav-cta {
    border: none;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding: 1rem var(--pad-x);
    background: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0;
    padding-top: 2rem;
  }

  .hero-stat {
    flex: unset;
    padding: 1.1rem 0;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    margin-right: 0;
  }

  .hero-stat:last-child { border-bottom: none; }

  .three-col {
    padding: 3.5rem var(--pad-x);
    gap: 0;
  }

  .three-col-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .three-col-item:last-child { border-bottom: none; }

  .hero { padding: 3.5rem var(--pad-x) 4rem; }
  .section { padding: 1.5rem var(--pad-x) 3.5rem; }
  .page-header { padding: 3rem var(--pad-x) 0; }
  .cta-band-inner { padding: 3.5rem var(--pad-x); text-align: left; }
  .cta-band-inner p { margin-left: 0; margin-right: 0; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem var(--pad-x);
  }
}
