/* ============================================================
   Ron Cantrell Construction — design-build contractor
   Palette: near-black #141414 / RCCI red #e51836 / neutral grays.
   Fonts: Barlow Condensed (headings) + Barlow (body). Full-bleed video hero,
   real project photos, real logo (logo-white.webp / logo.webp).
   ============================================================ */

:root {
  --ink: #141414;          /* near-black (brand base) */
  --ink-2: #232323;        /* slightly lighter charcoal panel */
  --accent: #e51836;       /* RCCI red, sampled from logo rCCI letters */
  --accent-dark: #bf1430;  /* darker hover red */
  --accent-light: #ff6070; /* lighter accent on dark surfaces */
  --text: #1c1c1c;         /* near-black body text */
  --muted: #6b6b6b;        /* neutral gray */
  --line: #e3e3e3;         /* neutral light gray hairline */
  --bg: #ffffff;
  --bg-alt: #f5f5f5;       /* neutral light gray section */
  --white: #ffffff;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.28);

  --ff-display: "Barlow Condensed", "Archivo", system-ui, sans-serif;
  --ff-body: 'Barlow', sans-serif;

  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow-light { color: var(--accent-light); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  color: var(--ink);
}
.section-lede { margin-top: 20px; color: var(--muted); font-size: 1.12rem; max-width: 60ch; }

.arr { display: inline-block; transition: transform .25s ease; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-weight: 700; color: var(--accent);
  font-size: 1rem; margin-top: 28px;
}
.text-link:hover .arr { transform: translateX(5px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 700; font-size: 0.98rem;
  padding: 15px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover .arr { transform: translateX(5px); }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header[data-state="top"] { background: linear-gradient(to bottom, rgba(10,10,10,.55), transparent); }
.site-header[data-state="scrolled"] {
  background: var(--ink);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
  border-bottom-color: rgba(255,255,255,.06);
}
.header-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand-logo {
  display: block;
  width: 160px;
  height: auto;
  object-fit: contain;
}
.brand-logo-footer {
  width: 180px;
}

.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem;
  color: rgba(255,255,255,.88); padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--ff-display); font-weight: 700; color: var(--white); font-size: 0.95rem; white-space: nowrap; }
.header-phone:hover { color: var(--accent-light); }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--white); margin-inline: auto; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--ink); padding: 32px var(--gut);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
}
.mobile-nav[data-open="true"] { transform: translateX(0); visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav nav a {
  font-family: var(--ff-display); font-weight: 700; font-size: 1.6rem; color: var(--white);
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-foot { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.mobile-phone { font-family: var(--ff-display); font-weight: 700; color: var(--white); font-size: 1.2rem; text-align: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(80px, 12vh, 150px); padding-top: calc(var(--header-h) + 40px);
  overflow: hidden; color: var(--white);
}
.hero-media, .quote-media, .cta-media, .events-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; }
/* Respect reduced-motion: drop the video, show the real building photo */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,.25) 100%),
    linear-gradient(to right, rgba(10,10,10,.6), rgba(10,10,10,0) 65%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 800;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.95;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-lede { margin-top: 24px; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 60ch; color: rgba(255,255,255,.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--ff-display); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.78);
}
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; }
.scroll-line { display: block; width: 1px; height: 46px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.scroll-line::after { content: ""; position: absolute; top: -46px; left: 0; width: 100%; height: 46px; background: var(--accent); animation: scrolldown 2.1s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes scrolldown { 0% { top: -46px; } 60%,100% { top: 46px; } }

/* ---------- trust bar ---------- */
.trust { background: var(--ink); color: var(--white); padding-block: clamp(36px, 5vw, 56px); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust .stat { text-align: left; border-left: 3px solid var(--accent); padding-left: 20px; }
.stat-num { display: block; font-family: var(--ff-display); font-weight: 900; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--white); }
.stat-label { display: block; margin-top: 10px; font-size: 0.92rem; color: rgba(255,255,255,.72); }

/* ---------- intro ---------- */
.intro { background: var(--bg); }
.intro-statement {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.28; letter-spacing: -0.015em;
  color: var(--ink); max-width: 22ch; max-width: 24ch;
}
.intro .intro-statement { max-width: 1000px; }

/* ---------- feature (design-build, dark) ---------- */
.feature-dark { background: var(--ink); color: var(--white); }
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature-title { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; color: var(--white); }
.feature-text { margin-top: 22px; color: rgba(255,255,255,.82); font-size: 1.08rem; }

.benefit-list { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.benefit-list li { padding-left: 22px; border-left: 3px solid var(--accent); }
.benefit-h { display: block; font-family: var(--ff-display); font-weight: 700; font-size: 1.12rem; color: var(--white); }
.benefit-p { display: block; margin-top: 6px; color: rgba(255,255,255,.72); font-size: 0.98rem; }
.feature-dark .btn-solid { margin-top: 36px; }

.feature-figure { position: relative; }
.feature-figure img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.figure-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--accent); color: var(--white);
  font-family: var(--ff-display); font-weight: 700; font-size: 0.82rem;
  padding: 9px 16px; border-radius: var(--radius); text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- process ---------- */
.process { background: var(--bg-alt); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 32px; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step:hover::before { transform: scaleX(1); }
.step-num { font-family: var(--ff-display); font-weight: 900; font-size: 3rem; color: var(--line); line-height: 1; }
.step:hover .step-num { color: var(--accent-light); }
.step-title { margin-top: 14px; font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.step p { margin-top: 12px; color: var(--muted); }

/* ---------- markets ---------- */
.markets { background: var(--bg); }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.market-card { background: var(--white); padding: 40px 34px; transition: background .25s ease, color .25s ease; }
.market-card:hover { background: var(--ink); }
.market-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius); background: rgba(224,83,28,.1); color: var(--accent); margin-bottom: 22px; transition: background .25s ease; }
.market-icon svg { width: 28px; height: 28px; }
.market-card:hover .market-icon { background: var(--accent); color: var(--white); }
.market-card h3 { font-size: 1.32rem; font-weight: 800; color: var(--ink); transition: color .25s ease; }
.market-card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; transition: color .25s ease; }
.market-card:hover h3 { color: var(--white); }
.market-card:hover p { color: rgba(255,255,255,.75); }

/* ---------- sector mosaic (projects) ---------- */
.projects { background: var(--ink); padding-block-end: 0; }
.projects .section-title { color: var(--white); }
.projects .eyebrow { color: var(--accent-light); }
.projects .section-lede { color: rgba(255,255,255,.65); }
.projects .section-head { margin-bottom: clamp(32px, 5vw, 56px); }

.sector-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.sector-tile {
  position: relative;
  display: block;
  height: clamp(200px, 26vw, 340px);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.sector-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.52);
}
.sector-tile:hover img {
  transform: scale(1.05);
  filter: brightness(0.38);
}
.sector-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.78) 0%, rgba(10,10,10,.08) 55%, transparent 100%);
  pointer-events: none;
}
.sector-label {
  position: absolute; bottom: 24px; left: 28px; z-index: 2;
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); line-height: 1;
  transition: letter-spacing 0.3s ease;
}
.sector-label::after {
  content: "\00a0\2192";
  opacity: 0;
  display: inline-block;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sector-tile:hover .sector-label { letter-spacing: 0.12em; }
.sector-tile:hover .sector-label::after { opacity: 1; transform: translateX(0); }

/* ---------- quote band ---------- */
.quote-band { position: relative; color: var(--white); padding-block: clamp(96px, 16vw, 200px); overflow: hidden; }
.quote-media img, .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.quote-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,.92), rgba(10,10,10,.62)); }
.quote-content { position: relative; z-index: 2; max-width: 960px; margin: 0; }
.quote-content p { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.22; letter-spacing: -0.015em; }
.quote-content cite { display: block; margin-top: 24px; font-style: normal; color: var(--accent-light); font-family: var(--ff-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 0.82rem; }

/* ---------- team ---------- */
.team { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; border-top: 4px solid var(--accent); }
.team-card h3 { font-size: 1.28rem; font-weight: 800; color: var(--ink); }
.team-role { display: block; margin-top: 4px; font-family: var(--ff-display); font-weight: 600; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: .06em; }
.team-card p { margin-top: 16px; color: var(--muted); font-size: 0.98rem; }

/* ---------- cta band ---------- */
.cta-band { position: relative; color: var(--white); text-align: center; padding-block: clamp(80px, 13vw, 160px); overflow: hidden; }
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,.85), rgba(10,10,10,.9)); }
.cta-content { position: relative; z-index: 2; max-width: 760px; }
.cta-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; }
.cta-lede { margin: 20px auto 0; color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }

