/* ==========================================================================
   CSS Infracon — Shared Brand Design System
   Used by: about.html, privacy-policy.html, contact-us.html, testimonials.html,
            404.html, and the enhanced sections of index.html.
   Palette + type pairing matches the home page's custom-built sections
   (hero search / featured-projects / visit-us / footer).
   ========================================================================== */

:root {
  --bg-deep: #0B3026;
  --bg-deep-2: #0E3C30;
  --gold: #CE9A52;
  --gold-bright: #E7BC7C;
  --mint: #9FC7B2;
  --cream: #F5F1E6;
  --ink: #213A34;
  --muted: #6E7F79;
  --text-soft: #DCE7E1;
  --text-muted: #8FA89C;
  --line: rgba(220, 231, 225, 0.12);
  --line-dark: rgba(33, 58, 52, 0.12);
  --shadow-lg: 0 30px 60px rgba(11, 48, 38, 0.18);
  --radius: 18px;
}

.brand-scope, .brand-scope * { box-sizing: border-box; }

.brand-scope {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

.brand-scope h1, .brand-scope h2, .brand-scope h3, .brand-scope h4 {
  font-family: 'Fraunces', serif;
  color: var(--bg-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.brand-scope p { line-height: 1.75; color: var(--muted); margin: 0 0 1em; }
.brand-scope a { text-decoration: none; }
.brand-scope img { max-width: 100%; display: block; }

.brand-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }
.reveal-delay-4.is-visible { transition-delay: .32s; }

/* ---------- Page hero banner ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(206, 154, 82, 0.20), transparent 60%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  padding: 132px 0 96px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(159, 199, 178, 0.18), transparent 70%);
  pointer-events: none;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 18px;
}
.page-hero-eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--gold-bright);
  display: inline-block;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  max-width: 800px;
}
.page-hero p.lead {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 640px;
  margin-top: 18px;
}
.breadcrumb {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--mint); }
.breadcrumb span { margin: 0 8px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 14px 30px rgba(206, 154, 82, 0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(206, 154, 82, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--bg-deep);
}
.btn-outline:hover { background: var(--bg-deep); color: #fff; transform: translateY(-3px); }
.btn-light-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-light-outline:hover { background: #fff; color: var(--bg-deep); }

/* ---------- Section basics ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: #fff; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.info-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.info-card .icon-badge {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: linear-gradient(135deg, #3FDFB4, #000202) !important;
  color: #FFF !important;
  font-size: 22px;
  margin-bottom: 18px;
}
.info-card h3 { font-size: 20px; margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 15px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 44px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.stats-strip .stat-num {
  font-family: 'Fraunces', serif;
  color: var(--gold-bright);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
}
.stats-strip .stat-label {
  color: var(--text-soft);
  font-size: 13px;
  letter-spacing: .04em;
  margin-top: 6px;
}

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before {
  content: "";
  position: absolute; left: 22px; top: 0; bottom: 0; width: 2px;
  background: var(--line-dark);
}
.timeline li { position: relative; padding: 0 0 40px 62px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: 14px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(206,154,82,0.18);
}
.timeline h4 { margin-bottom: 4px; font-size: 18px; }
.timeline p { margin: 0; }

/* ---------- Values grid ---------- */
.value-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(206,154,82,0.12);
  color: var(--bg-deep);
  font-weight: 700; font-size: 13px;
  margin: 4px 6px 4px 0;
}

/* ---------- Testimonials ---------- */
.testi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line-dark);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi-quote { font-size: 34px; color: var(--gold); font-family: 'Fraunces', serif; line-height: 1; margin-bottom: 6px; }
.testi-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 14px; }
.testi-text { font-style: italic; color: var(--ink); }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-deep-2));
  color: var(--gold-bright); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px;
}
.testi-name { font-weight: 700; color: var(--bg-deep); font-size: 15px; }
.testi-role { font-size: 13px; color: var(--muted); }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.filter-chip {
  border: 1px solid var(--line-dark);
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}
.filter-chip.active, .filter-chip:hover {
  background: var(--bg-deep);
  color: #fff;
  border-color: var(--bg-deep);
}

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
}
.accordion-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  color: var(--bg-deep);
  font-size: 16px;
  gap: 16px;
}
.accordion-head .plus {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease, color .3s ease;
  font-size: 16px;
}
.accordion-item.open .accordion-head .plus {
  transform: rotate(45deg);
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 24px;
}
.accordion-item.open .accordion-body { padding-bottom: 22px; }
.accordion-body p { margin: 0; font-size: 15px; }

