/* ==========================================================================
   Home to Home Handyman Services — global stylesheet
   Direction: bold-trade, modeled on Ace Handyman Services structure
   (sticky phone-first header, icon-grid services, "Why Choose Us" trust band)
   Palette: Trade Blue / Eggshell / Slate Grey / Desert Sun Yellow accent
   Fonts: Barlow Condensed (display) + Inter (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --blue:        #2B5C7E;   /* Trade Blue — header, nav, headings, primary */
  --blue-deep:   #1E4258;   /* darker blue — hover states, footer base */
  --eggshell:    #F6F2E9;   /* page background */
  --white:       #FFFFFF;
  --grey:        #6B6F73;   /* body copy, secondary text */
  --grey-line:   #DEDACE;   /* borders, dividers, tint-section lines */
  --tint:        #EFEAE0;   /* section tint background (warm off-eggshell) */
  --ink:         #23262B;   /* headings, high-contrast text */
  --yellow:      #F5B700;   /* Desert Sun Yellow — CTA / accent ONLY, used sparingly */
  --yellow-ink:  #23262B;   /* text color on yellow backgrounds */
  --phone-red:   #E63946;   /* tiny detail only — nav phone icon accent */

  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--eggshell);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

p { color: var(--grey); margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn--primary {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.btn--primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--dark {
  background: var(--blue);
  color: var(--white);
}
.btn--dark:hover { background: var(--blue-deep); }

/* ---------- Emergency / phone-first micro-bar ---------- */
.top-bar {
  background: var(--blue-deep);
  color: #D8E3EA;
  font-size: 0.85rem;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 32px;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 32px;
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}
.logo img { height: 92px; width: auto; }
.logo .accent { color: var(--yellow); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.98rem;
  opacity: 0.92;
}
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.main-nav a.current { opacity: 1; border-bottom: 2px solid var(--yellow); padding-bottom: 4px; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-phone svg { flex-shrink: 0; color: var(--phone-red); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(30,66,88,0.72) 0%, rgba(35,38,43,0.55) 100%), var(--ink);
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero-inner { max-width: 660px; padding: 90px 32px; }
.hero h1 { color: var(--white); }
.hero p.lede { color: #E6EAEC; font-size: 1.15rem; max-width: 52ch; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 22px; }

.hero--bottom { align-items: flex-end; }
.hero--bottom .hero-inner { padding-top: 220px; padding-bottom: 56px; }

.hero-page {
  min-height: 320px;
  padding: 70px 0;
}
.hero-page .hero-inner { padding: 0 32px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); }
.section--blue {
  background: var(--blue);
  color: var(--white);
}
.section--blue h2, .section--blue h3 { color: var(--white); }
.section--blue p { color: #D8E3EA; }
.section--tight { padding: 48px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Trust strip (real background only, no fabricated stats) ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  text-align: center;
}
.trust-item { max-width: 240px; }
.trust-item svg { color: var(--blue); margin-bottom: 10px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.92rem; margin: 0; }

/* ---------- Service icon-card grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 260px;
  background-color: var(--blue);
  background-repeat: no-repeat;
  background-position: center 32%;
  background-size: 96px 96px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(35,38,43,0.28);
}
.service-card--fill {
  background-size: cover;
  background-position: center;
}
.service-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 22px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, rgba(30,66,88,0) 0%, rgba(30,66,88,0.55) 45%, rgba(30,66,88,0.9) 100%);
}
.service-card-content h3 { color: var(--white); margin-bottom: 6px; }
.service-card-content p { color: #E6EAEC; font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}
.why-item { display: flex; gap: 16px; }
.why-item .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--blue);
  flex-shrink: 0;
}
.why-item h3 { margin-bottom: 6px; }
.why-item p { font-size: 0.95rem; margin: 0; }

/* ---------- About / owner block ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-photo img { border-radius: 10px; }
.about-copy p { font-size: 1.02rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue-deep);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #D8E3EA; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band-actions { display: flex; gap: 16px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid img {
  border-radius: 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.contact-info-list svg { color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 36px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.98rem;
  background: var(--eggshell);
  color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C7CBCE;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}
.footer-logo .accent { color: var(--yellow); }
.site-footer h4 {
  color: var(--white);
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C7CBCE; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9BA0A4;
}
.footer-bottom a { color: #9BA0A4; }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.15s ease;
}
.footer-social a:hover { background: var(--yellow); }
.footer-social img { width: 18px; height: 18px; object-fit: contain; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Mobile nav — base rule FIRST, media-query override SECOND.
   (Known recurring bug across builds: putting base display:none after the
   override silently breaks the mobile menu. Cascade order verified here.)
   ========================================================================== */
.mobile-nav-panel { display: none; }

@media (max-width: 880px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-cta .btn--primary { display: none; }
  .mobile-menu-toggle { display: block; }

  .mobile-nav-panel {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--blue-deep);
    padding: 90px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 60;
  }
  body.nav-open .mobile-nav-panel { transform: translateX(0); }
  .mobile-nav-panel a {
    display: block;
    color: var(--white);
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.3rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .mobile-nav-panel a.mobile-nav-cta {
    margin-top: 18px;
    background: var(--yellow);
    color: var(--yellow-ink);
    text-align: center;
    border-radius: 6px;
    border-bottom: none;
    font-size: 1.05rem;
  }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 240px; }
  .why-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 24px; }
  .wrap { padding: 0 20px; }
}
