/* =========================================================
   Double C Construction and Roofing — Main Stylesheet
   ========================================================= */

:root {
  --bg: #000000;
  --bg-panel: #121212;
  --bg-panel-raised: #1a1a1a;
  --border: #2c2c2c;
  --text: #f2f2f2;
  --text-dim: #b9b9b9;
  --text-faint: #8a8a8a;
  --brand-red: #c0392b;
  --brand-red-bright: #e74c3c;
  --brand-gold: #d4a73a;
  --focus: #5ab0ff;
  --radius: 4px;
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0 0 0.5em 0;
}

a {
  color: var(--brand-gold);
  text-decoration: none;
}
a:hover, a:focus { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

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

/* =========================
   TOP BAR (address/phone)
   ========================= */
.top-bar {
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-bar a {
  color: var(--text-dim);
}
.top-bar a:hover { color: var(--brand-gold); }
.top-bar .tb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   HEADER
   ========================= */
header.site-header {
  background: #000000;
  border-bottom: 2px solid var(--brand-red);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 18px 0;
  flex-wrap: wrap;
}

.logo-slot {
  flex: 0 0 auto;
}
.logo-slot a {
  display: block;
}
.logo-slot img,
.site-logo {
  max-width: 150px;
  max-height: 150px;
  width: auto;
  height: auto;
}
.header-licenses {
  flex: 1 1 auto;
}
.header-licenses .company-name {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.license-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.license-list li {
  margin-bottom: 2px;
}
.license-list a {
  color: var(--brand-gold);
  font-weight: 600;
}
.license-list .lic-label {
  color: var(--text-dim);
  margin-right: 4px;
}

/* =========================
   NAV
   ========================= */
nav.site-nav {
  background: var(--brand-red);
  border-top: 1px solid #7a261c;
}
nav.site-nav .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.nav-links li { position: relative; }
.nav-links a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a:focus,
.nav-links li.active a {
  background: rgba(0,0,0,0.25);
  text-decoration: none;
}
.nav-cta {
  padding: 10px 0;
}
.btn-estimate {
  display: inline-block;
  background: var(--brand-gold);
  color: #1a1200;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: var(--radius);
}
.btn-estimate:hover {
  background: #e9bc52;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.4rem;
  padding: 4px 12px;
  cursor: pointer;
}

/* =========================
   SLIDESHOW
   ========================= */
.slideshow-section {
  width: 100%;
  background: #050505;
  border-bottom: 1px solid var(--border);
}
.slideshow {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #0a0a0a;
}
.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slideshow .slide.is-active {
  opacity: 1;
  z-index: 1;
}
.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slideshow .slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  padding: 18px 24px 14px;
  font-size: 1rem;
  z-index: 2;
}
.slideshow-dots {
  position: absolute;
  bottom: 10px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.slideshow-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
}
.slideshow-dots button.is-active {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}
.slideshow-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-faint);
  font-size: 0.95rem;
  text-align: center;
  padding: 20px;
}

/* =========================
   MAIN CONTENT
   ========================= */
main {
  flex: 1 0 auto;
  padding: 40px 0 60px;
}

.page-heading {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 2.1rem;
}
.page-heading .subhead {
  color: var(--text-dim);
  font-size: 1rem;
}

.section-block {
  margin-bottom: 40px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.hero-cta {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-cta h2 { margin: 0 0 6px 0; }
.hero-cta p { margin: 0; color: var(--text-dim); }

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-clean li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.list-clean li:last-child { border-bottom: none; }

/* =========================
   FORMS
   ========================= */
form.site-form {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 680px;
}
.form-row {
  margin-bottom: 18px;
}
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-row .req { color: var(--brand-red-bright); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0a0a0a;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row small.hint {
  display: block;
  color: var(--text-faint);
  margin-top: 4px;
}
.btn-submit {
  background: var(--brand-red);
  color: #fff;
  border: none;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-submit:hover { background: var(--brand-red-bright); }

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  max-width: 680px;
}
.form-status.success {
  background: #103b1f;
  border: 1px solid #1e7a3c;
  color: #aef0c3;
}
.form-status.error {
  background: #3b1010;
  border: 1px solid #7a1e1e;
  color: #f0aeae;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label {
  font-size: 1.7rem;
  color: #444;
  cursor: pointer;
  margin: 0 !important;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--brand-gold);
}

/* =========================
   FOOTER
   ========================= */
footer.site-footer {
  background: #050505;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
  padding: 26px 0;
  margin-top: auto;
}
footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}
footer.site-footer a { color: var(--text-dim); }
footer.site-footer .footer-licenses {
  font-size: 0.78rem;
}

/* =========================
   UTIL / FUTURE PAGE NOTE
   ========================= */
.future-page-note {
  background: var(--bg-panel-raised);
  border: 1px dashed #555;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 820px) {
  .top-bar .container { justify-content: center; text-align: center; }
  .header-inner { justify-content: center; text-align: center; }
  .header-licenses { text-align: center; }
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-links.is-open { display: flex; }
  nav.site-nav .container { flex-direction: column; align-items: stretch; }
  .nav-cta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .slideshow .slide { transition: none; }
}