/* ---------- Policy page ---------- */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.policy-toc {
  position: sticky; top: 110px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px;
}
.policy-toc h4 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.policy-toc ol { margin: 0; padding-left: 18px; }
.policy-toc li { margin-bottom: 10px; font-size: 14px; }
.policy-toc a { color: var(--ink); }
.policy-toc a:hover { color: var(--gold); }
.policy-toc .updated {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-dark);
  font-size: 12px; color: var(--muted);
}

.policy-content h2 {
  font-size: 24px;
  margin-top: 44px;
  padding-top: 12px;
  scroll-margin-top: 120px;
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p, .policy-content li { color: var(--muted); font-size: 15.5px; }
.policy-content ul { padding-left: 20px; }
.policy-content .note-box {
  background: rgba(206,154,82,0.09);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink);
  margin: 24px 0;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-card {
  background: var(--bg-deep);
  border-radius: 24px;
  padding: 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(231,188,124,.28), transparent 70%);
}
.contact-card h3 { color: #fff; font-size: 26px; }
.contact-card p { color: var(--text-soft); }
.contact-line {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-line:last-of-type { border-bottom: none; }
.contact-line .ci {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: rgba(231,188,124,.14); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
}
.contact-line a, .contact-line div.value { color: #fff; font-weight: 600; }
.contact-line .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px;}

.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--bg-deep); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #FBFAF7;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(206,154,82,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none;
  align-items: center; gap: 12px;
  background: rgba(159,199,178,0.16);
  border: 1px solid rgba(159,199,178,0.4);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: flex; }

.map-strip { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); }
.map-strip iframe { width: 100%; height: 420px; border: 0; display: block; }

.office-hours { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; font-size: 14.5px; }
.office-hours div.d { color: var(--text-soft); }
.office-hours div.t { color: #fff; font-weight: 700; text-align: right; }

/* ---------- 404 page ---------- */
.notfound-wrap {
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(206, 154, 82, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.notfound-code {
  font-family: 'Fraunces', serif;
  font-size: clamp(90px, 18vw, 190px);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-bright);
  line-height: 1;
  letter-spacing: .02em;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }
.notfound-wrap h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin-top: 8px; }
.notfound-wrap p.lead { color: var(--text-soft); max-width: 520px; margin: 14px auto 34px; }
.notfound-search {
  max-width: 480px; margin: 0 auto 34px;
  display: flex; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; padding: 6px;
}
.notfound-search input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 18px; color: #fff; font-size: 15px; font-family: 'Manrope', sans-serif;
}
.notfound-search input::placeholder { color: var(--text-muted); }
.notfound-search button {
  border: none; border-radius: 999px; padding: 0 22px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--bg-deep); font-weight: 700; cursor: pointer;
}
.notfound-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.notfound-orb {
  position: absolute; border-radius: 50%; filter: blur(2px);
  background: radial-gradient(closest-side, rgba(159,199,178,0.4), transparent 70%);
  opacity: .5;
}

/* ---------- Search suggestions dropdown (hero + 404) ---------- */
.search-suggest-wrap { position: relative; }
.search-suggest-list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 10px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(11,48,38,0.28);
  border: 1px solid var(--line-dark);
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 60;
  text-align: left;
  display: none;
}
.search-suggest-list.show { display: block; }
.search-suggest-list .ss-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  transition: background .15s ease;
}
.search-suggest-list .ss-item:last-child { border-bottom: none; }
.search-suggest-list .ss-item:hover,
.search-suggest-list .ss-item.active { background: rgba(206,154,82,0.10); }
.search-suggest-list .ss-item .ss-title { font-weight: 700; font-size: 14.5px; color: var(--bg-deep); }
.search-suggest-list .ss-item .ss-desc { font-size: 12.5px; color: var(--muted); }
.search-suggest-list .ss-icon {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: rgba(206,154,82,0.14); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.search-suggest-list .ss-empty { padding: 16px 18px; font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 112px 0 72px; }
  .section { padding: 64px 0; }
}
