/* ==========================================================================
   House Burned Down — Restoration Site Styles
   Palette: white, navy, gray, muted red/orange accent
   ========================================================================== */

:root {
  --navy: #0f2147;
  --navy-dark: #0a1733;
  --navy-light: #1a3066;
  --accent: #c0492b;        /* muted red/orange */
  --accent-dark: #9c3a21;
  --gray-50: #f6f7f9;
  --gray-100: #eceff3;
  --gray-200: #d9dde4;
  --gray-400: #8b94a3;
  --gray-600: #4a5363;
  --gray-800: #232a36;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 33, 71, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 33, 71, 0.08);
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

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

/* ----- Top bar ----- */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.88rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 8px;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: #ffd1b8; }
.topbar .topbar-info { display: flex; gap: 18px; flex-wrap: wrap; }

/* ----- Header / Nav ----- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; }
.brand span small {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 16px !important;
  border-radius: var(--radius);
  border: none !important;
}
.nav-cta:hover { background: var(--accent-dark); color: var(--white) !important; }

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

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-light); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(10,23,51,0.85), rgba(15,33,71,0.78)),
              url('../images/fire-damage.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0 90px;
}
.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  max-width: 760px;
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 660px;
  color: #e6ebf3;
  margin-bottom: 28px;
}
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----- Page Header (inner pages) ----- */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 56px 0 48px;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: #cdd5e3; margin: 0; max-width: 720px; }

/* ----- Sections ----- */
section { padding: 64px 0; }
section.alt { background: var(--gray-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--gray-600); }

/* ----- Grid layouts ----- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ----- Cards ----- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(192, 73, 43, 0.1);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 700;
}

/* Service card with image */
.service-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card .body { padding: 20px 22px 24px; }
.service-card h3 { margin-top: 0; }

/* ----- Why Choose Us ----- */
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature .num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.feature h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--gray-600); font-size: 0.95rem; }

/* ----- Service area chips ----- */
.chip-list {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chip {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ----- CTA strip ----- */
.cta-strip {
  background: var(--navy);
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: #cdd5e3; margin-bottom: 22px; }
.cta-strip .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- About layout ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ----- Contact layout ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}
.contact-info p { margin: 6px 0; }
.contact-info .label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-top: 16px;
  font-weight: 600;
}

/* Form */
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
  color: var(--gray-800);
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192, 73, 43, 0.15);
}
.form-row textarea { min-height: 130px; resize: vertical; }

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.success { display: block; background: #e7f4ec; color: #1f6b3a; border: 1px solid #b6dec3; }
.form-status.error   { display: block; background: #fdecea; color: #8a2018; border: 1px solid #f3c0bb; }

/* Map */
.map-wrap {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-dark);
  color: #cdd5e3;
  padding: 44px 0 22px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer a { color: #cdd5e3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #8b94a3;
}

/* ----- Responsive ----- */
@media (max-width: 880px) {
  h1 { font-size: 1.85rem; }
  .hero { padding: 60px 0 70px; }
  .hero h1 { font-size: 2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav { position: relative; }

  .topbar .container { justify-content: center; text-align: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
