/* Raaschtional Contracting Ltd. — site styles
   Palette: Army Green + Coal + Gold + Grey
   Army Green #48523C · Deep Army #3A4230 · Coal #202321 · Muted Gold #B38A42 · Slate #6D736D · Warm White #ECEAE3
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --army:  #48523C;
  --army-deep: #3A4230;
  --coal:  #202321;
  --gold:  #B38A42;
  --slate: #6D736D;
  --white: #ECEAE3;

  --ink:   #202321;
  --paper: #ECEAE3;
  --panel: #E3E3DE;

  --font-head: 'Oswald', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--army); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--army); }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; }

p { margin: 0 0 1.15em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 1rem;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--army { background: var(--army); color: var(--white); }
.section--coal { background: var(--coal); color: var(--white); }
.section--grey { background: var(--panel); }
.section--army .eyebrow,
.section--coal .eyebrow,
.hero .eyebrow,
.page-head .eyebrow { color: var(--gold); }
.section--army h2, .section--coal h2,
.section--army h3, .section--coal h3 { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--army-deep);
  border-bottom: 3px solid var(--gold);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: 30px;
  width: auto;
  filter: invert(1);
}
.brand span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--white);
  display: none;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

/* ---------- Hero (full-bleed autoplay video) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--army-deep) center / cover no-repeat;
  background-image: url('site-reel-poster.jpg');
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(58,66,48,0.62) 0%, rgba(58,66,48,0.4) 40%, rgba(32,35,33,0.86) 100%);
}
.hero__content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(120px, 22vh, 220px) 24px 96px;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { color: var(--gold); display: block; }
.hero__lead {
  font-size: 1.2rem;
  max-width: 50ch;
  color: rgba(236,234,227,0.88);
}
.hero__rule {
  width: 64px;
  height: 4px;
  background: var(--gold);
  margin: 0 0 28px;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 15px 30px;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--gold); color: var(--coal); border-color: var(--gold); }
.btn--primary:hover { background: var(--coal); color: var(--gold); border-color: var(--gold); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(236,234,227,0.55); }
.btn--ghost:hover { background: var(--gold); color: var(--coal); border-color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Services grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(32,35,33,0.14);
  border-top: 4px solid var(--army);
  padding: 30px 26px;
}
.section--coal .card,
.section--army .card {
  background: rgba(236,234,227,0.06);
  border-color: rgba(236,234,227,0.16);
  border-top-color: var(--gold);
  color: var(--white);
}
.card h3 { color: var(--army); margin-bottom: 0.5em; }
.section--coal .card h3,
.section--army .card h3 { color: #ffffff; }
.card p { margin: 0; font-size: 0.98rem; }

/* ---------- Values / list ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.values li {
  padding-left: 26px;
  position: relative;
  border-bottom: 1px solid rgba(32,35,33,0.14);
  padding-bottom: 14px;
}
.section--army .values li,
.section--coal .values li { border-bottom-color: rgba(236,234,227,0.18); }
.values li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 12px;
  background: var(--gold);
}
.values strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  font-weight: 600;
}

/* ---------- Audience grid (For Builders / For Homeowners) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.audience h3 { color: var(--army); margin-bottom: 0.2em; }
.audience__sub {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 1em;
}
.audience p:last-child { margin-bottom: 0; }

/* ---------- Team grid ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team__member { margin: 0; }
.team__member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%) contrast(1.1);
}
.team__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--army-deep);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: 0.04em;
}
.team__member figcaption {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team__name {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
}
.team__role {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* ---------- Footer brand / tagline ---------- */
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-tagline {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold);
  margin: 0;
}

/* ---------- CHBA member badge ---------- */
.chba-badge {
  display: inline-block;
  flex-shrink: 0;
  background: #ffffff;
  padding: 8px;
  line-height: 0;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(32, 35, 33, 0.25), 0 4px 12px rgba(0, 0, 0, 0.18);
}
.chba-badge img { width: 76px; height: auto; display: block; }
.chba-badge--foot img { width: 64px; }
.site-footer .chba-badge img { height: auto; filter: none; opacity: 1; }
.credential {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.credential p { margin: 0; font-size: 0.95rem; }
.credential--center { justify-content: center; margin-top: 48px; }
.info-list .credential { margin-top: 6px; }

/* ---------- Story (small portrait + text) ---------- */
.story {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.story__portrait {
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.1);
  border-bottom: 4px solid var(--gold);
}
.story__body { flex: 1 1 380px; min-width: 0; }
.story__body h1 { color: var(--army); font-size: clamp(1.9rem, 4vw, 3rem); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.1);
}
.split__body {
  padding: 64px clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Pull quote ---------- */
.quote {
  border-left: 5px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 0 0 1.4em;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: none;
  font-size: 1.5rem;
  line-height: 1.3;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.section--coal .quote cite,
.section--army .quote cite { color: rgba(236,234,227,0.7); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
}
.stat .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: rgba(236,234,227,0.75);
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(32,35,33,0.16);
}
.info-list .k {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--slate);
  margin-bottom: 4px;
}
.info-list .v { font-size: 1.05rem; }
.info-list a { color: var(--army); text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

form .field { margin-bottom: 20px; }
form label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 8px;
  color: var(--army);
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--slate);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
}
form input:focus,
form textarea:focus,
form select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--army-deep);
  color: rgba(236,234,227,0.75);
  padding: 48px 0 40px;
  border-top: 3px solid var(--gold);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer img { height: 26px; filter: invert(1); opacity: 0.9; }