/* ---------- contact ---------- */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }

.contact-list { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.contact-item dt { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 0.74rem; color: var(--accent); }
.contact-item dd { margin: 8px 0 0; color: var(--text); font-size: 1.02rem; }
.contact-item dd a:hover { color: var(--accent); }

.contact-map { margin-top: 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(.2); }

.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-family: var(--ff-display); font-weight: 600; font-size: 0.86rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fbfcfd; transition: border-color .2s ease, box-shadow .2s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,83,28,.12); background: var(--white); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 0.95rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #1f8a4c; }
.form-status.err { color: var(--accent-dark); }
.form-fineprint { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.form-fineprint a { color: var(--accent); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: #0e0e0e; color: rgba(255,255,255,.78); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(40px, 6vw, 80px); padding-block: clamp(56px, 7vw, 88px); }
.brand-footer .brand-name, .brand-footer .brand-sub { color: var(--white); }
.brand-footer .brand-sub { color: rgba(255,255,255,.6); }
.footer-tagline { margin-top: 22px; font-family: var(--ff-display); font-weight: 600; color: var(--white); font-size: 1.05rem; max-width: 38ch; }
.footer-addr { margin-top: 12px; font-size: 0.95rem; color: rgba(255,255,255,.6); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-family: var(--ff-display); font-weight: 700; color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.96rem; color: rgba(255,255,255,.7); transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.85rem; color: rgba(255,255,255,.5); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-figure { order: -1; }
  .feature-figure img { max-height: 420px; }
  .step-grid, .market-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .sector-mosaic { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .step-grid, .market-grid, .team-grid, .trust-grid { grid-template-columns: 1fr; }
  .sector-mosaic { grid-template-columns: 1fr; }
  .sector-tile { height: 220px; }
  .contact-list, .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .header-actions .btn-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
