/* RR Services — Wyoming roofing network */
:root {
  --ink: #0e1419;
  --slate: #1c2834;
  --slate-mid: #2d3d4d;
  --mist: #e8e4dc;
  --cream: #f6f3ed;
  --copper: #c17f3a;
  --copper-dim: #9a6329;
  --sky: #5a8fa3;
  --sky-dim: #3d6b7d;
  --white: #faf8f5;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mist);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--mist);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--mist) 8%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(145deg, var(--copper), var(--copper-dim));
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: color-mix(in srgb, var(--mist) 75%, transparent);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--cream);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--copper), var(--copper-dim));
  color: var(--ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--copper) 35%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid color-mix(in srgb, var(--mist) 25%, transparent);
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--cream);
}

.btn-header {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  background: color-mix(in srgb, var(--slate) 100%, transparent);
  color: var(--cream);
  border: 1px solid color-mix(in srgb, var(--mist) 12%, transparent);
}

.btn-header:hover {
  border-color: var(--copper);
  color: var(--cream);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(4rem, 12vw, 8rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, color-mix(in srgb, var(--sky) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, color-mix(in srgb, var(--copper) 12%, transparent), transparent 50%),
    linear-gradient(165deg, var(--slate) 0%, var(--ink) 45%, #0a0e12 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 52px,
    color-mix(in srgb, var(--mist) 3%, transparent) 52px,
    color-mix(in srgb, var(--mist) 3%, transparent) 53px
  );
  opacity: 0.5;
  mask-image: linear-gradient(180deg, black 30%, transparent 95%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--cream);
  margin: 0 0 1.25rem;
}

.hero-title em {
  font-style: normal;
  color: var(--copper);
}

.hero-lede {
  max-width: 38ch;
  margin: 0 0 2rem;
  color: color-mix(in srgb, var(--mist) 88%, transparent);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  padding: 1.75rem;
  background: color-mix(in srgb, var(--slate) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--mist) 10%, transparent);
  border-radius: 2px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--mist) 8%, transparent);
}

.stat:last-of-type {
  margin-bottom: 1.25rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--mist) 70%, transparent);
}

.panel-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--mist) 75%, transparent);
}

/* Reveal animations */
.reveal {
  animation: fadeUp 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: color-mix(in srgb, var(--slate) 40%, var(--ink));
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

.section-lede {
  margin: 0;
  color: color-mix(in srgb, var(--mist) 82%, transparent);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem 1.35rem;
  background: var(--ink);
  border: 1px solid color-mix(in srgb, var(--mist) 8%, transparent);
  border-radius: 2px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.feature-card:hover {
  border-color: color-mix(in srgb, var(--copper) 45%, transparent);
  transform: translateY(-2px);
}

.feature-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--sky);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--mist) 78%, transparent);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 1.5rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.35rem;
  color: color-mix(in srgb, var(--mist) 85%, transparent);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--copper) 25%, var(--slate));
  color: var(--copper);
  border-radius: 2px;
}

.steps strong {
  color: var(--cream);
}

.split-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--slate) 90%, transparent), var(--ink));
  border: 1px solid color-mix(in srgb, var(--mist) 10%, transparent);
  border-radius: 2px;
}

.diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
}

.diagram-node {
  padding: 0.5rem 0.85rem;
  background: color-mix(in srgb, var(--mist) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--mist) 15%, transparent);
  color: var(--cream);
}

.diagram-hub {
  background: linear-gradient(180deg, color-mix(in srgb, var(--copper) 35%, var(--slate)), var(--slate-mid));
  border-color: color-mix(in srgb, var(--copper) 40%, transparent);
  color: var(--cream);
}

.diagram-connector {
  color: var(--sky);
  opacity: 0.8;
}

.diagram-caption {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--mist) 65%, transparent);
}

/* Copper band */
.section-copper {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--copper-dim) 18%, var(--ink)) 0%,
    color-mix(in srgb, var(--slate) 50%, var(--ink)) 100%
  );
  border-block: 1px solid color-mix(in srgb, var(--copper) 22%, transparent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

.two-col p {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--mist) 88%, transparent);
  font-size: 0.98rem;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--mist) 85%, transparent);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--copper);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Quote */
.cta-block {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.cta-block blockquote {
  margin: 0;
}

.cta-block p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  color: color-mix(in srgb, var(--cream) 92%, transparent);
  letter-spacing: -0.02em;
}

/* Contact */
.contact {
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 1rem;
}

.contact-copy > p {
  margin: 0 0 1.5rem;
  color: color-mix(in srgb, var(--mist) 82%, transparent);
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-style: normal;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--mist) 75%, transparent);
}

.contact-meta a {
  color: var(--copper);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: color-mix(in srgb, var(--slate) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--mist) 10%, transparent);
  border-radius: 2px;
}

.contact-form label span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mist) 65%, transparent);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid color-mix(in srgb, var(--mist) 15%, transparent);
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--copper) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 18%, transparent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  margin: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--mist) 50%, transparent);
}

/* Footer */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--mist) 8%, transparent);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--mist) 70%, transparent);
}

.footer-brand .logo-mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--mist) 45%, transparent);
}

@media (max-width: 720px) {
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--mist) 8%, transparent);
  }

  .btn-header {
    margin-left: auto;
  }
}