.site-footer .fnav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a {
  color: rgba(236,234,227,0.75);
  text-decoration: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.site-footer a:hover { color: var(--gold); }
.site-footer .fine {
  width: 100%;
  border-top: 1px solid rgba(236,234,227,0.14);
  padding-top: 20px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ---------- Static photo strip ---------- */
.photo-strip img {
  width: 100%;
  height: min(60vh, 460px);
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.1);
}

/* ---------- Photo gallery (bento grid) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 8px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--army-deep);
}
.gallery .feature { grid-column: span 2; grid-row: span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(32,35,33,0.85) 85%);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  border-bottom: 3px solid var(--gold);
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: var(--army);
  color: var(--white);
  padding: 72px 0;
}
.page-head p { max-width: 54ch; color: rgba(236,234,227,0.85); margin: 0; }
.founder-tag {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--gold) !important;
  margin: -0.4em 0 1em !important;
}

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__content { padding: 96px 24px 72px; min-height: 78vh; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { height: 380px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .audience-grid { grid-template-columns: 1fr; gap: 32px; }
  .team { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
  .grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .brand img { height: 26px; }
  .hero__content { min-height: 70vh; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .team { grid-template-columns: 1fr 1fr; }
  .team__avatar { font-size: 2rem; }
  .gallery .feature { grid-column: span 1; grid-row: span 1; }
}

/* ---------- Instagram links ---------- */
.ig-link { display: inline-flex; align-items: center; gap: 8px; }
.ig-link svg { flex-shrink: 0; }
.ig-follow { margin: 26px 0 0; }
.ig-follow .ig-link {
  color: var(--army);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}
.ig-follow .ig-link:hover { color: var(--coal); }

/* ---------- Gallery page + lightbox ---------- */
.gallery-more { text-align: center; margin: 32px 0 0; }
.gallery-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.g-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--army-deep);
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.g-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(32,35,33,0.85) 85%);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  border-bottom: 3px solid var(--gold);
}
dialog.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  color: var(--white);
}
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.lightbox::backdrop { background: rgba(20, 22, 20, 0.94); }
.lb-figure { margin: 0; max-width: min(1100px, 86vw); text-align: center; }
.lb-figure img { max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; }
.lb-cap {
  margin-top: 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.lb-btn {
  position: fixed;
  background: rgba(32, 35, 33, 0.75);
  color: var(--white);
  border: 2px solid var(--gold);
  width: 46px; height: 46px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: var(--gold); color: var(--coal); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) { .gallery-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .gallery-page { grid-template-columns: 1fr; }
  .lb-figure { max-width: 94vw; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ---------- Signature: tape-measure rule ----------
   Tick marks (1/16" short, 1/4" medium, 1" long) along the bottom edge of the
   hero and the top edge of every green band, like a tape laid along a layout line. */
.section--army { position: relative; }
.hero::after,
.section--army::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  pointer-events: none;
  z-index: 2;
  opacity: .8;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 64px) 0 0 / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 32px) 0 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 16px) 0 0 / 100% 7px no-repeat;
}
.section--army::before { top: 0; }
.hero::after { bottom: 0; transform: scaleY(-1); }
@media (max-width: 620px) {
  .hero::after, .section--army::before { height: 14px; opacity: .7; }
}

/* Close the card grid when the last row would leave a gap */
.grid > .card:last-child:nth-child(3n+2) { grid-column: span 2; }
@media (max-width: 900px) {
  .grid > .card:last-child:nth-child(3n+2) { grid-column: auto; }
  .grid > .card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 620px) {
  .grid > .card:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- Contact form status + spam trap ---------- */
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; margin: 0 0 20px; border-left: 4px solid var(--gold); background: var(--panel); font-size: 0.95rem; }
.form-status--ok { border-left-color: var(--army); }
.form-status--err { border-left-color: #8a2d1f; }
