/* ============================================================
   RAINY DAY SECURITY — Identity v4 (Awning system)
   Light surface · warm-protective · trusted-advisor tone
   ============================================================ */

:root {
  /* ── Color: roles, not just hues ─────────────────────────── */
  --rds-storm:   #27313A;   /* primary — wet roofing slate */
  --rds-storm-deep: #1A2128;
  --rds-ochre:   #C4884A;   /* accent — worn-canvas awning */
  --rds-ochre-deep: #9F6D38;
  --rds-bone:    #F4F1EB;   /* surface */
  --rds-bone-deep: #E8E2D5;
  --rds-graphite:#1A1F24;   /* ink */
  --rds-mute:    #6E7782;   /* secondary text */
  --rds-rule:    #D6CFC0;   /* hairline rules on bone */

  /* semantic (operator console) */
  --rds-ok:      #4E7A5E;
  --rds-warn:    #B07A2E;
  --rds-alert:   #9C3E32;

  /* ── Type ───────────────────────────────────────────────── */
  --font-display: 'Inter Tight', 'Söhne', system-ui, sans-serif;
  --font-body:    'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-ui:      'Inter Tight', 'Söhne', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Söhne Mono', ui-monospace, monospace;

  /* ── Space scale ────────────────────────────────────────── */
  --s-1: 4px;   --s-2: 8px;    --s-3: 12px;   --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;   --s-7: 48px;   --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --container: min(1180px, 92vw);
  --radius:    4px;
  --radius-lg: 10px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--rds-bone);
  color: var(--rds-graphite);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rds-ochre-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--rds-storm);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 { font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.5vw, 48px); }
h3 { font-size: 24px; }

p.lead {
  font-family: var(--font-body);
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.55;
  color: var(--rds-graphite);
  max-width: 56ch;
}

p { max-width: 64ch; }
p + p { margin-top: 1em; }

/* ── Layout ─────────────────────────────────────────────── */
.container { width: var(--container); margin-inline: auto; }
section { padding-block: clamp(64px, 8vw, 120px); }

.rule {
  width: 100%;
  height: 1px;
  background: var(--rds-rule);
  border: none;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--rds-bone);
  border-bottom: 1px solid var(--rds-rule);
  padding-block: 18px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-wordmark {
  height: 28px;
  width: auto;
}
.nav-wordmark img, .nav-wordmark svg { height: 100%; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--rds-storm);
}
.nav-link {
  position: relative;
  padding: 6px 0;
  transition: color 160ms ease;
}
.nav-link:hover { color: var(--rds-ochre-deep); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 180ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--rds-storm);
  color: var(--rds-bone);
}
.btn-primary:hover {
  background: var(--rds-storm-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--rds-storm);
  border-color: var(--rds-storm);
}
.btn-ghost:hover {
  background: var(--rds-storm);
  color: var(--rds-bone);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding-block: clamp(96px, 14vw, 180px);
  position: relative;
}
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; max-width: 18ch; }
.hero p.lead { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* The awning rule that sits beneath the hero — visual echo of the wordmark */
.hero::after {
  content: '';
  display: block;
  margin-top: clamp(80px, 10vw, 140px);
  width: 240px;
  height: 8px;
  background: var(--rds-ochre);
  border-radius: 2px;
}

/* ── Service tiers ──────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.tier {
  background: #fff;
  border: 1px solid var(--rds-rule);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.tier-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rds-ochre-deep);
  margin-bottom: 16px;
}
.tier h3 { font-size: 28px; margin-bottom: 16px; }
.tier ul { margin-top: 20px; }
.tier li {
  padding: 10px 0;
  border-top: 1px solid var(--rds-rule);
  font-size: 16px;
  color: var(--rds-graphite);
}
.tier li:first-child { border-top: none; }

/* ── Beam strip ─────────────────────────────────────────── */
.beam-strip {
  background: var(--rds-storm);
  color: var(--rds-bone);
  padding-block: clamp(80px, 10vw, 128px);
}
.beam-strip h2 { color: var(--rds-bone); }
.beam-strip p.lead { color: rgba(244, 241, 235, 0.86); }
.beam-strip .eyebrow { color: var(--rds-ochre); }
.beam-strip .btn-ghost { color: var(--rds-bone); border-color: var(--rds-bone); }
.beam-strip .btn-ghost:hover { background: var(--rds-bone); color: var(--rds-storm); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--rds-bone-deep);
  padding-block: 48px;
  border-top: 1px solid var(--rds-rule);
  font-size: 14px;
  color: var(--rds-mute);
  font-family: var(--font-ui);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Phone-specific tightening so the nav CTA stays on one line
   without sacrificing the "Free Security Health Check" copy. */
@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .nav .btn-primary {
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    letter-spacing: -0.01em;
    line-height: 1.15;
    white-space: nowrap;
  }
}
