/* =========================================================================
   RICO Engineering Works — Website Stylesheet
   Design tokens extracted from Figma (file dHYb9fZ4W2WpZyX7dyT5Aq)
   Fonts: Manrope (nav/body), Hanken Grotesk (headings/buttons)
   Accent red, near-black text (#1E1E1E), white surfaces, dark CTA bands
   ========================================================================= */

:root {
  --red: #ff0000;
  --red-dark: #d40000;
  --ink: #1e1e1e;
  --ink-soft: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --bg-pink: #fdeff0;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --white: #ffffff;

  --radius-pill: 26px;
  --radius-card: 16px;
  --radius-sm: 10px;

  --maxw: 1280px;
  --gutter: 80px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.10);

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Hanken Grotesk", "Manrope", sans-serif;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }
.accent { color: var(--red); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 14px;
  display: inline-block;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 20px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 22px rgba(255, 0, 0, 0.28); }

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

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }

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

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: 62px;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo .mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--red);
}
.logo .mark span { color: var(--ink); }
.logo .sub {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  line-height: 1.2;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 30px; height: 24px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
  transition: 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(115deg, rgba(10,10,10,0.86) 0%, rgba(20,20,20,0.55) 55%, rgba(255,0,0,0.35) 100%),
              var(--img, #1a1a1a);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: 50%;
  width: 520px; height: 520px;
  transform: translateY(-50%);
  border: 90px solid var(--red);
  border-radius: 50%;
  opacity: 0.85;
  clip-path: inset(0 0 0 40%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p { color: rgba(255,255,255,0.82); max-width: 560px; margin-top: 20px; font-size: 1.15rem; }
.hero .btn-row { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-sm { min-height: 420px; }

/* ---------- trust / logos strip ---------- */
.trust { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trust .label { text-align: center; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.logo-chip {
  height: 44px; min-width: 110px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.05em;
  filter: grayscale(1); opacity: 0.6; transition: 0.2s;
  border: 1px dashed var(--line); border-radius: 8px; padding: 0 16px;
}
.logo-chip:hover { opacity: 1; filter: none; color: var(--ink); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-pink); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- media / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a);
  display: flex; align-items: center; justify-content: center;
}
.media.tall { min-height: 460px; }
.ph {
  /* image placeholder */
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, rgba(255,255,255,0) 12px 24px),
    linear-gradient(135deg, #262626, #3d3d3d);
}
.ph.red { background: linear-gradient(135deg, var(--red), #a30000); color: rgba(255,255,255,0.85); }
.ph.light { background: linear-gradient(135deg, #ececec, #d7d7d7); color: #8a8a8a; }

/* ---------- facts bar ---------- */
.facts { background: var(--dark); color: var(--white); }
.facts .grid-4 { gap: 0; }
.fact { text-align: center; padding: 24px; border-right: 1px solid rgba(255,255,255,0.12); }
.fact:last-child { border-right: 0; }
.fact .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.5rem); color: var(--red); }
.fact .num .accent { color: var(--red); }
.fact .lbl { color: #a9a9ad; font-size: 0.95rem; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; left: -120px; bottom: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 70px solid rgba(255,0,0,0.6);
  clip-path: inset(0 40% 0 0);
}
.cta h2 { color: var(--white); position: relative; }
.cta p { color: rgba(255,255,255,0.75); position: relative; margin: 16px auto 30px; max-width: 560px; }
.cta .btn-row { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* light CTA variant ("Let's Protect Your Space") */
.cta-light { background: var(--white); }
.cta-light::before { display: none; }
.cta-light h2 { color: var(--ink); }
.cta-light p { color: var(--ink-soft); }
.cta-light .textlink { color: var(--ink); font-weight: 600; font-family: var(--font-head); }
.cta-light .textlink:hover { color: var(--red); }

/* ---------- band variations ---------- */
.band-alt { background: var(--bg-alt); }
.band-pink { background: var(--bg-pink); }

/* ---------- steps / timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.tl-item .yr { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--red); }
.tl-item h3 { margin-bottom: 6px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member .avatar { aspect-ratio: 3/4; border-radius: var(--radius-card); overflow: hidden; margin-bottom: 14px; }
.member h3 { font-size: 1.1rem; }
.member .role { color: var(--red); font-size: 0.9rem; font-weight: 600; }

/* ---------- projects gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, #ececec, #d7d7d7); }
.tile .ph, .tile img { transition: transform 0.4s ease; }
.tile:hover .ph, .tile:hover img { transform: scale(1.06); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px; color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--font-head); font-weight: 700;
}
.tile .cap small { display: block; font-weight: 500; color: rgba(255,255,255,0.8); font-size: 0.8rem; }
.tile.wide { grid-column: span 2; aspect-ratio: 8/3; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--white); transition: border 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { min-height: 130px; resize: vertical; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-row .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-pink); color: var(--red); display: flex; align-items: center; justify-content: center; }
.info-row h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 2px; }
.info-row p { font-size: 0.95rem; }
.map { border-radius: var(--radius-card); overflow: hidden; min-height: 260px; margin-top: 28px; }

/* ---------- list w/ check ---------- */
.checklist li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------- quote ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.3; color: var(--ink);
}
.quote cite { display: block; margin-top: 20px; color: var(--muted); font-style: normal; font-size: 0.95rem; }

/* ---------- footer (dark) ---------- */
.footer { background: var(--dark); color: #cfcfcf; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer .logo .mark span { color: var(--white); }
.footer .logo .sub { color: #9a9a9a; border-left-color: rgba(255,255,255,0.2); }
.footer .col h5 { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8c8c8c; margin-bottom: 16px; }
.footer .col a { display: block; color: #cfcfcf; font-size: 0.95rem; margin-bottom: 10px; transition: color 0.15s; }
.footer .col a:hover { color: var(--red); }
.footer .brand p { font-size: 0.92rem; margin-top: 14px; max-width: 260px; color: #9a9a9a; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px;
  color: #8c8c8c; font-size: 0.88rem;
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom .links a:hover { color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer .brand { grid-column: 1 / -1; margin-bottom: 12px; }
}
@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 62px 0 auto 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 10px 22px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform 0.3s ease; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .split, .contact-grid, .gallery, .team-grid { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .fact:last-child { border-bottom: 0; }
  .tile.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .hero::after { width: 320px; height: 320px; right: -120px; border-width: 60px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
