/* Southern Home Improvements of LA — restored site.
   The original Weebly theme stylesheet was never archived, so this is new work built
   around the recovered copy and photos. Deliberately plain: one stylesheet, no build
   step, no framework. A contractor's site should load fast on a phone in a driveway. */

:root {
  --navy: #12324f;
  --navy-dark: #0b2438;
  --navy-soft: #1d4e78;
  --accent: #d97706;
  --accent-dark: #b45309;
  --ink: #1c2430;
  --muted: #56636f;
  --line: #dfe4e9;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(18, 50, 79, .09), 0 8px 24px rgba(18, 50, 79, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-soft); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }

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

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cbd8e4;
  font-size: .875rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: flex-end;
  min-height: 40px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 74px;
}
.brand { text-decoration: none; margin-right: auto; }
.brand strong {
  display: block;
  font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy);
}
.brand span { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 9px 12px; font-size: 1rem; color: var(--navy); cursor: pointer;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 9px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600;
}
.nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--accent-dark); }

.has-sub { position: relative; }
.has-sub > button {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px; border: 0; border-radius: 6px; background: none;
  font: inherit; font-size: .93rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.has-sub > button:hover { background: var(--bg-alt); color: var(--navy); }
.has-sub > button::after { content: "▾"; font-size: .75rem; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.submenu[hidden] { display: none; }
.submenu a { font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 6px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--navy-dark) center/cover no-repeat;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(9, 26, 42, .74), rgba(9, 26, 42, .82));
}
.hero .wrap { position: relative; padding-top: 84px; padding-bottom: 84px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p.lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.8em; color: #dbe6f0; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.pagehead { background: var(--navy); color: #fff; }
.pagehead .wrap { padding: 48px 20px; }
.pagehead h1 { color: #fff; margin: 0; }
.pagehead p { margin: .5em 0 0; color: #c6d6e4; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--muted); max-width: 620px; margin: .5em auto 0; }

.prose { max-width: 760px; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }

/* ---------- Cards ---------- */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  display: block; padding: 26px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
}
a.card:hover { border-color: var(--navy-soft); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust div { text-align: center; }
.trust strong { display: block; font-size: 2rem; color: var(--accent-dark); }
.trust span { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.grid-photos {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid-photos button {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; line-height: 0;
}
.grid-photos img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .25s ease;
}
.grid-photos button:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 18, 30, .93);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; border-radius: 6px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; border-radius: 6px; font-size: 1.6rem; line-height: 1;
  padding: 10px 16px; cursor: pointer;
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ---------- Form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-soft); outline-offset: 1px; border-color: var(--navy-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.hp { position: absolute; left: -9999px; }

.form-note { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; font-size: .95rem; }
.form-note.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.form-note.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-note[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.big-call {
  display: block; text-align: center;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 28px; border-radius: var(--radius);
}
.big-call span { display: block; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: #a9c2d6; }
.big-call strong { display: block; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.01em; }

.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.areas li {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: .9rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c6d6e4; max-width: 560px; margin: 0 auto 1.6em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark); color: #a9bccd;
  padding: 52px 0 26px; font-size: .93rem;
}
.site-footer h4 { color: #fff; margin: 0 0 .8em; font-size: 1rem; }
.site-footer a { color: #dce8f2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .85rem; color: #8ba2b6;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px; max-height: 78vh; overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; flex-wrap: wrap; }
  .has-sub { position: static; }
  .has-sub > button { width: 100%; justify-content: space-between; }
  .submenu { position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  section { padding: 48px 0; }
  .hero .wrap { padding-top: 60px; padding-bottom: 60px; }
}
