/* ============================================================
   HELPING HAND BUILDERS — styles.css
   Palette: Black #1A1A1A · Terracotta #E0704C · Sage #7A9176 · White #FFFFFF
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --orange:      #E0704C;   /* terracotta */
  --orange-lt:   #EA8A6A;
  --orange-dk:   #C45A36;
  --olive:       #7A9176;   /* sage green */
  --olive-lt:    #9DB09A;
  --olive-dk:    #5E7360;
  --black:       #1A1A1A;   /* nav + footer */
  --text:        #1A1A1A;
  --text-mid:    #3A3A3A;
  --text-lt:     #6B7280;
  --bg:          #FFFFFF;
  --bg-soft:     #F1F3EE;   /* very light sage tint */
  --border:      #E2E4DF;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 16px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 28px rgba(0,0,0,0.09);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.11);
  --max-w:       1180px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dk); }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }

/* Section labels — small orange caps */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.label::before { content: ''; width: 24px; height: 2px; background: var(--orange); border-radius: 2px; }

/* Section headings */
.h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.5px;
  color: var(--text); margin-bottom: 14px;
}
.h2 span { color: var(--orange); }
.sub { color: var(--text-lt); font-size: 1.05rem; max-width: 540px; line-height: 1.7; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: all .22s;
}
.btn-orange {
  background: var(--orange); color: #fff;
  box-shadow: 0 4px 18px rgba(232,98,42,.35);
}
.btn-orange:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 8px 26px rgba(232,98,42,.4); color: #fff; }
.btn-line {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-line:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--orange); font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.btn-white:hover { background: #f5f5f5; transform: translateY(-2px); color: var(--orange-dk); }
.btn-line-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-line-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ===== NAV ===== */
nav {
  background: var(--black);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img {
  width: 46px; height: 46px; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 3px;
}
.nav-brand strong { display: block; color: #fff; font-size: 1rem; font-weight: 700; }
.nav-brand small { color: rgba(255,255,255,.65); font-size: 0.68rem; letter-spacing: 2.5px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.82); padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500; transition: all .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.15); }
.nav-cta {
  margin-left: 10px;
  background: var(--orange); color: #fff !important;
  padding: 9px 20px !important; border-radius: var(--radius) !important;
  font-weight: 600 !important; transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--orange-lt) !important; transform: translateY(-1px) !important; }

