/* ============================================================
   InspectMyHouse – Main Stylesheet
   Brand Palette (from logo):
     Navy    : #0B2D6E
     Teal    : #3BBFCE
     Blue    : #5BA8E5
     White   : #FFFFFF
     Light BG: #F5F7FA
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #0B2D6E;
  --teal:       #3BBFCE;
  --blue:       #5BA8E5;
  --white:      #FFFFFF;
  --light-bg:   #F5F7FA;
  --dark-text:  #1a1a2e;
  --gray-text:  #555e6d;
  --border:     #d8e2f0;
  --success:    #27ae60;
  --error:      #e74c3c;
  --shadow:     0 4px 20px rgba(11,45,110,0.10);
  --radius:     10px;
  --transition: 0.3s ease;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--dark-text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   color: var(--navy); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--navy); }
p  { color: var(--gray-text); margin-bottom: 1rem; }

/* ---------- Layout Utilities ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 70px 0; }
.section-alt { background: var(--light-bg); }
.text-center { text-align: center; }
.section-tag {
  display: inline-block;
  background: rgba(59,191,206,0.15);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-heading { margin-bottom: 10px; }
.section-sub { color: var(--gray-text); max-width: 620px; margin: 0 auto 45px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,191,206,0.35); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: #091f4e; transform: translateY(-2px); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(11,45,110,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 52px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--dark-text);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--teal); background: rgba(59,191,206,0.09); }
.nav-cta { margin-left: 10px; }

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

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a8a 55%, #0e3d7a 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(59,191,206,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-block;
  background: rgba(59,191,206,0.25);
  color: #a0e9f0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--teal); }
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--teal); display: block; line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* ---------- LEAD FORM CARD ---------- */
.form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 34px 28px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.18);
}
.form-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.2rem; }
.form-card .form-subtext { color: var(--gray-text); font-size: 0.85rem; margin-bottom: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--dark-text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(59,191,206,0.12); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z' fill='%230B2D6E'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }
.form-msg { margin-top: 10px; font-size: 0.87rem; font-weight: 600; display: none; }
.form-msg.success { color: var(--success); display: block; }
.form-msg.error   { color: var(--error);   display: block; }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--navy);
  padding: 16px 0;
}
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { color: var(--white); font-size: 0.87rem; display: flex; align-items: center; gap: 8px; }
.trust-item i { color: var(--teal); font-size: 1rem; }

/* ---------- SERVICE CARDS ---------- */
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(var(--teal), var(--blue));
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: top;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--teal); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(59,191,206,0.15), rgba(91,168,229,0.15));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: var(--teal);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; margin-bottom: 16px; }
.service-link { color: var(--teal); font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.service-link:hover { color: var(--navy); }

/* ---------- WHY CHOOSE US ---------- */
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; gap: 18px; align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.why-text h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-text p  { font-size: 0.88rem; margin: 0; }

/* ---------- PROCESS STEPS ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  top: 38px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 76px; height: 76px;
  background: linear-gradient(135deg, var(--navy), #1a4a8a);
  color: white; font-size: 1.5rem; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(11,45,110,0.3);
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: 0.85rem; }

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.stars { color: #f0a500; margin-bottom: 12px; font-size: 0.9rem; }
.testimonial-text { font-style: italic; font-size: 0.92rem; color: var(--gray-text); margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
}
.reviewer-name { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.reviewer-detail { font-size: 0.78rem; color: var(--gray-text); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #1a4a8a);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: white; margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,0.8); max-width: 540px; margin: 0 auto 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- INLINE LEAD FORM (section) ---------- */
.section-form { background: var(--light-bg); }
.form-section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.form-section-text h2 { margin-bottom: 16px; }
.form-section-text ul { margin: 20px 0; }
.form-section-text li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.93rem; color: var(--gray-text); }
.form-section-text li i { color: var(--teal); margin-top: 3px; }
.white-card { background: var(--white); border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow); }

/* ---------- FAQ ---------- */
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white);
  color: var(--navy);
  transition: var(--transition);
  user-select: none;
}
.faq-q:hover { background: rgba(59,191,206,0.06); }
.faq-q i { color: var(--teal); transition: var(--transition); font-size: 0.8rem; }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-a p { font-size: 0.9rem; padding: 0 0 16px; margin: 0; }
.faq-item.open .faq-a  { max-height: 300px; }
.faq-item.open .faq-q i { transform: rotate(180deg); }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #1a4a8a);
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 20px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: var(--teal); }
.breadcrumb span { margin: 0 7px; }

/* ---------- CHECKLIST ---------- */
.checklist-category { margin-bottom: 40px; }
.checklist-category h3 {
  background: linear-gradient(135deg, var(--navy), #1a4a8a);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--gray-text);
}
.check-item i { color: var(--teal); margin-top: 2px; flex-shrink: 0; }

/* ---------- ABOUT PAGE ---------- */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem; font-weight: 700;
  margin: 0 auto 14px;
}
.value-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.value-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: white; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}

/* ---------- STATS SECTION ---------- */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  padding: 50px 0;
}
.stat-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: var(--shadow);
}
.stat-card .num { font-size: 2.4rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-card .label { font-size: 0.85rem; color: var(--gray-text); margin-top: 8px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.footer-about { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-contact li { display: flex; gap: 10px; font-size: 0.87rem; margin-bottom: 12px; }
.footer-contact li i { color: var(--teal); margin-top: 3px; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bar p { font-size: 0.82rem; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--teal); color: white; }

/* ---------- CONTENT PAGE (guide) ---------- */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.content-body h2 { margin: 32px 0 14px; padding-top: 8px; border-top: 2px solid var(--light-bg); }
.content-body h2:first-child { border-top: none; margin-top: 0; }
.content-body h3 { margin: 22px 0 10px; color: var(--teal); }
.content-body ul { margin: 12px 0 20px 0; }
.content-body ul li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.93rem;
  color: var(--gray-text);
  border-bottom: 1px solid var(--light-bg);
}
.content-body ul li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--teal); font-weight: 700;
}
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  margin-bottom: 24px;
  position: sticky;
  top: 90px;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 16px; }
.related-links li { margin-bottom: 10px; }
.related-links a { font-size: 0.87rem; color: var(--teal); display: flex; gap: 6px; align-items: flex-start; }
.related-links a:hover { color: var(--navy); }
.highlight-box {
  background: linear-gradient(135deg, rgba(59,191,206,0.1), rgba(91,168,229,0.1));
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 20px 0;
}
.highlight-box p { margin: 0; font-size: 0.92rem; }

/* ---------- STICKY WHATSAPP BTN ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  color: white; font-size: 1.6rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .form-card     { max-width: 500px; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .grid-4        { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .content-layout{ grid-template-columns: 1fr; }
  .sidebar-widget { position: static; }
}
@media (max-width: 768px) {
  .grid-3        { grid-template-columns: 1fr; }
  .grid-2        { grid-template-columns: 1fr; }
  .form-section-inner { grid-template-columns: 1fr; }
  .stats-row     { grid-template-columns: 1fr 1fr; }
  .nav-menu      { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .nav-menu.open { display: flex; }
  .hamburger     { display: flex; }
  .hero-stats    { gap: 20px; }
  .checklist-grid{ grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bar    { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-row     { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-btns     { flex-direction: column; }
  .cta-btns      { flex-direction: column; align-items: center; }
}
