/* ============================================================
   SteadyHandyman — Shared Stylesheet
   To update colors, fonts, or spacing: change the variables
   in the :root block below.
   ============================================================ */

/* ----- GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ----- CSS VARIABLES ----- */
:root {
  --primary:       #066da7;
  --primary-dark:  #054f7a;
  --foreground:    #0f2a3d;
  --bg:            #ffffff;
  --muted:         #f4f7fa;
  --border:        #dde8f0;
  --text:          #3a5a6a;
  --text-light:    #6a8aa0;
  --font-heading:  'Oswald', sans-serif;
  --font-body:     'Inter', sans-serif;
  --max:           1200px;
  --radius:        10px;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--foreground); line-height: 1.15; text-transform: uppercase; letter-spacing: 0.5px; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ----- LAYOUT HELPERS ----- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--muted { background: var(--muted); }
.section--dark { background: var(--foreground); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius); padding: 12px 28px;
  cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: #e8f3fb; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ----- NAVIGATION ----- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--foreground);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex; gap: 4px; align-items: center; flex: 1;
  margin-left: 16px;
}
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; transition: all 0.15s;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.nav-phone { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.nav-phone:hover { color: #fff; }
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--foreground); flex-direction: column; padding: 16px 24px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ----- HERO ----- */
.hero {
  background: var(--foreground);
  min-height: 520px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero--with-image { min-height: 600px; }
.hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.25; }
.hero-content { position: relative; z-index: 1; color: #fff; padding: 80px 0; }
.hero-label { color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,0.75); max-width: 600px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ----- PAGE HEADER (non-hero interior pages) ----- */
.page-header { background: var(--muted); border-bottom: 1px solid var(--border); padding: 64px 0 48px; text-align: center; }
.page-header h1 { color: var(--foreground); margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ----- SECTION HEADINGS ----- */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { font-size: 1.05rem; color: var(--text-light); max-width: 580px; margin: 0 auto; }
.section-heading .eyebrow { color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }

/* ----- TRUST BAR ----- */
.trust-bar { background: var(--primary); padding: 14px 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
.trust-bar span { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.trust-bar span::before { content: '✓'; font-size: 0.9rem; }

/* ----- SERVICE CARDS ----- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all 0.2s; position: relative;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(6,109,167,0.12); transform: translateY(-2px); }
.service-card-icon { font-size: 2rem; margin-bottom: 14px; }
.service-card h3 { color: var(--foreground); margin-bottom: 8px; font-size: 1rem; }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* ----- REVIEW CARDS ----- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.review-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.review-author { font-weight: 700; color: var(--foreground); font-size: 0.9rem; }
.review-meta { font-size: 0.8rem; color: var(--text-light); }

/* ----- BEFORE / AFTER SLIDER ----- */
.ba-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius); overflow: hidden; }
.ba-side { position: relative; }
.ba-side img { width: 100%; height: 280px; object-fit: cover; display: block; }
.ba-label { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.ba-caption { font-size: 0.85rem; color: var(--text-light); margin-top: 10px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 40px; }
.portfolio-item h3 { font-size: 1.1rem; margin: 14px 0 6px; color: var(--foreground); }
.portfolio-item p { font-size: 0.9rem; color: var(--text-light); }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0; overflow: hidden; transition: box-shadow 0.2s;
}
details.faq-item[open] { box-shadow: 0 4px 16px rgba(0,0,0,0.07); border-color: var(--primary); }
details.faq-item summary {
  font-weight: 700; font-size: 1rem; color: var(--foreground); padding: 20px 24px;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; color: var(--primary); font-size: 1.4rem; font-weight: 400; flex-shrink: 0; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item summary:hover { color: var(--primary); }
.faq-answer { padding: 0 24px 20px; color: var(--text); font-size: 0.95rem; line-height: 1.7; }

/* ----- CONTACT FORM ----- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--foreground); }
.form-group input, .form-group select, .form-group textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--foreground); background: var(--bg);
  transition: border-color 0.15s; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,109,167,0.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.discount-checkbox {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border: 2px solid var(--primary); border-radius: var(--radius);
  background: rgba(6,109,167,0.04); cursor: pointer; margin-bottom: 20px;
}
.discount-checkbox input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; accent-color: var(--primary); cursor: pointer; }
.discount-checkbox .dc-label { font-weight: 700; font-size: 1rem; color: var(--foreground); }
.discount-checkbox .dc-sub { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }

/* ----- CTA SECTION ----- */
.cta-section { background: var(--primary); padding: 64px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- STEP LIST ----- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step h3 { color: var(--foreground); margin-bottom: 4px; font-size: 1rem; }
.step p { font-size: 0.9rem; color: var(--text-light); }

/* ----- FOOTER ----- */
.footer { background: var(--foreground); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer h4 { font-family: var(--font-heading); color: #fff; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: var(--primary); }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ----- ABOUT PAGE ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-photo img { border-radius: var(--radius); width: 100%; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.value-card { background: var(--muted); border-radius: var(--radius); padding: 20px; }
.value-card h4 { color: var(--foreground); font-size: 0.9rem; margin-bottom: 4px; }
.value-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } .about-values { grid-template-columns: 1fr; } }

/* ----- PROSE (privacy/terms) ----- */
.prose h2 { font-size: 1.2rem; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.prose p { font-size: 0.95rem; color: var(--text); }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 1em; }
.prose ul li { font-size: 0.95rem; color: var(--text); margin-bottom: 4px; }
.prose a { color: var(--primary); text-decoration: underline; }

/* ----- MISC UTILITIES ----- */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.tag { display: inline-block; background: rgba(6,109,167,0.1); color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.info-card { background: var(--muted); border-radius: var(--radius); padding: 24px; text-align: center; }
.info-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.info-card h4 { color: var(--foreground); margin-bottom: 6px; font-size: 1rem; }
.info-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .hero-content { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .ba-wrap { grid-template-columns: 1fr; }
}
