/* ============================================================
   Columbia Labor Co – Public Homepage Styles
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --earth: #2C1810;
  --wheat: #D4A853;
  --sage: #5B7553;
  --sky: #7BA7BC;
  --cream: #FAF6F0;
  --dust: #E8DFD0;
  --clay: #A0522D;
  --charcoal: #1A1A1A;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Section Utility ---------- */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  color: var(--earth);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #666;
  max-width: 600px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.section-pad {
  padding: 5rem 2rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

/* ===========================
   4.1  NAV
   =========================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,168,83,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--wheat);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--wheat);
}

.nav-links .nav-cta {
  background: var(--wheat);
  color: var(--earth);
  padding: 0.5rem 1.15rem;
  border-radius: 4px;
  font-weight: 700;
}

.nav-links .nav-cta:hover { opacity: 0.9; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wheat);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(26,26,26,0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--wheat); }

/* ===========================
   4.2  HERO
   =========================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(44,24,16,0.88) 0%, rgba(44,24,16,0.55) 50%, rgba(91,117,83,0.4) 100%),
    url('/static/images/crew-group.jpg') center/cover no-repeat;
}

/* Grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  padding: 0 2rem;
  margin: 0 auto 0 8%;
  animation: fadeUp 0.9s ease-out both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(212,168,83,0.45);
  color: var(--wheat);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero h1 .accent { color: var(--wheat); }

.hero-text {
  color: rgba(255,255,255,0.78);
  font-size: 1.08rem;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}

.hero-stat strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--wheat);
}

.hero-stat span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-wheat {
  display: inline-block;
  background: var(--wheat);
  color: var(--earth);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-wheat:hover { opacity: 0.9; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover {
  border-color: var(--wheat);
  color: var(--wheat);
}

/* ===========================
   4.3  TRUST STRIP
   =========================== */
.trust-strip {
  background: var(--earth);
  border-top: 3px solid var(--wheat);
  padding: 1.1rem 2rem;
}

.trust-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}

.trust-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
}

/* ===========================
   4.4  ABOUT
   =========================== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.about-photo {
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: #555;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-check svg {
  width: 13px;
  height: 13px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===========================
   4.5  SERVICES
   =========================== */
.services {
  background: var(--cream);
}

.services-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.services-header .section-subtitle { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0;
  height: 3px;
  background: var(--wheat);
  transition: width 0.3s, left 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44,24,16,0.08);
}

.service-card:hover::before {
  width: 100%;
  left: 0;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sage), #6d8d63);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--earth);
}

.service-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
}

/* ===========================
   4.6  GALLERY / IN THE FIELD
   =========================== */
.gallery {
  background: var(--earth);
  color: var(--white);
}

.gallery .section-label { color: var(--wheat); }
.gallery .section-title { color: var(--white); }

.gallery-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.gallery-header .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item:first-child { grid-row: 1 / 3; }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===========================
   4.7  PROCESS / HOW IT WORKS
   =========================== */
.process {
  background: var(--white);
}

.process-header {
  text-align: center;
  margin-bottom: 3rem;
}

.process-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  position: relative;
}

/* Connecting line */
.process-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--dust), var(--dust), transparent);
  z-index: 0;
}

.process-step {
  flex: 1;
  max-width: 220px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--wheat);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--earth);
}

.process-step h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--earth);
}

.process-step p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.55;
}

/* ===========================
   4.8  COVERAGE
   =========================== */
.coverage {
  background: var(--cream);
}

.coverage-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.coverage-header .section-subtitle { margin: 0 auto; }

.coverage-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.map-wrap {
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: 12px;
  padding: 1.5rem;
}

.map-wrap svg { width: 100%; height: auto; }

@keyframes pulse-ring {
  0% { r: 8; opacity: 0.45; }
  100% { r: 18; opacity: 0; }
}

.city-list { display: flex; flex-direction: column; gap: 0.8rem; }

.city-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: 8px;
  transition: transform 0.2s;
}

.city-card:hover { transform: translateX(4px); }

.city-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.city-dot.wheat { background: var(--wheat); }
.city-dot.sage  { background: var(--sage);  }

.city-card strong {
  font-size: 0.92rem;
  color: var(--earth);
  display: block;
}

.city-card span {
  font-size: 0.8rem;
  color: #888;
}

/* ===========================
   4.9  INVOICING
   =========================== */
.invoicing {
  background: var(--white);
}

.invoicing-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.invoicing-header .section-subtitle { margin: 0 auto; }

.invoice-demo {
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--dust);
  border-radius: 10px;
  overflow: hidden;
}

.invoice-demo-header {
  background: var(--earth);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-demo-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
}

.invoice-sample-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  color: rgba(255,255,255,0.65);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  padding: 0.9rem 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--dust);
}

.invoice-table td {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--dust);
}

.invoice-table td:last-child {
  font-weight: 600;
  color: var(--earth);
}

.invoice-total {
  border-top: 3px solid var(--wheat);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--earth);
}

.invoice-total span:last-child {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
}

/* ===========================
   4.10  CONTACT CTA
   =========================== */
.contact {
  background: var(--earth);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.08), transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.contact .section-label { color: var(--wheat); }
.contact .section-title { color: var(--white); }
.contact .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.contact-item {
  text-align: center;
}

.contact-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--wheat);
}

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

.contact-cta { margin-top: 0.5rem; }

/* ===========================
   4.11  FOOTER
   =========================== */
.site-footer {
  background: #150D08;
  text-align: center;
  padding: 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   4.12  STICKY MOBILE CTA
   =========================== */
.mobile-cta {
  display: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-height: 400px; }
  .about-text { padding: 3rem 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-row: auto; }
  .coverage-grid { grid-template-columns: 1fr; }
  .process-row { gap: 1.5rem; }
  .process-row::before { left: 10%; right: 10%; }
}

/* Mobile */
@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner { margin: 0 auto; padding: 0 1.5rem; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .hero-stats { gap: 1.5rem; }
  .hero-stat strong { font-size: 1.2rem; }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .about-text { padding: 2.5rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item { height: 220px; }
  .gallery-item:first-child { grid-row: auto; }

  .process-row {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .process-row::before { display: none; }
  .process-step {
    max-width: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  .step-num {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

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

  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .invoice-table th, .invoice-table td { padding: 0.65rem 0.9rem; font-size: 0.82rem; }

  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: rgba(26,26,26,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 2px solid var(--wheat);
    padding: 0.7rem 1rem;
    text-align: center;
  }

  .mobile-cta a {
    display: block;
    background: var(--wheat);
    color: var(--earth);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem;
    border-radius: 6px;
  }

  /* Extra bottom padding so footer isn't hidden behind sticky CTA */
  .site-footer { padding-bottom: 5rem; }
}

/* Small phone */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.9rem; }
  .nav-inner { padding: 0 1rem; height: 56px; }
  .nav-logo { font-size: 1rem; }
  .section-pad { padding: 3.5rem 1.2rem; }
}
