/* =========================================================
   Rocky Broad Solar — Brand Stylesheet
   Palette: mountain slate, Rocky Broad teal, forest green,
   granite gray, golden-hour amber
   ========================================================= */

:root {
  --slate: #263238;
  --slate-light: #37474f;
  --teal: #1f7a70;
  --teal-dark: #145951;
  --forest: #35543c;
  --granite: #7c8280;
  --granite-light: #eef0ee;
  --amber: #dd9a3d;
  --amber-dark: #b97b25;
  --cream: #faf7f0;
  --white: #ffffff;
  --text: #202a2d;
  --text-soft: #4a5559;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 6px 24px rgba(38, 50, 56, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--slate);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-soft); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--amber-dark);
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--amber); color: var(--slate); box-shadow: 0 4px 14px rgba(221,154,61,0.35); }
.btn-primary:hover { background: var(--amber-dark); }

.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark { background: transparent; border-color: var(--teal); color: var(--teal-dark); }
.btn-outline-dark:hover { background: var(--teal); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--slate);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.logo span.mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  display: inline-block;
}
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--granite-light);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); text-decoration: none; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 230px;
  list-style: none;
  margin: 8px 0 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
}
.dropdown li a:hover { background: var(--granite-light); color: var(--teal-dark); text-decoration: none; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-wrap.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--slate);
    padding: 18px 24px 24px;
    gap: 4px;
    align-items: flex-start;
  }
  .nav-wrap.open .nav-links a { padding: 10px 0; width: 100%; }
  .nav-wrap.open .has-dropdown .dropdown {
    display: block;
    position: static;
    background: var(--slate-light);
    box-shadow: none;
    margin-top: 6px;
  }
  .nav-wrap.open .dropdown li a { color: var(--granite-light); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--slate) 0%, var(--slate-light) 60%, var(--teal-dark) 130%);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: var(--granite-light); font-size: 1.12rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid #e7e2d6;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  padding: 18px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.trust-strip .item { display: flex; align-items: center; gap: 8px; }
.trust-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-slate { background: var(--slate); color: var(--white); }
.section-slate h2, .section-slate p { color: var(--white); }
.section-slate p { color: var(--granite-light); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #eee7d8;
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--granite-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.4em; }
.card a.card-link { font-weight: 600; font-size: 0.92rem; }

/* Brand strip */
.brand-strip {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  justify-content: center;
  align-items: center;
}
.brand-strip span {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--granite);
  font-size: 1.05rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--teal), var(--forest));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-banner h2, .cta-banner p { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.9); }

/* Two-column content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Testimonial / quote */
blockquote {
  border-left: 4px solid var(--amber);
  padding-left: 20px;
  margin: 0 0 1.4em;
  font-style: italic;
  color: var(--text);
}

/* Table for spec-like content */
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e6e0d0; font-size: 0.94rem; }
th { color: var(--slate); font-family: var(--font-head); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: var(--granite-light);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1em; }
.site-footer a { color: var(--granite-light); }
.site-footer a:hover { color: var(--amber); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem; color: var(--granite);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utility */
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.tag {
  background: var(--granite-light);
  color: var(--teal-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
