/* ============================================================
   Rogers & Co. — AI & Security Consulting
   Copper-on-black design system
   ============================================================ */

:root {
  --bg: #0b0908;
  --bg-2: #12100e;
  --surface: #171412;
  --surface-2: #1e1a17;
  --line: #2a241f;
  --copper: #b87333;
  --copper-light: #e0a96d;
  --copper-deep: #8c5a2b;
  --copper-glow: rgba(184, 115, 51, 0.28);
  --text: #ede6de;
  --muted: #a89f94;
  --faint: #6f675e;
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--copper); color: #0b0908; }

img { max-width: 100%; display: block; }

a { color: var(--copper-light); text-decoration: none; }
a:hover { color: var(--copper); }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

.copper-text {
  background: linear-gradient(120deg, var(--copper-light) 10%, var(--copper) 45%, var(--copper-light) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-light);
  border: 1px solid var(--line);
  background: rgba(184, 115, 51, 0.07);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px var(--copper);
}

/* ---------- Layout ---------- */
.container { width: min(1120px, 92vw); margin: 0 auto; }

section { padding: clamp(4rem, 9vh, 7rem) 0; position: relative; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { margin-top: 1rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand svg, .brand img { height: 44px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--copper-light);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--copper-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-copper {
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 60%, var(--copper-deep));
  color: #14100c;
}

.btn-copper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--copper-glow);
  color: #14100c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover { border-color: var(--copper); color: var(--copper-light); }

.btn-wa { background: #1faa53; color: #06130a; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(31,170,83,.3); color: #06130a; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 45%, transparent 30%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(860px, 92vw);
  margin: 0 auto;
}

.hero-content .lead { margin: 1.6rem auto 2.4rem; }

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 115, 51, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(184, 115, 51, 0.12);
}

.card h3 { margin: 1.1rem 0 0.6rem; color: var(--text); }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(184, 115, 51, 0.1);
  border: 1px solid rgba(184, 115, 51, 0.25);
  color: var(--copper-light);
}

.card-icon svg { width: 26px; height: 26px; }

.card-link { font-size: 0.92rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.1rem; }

/* feature list rows */
.feature-row {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child { border-bottom: none; }

.feature-row .card-icon { flex-shrink: 0; width: 46px; height: 46px; }

.feature-row h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.feature-row p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  text-align: center;
}

.stat {
  padding: 1.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--copper-light);
  display: block;
}

.stat .label { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid rgba(184, 115, 51, 0.3);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(184, 115, 51, 0.13), transparent 65%),
    var(--surface);
  position: relative;
  overflow: hidden;
}

.cta-band h2 { margin-bottom: 0.9rem; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .hero-ctas { justify-content: center; }
.cta-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--faint); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--muted); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--copper-light); }
.footer-about p { color: var(--muted); font-size: 0.93rem; max-width: 34ch; margin-top: 0.9rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--faint);
  font-size: 0.85rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(76px + clamp(3.5rem, 9vh, 6rem)) 0 clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(184, 115, 51, 0.1), transparent 70%),
    var(--bg);
}

.page-hero .lead { margin: 1.4rem auto 0; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Legal documents ---------- */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h2 {
  font-size: 1.6rem;
  margin: 2.6rem 0 0.9rem;
  color: var(--copper-light);
}
.legal-doc h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 0.98rem; }
.legal-doc p { margin-bottom: 1rem; }
.legal-doc ul, .legal-doc ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-doc li { margin-bottom: 0.5rem; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.legal-doc th, .legal-doc td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
}
.legal-doc th { color: var(--text); background: var(--surface); }
.legal-doc .doc-meta { font-size: 0.85rem; color: var(--faint); margin-bottom: 2rem; }
.legal-doc .todo-note {
  border: 1px dashed rgba(184, 115, 51, 0.5);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--copper-light);
  margin: 1.2rem 0;
}

/* ---------- Misc ---------- */
.check-list { list-style: none; }
.check-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.85rem;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 15px; height: 8px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--copper-light);
  border: 1px solid rgba(184, 115, 51, 0.35);
  border-radius: 100px;
  padding: 0.2rem 0.75rem;
  margin: 0 0.35rem 0.5rem 0;
}

.divider-glow {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--copper-deep), transparent);
  opacity: 0.6;
  margin: 0 auto;
  width: min(680px, 80vw);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1.05rem; }
  .nav-toggle { display: block; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
