/* Chadibis Handyman Services LLC — mobile-first styles */
:root {
  --navy: #0B2A4A;
  --navy-dark: #071E36;
  --red: #C8102E;
  --red-dark: #A50D26;
  --yellow: #FFC72C;
  --white: #ffffff;
  --bg-light: #F7F9FC;
  --bg-cream: #FFF8EC;
  --text: #1A2B3C;
  --text-muted: #5A6B7D;
  --border: #E3E9F0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.10);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }
section[id] { scroll-margin-top: 72px; }

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
}
.section-title.light { color: var(--white); }
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.section-sub.light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(11, 42, 74, 0.35); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(11, 42, 74, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand-logo { height: 46px; width: auto; }
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 8px 20px 20px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(11, 42, 74, 0.10);
}
.main-nav.open { display: flex; }
.main-nav a {
  padding: 12px 4px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.main-nav a:last-child { border-bottom: none; }
.main-nav .nav-cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
  border-radius: 999px;
  margin-top: 10px;
  border-bottom: none;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-phone {
  padding: 10px 16px;
  font-size: 0.85rem;
  background: var(--navy);
  color: var(--white);
}
.btn-phone span { display: none; }
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
  padding: 48px 0 64px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.g-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
}
.badge-google strong { font-weight: 700; }
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  line-height: 1.12;
}
.hl-yellow {
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 0 rgba(11, 42, 74, 0.12);
}
.hl-navy {
  font-size: clamp(1.5rem, 6.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-sub { font-size: 1.05rem; color: var(--text); margin-bottom: 14px; max-width: 560px; }
.trust-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}
.hero-ctas .btn { width: 100%; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.service-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.service-card p { font-size: 0.93rem; color: var(--text-muted); }

/* ---------- Work gallery ---------- */
.work { background: var(--bg-light); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.work-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.work-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.work-grid figure:hover img { transform: scale(1.05); }

/* ---------- Service areas ---------- */
.areas { background: var(--navy); padding: 48px 0; }
.areas-list {
  text-align: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 720px;
  margin: 0 auto;
}
.areas-list::before {
  content: "📍";
  display: block;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ---------- Reviews ---------- */
.reviews { background: var(--white); }
.google-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 28px;
  color: var(--text);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.review-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.stars { color: var(--yellow); font-size: 1.25rem; letter-spacing: 3px; margin-bottom: 12px; text-shadow: 0 1px 0 rgba(11,42,74,.15); }
.review-text { font-size: 0.98rem; margin-bottom: 14px; }
.reviewer { font-weight: 700; color: var(--navy); font-size: 0.92rem; }

/* ---------- About ---------- */
.about { background: var(--bg-cream); }
.about-inner { max-width: 760px; text-align: center; }
.about-inner p { font-size: 1.02rem; margin-bottom: 22px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Quote form ---------- */
.quote { background: var(--navy); }
.quote-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 42, 74, 0.12);
}
.form-field textarea { resize: vertical; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { text-align: center; font-size: 0.88rem; color: var(--text-muted); margin-top: 16px; }
.form-note a { color: var(--navy); font-weight: 600; }
.form-status { text-align: center; font-weight: 600; margin-top: 14px; min-height: 1.5em; }
.form-status.success { color: #1B7A3D; }
.form-status.error { color: var(--red); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, 0.85); padding: 40px 0; text-align: center; }
.footer-logo { height: 52px; width: auto; margin: 0 auto 16px; filter: brightness(0) invert(1); }
.footer-contact { margin-bottom: 8px; }
.footer-contact a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-hours { font-size: 0.88rem; margin-bottom: 12px; color: rgba(255, 255, 255, 0.7); }
.footer-copy { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  section { padding: 72px 0; }
  .section-title { font-size: 2.1rem; }
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .main-nav a { padding: 6px 0; border-bottom: none; font-size: 0.95rem; }
  .main-nav a:hover { color: var(--red); }
  .main-nav .nav-cta { margin-top: 0; padding: 10px 22px; color: var(--white); }
  .main-nav .nav-cta:hover { color: var(--white); background: var(--red-dark); }
  .hamburger { display: none; }
  .btn-phone span { display: inline; }
  .btn-phone { font-size: 0.95rem; }
  .hero-ctas { flex-direction: row; max-width: 640px; }
  .hero-ctas .btn { width: auto; flex: 1; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card:last-child { grid-column: 2; }
  .work-grid { grid-template-columns: repeat(5, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .quote-form { padding: 36px; }
}

/* ============ Clickable service cards + detail modal ============ */
.service-card[data-service] { cursor: pointer; }
.service-card[data-service]:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--yellow); }
.service-card[data-service]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.card-hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow-y: auto;
}
.service-modal.open { display: flex; }
.service-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 54, 0.65);
}
.service-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  max-width: 640px;
  width: 100%;
  padding: 28px 24px;
  animation: smPop 0.22s ease-out;
}
@keyframes smPop {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.service-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}
.service-modal-close:hover { color: var(--red); }
.service-modal-box h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 8px;
  padding-right: 36px;
}
.sm-desc { color: var(--text-muted); margin-bottom: 12px; }
.sm-list {
  list-style: none;
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}
.sm-list li { padding-left: 26px; position: relative; font-size: 0.95rem; }
.sm-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.sm-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.sm-photos img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.sm-cta { display: grid; gap: 10px; }
.sm-cta .btn { text-align: center; text-decoration: none; }

@media (min-width: 720px) {
  .sm-photos { grid-template-columns: repeat(4, 1fr); }
  .sm-photos img { height: 130px; }
  .sm-cta { grid-template-columns: 1fr 1fr; }
}
