/* Stuart's Home Repair & Construction — main stylesheet */

:root {
  --navy: #0b1c2c;
  --navy-light: #16324a;
  --charcoal: #1c1f24;
  --white: #ffffff;
  --off-white: #f4f6f8;
  --gray: #5b6572;
  --gray-light: #e3e7eb;
  --gold: #f2a71b;
  --gold-dark: #d98c0a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 28, 44, 0.12);
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-navy .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 1.05rem; }
.section-navy .section-head p { color: #c7d2dc; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(242, 167, 27, 0.35);
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo { color: var(--white); display: flex; flex-direction: row; align-items: center; gap: 12px; line-height: 1.1; }
.logo-mark { flex-shrink: 0; width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; }
.logo strong { font-family: 'Poppins', sans-serif; font-size: 1.25rem; letter-spacing: 0.02em; }
.logo span { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.site-footer .logo-mark { width: 46px; height: 46px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  color: #d6dee5;
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.call-now {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
}
.call-now svg { width: 18px; height: 18px; stroke: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 140px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: linear-gradient(135deg, rgba(242,167,27,0.12), rgba(242,167,27,0) 60%);
  transform: rotate(12deg);
  pointer-events: none;
  z-index: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(5px) brightness(0.75);
  transform: scale(1.08);
}
.hero-media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,28,44,0.92) 0%, rgba(11,28,44,0.82) 45%, rgba(11,28,44,0.68) 100%);
}
.hero-inner { max-width: 640px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.15rem; color: #cdd8e0; margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; margin-top: 56px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 10px; color: #cdd8e0; font-size: 0.92rem; font-weight: 600; }
.hero-trust svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; }

.hero-shape {
  position: absolute;
  bottom: -2px; left: 0; width: 100%; line-height: 0;
}

/* Icon cards (services) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--gold); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.96rem; }
.card a.learn { display: inline-block; margin-top: 14px; color: var(--gold-dark); font-weight: 700; font-size: 0.9rem; }

/* Why choose us */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-row { grid-template-columns: 1fr; } }
.feature {
  text-align: center;
  padding: 10px;
}
.feature .card-icon { margin: 0 auto 18px; background: rgba(242,167,27,0.14); }
.feature .card-icon svg { stroke: var(--gold); }
.feature h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: #c7d2dc; font-size: 0.92rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .num { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.stats .label { color: #c7d2dc; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.testimonial p.quote { font-size: 1.02rem; color: var(--charcoal); margin-bottom: 20px; font-style: italic; }
.testimonial .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 1.1rem; }
.testimonial .author { font-weight: 700; color: var(--navy); }
.testimonial .author span { display: block; font-weight: 500; color: var(--gray); font-size: 0.85rem; }

/* Placeholder project image */
.project-thumb {
  aspect-ratio: 4/3;
  border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(135deg, var(--navy-light), var(--navy-light) 10px, var(--navy) 10px, var(--navy) 20px);
  display: flex; align-items: center; justify-content: center;
  color: #97a7b4;
  gap: 10px;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}
.project-thumb svg { width: 36px; height: 36px; stroke: var(--gold); }
.project-thumb span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.project-thumb { overflow: hidden; padding: 0; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-light); background: var(--white); }
.project-body { padding: 20px 22px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-body p { color: var(--gray); font-size: 0.9rem; }
.tag { display: inline-block; background: rgba(242,167,27,0.14); color: var(--gold-dark); font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-banner p { margin-bottom: 26px; font-weight: 600; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 13px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--charcoal);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field input[type="file"] {
  padding: 10px 12px;
  background: var(--white);
  cursor: pointer;
}
.field-hint { font-size: 0.8rem; color: var(--gray); margin-top: -2px; }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 14px; }
#form-status { margin-top: 16px; font-weight: 600; display: none; }
#form-status.success { color: #1a7f37; display: block; }
#form-status.error { color: #c0392b; display: block; }

.contact-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-panel h3 { color: var(--white); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; color: var(--white); }
.contact-item span { color: #c7d2dc; font-size: 0.92rem; }

/* Areas list */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
.area-pill {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
}
.area-pill svg { width: 18px; height: 18px; stroke: var(--gold-dark); flex-shrink: 0; }

/* Breadcrumb / page header */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { color: #c7d2dc; margin-top: 10px; }
.page-hero.has-media { position: relative; overflow: hidden; padding: 90px 0; }
.page-hero.has-media .container { position: relative; z-index: 2; }

/* Photo band with an overlapping white card (application form) */
.photo-band { position: relative; height: 420px; overflow: hidden; }
.photo-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(2px) brightness(1);
}
.overlap-wrap { max-width: 820px; margin: -280px auto 0; position: relative; z-index: 2; padding: 0 24px; }
.overlap-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11,28,44,0.28);
  padding: 48px 44px;
}
@media (max-width: 700px) {
  .photo-band { height: 320px; }
  .overlap-wrap { margin-top: -220px; padding: 0 16px; }
  .overlap-card { padding: 32px 22px; }
}

/* Nav pulse — a small blinking button that draws attention to Apply Now */
@keyframes navBlink {
  0%, 100% { background: var(--gold); box-shadow: 0 0 0 rgba(242,167,27,0.6); }
  50% { background: #ffd77a; box-shadow: 0 0 14px rgba(242,167,27,0.9); }
}
.nav-pulse {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  animation: navBlink 1.4s ease-in-out infinite;
}
.footer-links .nav-pulse { display: inline-block; margin-top: 4px; }

/* Simple "not a robot" confirmation row */
.robot-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 6px;
  background: var(--off-white);
}
.robot-check input { width: 18px; height: 18px; accent-color: var(--gold-dark); cursor: pointer; }
.robot-check label { font-size: 0.9rem; color: var(--navy); font-weight: 600; cursor: pointer; }

/* Success/error confirmation popup */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,28,44,0.6);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  animation: modalPop 0.25s ease;
}
@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal-box.success .modal-icon { background: rgba(26,127,55,0.12); }
.modal-box.success .modal-icon svg { stroke: #1a7f37; }
.modal-box.error .modal-icon { background: rgba(192,57,43,0.12); }
.modal-box.error .modal-icon svg { stroke: #c0392b; }
.modal-box h3 { margin-bottom: 10px; font-size: 1.3rem; }
.modal-box p { color: var(--gray); margin-bottom: 24px; }

/* Footer */
.site-footer { background: var(--charcoal); color: #c7d2dc; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.04em; }
.site-footer .logo strong { color: var(--white); }
.site-footer p { font-size: 0.9rem; color: #9aa7b1; margin-top: 12px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #c7d2dc; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #333a41;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #7c8890;
}

/* Mobile nav */
@media (max-width: 880px) {
  .main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn-text { display: none; }
  body.nav-open .main-nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 3px solid var(--gold);
  }
}

.section-2col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .section-2col { grid-template-columns: 1fr; } }
.image-block {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: #97a7b4;
  flex-direction: column; gap: 12px;
  padding: 30px; text-align: center;
}
.image-block svg { width: 44px; height: 44px; stroke: var(--gold); }
.image-block { overflow: hidden; padding: 0; }
.image-block img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }
