/* No Stress Roofing — Midnight theme. Pure CSS, no dependencies. */

:root {
  --bg: #141414;
  --bg-2: #1a1a1a;
  --bg-3: #0d0d0d;
  --gold: #F7B500;
  --gold-dark: #d99e00;
  --text: #ffffff;
  --muted: #c9c9c9;
  --card: #1f1f1f;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}
.site-header .nav-links a { color: #1a1a1a; }
.site-header .nav-links a:hover, .site-header .nav-links a.active { color: var(--gold-dark); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand img { height: 60px; width: auto; }
.mobile-tabs { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 3px; background: #1a1a1a;
  border-radius: 2px; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; min-height: 48px; line-height: 1.2;
  padding: 14px 36px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 17px; font-weight: 700; text-decoration: none; text-align: center;
  font-family: var(--font);
}
.btn-gold { background: var(--gold); color: #141414; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #141414; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-3);
  padding: 48px 0 56px;
  text-align: center;
}
.hero-photo {
  background:
    linear-gradient(rgba(10, 10, 10, 0.45), rgba(10, 10, 10, 0.72)),
    url('assets/hero-bg.jpg?v=3') center / cover no-repeat;
  border-radius: var(--radius);
  padding: 32px 20px;
  margin-bottom: 28px;
}
.hero-graphic {
  width: 100%; max-width: 880px; margin: 0 auto; display: block;
}
.hero.hero-tight { padding-bottom: 0; }
section.plans-section { padding-top: 0; }
.hero .btn { margin-bottom: 0; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-lines { text-align: center; margin: 34px 0 10px; }
.hero-tagline {
  font-size: 25px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text);
  max-width: 660px;
  margin: 0 auto;
}
.hero-tagline .gold { color: var(--gold); }
.hero-tagline::before {
  content: "";
  display: block;
  width: 100px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 22px;
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); }
.section h2 {
  font-size: 32px; margin-bottom: 18px; letter-spacing: 0.2px;
}
.section h2 .gold, .gold { color: var(--gold); }
.section p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.section p strong, .section li strong { color: var(--text); }
.divider {
  width: 72px; height: 4px; background: var(--gold);
  border-radius: 2px; margin: 0 0 22px;
}
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }
.lead { font-size: 19px; }

/* ---------- Photo cards ---------- */
.photo-grid {
  display: grid; gap: 20px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.photo-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #2c2c2c;
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption {
  padding: 14px 16px; font-size: 16px; font-weight: 500; letter-spacing: 0.2px; color: var(--text);
}

/* ---------- Split (text + image) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.split img { border-radius: var(--radius); border: 1px solid #2c2c2c; }

/* ---------- Plan cards ---------- */
.plans {
  display: grid; gap: 24px; margin-top: 36px;
  grid-template-columns: repeat(3, 1fr);
}
.plan {
  background: var(--card); border: 1px solid #2c2c2c;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plan img { width: 100%; height: auto; }
.plan-body { padding: 24px 22px 28px; display: flex; flex-direction: column; flex: 1; }
.plan-body h3 { font-size: 22px; margin-bottom: 4px; }
.plan-body .price { color: var(--gold); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.plan-body ul { list-style: none; margin: 0 0 16px; }
.plan-body li {
  position: relative; padding-left: 30px; margin-bottom: 10px;
  color: var(--muted); font-size: 15.5px;
}
.plan-body li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 800;
}
.plan-body .note { font-size: 14px; color: #9a9a9a; margin-bottom: 18px; }
.plan-body .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid; gap: 20px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--card); border: 1px solid #2c2c2c;
  border-radius: var(--radius); padding: 26px 24px;
}
.testimonial .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 10px; }
.testimonial p { color: var(--text); font-size: 16.5px; }
.testimonial cite { color: var(--muted); font-style: normal; font-size: 14.5px; }
.testimonial footer { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.testimonial footer cite { color: var(--text); font-weight: 600; }

/* ---------- Reviews carousel ---------- */
.rating-line { margin-top: 14px; color: var(--muted); font-size: 16px; }
.rating-line .stars { color: var(--gold); letter-spacing: 2px; }
.rating-line strong { color: var(--text); }
.reviews-carousel { position: relative; overflow: hidden; margin-top: 30px; max-width: 760px; margin-left: auto; margin-right: auto; transition: height 0.35s ease; }
.rc-photo { margin: -26px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: #0d0d0d; }
.rc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-track { display: flex; transition: transform 0.35s ease; align-items: flex-start; }
.rc-card { flex: 0 0 100%; margin: 0; box-sizing: border-box; }
.rc-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(20, 20, 20, 0.65); border: 1px solid #3a3a3a;
  color: var(--gold); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
}
.rc-prev { left: 8px; }
.rc-next { right: 8px; }
.rc-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rc-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: #3a3a3a; cursor: pointer;
}
.rc-dots button.active { background: var(--gold); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: 16px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid #2c2c2c;
}

/* ---------- Forms ---------- */
.quote-form {
  max-width: 640px; margin: 32px auto 0; text-align: left;
  background: var(--card); border: 1px solid #2c2c2c;
  border-radius: var(--radius); padding: 32px 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: var(--font);
  background: #101010; border: 1px solid #3a3a3a; border-radius: 10px; color: var(--text);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error { color: #ff9d9d; font-size: 13.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #e05555; }
.field.invalid .error { display: block; }
.form-success {
  display: none; background: #12351f; border: 1px solid #2e7d43;
  border-radius: 10px; padding: 20px; margin-top: 20px; text-align: center;
}
.form-success.show { display: block; }
.form-success p { color: #d7f0dd; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 32px auto 0; text-align: left; }
.faq details {
  background: var(--card); border: 1px solid #2c2c2c;
  border-radius: 10px; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 18px 20px; cursor: pointer; font-weight: 700; font-size: 16.5px;
  list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; float: right; color: var(--gold); font-size: 22px; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 20px; color: var(--muted); }
.faq .faq-body p { margin-bottom: 10px; }

/* ---------- Contact buttons ---------- */
.contact-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin: 28px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-3); border-top: 1px solid #2a2a2a;
  padding: 52px 0 28px; text-align: center;
}
.site-footer .divider { margin: 0 auto 26px; }
.footer-social { display: flex; gap: 18px; justify-content: center; margin-bottom: 26px; }
.footer-social a {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--gold); display: inline-flex;
  align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 22px; height: 22px; fill: var(--gold); }
