/* ============================================================
   4x8 Construction — site styles
   Direction: Ritz Builders' clean editorial look (serif display,
   cream/charcoal, whitespace) × Element Homes' straight-to-the-
   point process sections. 4x8 brand blue replaces Ritz bronze.
   No build step; served as-is.
   ============================================================ */

:root {
  --blue:      #1a72b8;
  --blue-deep: #11507e;
  --green:     #5ea23a;
  --charcoal:  #191f24;   /* dark sections — charcoal with a cold cast */
  --charcoal-2:#10151a;
  --ink:       #22282e;
  --muted:     #6b7480;
  --cream:     #f4f1ea;   /* Ritz-style card / section fill */
  --paper:     #faf9f6;
  --white:     #ffffff;
  --line:      #e5e1d8;
  --max:       1200px;
  --font-serif:"Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-deep); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: .2px;
}

h1 { font-size: clamp(38px, 5.2vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 23px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

/* small uppercase sans label above headings — Element-style directness */
.kicker {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.kicker::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--green);
  margin-top: 10px;
}

.center .kicker::after { margin-left: auto; margin-right: auto; }

.lede { font-size: 18px; color: var(--muted); max-width: 700px; margin-top: 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--blue); color: var(--white); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }

.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--cream); color: var(--charcoal); }

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

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

/* text link with arrow — Ritz "Explore →" pattern */
.arrow-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.arrow-link::after { content: " →"; }
.arrow-link:hover { color: var(--blue-deep); }

/* ---------- header / nav ---------- */

.topbar {
  background: var(--charcoal-2);
  color: #9aa7b2;
  font-size: 12.5px;
  letter-spacing: .6px;
  padding: 8px 0;
}

.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cdd8e2; font-weight: 500; }
.topbar a:hover { color: var(--white); }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav .brand img { height: 54px; width: auto; }

.nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; }

.nav ul a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav ul a:hover { color: var(--blue); }
.nav ul a.active { color: var(--blue); border-bottom-color: var(--green); }

.nav .cta {
  margin-left: 8px;
  padding: 12px 24px;
  font-size: 12.5px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--ink);
  margin: 6px 0; transition: transform .2s, opacity .2s;
}

/* ---------- hero (full-bleed, Ritz-style) ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 120px 24px;
  background:
    linear-gradient(rgba(13, 18, 24, .52), rgba(13, 18, 24, .62)),
    url("../assets/photos/foundation-excavation-aerial.jpg");
  background-size: cover;
  background-position: center;
}

.hero .inner { max-width: 900px; }

.hero .kicker { color: #cdd8e2; }
.hero .kicker::after { margin-left: auto; margin-right: auto; background: var(--green); }

.hero h1 { color: var(--white); font-weight: 500; margin-bottom: 22px; }

.hero p.sub {
  font-size: 18.5px;
  color: rgba(255, 255, 255, .82);
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero .strip {
  margin-top: 56px;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.hero .strip b { color: rgba(255, 255, 255, .9); font-weight: 600; }

/* interior page hero */
.hero-lite {
  background:
    linear-gradient(rgba(13, 18, 24, .6), rgba(13, 18, 24, .68)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 18px, rgba(0,0,0,.05) 18px 36px),
    linear-gradient(160deg, #2a3b4d, #1a2733 60%, #223529 130%);
  color: var(--white);
  text-align: center;
  padding: 96px 24px 88px;
}

.hero-lite .kicker { color: #cdd8e2; }
.hero-lite .kicker::after { margin-left: auto; margin-right: auto; }
.hero-lite h1 { color: var(--white); margin-bottom: 14px; }
.hero-lite p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 720px; margin: 0 auto; }

/* ---------- photo placeholders ----------
   Swap for real photos: put an <img> inside the same <figure>. */

.ph {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 16px, rgba(0,0,0,.05) 16px 32px),
    linear-gradient(155deg, #33404d, #232d38 60%, #2c3a2e 130%);
  display: grid;
  place-items: center;
}

.ph .tag {
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 18px;
  border: 1px dashed rgba(255, 255, 255, .38);
}

.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- offering cards (Ritz cream cards) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }

.card {
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.card figure.ph { min-height: 240px; }

.card .body { padding: 30px 30px 32px; flex: 1; display: flex; flex-direction: column; }

.card h3 { margin-bottom: 10px; }

.card .role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card .arrow-link { margin-top: 20px; }

/* ---------- process (Element-style, numbered & blunt) ---------- */

.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-left: 1px solid var(--line); }

.step {
  counter-increment: step;
  border-right: 1px solid var(--line);
  padding: 8px 28px 0;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-serif);
  font-size: 52px;
  color: var(--blue);
  opacity: .85;
  line-height: 1;
  margin-bottom: 18px;
}

