/* ============================================================
   Gary's Home Improvement and Handyman Service's
   Shared stylesheet — Springfield, TN
   ============================================================ */

:root {
  --red: #b3261e;
  --red-dark: #8f1c17;
  --red-tint: rgba(179,38,30,.08);
  --red-tint-strong: rgba(179,38,30,.14);
  --ink: #221e1b;
  --ink-soft: #55504c;
  --ink-subtle: #837c76;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #e8e2da;
  --dark: #211c19;
  --dark-soft: #3a332e;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .3px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ───────────────────────────────────────────────── */
#ghi-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo img { height: 46px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .4px;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-call-btn {
  background: var(--red);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-call-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 16px 24px 24px;
}

.nav-drawer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:hover { color: var(--red); }

.nav-drawer a.drawer-call {
  margin-top: 14px;
  background: var(--dark);
  color: #fff !important;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-weight: 700;
  border: none;
}
.nav-drawer a.drawer-fb {
  margin-top: 10px;
  color: #1877F2 !important;
  text-align: center;
  border: 1px solid rgba(24,119,242,.35);
  border-radius: 100px;
  padding: 12px;
}

@media (max-width: 860px) {
  .nav-links, .nav-call-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer.open { display: flex; }
}

.nav-spacer { height: 68px; }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary, .btn-dark, .btn-outline {
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, color .2s, border-color .2s;
  font-family: 'Inter', sans-serif;
}

.btn-primary { background: var(--red); color: #fff !important; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-dark { background: var(--dark); color: #fff !important; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-outline { border: 1.5px solid var(--line); color: var(--ink) !important; background: #fff; }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: .85rem; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 88% 0%, var(--red-tint) 0%, transparent 60%),
    var(--bg);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-sm { min-height: 36vh; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-tint);
  border: 1px solid rgba(179,38,30,.28);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--red-dark);
  margin-bottom: 24px;
}

/* ── CONTAINER / SECTION ─────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-md { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 92px 0; } }
.section-alt { background: #f3efe9; }

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(179,38,30,.3); box-shadow: 0 14px 30px rgba(34,30,27,.08); }

.glass {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ── LABEL / EYEBROW ─────────────────────────────────── */
.label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}

/* ── STAT / BADGE GRID (auto-reflowing, no forced mobile override needed) ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

/* ── TWO-COLUMN LAYOUT (image+text, form+sidebar) ─────── */
.cols-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}
.cols-2.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .cols-2 { grid-template-columns: 1fr; gap: 32px; }
}

/* ── GALLERY SCROLL ───────────────────────────────────── */
.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-item {
  flex-shrink: 0;
  width: 280px;
  border-radius: 18px;
  overflow: hidden;
}

/* ── IMAGE PLACEHOLDER ───────────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: repeating-linear-gradient(135deg, #f3efe9 0px, #f3efe9 14px, #eee8e0 14px, #eee8e0 28px);
  border: 1.5px dashed rgba(179,38,30,.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-subtle);
  text-align: center;
  padding: 22px;
  gap: 6px;
}
.img-placeholder .ph-icon { font-size: 1.8rem; opacity: .55; }
.img-placeholder .ph-title { color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.img-placeholder .ph-sub { font-size: .74rem; color: var(--ink-subtle); }

/* ── PROJECT PHOTO CARD ───────────────────────────────── */
.proj-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
}
.proj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.proj-card:hover img { transform: scale(1.06); }
.proj-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(17,14,12,.82), transparent);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .2px;
}

/* ── SERVICE ICON ─────────────────────────────────────── */
.service-icon {
  width: 50px;
  height: 50px;
  background: var(--red-tint);
  border: 1px solid rgba(179,38,30,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

/* ── TRUST BADGE ──────────────────────────────────────── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.trust-badge .check { color: var(--red); font-size: 1.05rem; flex-shrink: 0; }

/* ── FOOTER ───────────────────────────────────────────── */
#ghi-footer {
  background: var(--dark);
  border-top: 4px solid var(--red);
  padding: 56px 24px 28px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 16px;
}
.footer-logo img { height: 42px; width: auto; display: block; }
.footer-desc {
  color: #a89f97;
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 320px;
}
.footer-contact a {
  color: #c9c0b8;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: .88rem;
  word-break: break-word;
}
.footer-contact a:hover { color: #e2584e; }
.footer-heading {
  font-family: 'Oswald', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.footer-links a { color: #a89f97; text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #e2584e; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom-text { color: #8a8179; font-size: .8rem; }
.footer-credit a { color: #8a8179; text-decoration: none; font-size: .8rem; }
.footer-credit a:hover { color: #e2584e; }

/* ── MOBILE STICKY CTA ────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(34,30,27,.08);
  gap: 10px;
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}

@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  #ghi-footer { padding-bottom: 92px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-item { width: 76vw; min-width: 230px; }
}

/* ── DIVIDER ──────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
}

/* ── FORM ─────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 7px;
  letter-spacing: .3px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 13px 16px;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355504c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── REVIEWS ──────────────────────────────────────────── */
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.stars { color: var(--red); font-size: 1.05rem; letter-spacing: 2px; }

/* ── CONTACT CARD ─────────────────────────────────────── */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}
.contact-icon { font-size: 1.8rem; margin-bottom: 10px; display: block; }

/* ── CTA BAND (the one place red gets used boldly) ────── */
.cta-band {
  background: var(--red);
  border-top: none;
  border-bottom: none;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .text-muted { color: rgba(255,255,255,.85); }
.cta-band .btn-dark { background: var(--dark); }
.cta-band .btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff !important; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── UTILITY ──────────────────────────────────────────── */
.text-muted { color: var(--ink-soft); }
.text-subtle { color: var(--ink-subtle); }
.center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.rounded-full { border-radius: 100px; }
code { background: #f3efe9; padding: 2px 8px; border-radius: 6px; }
