/* =========================================================
   Cloudburst Digital — styles.css
   Plain CSS, mobile-first, system-font stack, no build step.
   ========================================================= */

:root {
  /* Brand palette — calibrated from live site */
  --c-bg: #ffffff;
  --c-bg-alt: #f6f8fb;
  --c-ink: #0b1b2b;          /* deep navy for headings */
  --c-ink-muted: #6b7a8a;    /* muted body text */
  --c-accent: #1f8fff;       /* brand blue (teardrop) */
  --c-accent-ink: #ffffff;
  --c-linkedin: #0a66c2;
  --c-border: #e6eaf0;
  --c-ring: rgba(31, 143, 255, 0.35);
  --c-footer-bg: #0b1220;
  --c-footer-ink: #e6eaf0;
  --c-footer-link: #1f8fff;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --fs-base: 17px;
  --lh-base: 1.6;

  /* Layout */
  --maxw: 1100px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 27, 43, 0.08);
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 3px solid var(--c-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { color: var(--c-ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--c-ink-muted); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Accessibility helpers --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--c-ink);
  color: #fff; padding: 0.5rem 0.75rem; border-radius: 0 0 6px 6px; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* --- Header --- */
.site-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center;
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-name-sub {
  font-weight: 500; letter-spacing: 0.14em; font-size: 0.75rem;
  text-transform: uppercase; color: var(--c-ink-muted);
  display: inline-block; padding-left: 0.1rem;
  vertical-align: 0.2em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius); font-weight: 600;
  transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--c-accent); color: var(--c-accent-ink);
  border-color: var(--c-accent);
}
.btn-primary:hover { background: #1679d6; border-color: #1679d6; color: #fff; }
.btn-ghost {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-ink); }
.btn-linkedin {
  background: var(--c-linkedin); color: #fff; border-color: var(--c-linkedin);
}
.btn-linkedin:hover { background: #0a58ad; border-color: #0a58ad; color: #fff; }

/* --- Sections --- */
.section { padding: clamp(2rem, 5vw, 4rem) 0; }

/* --- Hero --- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { margin-bottom: 1.5rem; }
.tagline {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--c-ink);
  font-weight: 500;
  margin: 0 auto 1.5rem;
  max-width: 42ch;
}
.hero .lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--c-ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* --- Services cards --- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e6;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { margin: 0; font-size: 0.98rem; }

/* --- Founder --- */
.founder {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 800px) {
  .founder-grid {
    grid-template-columns: minmax(300px, 1fr) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}
.founder-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%);
  aspect-ratio: 4 / 3;
  background: #e6eaf0; /* fallback while image loads / is missing */
}
.founder-copy {
  padding: 0 1.25rem;
  max-width: 600px;
}
@media (min-width: 800px) {
  .founder-copy { padding: 0 1.25rem 0 0; }
}
.founder-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.founder-role { font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 32ch; }
.founder-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--c-footer-bg);
  color: var(--c-footer-ink);
  padding: 1.5rem 0;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.footer-inner p {
  margin: 0;
  color: var(--c-footer-ink);
  font-size: 0.95rem;
}
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner nav a {
  color: var(--c-footer-link);
  font-size: 0.95rem;
}
.footer-inner nav a:hover { text-decoration: underline; }

/* =========================================================
   Legal pages (terms.html, privacy.html)
   ========================================================= */
.legal {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.25rem; }
.legal .effective {
  color: var(--c-ink-muted);
  margin-bottom: 2rem; font-size: 0.95rem;
}
.legal h2 {
  font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem;
}
.legal p, .legal li { color: var(--c-ink); }
.legal p { margin: 0 0 1em; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.35em; 