.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* vertical detailed process (custom-homes page) */
.process-v { margin-top: 50px; }

.process-v .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.process-v .row:last-child { border-bottom: 0; }

.process-v .num {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--blue);
  opacity: .85;
}

.process-v h3 { margin-bottom: 8px; }
.process-v p { color: var(--muted); max-width: 760px; }

/* ---------- split sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > figure { order: 2; }
.split figure.ph { min-height: 440px; }

.checks { list-style: none; margin: 26px 0 30px; }

.checks li { padding: 9px 0 9px 34px; position: relative; font-size: 16.5px; }

.checks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.checks li strong { color: var(--ink); }

/* ---------- why-choose fact list (Element-style) ---------- */

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 54px; border-top: 1px solid rgba(255,255,255,.14); }

.fact { padding: 30px 34px 30px 0; border-bottom: 1px solid rgba(255,255,255,.14); }

.fact h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.fact p { color: rgba(255,255,255,.66); font-size: 15px; }

.dark { background: var(--charcoal); color: var(--white); }
.dark h2 { color: var(--white); }
.dark .kicker { color: #9fb4c6; }
.dark .lede { color: rgba(255,255,255,.7); }

/* ---------- divisions ---------- */

.divisions { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 54px; }

.division {
  background: var(--cream);
  padding: 44px 40px;
  border-top: 3px solid var(--green);
}

.division .brand-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 12px;
}

.division .role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
}

.division p { color: var(--muted); font-size: 15.5px; }

.divisions-note {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- projects (editorial) ---------- */

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }

.project { background: var(--white); border: 1px solid var(--line); }
.project .ph { min-height: 280px; }

.project .meta { padding: 22px 24px 26px; }
.project .meta h3 { font-size: 21px; margin-bottom: 4px; }
.project .meta span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* featured (large, alternating) */
.feature { display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; margin-top: 60px; align-items: stretch; }
.feature.rev > figure { order: 2; }
.feature figure.ph { min-height: 460px; }

.feature .panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature .panel h3 { font-size: 26px; margin-bottom: 10px; }
.feature .panel p { color: var(--muted); margin-bottom: 20px; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; margin-top: 54px; }

.stat b {
  display: block;
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 500;
  color: var(--blue);
  line-height: 1.1;
}

.stat span {
  font-size: 12.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    linear-gradient(rgba(13, 18, 24, .78), rgba(13, 18, 24, .82)),
    linear-gradient(160deg, #2a3b4d, #1a2733 60%, #223529 130%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 34px; font-size: 18px; }

/* ---------- service area ---------- */

.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.areas span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }

.info-card { background: var(--charcoal); color: #c3ccd4; padding: 44px 40px; }

.info-card h3 { color: var(--white); font-size: 26px; margin-bottom: 24px; }
.info-card p { margin-bottom: 20px; font-size: 15.5px; }
.info-card b {
  color: var(--white);
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.info-card a { color: #8fd05f; font-weight: 600; }
.info-card a:hover { color: #b4e392; }

form.contact { background: var(--white); border: 1px solid var(--line); padding: 44px 40px; }

.field { margin-bottom: 20px; }
.field.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0; }

form.contact label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}

form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  outline: none;
  transition: border-color .15s;
}

form.contact input:focus,
form.contact select:focus,
form.contact textarea:focus { border-color: var(--blue); background: var(--white); }

form.contact textarea { resize: vertical; min-height: 130px; }

/* ---------- footer ---------- */

footer.site { background: var(--charcoal-2); color: #8d99a5; padding: 72px 0 0; font-size: 15px; }

.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; }

.foot-grid h4 {
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid a { color: #8d99a5; }
.foot-grid a:hover { color: var(--white); }

.foot-brand img { height: 62px; width: auto; margin-bottom: 16px; }
.foot-brand p { max-width: 300px; font-size: 14.5px; }

.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; letter-spacing: .4px; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- utility ---------- */

.bg-cream { background: var(--cream); }
.center { text-align: center; }
.mt-50 { margin-top: 50px; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .split, .contact-grid, .feature, .feature.rev { grid-template-columns: 1fr; }
  .split.rev > figure, .feature.rev > figure { order: 0; }
  .cards, .projects { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; border-left: 0; }
  .step { border-right: 0; border-left: 1px solid var(--line); margin-bottom: 36px; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { min-height: 74vh; }
  .cards, .projects, .stats, .process, .divisions { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .field.grid2 { grid-template-columns: 1fr; }
  .process-v .row { grid-template-columns: 64px 1fr; }
  .process-v .num { font-size: 40px; }
}

@media (max-width: 1080px) {
  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 26px rgba(16, 21, 26, .12);
  }

  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 13px 26px; border-bottom: 0; }
  .nav .cta { margin: 12px 26px 0; text-align: center; }
  .nav-toggle { display: block; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