/* ===== HERO ===== */
.hero {
  background: var(--bg); padding: 96px 0;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hero::before { display: none; }
.hero-grid {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  text-align: center;
}
.hero-text { max-width: 680px; margin: 0 auto; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-btns { justify-content: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(122,145,118,.1); border: 1px solid rgba(122,145,118,.25);
  color: var(--olive-dk); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 22px;
}
.hero-bar { width: 52px; height: 4px; background: var(--orange); border-radius: 3px; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -1.5px; color: var(--text);
  margin-bottom: 22px;
}
.hero h1 span { color: var(--orange); }
.hero-sub { color: var(--text-lt); font-size: 1.05rem; line-height: 1.75; max-width: 480px; margin-bottom: 38px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stats card */
.hero-card {
  background: var(--text); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-card-head {
  background: var(--orange); padding: 22px 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-card-head .hc-icon { font-size: 1.5rem; }
.hero-card-head strong { color: #fff; font-size: 1rem; font-weight: 700; }
.hero-card-head small { display: block; color: rgba(255,255,255,.75); font-size: 0.75rem; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,.05);
}
.hero-stat {
  background: #222222; padding: 28px 22px; text-align: center;
}
.hero-stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 6px; }
.hero-stat span { font-size: 0.72rem; color: #8A9BB0; letter-spacing: 1.5px; text-transform: uppercase; }

/* ===== SERVICES TILES ===== */
.services-tiles {
  margin-top: 52px;
  display: flex; flex-direction: column; gap: 36px;
}
.svc-tile {
  display: flex; align-items: center; gap: 52px;
}
.svc-tile:nth-child(even) { flex-direction: row-reverse; }

.svc-tile-img {
  flex: 0 0 50%; min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
}
.svc-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.svc-tile:hover .svc-tile-img img { transform: scale(1.05); }

.svc-tile-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8px 0;
}
.svc-tile-body h3 { font-size: 1.35rem; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.svc-tile-body p { font-size: 0.95rem; color: var(--text-lt); line-height: 1.85; }

/* ===== PROJECTS (gallery placeholder) ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 52px;
}
.proj-card {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; cursor: default; transition: transform .28s;
}
.proj-card:hover { transform: translateY(-4px); }
.proj-card-bg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.proj-card-bg .proj-icon { font-size: 4rem; opacity: .22; }
.proj-content { position: relative; z-index: 1; }
.proj-content h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.proj-content p { font-size: 0.8rem; color: rgba(255,255,255,.75); }
.proj-badge {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  background: var(--orange); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 50px;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 60px; position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 34px; left: 12.5%; right: 12.5%;
  height: 2px; border-top: 2px dashed var(--border); z-index: 0;
  transform-origin: left center; transform: scaleX(0);
}
/* Orange progress line drawn over the dashed track */
.process-grid::after {
  content: ''; position: absolute; top: 33px; left: 12.5%;
  height: 4px; width: 0; background: var(--orange);
  border-radius: 2px; z-index: 0;
}
.step {
  text-align: center; padding: 0 16px; position: relative; z-index: 1;
  opacity: 0; transform: translateY(28px);
}
.step-num {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: var(--orange);
  margin: 0 auto 20px; transition: background .3s, color .3s, transform .3s;
}
.step:hover .step-num { background: var(--orange); color: #fff; transform: scale(1.08); }
.step h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step p { font-size: 0.85rem; color: var(--text-lt); line-height: 1.65; }

/* === Scroll-triggered animations === */
@keyframes stepFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes circlePop {
  0%   { transform: scale(0.3); opacity: 0; }
  65%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes lineGrow {
  to { transform: scaleX(1); }
}
@keyframes progressGrow {
  to { width: 75%; }
}

.process-grid.animated::before {
  animation: lineGrow 1.3s ease forwards 0.1s;
}
.process-grid.animated::after {
  animation: progressGrow 1.3s ease forwards 0.1s;
}
.process-grid.animated .step {
  animation: stepFadeUp 0.55s ease forwards;
}
.process-grid.animated .step:nth-child(1) { animation-delay: 0.15s; }
.process-grid.animated .step:nth-child(2) { animation-delay: 0.42s; }
.process-grid.animated .step:nth-child(3) { animation-delay: 0.69s; }
.process-grid.animated .step:nth-child(4) { animation-delay: 0.96s; }
.process-grid.animated .step-num {
  animation: circlePop 0.55s cubic-bezier(.34,1.56,.64,1) both;
}
.process-grid.animated .step:nth-child(1) .step-num { animation-delay: 0.15s; }
.process-grid.animated .step:nth-child(2) .step-num { animation-delay: 0.42s; }
.process-grid.animated .step:nth-child(3) .step-num { animation-delay: 0.69s; }
.process-grid.animated .step:nth-child(4) .step-num { animation-delay: 0.96s; }

/* ===== TESTIMONIALS ===== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 52px;
}
.review {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  display: flex; flex-direction: column; transition: all .28s;
}
.review:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.review-stars { color: #F59E0B; font-size: 1rem; letter-spacing: 3px; margin-bottom: 16px; }
.review p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; font-style: italic; flex: 1; margin-bottom: 22px; }
.reviewer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.rvr-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--olive); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.reviewer strong { display: block; font-size: 0.88rem; color: var(--text); }
.reviewer span { font-size: 0.78rem; color: var(--text-lt); }

/* ===== ABOUT ===== */
.about-grid { max-width: 760px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-stat {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 22px; text-align: center;
  transition: all .28s;
}
.about-stat:hover { border-color: var(--olive); box-shadow: 0 4px 20px rgba(122,145,118,.15); }
.about-stat strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 6px; }
.about-stat span { font-size: 0.8rem; color: var(--text-lt); font-weight: 500; }
.about-text .h2 { margin-bottom: 16px; }
.about-text p { color: var(--text-lt); line-height: 1.8; margin-bottom: 20px; font-size: 0.98rem; }
.about-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text-mid); }
.about-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(122,145,118,.15); border: 1px solid rgba(122,145,118,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--olive-dk); font-weight: 900; flex-shrink: 0; margin-top: 2px;
}

/* ===== SERVICE AREAS ===== */
.areas-wrap { margin-top: 48px; }
.areas-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 36px;
}
.area-pill {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 10px 22px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center; gap: 8px; transition: all .22s;
}
.area-pill:hover { border-color: var(--olive); color: var(--olive-dk); background: rgba(122,145,118,.08); transform: translateY(-2px); }
.area-pill::before { content: '📍'; font-size: 0.8rem; }

/* ===== CTA BANNER ===== */
.cta-band {
  background: var(--orange); padding: 72px 0; position: relative; overflow: hidden;
}
.cta-band::before { display: none; }
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.82); font-size: 0.98rem; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; align-items: start; margin-top: 52px; }
.contact-info {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.contact-info > p { color: var(--text-lt); font-size: 0.92rem; margin-bottom: 32px; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.ci-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(232,98,42,.09); border: 1px solid rgba(232,98,42,.18);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.ci-text strong { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 3px; }
.ci-text a, .ci-text span { color: var(--text-mid); font-size: 0.92rem; }
.ci-text a:hover { color: var(--orange); }

/* Contact form */
.contact-form {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 28px; }
.form-body { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-lt); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-size: 0.92rem; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,98,42,.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 14px; }

/* ===== FOOTER ===== */
footer { background: #1A1A1A; padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo img { width: 50px; border-radius: 8px; mix-blend-mode: screen; }
.footer-logo strong { color: #fff; font-size: 0.98rem; font-weight: 700; display: block; }
.footer-logo small { color: #666; font-size: 0.68rem; letter-spacing: 2.5px; text-transform: uppercase; }
.footer-about { color: #666; font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #999; font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #666; font-size: 0.88rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-col span { color: #666; font-size: 0.88rem; }
.footer-divider { border: none; border-top: 1px solid #2a2a2a; margin-bottom: 22px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; font-size: 0.8rem; color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .svc-tile { flex-direction: column !important; gap: 0; }
  .svc-tile-img { flex: 0 0 220px; width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .svc-tile-body { padding: 28px 16px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .process-grid::before { display: none; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .services-grid, .projects-grid, .reviews-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; }
}
