/* =========================================================
   Bradley Home Inspections — trustworthy & clean theme
   ========================================================= */

:root {
  --navy:        #0f2942;
  --navy-2:      #163a5c;
  --slate:       #2f4a63;
  --accent:      #c8862b;   /* warm brass accent for CTAs */
  --accent-dark: #a86e1f;
  --ink:         #1c2833;
  --body:        #43535f;
  --muted:       #6b7885;
  --line:        #e2e8ee;
  --bg:          #ffffff;
  --bg-alt:      #f4f7fa;
  --white:       #ffffff;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow:      0 10px 30px rgba(15, 41, 66, 0.08);
  --shadow-lg:   0 20px 50px rgba(15, 41, 66, 0.14);
  --maxw:        1120px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 .6rem;
}
.eyebrow.light { color: #e9c88a; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.8rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(200, 134, 43, .35); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(200, 134, 43, .45); }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(15,41,66,.25); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

.btn-phone { background: var(--navy); color: #fff; padding: .6rem 1.1rem; font-size: .98rem; }
.btn-phone:hover { background: var(--navy-2); color: #fff; }
.phone-icon { font-size: 1.05em; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--navy); color: #fff;
  border-radius: 10px;
  font-weight: 700; font-size: .9rem; letter-spacing: .02em;
  font-family: "Source Sans 3", sans-serif;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.brand-sub { font-size: .76rem; color: var(--muted); }

.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a { color: var(--slate); font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--accent-dark); }

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

.mobile-nav { display: none; flex-direction: column; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.mobile-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--slate); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-call { color: var(--accent-dark) !important; }
.mobile-nav.open { max-height: 420px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(15,41,66,.94) 0%, rgba(22,58,92,.92) 60%, rgba(47,74,99,.9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
  color: #eaf1f8;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-inner { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero-lead { font-size: 1.18rem; color: #cdd9e6; max-width: 660px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.hero-badges {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.8rem;
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { color: #fff; font-size: 1.05rem; }
.hero-badges span { color: #9fb3c8; font-size: .84rem; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--accent); color: #fff; }
.trust-strip p { margin: 0; padding: .9rem 0; text-align: center; font-weight: 600; font-size: .98rem; letter-spacing: .01em; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #d7e2ee; }
.section-navy h2 { color: #fff; }
.section-navy .section-lead.light { color: #b9c9d9; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section-navy .section-lead { color: #b9c9d9; }

.price-highlight { color: var(--accent); }
.section-navy .price-highlight { color: #f0c274; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cfe0ee; }
.card-icon { font-size: 2rem; margin-bottom: .8rem; }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ===== Steps ===== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step;
}
.steps li { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.6rem; box-shadow: var(--shadow); position: relative; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1rem; font-family: "Spectral", serif;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate) 100%);
  border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: rgba(255,255,255,.55); text-align: center; font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  outline: 1px solid var(--line);
}
.about-caption { text-align: center; margin: .9rem 0 0; font-weight: 600; color: var(--slate); font-size: .95rem; letter-spacing: .01em; }
.about-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.about-facts li { padding-left: 0; font-size: .96rem; color: var(--body); border-left: 3px solid var(--accent); padding: .1rem 0 .1rem .8rem; }
.about-facts strong { display: block; color: var(--ink); font-family: "Spectral", serif; font-size: 1.05rem; }

/* ===== Pricing ===== */
.pricing-factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: 3rem; }
.factor { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.6rem 1.3rem; }
.factor-icon { font-size: 1.7rem; margin-bottom: .6rem; }
.factor h3 { color: #fff; margin-bottom: .35rem; font-size: 1.1rem; }
.factor p { margin: 0; color: #a9bccd; font-size: .93rem; }
.pricing-cta { text-align: center; }
.pricing-cta p { font-size: 1.2rem; color: #fff; margin-bottom: 1.2rem; font-family: "Spectral", serif; }

/* ===== Service area ===== */
.area-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
  max-width: 820px; margin: 0 auto;
}
.area-list li {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: .7rem 1rem; text-align: center;
  font-weight: 600; color: var(--slate); font-size: .96rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.area-list li:hover { background: var(--navy); color: #fff; }

/* ===== Contact ===== */
.contact-cta { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-lead { font-size: 1.1rem; color: var(--muted); margin: 0 auto 2rem; }
.contact-call { margin-bottom: 2.5rem; }

.contact-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem;
  text-align: left; max-width: 520px; margin: 0 auto;
}
.contact-list li { display: flex; flex-direction: column; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-label { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: var(--muted); margin-bottom: .15rem; }
.contact-list a, .contact-list span:not(.contact-label) { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--accent-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #b9c9d9; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 3rem 24px 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand strong { display: block; color: #fff; font-size: 1.15rem; font-family: "Spectral", serif; }
.footer-brand span { font-size: .88rem; color: #8fa5ba; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; text-align: right; }
.footer-contact a, .footer-contact span { color: #cdd9e6; font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 1.1rem; padding-bottom: 1.1rem; font-size: .84rem; color: #8fa5ba; }
.footer-bar a { color: #8fa5ba; }
.footer-bar a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-factors { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-media { max-width: 340px; margin: 0 auto; }
  .contact-list { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav, .btn-phone { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .mobile-nav { display: flex; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-factors { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-bar .container { flex-direction: column; gap: .5rem; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
