/* ============================================================
   SubForge — Subcontractor Management Platform
   Stylesheet : style.css
   Theme      : Forest Green & Cream — Earthy / Natural / Industrial
   ============================================================ */

/* ──────────── RESET & DESIGN TOKENS ──────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:        #1a3a2a;   /* Primary dark  — deep forest green  */
  --forest-mid:    #254d38;   /* Mid tone      — mossy canopy        */
  --forest-light:  #2e6147;   /* Light accent  — fern green          */
  --cream:         #f2ead8;   /* Main accent   — aged parchment      */
  --cream-light:   #fdf8ef;   /* Hover cream   — raw linen           */
  --amber:         #b5651d;   /* Secondary     — timber / rust       */
  --amber-light:   #d4782a;   /* Hover amber                         */
  --white:         #ffffff;
  --off-white:     #f7f3ea;   /* Concrete cream                      */
  --bark:          #7a6a55;   /* Muted         — weathered bark      */
  --text:          #1e2d22;
  --light-bg:      #eef4ed;
  --border:        #c8d9c4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ──────────── NAVIGATION ──────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(26, 58, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 234, 216, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--cream);
  display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.nav-logo-mark span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 16px;
  color: var(--forest); letter-spacing: -1px;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--white); letter-spacing: 2px;
}

.nav-logo-text em { color: var(--cream); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 14px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.7); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }

.nav-cta {
  background: var(--cream) !important;
  color: var(--forest) !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--cream-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--forest); padding: 24px 32px; z-index: 999;
  border-top: 1px solid rgba(242,234,216,0.12);
  flex-direction: column; gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.75); text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ──────────── HERO ──────────── */
.hero {
  min-height: 100vh;
  background: var(--forest);
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1800&q=80');
  background-size: cover; background-position: center 30%;
  opacity: 0.22;
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242,234,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,234,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    var(--forest) 0%,
    rgba(26,58,42,0.6) 55%,
    rgba(26,58,42,0.15) 100%
  );
}

.hero-content { position: relative; z-index: 2; padding: 120px 80px 80px; max-width: 900px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--cream); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.2s ease forwards;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 2px; background: var(--cream); }

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: clamp(56px, 8vw, 100px);
  line-height: 0.92; color: var(--white); text-transform: uppercase;
  letter-spacing: -1px; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s 0.4s ease forwards;
}
.hero h1 .accent { color: var(--cream); }

.hero-sub {
  font-size: 17px; font-weight: 400;
  color: rgba(255,255,255,0.6); line-height: 1.7;
  max-width: 520px; margin-bottom: 44px;
  opacity: 0; animation: fadeUp 0.7s 0.6s ease forwards;
}

.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.8s ease forwards;
}

.hero-stats {
  position: absolute; bottom: 0; right: 0;
  display: flex;
  background: rgba(242,234,216,0.07);
  border-top: 1px solid rgba(242,234,216,0.22);
  border-left: 1px solid rgba(242,234,216,0.22);
  z-index: 2;
}
.hero-stat { padding: 28px 40px; border-right: 1px solid rgba(242,234,216,0.12); text-align: center; }
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 38px; color: var(--cream); line-height: 1; }
.hero-stat-label { font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-top: 6px; }

/* ──────────── BUTTONS ──────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; background: var(--cream); color: var(--forest);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--cream-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 36px; background: transparent; color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--cream); color: var(--cream); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 40px; background: var(--forest); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--forest-mid); }

/* ──────────── MARQUEE BAND ──────────── */
.intro-band { background: var(--cream); padding: 20px 80px; display: flex; align-items: center; gap: 20px; overflow: hidden; }
.intro-band-text {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 16px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--forest); white-space: nowrap; animation: marquee 25s linear infinite;
}

/* ──────────── SHARED SECTION ──────────── */
section { padding: 100px 80px; }

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--forest-light); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.section-eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: var(--forest-light); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: clamp(36px, 5vw, 60px); line-height: 1;
  text-transform: uppercase; color: var(--forest); margin-bottom: 20px;
}
.section-title .accent { color: var(--amber); }

.section-body { font-size: 16px; line-height: 1.75; color: #4a6355; max-width: 580px; }

/* ──────────── ABOUT ──────────── */
.about {
  background: var(--off-white);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-visual { position: relative; }

.about-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; filter: grayscale(15%) sepia(10%); }

.about-badge {
  position: absolute; bottom: -24px; right: -24px;
  width: 120px; height: 120px; background: var(--cream);
  border: 3px solid var(--forest);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}
.about-badge-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 34px; color: var(--forest); line-height: 1; }
.about-badge-label { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--forest); text-align: center; margin-top: 2px; }

.about-features { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }

.about-feature-icon {
  width: 42px; height: 42px; background: var(--forest);
  display: grid; place-items: center; flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}
.about-feature-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.about-feature-text h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.5px; color: var(--forest); margin-bottom: 4px; }
.about-feature-text p  { font-size: 14px; color: #5a7060; line-height: 1.6; }

/* ──────────── CAPABILITIES ──────────── */
.capabilities { background: var(--white); }

.caps-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; align-items: end; }

.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }

