/* ==========================================================================
   FPA CONSTRUCTION JSC — Shared Stylesheet
   Brand colors taken from the company logo: red + green
   ========================================================================== */

:root {
  --red: #d71920;
  --red-dark: #a5121a;
  --green: #1b8a3e;
  --green-dark: #146b2f;
  --ink: #1a1d21;
  --muted: #5b6470;
  --line: #e7eaee;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-softer: #f1f3f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 8px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,138,62,.28); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,138,62,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,246,240,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid #e2e7dd;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: .3px; color: var(--ink); }
.brand-text span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: all .18s ease;
}
.nav-links a:hover { background: var(--bg-softer); color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(27,138,62,.08), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(215,25,32,.07), transparent 55%),
    var(--bg-soft);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green); background: rgba(27,138,62,.1);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--red); }
.hero p.lead { font-size: 18px; color: var(--muted); margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4;
  background: linear-gradient(135deg, #223 0%, #0f1620 100%);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.hero-badge .num { font-size: 28px; font-weight: 800; color: var(--red); line-height: 1; }
.hero-badge .lbl { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: 36px; letter-spacing: -.5px; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.bg-soft { background: var(--bg-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 30px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat .n { font-size: 42px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat .n.g { color: var(--green); }
.stat .t { color: var(--muted); font-size: 14px; font-weight: 500; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(215,25,32,.1); color: var(--red);
}
.card:nth-child(even) .ic { background: rgba(27,138,62,.1); color: var(--green); }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Split / values */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.value-list { list-style: none; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-list .vic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(27,138,62,.1); color: var(--green);
}
.value-list h4 { font-size: 17px; margin-bottom: 3px; }
.value-list p { color: var(--muted); font-size: 15px; margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: 22px; padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-band h2 { font-size: 32px; margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .9; margin-bottom: 26px; font-size: 17px; position: relative; }
.cta-band .btn { background: #fff; color: var(--green-dark); position: relative; }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 300px at 90% -20%, rgba(27,138,62,.1), transparent),
    linear-gradient(180deg, var(--bg-soft), #fff);
  padding: 66px 0 54px; border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: 40px; letter-spacing: -.5px; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--red); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; color: var(--ink); scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: #3a4149; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #3a4149; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.legal-note {
  background: var(--bg-soft); border-left: 4px solid var(--green);
  padding: 16px 20px; border-radius: 8px; margin-bottom: 30px;
  font-size: 15px; color: var(--muted);
}
.toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 40px; box-shadow: var(--shadow-sm);
}
.toc strong { display: block; margin-bottom: 12px; font-size: 15px; }
.toc ol { margin: 0 0 0 18px; columns: 2; column-gap: 30px; }
.toc a { font-size: 14px; color: var(--muted); }
.toc a:hover { color: var(--red); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-block { display: grid; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .iic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(215,25,32,.1); color: var(--red);
}
.info-item:nth-child(even) .iic { background: rgba(27,138,62,.1); color: var(--green); }
.info-item h4 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.info-item p { font-size: 16px; color: var(--ink); font-weight: 500; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: inherit; transition: .18s;
  background: var(--bg-soft);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 4px rgba(27,138,62,.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.map-embed {
  border-radius: var(--radius); overflow: hidden; margin-top: 40px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #12161c; color: #cbd2da; padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-brand img { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: 14px; color: #8b95a2; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: #a7b0bc; transition: .15s; }
.footer-col a:hover { color: #fff; }
.footer-col .fi { display: flex; gap: 10px; font-size: 14px; color: #a7b0bc; margin-bottom: 12px; align-items: flex-start; }
.footer-col .fi svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #7d8896;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 38px; }
  .hero-visual { aspect-ratio: 16/10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
  section { padding: 60px 0; }

  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform .3s ease; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .section-head h2, .page-hero h1 { font-size: 27px; }

  /* Compact header on phones — reduce empty band below the logo */
  .nav { height: 60px; }
  .brand img { height: 38px; }
  .brand-text strong { font-size: 14px; }
  .brand-text span { display: none; }
  .nav-links { top: 60px; }

  /* Bring content up closer to the header */
  .hero { padding: 28px 0 56px; }
  .page-hero { padding: 34px 0 40px; }
  section { padding: 48px 0; }

  .cta-band { padding: 40px 26px; }

  /* Footer link lists inline (horizontal, wrapping) instead of stacked */
  .footer-grid { gap: 30px; }
  .footer-col ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .footer-col h5 { margin-bottom: 12px; }
}
