/* =========================================================
   Timely Home Inspection, LLC — Design Tokens
   Concept: the honest inspection report. Blueprint-grid paper,
   ink-navy structure, an amber flag accent (the plastic tape
   inspectors leave on a checked panel), and a rotated
   "INSPECTED" stamp as the page's signature mark.
   ========================================================= */

:root{
  /* Color */
  --ink:        #16233A;   /* primary dark / headings */
  --ink-soft:   #2C4059;   /* secondary text on light */
  --paper:      #F6F2E9;   /* warm paper background */
  --paper-2:    #EFE9DA;   /* slightly deeper paper panel */
  --line:       #CFC6AE;   /* hairline / blueprint grid */
  --slate:      #3D5A73;   /* secondary blue */
  --amber:      #D9822B;   /* flag / accent */
  --amber-dark: #B5691C;
  --pass:       #3F7A5C;   /* checkmark green */
  --white:      #FFFFFF;

  /* Type */
  --f-display: "Space Grotesk", "Segoe UI", sans-serif;
  --f-body:    "Source Serif 4", Georgia, serif;
  --f-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Scale */
  --step-1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step-2: 1rem;
  --step-3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-4: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-5: clamp(2.3rem, 1.9rem + 2vw, 3.4rem);

  --radius: 4px;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: var(--step-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Faint blueprint grid wash behind the whole page */
body{
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  background-color: var(--paper);
  background-blend-mode: overlay;
  opacity: 1;
}
body{ background-color: var(--paper); }
body::before{ content: none; }

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: var(--f-display);
  color: var(--ink);
  margin: 0 0 0.5em 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1.1em 0; }
ul{ margin: 0 0 1.1em 0; padding-left: 1.2em; }

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

.visually-hidden{
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible{
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Eyebrow / checklist tag ---------- */
.tag{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-mono);
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.tag::before{
  content: "";
  width: 12px; height: 12px;
  border: 1.5px solid var(--slate);
  border-radius: 2px;
  display: inline-block;
}
.tag.is-pass{ color: var(--pass); }
.tag.is-pass::before{
  border-color: var(--pass);
  background:
    linear-gradient(-45deg, transparent 40%, var(--pass) 40% 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--pass) 45% 60%, transparent 60%);
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9em 1.5em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn-primary{
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover{ background: var(--amber-dark); transform: translateY(-2px); }
.btn-ghost{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--paper); }
.btn-block{ width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 233, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--f-display);
  color: var(--ink);
}
.brand-mark{
  width: 38px; height: 38px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--pass);
  flex-shrink: 0;
  position: relative;
}
.brand-name{
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-sub{
  display: block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-transform: uppercase;
  font-weight: 400;
}

.main-nav{ display: flex; }
.main-nav ul{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a{
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color .15s ease;
}
.main-nav a:hover{ color: var(--ink); border-color: var(--amber); }

.header-cta{ display: flex; align-items: center; gap: 18px; }
.header-phone{
  font-family: var(--f-mono);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone span{ color: var(--slate); font-weight: 400; }

.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.hamburger span{
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow{ margin-bottom: 18px; }
.hero h1{
  font-size: var(--step-5);
  max-width: 15ch;
}
.hero-lede{
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.hero-meta{
  display: flex;
  gap: 28px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--slate);
  flex-wrap: wrap;
}
.hero-meta strong{
  display: block;
  color: var(--ink);
  font-size: 1.3rem;
  font-family: var(--f-display);
}

/* --- signature element: the report clipboard --- */
.report-card{
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px 26px;
  box-shadow: 0 18px 40px -20px rgba(22,35,58,0.35);
  transform: rotate(1.2deg);
}
.report-card::before{
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: var(--ink);
  border-radius: 4px;
}
.report-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.report-head h2{
  font-size: 1.05rem;
  margin: 0;
}
.report-head span{
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--slate);
  text-transform: uppercase;
}
.report-rows{ list-style: none; margin: 0 0 18px; padding: 0; }
.report-rows li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.report-rows li:last-child{ border-bottom: none; }
.check{
  width: 18px; height: 18px;
  border-radius: 3px;
  border: 1.5px solid var(--pass);
  flex-shrink: 0;
  position: relative;
}
.check::after{
  content: "";
  position: absolute;
  left: 3px; top: -1px;
  width: 5px; height: 9px;
  border-right: 2px solid var(--pass);
  border-bottom: 2px solid var(--pass);
  transform: rotate(40deg);
}
.report-rows li .status{ margin-left: auto; color: var(--pass); font-weight: 600; }

.stamp{
  position: absolute;
  bottom: 18px; right: 18px;
  width: 108px; height: 108px;
  border: 3px solid var(--amber);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(-14deg);
  color: var(--amber-dark);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 2deg, transparent 2deg);
}
.stamp span{ display:block; }
.stamp .big{ font-size: 1rem; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section{ padding: 72px 0; }
.section-alt{ background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head{ max-width: 62ch; margin-bottom: 40px; }
.section-head h2{ font-size: var(--step-4); }
.section-head p{ color: var(--ink-soft); font-size: 1.05rem; }

/* trust strip */
.trust-strip{
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.trust-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.trust-item .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pass);
  flex-shrink: 0;
}

/* content prose blocks */
.prose h3{ font-size: 1.25rem; margin-top: 1.6em; }
.prose p{ max-width: 74ch; }
.prose a{
  color: var(--slate);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.prose a:hover{ color: var(--amber-dark); }

.two-col{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

/* card grid (applications / benefits) */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card .tag{ margin-bottom: 14px; }
.card h3{ font-size: 1.08rem; margin-bottom: 8px; }
.card p{ font-size: 0.95rem; margin-bottom: 0; color: var(--ink-soft); }

/* process steps */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.step{
  padding: 0 20px;
  position: relative;
}
.step:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 20px; right: -1px;
  width: 1px; height: calc(100% - 20px);
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 12px);
  display: none;
}
@media(min-width: 861px){
  .step:not(:last-child)::after{ display: block; }
}
.step-num{
  font-family: var(--f-mono);
  color: var(--amber-dark);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 8px;
}
.step h3{ font-size: 1.1rem; }
.step p{ font-size: 0.95rem; color: var(--ink-soft); }

/* cost / pricing panel */
.cost-panel{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.cost-list{ list-style: none; margin: 0; padding: 0; }
.cost-list li{
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 0.92rem;
}
.cost-list li:last-child{ border-bottom: none; }
.cost-list span{ color: var(--ink); font-weight: 600; }

/* why choose */
.why-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.why-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.why-list li{ display: flex; gap: 14px; align-items: flex-start; }
.why-list .check{ margin-top: 4px; }
.why-list p{ margin: 0; font-size: 0.98rem; }
.why-list strong{ display: block; color: var(--ink); font-family: var(--f-display); font-size: 1.02rem; }

/* FAQ */
.faq-list{ max-width: 78ch; }
.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-q .plus{
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--amber-dark);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[data-open="true"] .plus{ transform: rotate(45deg); }
.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.faq-a p{
  padding: 0 4px 20px;
  margin: 0;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Conclusion / CTA banner */
.cta-banner{
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.cta-banner h2{ color: var(--paper); font-size: var(--step-4); max-width: 30ch; margin: 0 auto 16px; }
.cta-banner p{ color: #C9D3DE; max-width: 60ch; margin: 0 auto 28px; }
.cta-banner .btn-primary{ font-size: 1rem; }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
}
.contact-list{ list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.contact-list li{ display: flex; gap: 14px; }
.contact-list .label{
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}
.contact-list a{ color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover{ color: var(--amber-dark); }
.map-frame{
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-2);
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 32px;
}
.map-frame p{ margin: 0; max-width: 32ch; color: var(--ink-soft); }

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--paper-2);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--slate);
}
.footer-inner a{ color: var(--ink-soft); text-decoration: none; }
.footer-inner a:hover{ color: var(--amber-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px){
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .two-col{ grid-template-columns: 1fr; }
  .cost-panel{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px){
  .main-nav{
    position: fixed;
    top: 73px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open{ max-height: 420px; }
  .main-nav ul{
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a{
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .hamburger{ display: flex; }
  .header-phone{ display: none; }

  .hero-inner{ grid-template-columns: 1fr; }
  .report-card{ transform: rotate(0); max-width: 420px; margin: 0 auto; }
  .steps{ grid-template-columns: 1fr; gap: 32px; }
  .card-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .header-inner{ padding: 14px 18px; }
  .hero{ padding: 44px 0 56px; }
  section{ padding: 52px 0; }
  .hero-meta{ gap: 20px; }
  .trust-grid{ grid-template-columns: 1fr 1fr; }
  .contact-card{ padding: 24px; }
}
