/* ============================================================
   Goodmans Rescue — Shared Stylesheet
   www.goodmansrescue.com
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

main { flex: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: #0f172a; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p { color: #475569; line-height: 1.75; }

/* ---------- Layout Helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--grey { background: #f8fafc; }
.section--dark { background: #0f172a; color: #f1f5f9; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.site-logo img { height: 44px; width: auto; flex-shrink: 0; }
.site-logo span { font-weight: 800; font-size: 1.2rem; color: #0f172a; letter-spacing: -.02em; }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  padding: .5rem .875rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.active { background: #f1f5f9; color: #ea580c; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #ea580c;
  color: #fff !important;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn-call:hover { background: #c2410c; transform: translateY(-1px); }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #22c55e;
  color: #fff !important;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s;
  white-space: nowrap;
}
.btn-wa:hover { background: #16a34a; }

.btn-app {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #0f172a;
  color: #fff !important;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1);
}
.btn-app:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.btn-app svg { color: #4ade80; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: all .2s;
}

/* ---------- Hero ---------- */
.hero {
  background: #0f172a;
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0f172a 55%, transparent);
}
.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #ea580c;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #c2410c; transform: translateY(-2px); }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #22c55e;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .15s;
}
.btn-whatsapp:hover { background: #16a34a; }

/* ---------- Stats Band ---------- */
.stats-band {
  background: #ea580c;
  color: #fff;
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.stat-num { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #fed7aa; margin-top: .25rem; }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.service-card h3 { color: #0f172a; margin-bottom: .75rem; font-size: 1.125rem; }
.service-card p { color: #64748b; font-size: .9rem; flex: 1; margin-bottom: 1.25rem; }
.service-card .card-link {
  color: #ea580c;
  font-weight: 700;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.service-card .card-link::after { content: '→'; transition: transform .15s; }
.service-card:hover .card-link::after { transform: translateX(4px); }

/* ---------- Why Choose Section ---------- */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.trust-img-wrap { position: relative; }
.trust-img-bg {
  position: absolute;
  inset: -8px;
  background: #fff7ed;
  border-radius: 24px;
  transform: rotate(-2deg);
  z-index: 0;
}
.trust-img-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}
.trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.trust-stat-num { font-size: 2.5rem; font-weight: 800; color: #ea580c; }
.trust-stat-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #64748b; }

/* ---------- How It Works ---------- */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff7ed;
  color: #ea580c;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p { color: #374151; padding-top: .6rem; }

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  background: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq-btn:hover { background: #f8fafc; }
.faq-btn .faq-icon { flex-shrink: 0; font-size: 1.25rem; color: #ea580c; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 1.5rem;
  background: #f8fafc;
}
.faq-item.open .faq-answer { padding: 1rem 1.5rem 1.25rem; }
.faq-answer p { color: #475569; font-size: .95rem; }

/* ---------- Enquiry Form ---------- */
.enquiry-form-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.enquiry-form-wrap h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.125rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: .9rem;
  color: #0f172a;
  background: #f9fafb;
  transition: border-color .15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ea580c;
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.btn-submit:hover { background: #c2410c; }

/* ---------- Content page layout ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
.content-main > * + * { margin-top: 3rem; }
.content-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; }
.prose h2 { margin-bottom: 1rem; color: #0f172a; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-top: .75rem; }
.prose ul li { color: #475569; margin-bottom: .4rem; }

/* ---------- Route Page Hero ---------- */
.route-badge {
  display: inline-block;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: .75rem 0;
  font-size: .85rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumb li + li::before { content: '/'; color: #94a3b8; margin-right: .35rem; }
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #ea580c; }
.breadcrumb [aria-current] { color: #374151; font-weight: 600; }

/* ---------- Internal Links Panel ---------- */
.route-links { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem; }
.route-links h4 { margin-bottom: 1rem; font-size: 1rem; color: #0f172a; }
.route-links ul { display: flex; flex-direction: column; gap: .5rem; }
.route-links a {
  color: #ea580c;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.route-links a::before { content: '→'; }
.route-links a:hover { text-decoration: underline; }

/* ---------- Emergency CTA Box ---------- */
.cta-box {
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
}
.cta-box h4 { color: #fff; margin-bottom: .5rem; }
.cta-box p { color: #94a3b8; font-size: .875rem; margin-bottom: 1.25rem; }
.cta-box .btn-call-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #ea580c;
  color: #fff;
  padding: .875rem 1.5rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: .75rem;
  transition: background .15s;
}
.cta-box .btn-call-large:hover { background: #c2410c; }
.cta-box .btn-wa-small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #22c55e;
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s;
}
.cta-box .btn-wa-small:hover { background: #16a34a; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card .stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: .95rem;
  font-style: italic;
  color: #475569;
  line-height: 1.6;
  flex: 1;
}
.testimonial-author {
  font-weight: 700;
  font-size: .85rem;
  color: #0f172a;
}

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #94a3b8; padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  border-bottom: 1px solid #1e293b;
}
.footer-brand p { font-size: .875rem; line-height: 1.7; margin-top: .75rem; }
.footer-col h5 { color: #f1f5f9; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .875rem; color: #94a3b8; transition: color .15s; }
.footer-col a:hover { color: #fb923c; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
}
.footer-nap { font-size: .8rem; color: #64748b; margin-top: .25rem; }

/* Footer logo + 30-years badge */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: #1e293b;
  padding: 6px;
  flex-shrink: 0;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.01em;
}
.footer-brand-sub {
  font-size: .75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.footer-years-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
  border-radius: 10px;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
}
.footer-years-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.footer-years-label {
  font-size: .7rem;
  font-weight: 700;
  color: #fed7aa;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.3;
}

/* legacy footer-logo (used in older inline footers) */
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.footer-logo img { height: 36px; width: auto; }
.footer-logo span { font-weight: 800; font-size: 1rem; color: #e2e8f0; }

/* ---------- Mobile Sticky Bar ---------- */
.mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}
.mobile-sticky a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem .5rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mobile-sticky .ms-call { background: #ea580c; color: #fff; }
.mobile-sticky .ms-wa { background: #22c55e; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; box-shadow: 0 8px 20px rgba(0,0,0,.1); z-index: 999; }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
  .hamburger { display: flex; }
  .nav-cta .btn-call span { display: none; }
  .nav-cta .btn-wa { display: none; }
  .nav-cta .btn-app { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 64px; }
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-whatsapp { width: 100%; justify-content: center; }
}
