/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #050508;         /* near-black */
  --color-bg-soft: #050508;
  --color-primary: #ffffff;    /* white, to match logo */
  --color-primary-soft: #e5e5e5;
  --color-text: #f9fafb;
  --color-text-muted: #a1a1aa;
  --color-card: #0b0b0f;
  --color-border: #27272a;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.7);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111111, #050508 55%, #000000 100%);
  color: var(--color-text);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  padding-top: 120px; /* space for centered header */
}

/* Header / nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(63, 63, 70, 0.6);
  padding: 0.75rem 0 0.5rem;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Brand / logo */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.35rem;
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: contain;
  background: #000000;
  border: 2px solid var(--color-primary);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
/* Nav: Anchor icon should match other menu item height */
.main-nav .nav-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* prevents extra vertical space */
}

.main-nav .nav-anchor img {
  height: 1em;      /* match text height */
  width: auto;
  display: block;
  opacity: 0.95;
}

.main-nav .nav-anchor:hover img {
  opacity: 1;
}

.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  padding-bottom: 0.3rem;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-primary);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1.1rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn.primary,
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: #000000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.btn.primary:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
}

.btn.secondary,
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(82, 82, 91, 0.9);
}

.btn.secondary:hover,
.btn-secondary:hover {
  background: rgba(24, 24, 27, 0.9);
}

/* Hero section (home) */
.hero {
  padding: 3.25rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--color-text-muted);
  max-width: 34rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero slider (images) */
.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top, #18181b, #000000 65%);
  min-height: 260px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(39, 39, 42, 0.9);
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home: services / summary section */
.section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 32rem;
}

/* Cards grid (welcome page “boxes”) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background: radial-gradient(circle at top left, #111111, #050508 80%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid rgba(63, 63, 70, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Reviews slider */
.reviews {
  padding: 2.5rem 0 3.5rem;
}

