/* ============================================================
   Optimized Inspection Services — Main Stylesheet
   styles.css
   ============================================================ */

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

:root {
  --navy:       #0f1d33;
  --navy-mid:   #1a2d4f;
  --navy-light: #213660;
  --teal:       #00c5a5;
  --teal-light: #00e5b9;
  --teal-dim:   rgba(0,197,165,0.12);
  --gold:       #f0a500;
  --off-white:  #f4f6f9;
  --white:      #ffffff;
  --text:       #1c2b3a;
  --muted:      #5a6a7e;
  --light-line: #dde3ec;
  --radius:     6px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  padding: 0.4rem 6vw;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap; gap: 0.5rem;
}
.topbar-left { color: rgba(255,255,255,0.6); font-size: 0.78rem; }
.topbar-right { display: flex; gap: 1.5rem; }
.topbar a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.topbar a:hover { color: var(--teal-light); }

/* Force injected phone anchor to inherit parent color (prevents default-blue on dark backgrounds) */
.ois-phone a, .ois-phone a:visited, .ois-phone a:active { color: inherit !important; text-decoration: inherit !important; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy-mid);
  padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 20px rgba(10,20,40,0.4);
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem; font-weight: 900;
  color: var(--white); line-height: 1.2;
}
.nav-logo-text span { color: var(--teal-light); display: block; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 0.1rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 0.45rem 0.8rem; border-radius: var(--radius);
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--teal-light); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--teal-light); }
.nav-cta {
  background: var(--teal) !important; color: var(--navy) !important;
  font-weight: 700 !important; padding: 0.5rem 1.1rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--teal-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--teal); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid var(--teal);
  transition: all 0.2s; text-align: center;
}
.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.35);
  transition: all 0.2s; text-align: center;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.btn-navy {
  display: inline-block;
  background: var(--navy-mid); color: var(--white);
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid var(--navy-mid);
  transition: all 0.2s; text-align: center;
}
.btn-navy:hover { background: var(--navy); border-color: var(--navy); }

/* ── SECTION SHARED ── */
section { padding: 80px 6vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem;
}
h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 900; color: var(--white); line-height: 1.2;
  margin-bottom: 1.2rem;
}
h1 em { font-style: normal; color: var(--teal-light); }
h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 900; color: var(--navy);
  line-height: 1.22; margin-bottom: 0.8rem;
}
h2.light { color: var(--white); }
h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3;
}
h3.light { color: var(--white); }
.section-lead {
  font-size: 1rem; color: var(--muted);
  max-width: 620px; line-height: 1.75; margin-bottom: 2.5rem;
}
.section-lead.light { color: rgba(255,255,255,0.65); }
.divider {
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px; margin: 0.7rem 0 1.2rem;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 100px 6vw 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light), var(--teal));
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-single { grid-template-columns: 1fr; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal-dim); border: 1px solid rgba(0,197,165,0.3);
  color: var(--teal-light); border-radius: 2rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 1rem; margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.72);
  max-width: 540px; line-height: 1.75; margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem; font-weight: 900; color: var(--teal-light);
  display: block; line-height: 1;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.3; }

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--off-white); border-radius: 10px; padding: 2rem;
  border: 1px solid var(--light-line); border-left: 4px solid var(--teal);
  transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(15,30,60,0.1); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-top: 0.4rem; }
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 2rem;
  transition: all 0.25s;
}
.card-dark:hover { background: rgba(255,255,255,0.09); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; margin-top: 0.4rem; }

/* ── TESTIMONIALS ── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card {
  background: var(--off-white); border-radius: 10px; padding: 1.8rem;
  border: 1px solid var(--light-line); position: relative;
}
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.8rem; }
.review-text { font-size: 0.92rem; color: var(--text); line-height: 1.72; font-style: italic; margin-bottom: 1rem; }
.review-author { font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.review-source { font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.review-badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: #4285f4; color: white;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 900;
}

/* ── CHECKLIST ── */
.checklist { list-style: none; }
.checklist li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.5rem 0; border-bottom: 1px solid var(--light-line);
  font-size: 0.93rem; color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; color: var(--teal); font-weight: 900; flex-shrink: 0; margin-top: 2px; }
.checklist-dark li {
  border-bottom-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
}

/* ── CONTACT FORM ── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--light-line);
}
.contact-item:last-of-type { border-bottom: none; }
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy-mid); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ci-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ci-val { font-size: 0.95rem; color: var(--text); margin-top: 0.15rem; line-height: 1.4; }
.ci-val a { color: var(--navy-mid); text-decoration: none; font-weight: 600; }
.ci-val a:hover { color: var(--teal); }
.form-wrap {
  background: var(--off-white); border-radius: 12px; padding: 2.2rem;
  border: 1px solid var(--light-line);
}
.form-title { font-family: 'Merriweather', serif; font-size: 1.2rem; font-weight: 900; color: var(--navy); margin-bottom: 0.3rem; }
.form-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; }
label { font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.req { color: var(--teal); }
input, textarea, select {
  padding: 0.75rem 1rem; border: 1.5px solid var(--light-line);
  border-radius: var(--radius); font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem; color: var(--text); background: var(--white);
  outline: none; width: 100%; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,197,165,0.12);
}
textarea { resize: vertical; min-height: 100px; }
.form-btn {
  background: var(--teal); color: var(--navy);
  padding: 0.9rem 2rem; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem; font-weight: 700; border: none;
  cursor: pointer; width: 100%; transition: background 0.2s;
}
.form-btn:hover { background: var(--teal-light); }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success .big-check { font-size: 3rem; display: block; margin-bottom: 0.8rem; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 3rem 6vw 1.5rem; }
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem; font-weight: 900; color: var(--white);
  margin-bottom: 0.8rem; display: block;
}
.footer-logo-text span { color: var(--teal-light); }
.footer-desc { font-size: 0.84rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 1rem; }
.footer-phone { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.8rem; }
.footer-phone a { color: var(--teal-light); font-weight: 700; font-size: 1rem; text-decoration: none; }
.footer-col h4 {
  color: var(--teal-light); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1100px; margin: 1.2rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

/* ── CPI BANNER ── */
.cpi-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-top: 3px solid var(--teal);
  padding: 3rem 6vw;
}
.cpi-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cpi-banner h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.4rem; }
.cpi-banner p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 500px; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-inner > *:last-child:not(.hero-single *) { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .topbar { justify-content: center; }
  .cpi-banner-inner { flex-direction: column; text-align: center; }
}