.footer-social a:hover svg { fill: #141414; }
.footer-contact p { margin-bottom: 8px; color: var(--muted); font-size: 16px; }
.footer-contact a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--gold); }
.footer-copy { margin-top: 26px; color: #8a8a8a; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header nav { display: contents; }
  .nav-toggle { display: block; margin-left: auto; }
  .brand img { height: 68px; }
  .mobile-tabs {
    display: flex; gap: 8px; padding: 2px 16px 12px; background: #ffffff;
  }
  .mobile-tabs a {
    flex: 1; text-align: center; white-space: nowrap;
    font-size: 13px; font-weight: 700; color: #1a1a1a; text-decoration: none;
    border: 1.5px solid var(--gold); border-radius: 999px;
    padding: 8px 4px; background: #ffffff; line-height: 1.2;
  }
  .mobile-tabs a.active { background: var(--gold); color: #1a1a1a; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 0; border-bottom: 1px solid #e8e8e8;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid #eeeeee; }
  .nav-links a { display: block; padding: 14px 4px; min-height: 48px; }
  .nav-links .btn { margin-top: 12px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 44px; }
}

.footer-logo { display: block; margin: 0 auto 18px; height: 76px; width: auto; background: #ffffff; border-radius: 18px; padding: 8px 12px; }