.reviews-inner {
  background: radial-gradient(circle at top left, #111111, #020202 60%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(63, 63, 70, 0.9);
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.reviews h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.reviews-slider {
  position: relative;
  min-height: 130px;
}

.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-slide.active {
  opacity: 1;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.review-author {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-soft);
  font-size: 0.9rem;
}

/* Page header (inner pages) */
.page-header {
  padding: 3rem 0 2rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
}

.page-header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 34rem;
}
/* Design page header: solid black readable box */
.page-header .container {
  background: #000;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 22px 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

/* Ensure header text is bright */
.page-header .container h1,
.page-header .container p {
  color: #fff;
}

/* Optional: make the paragraph slightly softer than the title */
.page-header .container p {
  opacity: 0.9;
}


/* Projects map layout */
.projects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

#projects-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(39, 39, 42, 1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}

.project-legend {
  background: rgba(10, 10, 12, 0.96);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(63, 63, 70, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  font-size: 0.92rem;
}

.project-legend h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.project-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-legend li + li {
  margin-top: 0.5rem;
}

.project-legend .project-name {
  font-weight: 600;
}

/* Leaflet popup content */
.project-popup h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.project-popup p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.project-popup img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

/* Forms */
.form-card {
  background: radial-gradient(circle at top left, #111111, #050508 80%);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem 1.75rem;
  border: 1px solid rgba(63, 63, 70, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-row-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(82, 82, 91, 0.9);
  background: rgba(10, 10, 12, 0.96);
  color: var(--color-text);
  font-size: 0.88rem;
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-highlight {
  background: radial-gradient(circle at top left, #111111, #020202 60%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(63, 63, 70, 0.9);
  padding: 1.75rem 1.5rem 1.8rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.contact-info-card {
  background: rgba(10, 10, 12, 0.96);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(63, 63, 70, 0.9);
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
  font-size: 0.93rem;
}

.contact-info-card a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* Subcontractors: document cards & W-9 layout */

.document-card {
  background: #f9fafb;
  color: #111827;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.agreement-card {
  margin-top: 2rem;
}

/* W-9 wrapper sits on top of background image */
.w9-wrapper {
  position: relative;
  margin-top: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  min-height: 600px;
}

.w9-bg {
  display: block;
  width: 100%;
}

/* Overlay inputs roughly aligned with W-9 fields */
.w9-input {
  position: absolute;
  font-size: 0.78rem;
  padding: 0.15rem 0.2rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(255, 255, 255, 0.9);
}

/* Adjust these percentages if needed to match your specific W-9 image */
.w9-name {
  top: 13%;
  left: 6%;
  width: 55%;
}

.w9-business {
  top: 16.8%;
  left: 6%;
  width: 55%;
}

.w9-tax-class-group {
  position: absolute;
  top: 20.5%;
  left: 6%;
  width: 80%;
  font-size: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.w9-tax-label {
  font-weight: 600;
  margin-right: 0.4rem;
}

.w9-address {
  top: 26%;
  left: 6%;
  width: 60%;
}

.w9-city {
  top: 29%;
  left: 6%;
  width: 60%;
}

.w9-ssn-1 {
  top: 38%;
  left: 53%;
  width: 8%;
}

.w9-ssn-2 {
  top: 38%;
  left: 62.5%;
  width: 6%;
}

.w9-ssn-3 {
  top: 38%;
  left: 70%;
  width: 10%;
}

.w9-ein {
  top: 38%;
  left: 82%;
  width: 14%;
}

.w9-signature-pad {
  position: absolute;
  left: 6%;
  bottom: 14%;
  width: 40%;
  height: 13%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  overflow: hidden;
}

.w9-date {
  position: absolute;
  right: 6%;
  bottom: 14%;
  width: 20%;
}

/* Signature pads (agreement + W-9) */
.signature-pad-wrapper,
.signature-pad {
  width: 100%;
  height: 120px;
  background: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
}

.signature-pad {
  display: block;
}

/* Status messages on subcontractors page */
#sub-status {
  font-size: 0.84rem;
  margin-top: 0.3rem;
}

#sub-status.success {
  color: #bbf7d0;
}

#sub-status.error {
  color: #fecaca;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(63, 63, 70, 0.9);
  margin-top: 2.5rem;
  padding: 1.25rem 0 1.8rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.95);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .projects-layout,
  .about-grid,
  .contact-layout,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .w9-wrapper {
    min-height: 520px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.98);
    border-bottom: 1px solid rgba(63, 63, 70, 0.9);
    padding: 0.75rem 1rem 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 0.4rem 0;
  }

  .reviews-inner {
    padding: 1.6rem 1.25rem;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 130px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .w9-wrapper {
    min-height: 480px;
  }
}/* Subcontractor landing checklist */

.sub-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-pill {
  flex: 1 1 220px;
  border-radius: 999px;
  border: 1px solid rgba(63, 63, 70, 0.9);
  padding: 0.55rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  background: radial-gradient(circle at top left, #111111, #050508 85%);
}

.summary-pill .summary-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.summary-pill .summary-status {
  font-weight: 600;
  color: var(--color-text-muted);
}

.summary-pill.completed {
  border-color: var(--color-primary);
}

.summary-pill.completed .summary-status {
  color: var(--color-primary-soft);
}

.sub-divider {
  border: none;
  border-top: 1px solid rgba(63, 63, 70, 0.7);
  margin: 0.75rem 0 1.25rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(39, 39, 42, 0.7);
  background: radial-gradient(circle at top left, #111111, #050508 90%);
}

.checklist-main {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1 1 auto;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(82, 82, 91, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #000;
  background: transparent;
}

.check-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.check-title {
  font-size: 0.9rem;
}

.check-title-done {
  color: var(--color-primary-soft);
}

.check-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.check-actions {
  flex: 0 0 auto;
}

.checklist-item.completed {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.checklist-item.completed .check-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 640px) {
  main {
    padding-top: 130px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .w9-wrapper {
    min-height: 480px;
  }
}

/* =========================
   Scroll background sections
   ========================= */
.scroll-hero {
  position: relative;
  width: 100%;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* “scrolling background” feel */
}

/* Background images */
.scroll-hero--floorplan { background-image: url("floorplan.png"); }
.scroll-hero--framing  { background-image: url("framing.png"); }

/* Dark overlay for readability */
.scroll-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.45);
  pointer-events: none;
}

.scroll-hero .container {
  position: relative;
  z-index: 1;
}

.scroll-hero__card {
  max-width: 680px;
  background: rgba(0, 0, 0, 0.28);  /* semi-transparent like hero-panel */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}


.scroll-hero__card h2 {
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.scroll-hero__card p {
  margin: 0 0 1.1rem;
  color: rgba(249, 250, 251, 0.88);
  font-size: 1.02rem;
}
/* Make the overlay card text readable */
.scroll-hero__card h2 {
  color: #f9fafb !important;   /* deep charcoal */
}

.scroll-hero__card p {
  color: rgba(249, 250, 251, 0.88) !important;
}
/* Add a black spacer between the two scroll sections */
.scroll-hero + .scroll-hero {
  border-top: 210px solid #000;  /* adjust height of black gap */
}


/* Mobile: fixed backgrounds can be janky on iOS; disable it */
@media (max-width: 900px) {
  .scroll-hero {
    min-height: 480px;
    padding: 3.25rem 0;
    background-attachment: scroll;
  }

  .scroll-hero__card {
    padding: 1.4rem 1.35rem 1.25rem;
  }
}


/* =========================
   About page patterned background (below header)
   Desktop + Mobile backgrounds
   ========================= */

/* Default (desktop) */
.page-bg{
  position: relative;
  width: 125%;
  background-image: url("anchorbackground_desktop.png"); /* desktop image */
  background-repeat: repeat;
  background-position: center top;
  background-size: 1400px auto; /* adjust pattern scale on desktop was 1400 */
}

/* Dark overlay so text remains readable on the pattern */
.page-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Keep page content above the overlay */
.page-bg > *{
  position: relative;
  z-index: 1;
}

/* Mobile: swap to a cleaner / larger-scale pattern image */
@media (max-width: 768px){
  .page-bg{
    background-image: url("anchorbackground_mobile.png"); /* mobile image */
    background-size: 600px auto; /* larger = less busy on phones */
    background-position: center top;
  }

  .page-bg::before{
    background: rgba(0, 0, 0, 0.45);
  }
}