.cap-card {
  background: var(--white); padding: 40px 32px;
  position: relative; overflow: hidden; transition: background 0.3s; cursor: default;
}
.cap-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px; background: var(--cream);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.cap-card:hover                { background: var(--forest); }
.cap-card:hover::before        { transform: scaleX(1); }
.cap-card:hover .cap-title     { color: var(--cream); }
.cap-card:hover .cap-body      { color: rgba(242,234,216,0.52); }
.cap-card:hover .cap-icon      { background: var(--cream); }
.cap-card:hover .cap-icon svg  { stroke: var(--forest); }

.cap-icon {
  width: 52px; height: 52px; background: var(--light-bg);
  display: grid; place-items: center; margin-bottom: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  transition: background 0.3s;
}
.cap-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }

.cap-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--forest); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; transition: color 0.3s; }
.cap-body  { font-size: 14px; color: #4f6a58; line-height: 1.65; transition: color 0.3s; }

/* ──────────── HOW IT WORKS ──────────── */
.how { background: var(--forest); position: relative; overflow: hidden; }
.how::before {
  content: 'SubForge';
  position: absolute; right: -20px; bottom: -40px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  font-size: 180px; color: rgba(255,255,255,0.03); letter-spacing: -4px; line-height: 1; pointer-events: none;
}
.how .section-title            { color: var(--white); }
.how .section-eyebrow          { color: var(--cream); }
.how .section-eyebrow::before  { background: var(--cream); }

.steps { margin-top: 60px; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 30px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--cream), transparent);
}

.step { padding: 0 24px; text-align: center; position: relative; }
.step-num {
  width: 60px; height: 60px; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 22px; color: var(--forest);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%); position: relative; z-index: 1;
}
.step-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; color: var(--white); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.step-body  { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ──────────── PROJECTS ──────────── */
.projects { background: var(--light-bg); padding: 100px 0; }
.projects-inner { padding: 0 80px; }
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }

.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }

.project-card { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s;
  filter: grayscale(20%) sepia(15%) brightness(0.88);
}
.project-card:hover img { transform: scale(1.05); filter: grayscale(0%) sepia(5%) brightness(0.72); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,58,42,0.92) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.project-tag  { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--cream); margin-bottom: 8px; }
.project-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 22px; color: var(--white); text-transform: uppercase; line-height: 1.1; }

.project-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; background: var(--cream);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-arrow { opacity: 1; transform: translateY(0); }
.project-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ──────────── TESTIMONIALS ──────────── */
.testimonial { background: var(--forest-mid); text-align: center; padding: 100px 80px; position: relative; overflow: hidden; }
.testimonial::before {
  content: '"'; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif; font-size: 320px; font-weight: 900;
  color: rgba(242,234,216,0.05); line-height: 1; pointer-events: none;
}
.testimonial-quote  { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: clamp(22px,3vw,36px); color: var(--white); line-height: 1.4; max-width: 780px; margin: 0 auto 32px; position: relative; z-index: 1; transition: opacity 0.25s; }
.testimonial-author { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream); transition: opacity 0.25s; }
.testimonial-dots   { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.dot        { width: 8px; height: 8px; background: rgba(255,255,255,0.2); cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--cream); }

/* ──────────── CTA ──────────── */
.cta { background: var(--cream); padding: 80px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(32px,4vw,52px); text-transform: uppercase; color: var(--forest); line-height: 1; }
.cta-sub   { font-size: 16px; color: rgba(26,58,42,0.6); margin-top: 10px; }

/* ──────────── FOOTER ──────────── */
footer { background: #0d1f14; padding: 72px 80px 40px; }

.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 48px; margin-bottom: 32px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.75; margin-top: 16px; max-width: 280px; }
.footer-col h5  { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--cream); margin-bottom: 20px; }
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.28); letter-spacing: 0.5px; }
.footer-bottom p span { color: var(--cream); }
.footer-demo-tag { font-size: 12px; color: rgba(255,255,255,0.18); }

/* ──────────── ANIMATIONS ──────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ──────────── RESPONSIVE — TABLET ──────────── */
@media (max-width: 1024px) {
  section              { padding: 80px 40px; }
  .hero-content        { padding: 120px 40px 60px; }
  .caps-grid           { grid-template-columns: repeat(2,1fr); }
  .steps               { grid-template-columns: repeat(2,1fr); gap: 48px; }
  .steps::before       { display: none; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .cta                 { padding: 60px 40px; }
  .projects-inner      { padding: 0 40px; }
}

/* ──────────── RESPONSIVE — MOBILE ──────────── */
@media (max-width: 768px) {
  nav                  { padding: 0 24px; }
  .nav-links           { display: none; }
  .hamburger           { display: flex; }
  .hero-content        { padding: 100px 24px 50px; }
  .hero-stats          { display: none; }
  .about               { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .caps-grid           { grid-template-columns: 1fr; }
  .caps-header         { grid-template-columns: 1fr; }
  .projects-grid       { grid-template-columns: 1fr; }
  .projects-inner      { padding: 0 24px; }
  .cta                 { grid-template-columns: 1fr; padding: 60px 24px; }
  section              { padding: 60px 24px; }
  .footer-grid         { grid-template-columns: 1fr; gap: 32px; }
  footer               { padding: 48px 24px 32px; }
  .intro-band          { padding: 16px 24px; }
  .steps               { grid-template-columns: 1fr; }
  .testimonial         { padding: 60px 24px; }
}