/*
Theme Name: Red Moon Builders Editable
Theme URI: https://redmoonbuilders.com
Author: Red Moon Builders
Description: Custom portfolio theme for Red Moon Builders LLC in the Rio Grande Valley.
Version: 1.1.0
Text Domain: red-moon-builders
*/

:root {
  --rmb-red: #e21d2d;
  --rmb-red-dark: #a90e1a;
  --rmb-gold: #f2bd2e;
  --rmb-ink: #0a0a0d;
  --rmb-panel: #131419;
  --rmb-muted: #a7a9b1;
  --rmb-line: rgba(255, 255, 255, 0.11);
  --rmb-white: #fff;
  --rmb-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rmb-ink);
  color: var(--rmb-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(calc(100% - 40px), var(--rmb-max)); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(7, 7, 10, 0.9);
  border-bottom: 1px solid var(--rmb-line);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 205px; max-height: 64px; object-fit: contain; }
.primary-nav ul { display: flex; align-items: center; gap: 18px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: #e7e7ea; font-size: .91rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--rmb-red); }
.header-call { padding: 11px 18px; border: 1px solid rgba(226,29,45,.6); border-radius: 999px; font-weight: 800; white-space: nowrap; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 1.6rem; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #060609 0%, #060609 38%, rgba(6,6,9,.96) 48%, rgba(6,6,9,.62) 59%, rgba(6,6,9,.12) 78%), linear-gradient(0deg, rgba(6,6,9,.55), transparent 45%);
}
.hero-content { padding-top: 120px; padding-bottom: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--rmb-red); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero h1 { max-width: 680px; margin: 22px 0 20px; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--rmb-red); }
.hero p { max-width: 590px; margin: 0 0 34px; color: #d3d3d8; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 6px; background: var(--rmb-red); color: #fff; font-weight: 900; letter-spacing: .02em; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #f02839; }
.button-outline { border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.button-outline:hover { background: rgba(255,255,255,.13); }

.trust-strip { position: relative; z-index: 3; margin-top: -34px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; color: #17171a; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.33); }
.trust-item { padding: 26px 30px; border-right: 1px solid #e6e6e8; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 2px; font-size: 1.05rem; }
.trust-item span { color: #676871; font-size: .9rem; }

.section { padding: 104px 0; }
.section-soft { background: #f4f4f5; color: #17171a; }
.section-dark { background: var(--rmb-panel); }
.section-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: end; margin-bottom: 50px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: #666872; font-size: 1.05rem; }
.section-dark .section-heading p { color: var(--rmb-muted); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 285px; padding: 34px; border: 1px solid #dedee1; border-radius: 10px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(15,15,18,.1); }
.service-number { color: var(--rmb-red); font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 42px 0 12px; font-size: 1.45rem; }
.service-card p { margin: 0; color: #696a72; }

.project-feature { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 520px; border: 1px solid var(--rmb-line); border-radius: 12px; overflow: hidden; }
.project-image { min-height: 460px; background-position: center; background-size: cover; }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: 52px; background: #0d0e12; }
.project-copy h3 { margin: 14px 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; }
.project-copy p { color: var(--rmb-muted); }
.text-link { color: var(--rmb-red); font-weight: 900; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: process; }
.process-step { position: relative; padding: 32px 24px; border-top: 2px solid var(--rmb-red); background: #fff; color: #17171a; }
.process-step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 28px; color: var(--rmb-red); font-weight: 900; }
.process-step h3 { margin: 0 0 10px; }
.process-step p { margin: 0; color: #696a72; font-size: .93rem; }

.cta { padding: 76px 0; background: var(--rmb-red); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
.cta .button { background: #fff; color: #16161a; white-space: nowrap; }

.content-page { min-height: 60vh; padding: 150px 0 90px; background: #f5f5f6; color: #17171a; }
.content-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.content-page a { color: var(--rmb-red-dark); text-decoration: underline; }

.site-footer { padding: 64px 0 28px; background: #070709; border-top: 1px solid var(--rmb-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 60px; }
.footer-logo { width: 215px; margin-bottom: 20px; }
.site-footer h3 { margin: 0 0 18px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p, .site-footer li { color: var(--rmb-muted); }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--rmb-line); color: #767780; font-size: .82rem; }

@media (min-width: 901px) and (max-width: 1100px) { .header-call { display: none; } }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .header-call { display: none; }
  .primary-nav { display: none; position: absolute; top: 82px; inset-inline: 0; padding: 24px; background: #0a0a0d; border-top: 1px solid var(--rmb-line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 700px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, #060609 0%, #060609 46%, rgba(6,6,9,.91) 68%, rgba(6,6,9,.46)), linear-gradient(0deg, rgba(6,6,9,.65), transparent); }
  .trust-grid, .service-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid #e6e6e8; }
  .section-heading, .project-feature, .footer-grid { grid-template-columns: 1fr; }
  .project-copy { padding: 36px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wrap { width: min(calc(100% - 28px), var(--rmb-max)); }
  .brand img { width: 168px; }
  .hero { min-height: 720px; }
  .hero h1 { font-size: 3rem; }
  .hero-content { padding-top: 130px; }
  .section { padding: 76px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}
