/* OptimizedCPI.com — Commercial Property Inspection Services */
:root {
  --navy:       #0a1628;
  --navy-mid:   #122040;
  --navy-light: #1a3060;
  --gold:       #c9a84c;
  --gold-light: #e8c66a;
  --gold-dim:   #f5f0e0;
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --text:       #1e2d4a;
  --muted:      #5a6a80;
  --light-line: #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--text); background: var(--white); }

/* TOPBAR */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 0.5rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-right { display: flex; gap: 1.5rem; }
.topbar-right a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar-right a:hover { color: var(--gold-light); }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light-line);
  padding: 0.8rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 12px rgba(10,22,40,0.08);
}
.nav-links { display: flex; list-style: none; gap: 0.2rem; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 600; padding: 0.5rem 0.8rem; border-radius: 6px; transition: all 0.15s; }
.nav-links a:hover, .nav-links a.active { background: var(--gold-dim); color: var(--navy); }
.nav-cta { background: var(--gold) !important; color: var(--navy) !important; font-weight: 700 !important; padding: 0.55rem 1.2rem !important; border-radius: 6px !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

/* HERO */
.hero { background: var(--navy); padding: 5rem 6vw 4rem; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-single { grid-template-columns: 1fr; max-width: 820px; }
h1 { font-family: 'Merriweather', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--white); line-height: 1.25; margin-bottom: 1.2rem; }
h1 em { color: var(--gold); font-style: normal; }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.8rem; max-width: 580px; }
.hero-badge { display: inline-block; background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.4); color: var(--gold-light); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.35rem 0.9rem; border-radius: 20px; margin-bottom: 1rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); }
.stat-num { display: block; font-family: 'Merriweather', serif; font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.stat-label { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.1rem; }

/* BUTTONS */
.btn-primary { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 0.92rem; padding: 0.75rem 1.6rem; border-radius: 6px; text-decoration: none; display: inline-block; transition: all 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.35); }
.btn-outline { background: transparent; color: var(--white); font-weight: 700; font-size: 0.92rem; padding: 0.75rem 1.6rem; border-radius: 6px; text-decoration: none; display: inline-block; border: 2px solid rgba(255,255,255,0.4); transition: all 0.2s; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); font-weight: 700; font-size: 0.92rem; padding: 0.75rem 1.6rem; border-radius: 6px; text-decoration: none; display: inline-block; transition: all 0.2s; }
.btn-navy:hover { background: var(--navy-light); }

/* SECTIONS */
section { padding: 4rem 6vw; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.6rem; }
h2 { font-family: 'Merriweather', serif; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: 0.5rem; }
h2.light { color: var(--white); }
h3 { font-family: 'Merriweather', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.divider { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0.8rem 0 1.5rem; }
.section-lead { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 680px; }
.section-lead.light { color: rgba(255,255,255,0.75); }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: 10px; padding: 1.8rem; border: 1px solid var(--light-line); border-top: 3px solid var(--gold); transition: all 0.2s; }
.card:hover { box-shadow: 0 8px 24px rgba(10,22,40,0.1); transform: translateY(-3px); }
.card-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }

/* CHECKLIST */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.45rem 0 0.45rem 1.8rem; position: relative; color: var(--text); font-size: 0.92rem; line-height: 1.6; border-bottom: 1px solid var(--light-line); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.checklist-dark li { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.1); }
.checklist-dark li::before { color: var(--gold-light); }

/* QUICK ANSWER BOX */
.qa-box { background: var(--gold-dim); border: 2px solid var(--gold); border-radius: 10px; padding: 1.5rem 2rem; }
.qa-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.4rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--light-line); padding: 1.2rem 0; }
.faq-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.88rem; color: var(--text); line-height: 1.7; margin: 0; }

/* REVIEW */
.review-card { background: var(--white); border-radius: 10px; padding: 1.5rem; border: 1px solid var(--light-line); box-shadow: 0 2px 8px rgba(10,22,40,0.06); }
.review-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.7rem; }
.review-text { color: var(--text); font-size: 0.88rem; line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.review-author { font-weight: 700; color: var(--navy); font-size: 0.85rem; }
.review-source { color: var(--muted); font-size: 0.75rem; margin-top: 0.2rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }

/* OIS CROSS-LINK BANNER */
.ois-banner { background: linear-gradient(135deg, var(--navy), var(--navy-light)); padding: 2.5rem 6vw; }
.ois-banner-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ois-banner h3 { color: var(--white); font-family: 'Merriweather', serif; font-size: 1.2rem; margin-bottom: 0.3rem; }
.ois-banner p { color: rgba(255,255,255,0.7); font-size: 0.88rem; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 3rem 6vw 1.5rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo-text { font-family: 'Merriweather', serif; font-weight: 900; font-size: 1.1rem; color: var(--white); display: block; margin-bottom: 0.8rem; }
.footer-desc { font-size: 0.82rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.83rem; transition: color 0.15s; }
.footer-col li a:hover { color: var(--gold-light); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.2s; }

/* FADE IN */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem 6vw; border-bottom: 1px solid var(--light-line); box-shadow: 0 8px 24px rgba(10,22,40,0.1); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem; }
  .topbar { display: none; }
  h1 { font-size: 1.7rem; }
  .hero-stats { gap: 1.2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
