/* =========================================================
   COMPANY NAME — General Contracting site
   Design system: "Jobsite Blueprint"
   ========================================================= */

:root {
  --navy: #1B2A3D;
  --navy-2: #24374D;
  --navy-3: #0F1822;
  --slate: #4B5B69;
  --amber: #BD7A2C;
  --amber-2: #D89344;
  --parchment: #F3EEE2;
  --parchment-2: #EAE1CC;
  --grey: #8B8F94;
  --ink: #211D1A;
  --white: #FFFFFF;
  --ok-green: #4F7A5B;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  line-height: 1.12;
  color: var(--navy-3);
}

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Tick-mark rule (tape-measure divider) ---------- */
.tick-rule {
  height: 14px;
  width: 100%;
  background-image:
    repeating-linear-gradient(90deg,
      var(--amber) 0, var(--amber) 1.5px,
      transparent 1.5px, transparent 16px);
  background-position: bottom;
  background-repeat: repeat-x;
  background-size: auto 14px;
  opacity: 0.85;
}
.tick-rule.dark { filter: invert(1) brightness(0.6) sepia(1) hue-rotate(160deg) saturate(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--parchment);
  border-bottom: 3px solid var(--amber);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.brand-name span { color: var(--amber-2); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 4px;
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--parchment);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--amber-2); border-color: var(--amber-2); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--parchment);
  display: none;
}
.header-phone strong { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--parchment);
  color: var(--parchment);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
}

@media (min-width: 900px) {
  .header-phone { display: block; }
}
@media (max-width: 899px) {
  nav.main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--navy-2);
    border-bottom: 3px solid var(--amber);
    display: none;
    padding: 10px 0;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; align-items: stretch; }
  nav.main-nav a { display: block; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
}

/* ---------- Hero (full pages) ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--navy-3);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,24,34,0.78) 0%, rgba(15,24,34,0.55) 45%, rgba(15,24,34,0.92) 100%);
  z-index: -1;
}
.hero-home { min-height: 86vh; display: flex; align-items: center; }
.hero-page { min-height: 42vh; display: flex; align-items: flex-end; padding-top: 100px; }
.hero-inner { padding: 64px 0 72px; width: 100%; }

.corner-frame {
  position: relative;
  padding: 28px 0;
}
.corner-frame::before, .corner-frame::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--amber-2);
}
.corner-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 15ch;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 52ch;
  color: var(--parchment-2);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }
.page-title-only h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* ---------- Stamp badge (signature element) ---------- */
.stamp {
  --size: 152px;
  width: var(--size);
  height: var(--size);
  position: relative;
  flex-shrink: 0;
}
.stamp svg { width: 100%; height: 100%; animation: spin 34s linear infinite; }
.stamp .stamp-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
}
.stamp .stamp-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--amber-2);
  line-height: 1;
}
.stamp .stamp-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--parchment);
  text-transform: uppercase;
  margin-top: 2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Stat / spec strip ---------- */
.spec-strip {
  background: var(--navy-3);
  color: var(--parchment);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.spec-item {
  padding: 30px 22px;
  border-left: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.spec-item:first-child { border-left: none; }
.spec-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--amber-2);
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}
@media (max-width: 760px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(3) { border-left: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-navy { background: var(--navy); color: var(--parchment); }
.section-navy h2 { color: var(--white); }
.section-parchment2 { background: var(--parchment-2); }

.section-head { max-width: 62ch; margin-bottom: 2.6em; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.section-navy .section-head p { color: var(--parchment-2); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--navy-3);
}
.service-card {
  background: var(--navy);
  color: var(--parchment);
  padding: 34px 28px;
  position: relative;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--navy-2); }
.service-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--amber-2);
}
.service-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0.5em 0 0.4em;
}
.service-card p { color: var(--grey); font-size: 0.94rem; margin: 0; }
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-strip figure {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-strip figure:hover img { transform: scale(1.06); }
.photo-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,24,34,0.88), transparent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 26px 12px 10px;
}
@media (max-width: 860px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Two column layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); }
.split-media { position: relative; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Bullet list with amber ticks ---------- */
.tick-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--grey);
}
.tick-list li:last-child { border-bottom: none; }
.tick-list .tick-mark {
  font-family: var(--font-mono);
  color: var(--amber);
  flex-shrink: 0;
}
.tick-list strong { display: block; color: var(--navy-3); }
.section-navy .tick-list strong { color: var(--white); }
.section-navy .tick-list li { border-bottom-color: rgba(255,255,255,0.18); }

/* ---------- Cards (reviews) ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--parchment-2);
  border-top: 3px solid var(--amber);
  padding: 28px 26px;
  border-radius: var(--radius);
}
.stars { font-family: var(--font-mono); color: var(--amber); letter-spacing: 0.1em; margin-bottom: 0.7em; }
.review-quote { color: var(--ink); font-size: 1rem; margin-bottom: 1.2em; }
.review-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; color: var(--navy); }
.review-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--navy);
  color: var(--white);
  padding: 32px 34px;
  border-radius: var(--radius);
  margin-bottom: 3em;
  flex-wrap: wrap;
}
.rating-big { font-family: var(--font-display); font-size: 3.4rem; color: var(--amber-2); line-height: 1; }
.rating-summary .stars { font-size: 1.2rem; margin: 0; }
.rating-sub { font-family: var(--font-mono); font-size: 0.78rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Carousel (Estimates page) ---------- */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 640px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-3);
  border: 3px solid var(--navy);
}
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,24,34,0.92), transparent);
  color: var(--white);
  padding: 46px 30px 20px;
}
.carousel-caption .eyebrow { color: var(--amber-2); margin-bottom: 0.3em; }
.carousel-caption h3 { color: var(--white); font-size: 1.3rem; margin: 0; }

.carousel-controls {
  position: absolute; z-index: 5;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(15,24,34,0.62);
  color: var(--white);
  border: 2px solid var(--amber-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.15s;
}
.carousel-controls:hover { background: var(--amber); }
.carousel-controls.prev { left: 16px; }
.carousel-controls.next { right: 16px; }

.carousel-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 18px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--amber); }

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process-step { position: relative; padding-left: 4px; }
.process-step .step-num {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.6em;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 0.35em; }
.process-step p { color: var(--slate); font-size: 0.94rem; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--parchment-2);
  border-top: 4px solid var(--amber);
  padding: 38px;
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--parchment-2);
  background: var(--parchment);
  border-radius: var(--radius);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.or-divider {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 26px 0;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--parchment-2); }

.contact-info-list { margin-top: 1.4em; }
.contact-info-list li { padding: 14px 0; border-bottom: 1px dashed var(--parchment-2); }
.contact-info-list .ci-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 3px;
}
.contact-info-list .ci-value { font-size: 1.08rem; color: var(--navy-3); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,24,34,0.94), rgba(27,42,61,0.86));
  z-index: -1;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 64px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-banner p { color: var(--parchment-2); margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-3);
  color: var(--grey);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--parchment);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}
.footer-grid a, .footer-grid p { color: var(--grey); font-size: 0.92rem; }
.footer-grid li { margin-bottom: 0.6em; }
.footer-grid a:hover { color: var(--amber-2); }
.footer-brand .brand-name { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.04em; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Background watermark photo (subtle, any inner page) ---------- */
.bg-watermark {
  position: relative;
}
.bg-watermark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--wm-image);
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
.bg-watermark > .wrap { position: relative; z-index: 1; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
