/* ========================================
   MAVERICK SOLAR SOLUTIONS — Site styles
   ======================================== */

:root {
  --teal: #1F4D55;
  --teal-dark: #143539;
  --teal-darker: #0C2528;
  --orange: #ED9456;
  --orange-bright: #F0A064;
  --orange-soft: #F5B785;
  --cream: #FBF7F0;
  --cream-warm: #F5EFE3;
  --slate: #2A3F44;
  --slate-muted: #5A6F74;
  --slate-faint: #8FA3A8;
  --border: rgba(31, 77, 85, 0.12);
  --shadow-sm: 0 1px 2px rgba(20, 53, 57, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 53, 57, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 53, 57, 0.12);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Typography ========== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p {
  color: var(--slate-muted);
  line-height: 1.7;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--orange);
}

/* ========== Layout ========== */

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

section {
  padding: 110px 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .container { padding: 0 24px; }
}

/* ========== Navigation ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 247, 240, 0.95);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(31, 77, 85, 0.06);
}

.nav-links a.active {
  color: var(--orange);
  font-weight: 600;
}

.nav-cta {
  background: var(--teal-dark);
  color: var(--cream) !important;
  padding: 11px 22px !important;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal-darker) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--teal-dark);
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    flex-direction: column;
    background: var(--cream);
    padding: 32px;
    gap: 8px;
    align-items: stretch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 18px;
  }
  .nav-toggle { display: block; }
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 6px 20px rgba(237, 148, 86, 0.32);
}

.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(237, 148, 86, 0.42);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--teal-dark);
  color: var(--cream);
  border-color: var(--teal-dark);
}

.btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow { transform: translateX(3px); }

/* ========== Hero ========== */

.hero {
  padding: 180px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero { padding: 140px 0 70px; }
}

.hero-eyebrow { margin-bottom: 28px; }

.hero h1 {
  margin-bottom: 28px;
}

.hero h1 .accent {
  color: var(--orange);
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-size: 1.12rem;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero visual — sunburst with stats */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  margin-left: auto;
}

.sunburst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sunburst svg {
  width: 100%;
  height: 100%;
  animation: rotate 80s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.sun-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--orange-bright), var(--orange) 60%, #D67A40 100%);
  box-shadow:
    0 0 80px rgba(237, 148, 86, 0.45),
    inset -20px -20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 20px;
}

.sun-core .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.sun-core .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Floating badge on hero */
.hero-badge {
  position: absolute;
  bottom: 6%;
  right: -4%;
  background: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

@media (max-width: 980px) {
  .hero-badge { right: 2%; }
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-badge-text strong {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--teal-dark);
}

.hero-badge-text span {
  font-size: 0.72rem;
  color: var(--slate-muted);
}

/* Page hero (smaller) for sub-pages */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(237, 148, 86, 0.18), transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero p {
  font-size: 1.12rem;
  max-width: 600px;
}

/* ========== Section heads ========== */

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--orange);
}

.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }

/* ========== Feature grid (home) ========== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.feature {
  background: white;
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(237, 148, 86, 0.14);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature p { font-size: 0.96rem; }

/* ========== Service cards (services page) ========== */

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.service-card {
  background: white;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before { transform: scaleY(1); }

.service-card .feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.service-card p { margin-bottom: 22px; }

.service-list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list-items li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--slate);
  font-size: 0.96rem;
}

.service-list-items li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--orange);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}

/* ========== About section ========== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

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

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.about-visual svg {
  width: 78%;
  height: auto;
  z-index: 1;
  position: relative;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(237, 148, 86, 0.18), transparent 70%);
  pointer-events: none;
}

.about-visual::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(237, 148, 86, 0.4), transparent 70%);
  pointer-events: none;
}

.about-text .eyebrow { margin-bottom: 22px; }
.about-text h2 { margin-bottom: 22px; }
.about-text p { margin-bottom: 18px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.about-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.about-stat .label {
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-weight: 500;
}

/* ========== Coverage / regions ========== */

.coverage {
  background: var(--teal-darker);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.coverage::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(237, 148, 86, 0.18), transparent 60%);
  pointer-events: none;
}

.coverage h2, .coverage h3 { color: var(--cream); }
.coverage .eyebrow { color: var(--orange-soft); }
.coverage .eyebrow::before { background: var(--orange-soft); }
.coverage p { color: rgba(251, 247, 240, 0.72); }

.regions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .regions { grid-template-columns: repeat(2, 1fr); }
}

.region {
  background: rgba(251, 247, 240, 0.05);
  border: 1px solid rgba(251, 247, 240, 0.1);
  padding: 28px 22px;
  border-radius: var(--radius-md);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.region:hover {
  background: rgba(237, 148, 86, 0.12);
  border-color: rgba(237, 148, 86, 0.4);
  transform: translateY(-3px);
}

.region-pin {
  width: 32px;
  height: 32px;
  color: var(--orange);
  margin-bottom: 14px;
}

.region-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cream);
}

/* ========== CTA band ========== */

.cta-band {
  padding: 80px 0;
  background: var(--cream-warm);
  text-align: center;
}

.cta-band h2 { margin-bottom: 18px; }
.cta-band p {
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}

/* ========== Contact ========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--teal-dark);
  color: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-item-text a, .contact-item-text span {
  display: block;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.contact-item-text a:hover { color: var(--orange); }

/* Form */
.contact-form {
  background: white;
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

@media (max-width: 600px) {
  .contact-form { padding: 28px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--slate);
  background: var(--cream);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-body);
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ========== Footer ========== */

.footer {
  background: var(--teal-darker);
  color: rgba(251, 247, 240, 0.7);
  padding: 70px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

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

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

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 22px;
  opacity: 0.95;
}

.footer-brand p {
  color: rgba(251, 247, 240, 0.6);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(251, 247, 240, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col .footer-detail a {
  display: block;
}

.footer-col a:hover { color: var(--orange); }

.footer-col .footer-detail {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.footer-detail strong {
  color: var(--cream);
  font-weight: 600;
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(251, 247, 240, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
}

.footer-bottom .cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(237, 148, 86, 0.16);
  color: var(--orange-soft);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ========== Scroll reveal (only hidden when JS active) ========== */

.js-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-on .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-on .reveal.delay-1 { transition-delay: 0.1s; }
.js-on .reveal.delay-2 { transition-delay: 0.2s; }
.js-on .reveal.delay-3 { transition-delay: 0.3s; }
.js-on .reveal.delay-4 { transition-delay: 0.4s; }
