/* =============================================
   RCK Solar Solutions — Website Stylesheet (same design system as rckbuild.com)
   Brand: Navy + Vibrant Orange accent
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ===== DESIGN TOKENS ===== */
:root,
[data-theme='light'] {
  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  /* Brand colors */
  --color-navy: #1a2235;
  --color-navy-dark: #111827;
  --color-orange: #E04B1A;
  --color-orange-hover: #c83e12;
  --color-orange-light: #fff0eb;

  /* Surfaces */
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-surface-2: #f0f2f6;
  --color-border: #e2e6ed;
  --color-divider: #d4d9e3;

  /* Text */
  --color-text: #1a2235;
  --color-text-muted: #5a6478;
  --color-text-faint: #9aa3b4;
  --color-text-inverse: #ffffff;

  /* Primary / CTA */
  --color-primary: #E04B1A;
  --color-primary-hover: #c83e12;
  --color-primary-active: #ad3310;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 34, 53, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 34, 53, 0.10);
  --shadow-lg: 0 12px 40px rgba(26, 34, 53, 0.14);
  --shadow-card: 0 2px 8px rgba(26, 34, 53, 0.07), 0 8px 24px rgba(26, 34, 53, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Type */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* Layout */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1200px;
  --nav-height: 72px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme='dark'] {
  --color-bg: #111827;
  --color-surface: #1c2333;
  --color-surface-2: #232d42;
  --color-border: #2d3a52;
  --color-divider: #253047;
  --color-text: #e8eaf0;
  --color-text-muted: #8d99b0;
  --color-text-faint: #4d5a72;
  --color-orange-light: #2a1a10;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111827;
    --color-surface: #1c2333;
    --color-surface-2: #232d42;
    --color-border: #2d3a52;
    --color-divider: #253047;
    --color-text: #e8eaf0;
    --color-text-muted: #8d99b0;
    --color-text-faint: #4d5a72;
    --color-orange-light: #2a1a10;
  }
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
img, svg { display: block; max-width: 100%; }
ul[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
::selection { background: rgba(224,75,26,0.15); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7em 1.4em;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(224,75,26,0.25);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 16px rgba(224,75,26,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
}
.btn-outline-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.7);
}
.btn-full { width: 100%; justify-content: center; padding: 0.85em 1.4em; }

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-label.light {
  color: rgba(255,255,255,0.7);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}
.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

/* ===== HEADER / NAV ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--nav-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.logo-icon { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  line-height: 1;
}
[data-theme='dark'] .logo-name { color: var(--color-text); }
.logo-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-cta { flex-shrink: 0; }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  width: 36px; height: 36px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-6);
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-link:hover { color: var(--color-text); }
.mobile-cta { margin-top: var(--space-3); align-self: flex-start; }

/* ===== HERO / ESTIMATOR ===== */
.hero-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-orange-light);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-heading {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.08;
  margin-bottom: var(--space-5);
  max-width: 14ch;
}
.hero-accent {
  color: var(--color-primary);
  display: block;
}
.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-10);
}

.estimator-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.estimator-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.estimator-iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  display: block;
  background: var(--color-bg);
}
.estimator-iframe {
  width: 100%;
  min-height: 750px;
  border: none;
  display: block;
  background: var(--color-bg);
}
.estimator-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  text-align: center;
  color: var(--color-text-faint);
}
.estimator-fallback h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.estimator-fallback p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 46ch;
}
.estimator-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.btn-lg {
  padding: 0.85em 1.8em;
  font-size: var(--text-base);
}

/* ===== INTRO ===== */
.intro-section {
  position: relative;
  padding-block: clamp(var(--space-20), 10vw, var(--space-24));
  overflow: hidden;
}
.intro-bg-image {
  position: absolute;
  inset: 0;
  background:
    url('art/pattern.svg') center/cover no-repeat;
}
.intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.92) 0%, rgba(26,34,53,0.85) 60%, rgba(224,75,26,0.3) 100%);
}
.intro-content {
  position: relative;
  z-index: 1;
  color: white;
}
.intro-heading {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: var(--space-5);
  color: white;
}
.intro-text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}
.intro-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}
.intro-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* ===== SERVICES ===== */
.services-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-card);
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}
/* Real RCK job photos */
.service-img-1 {
  background-image: url('art/battery.svg');
}
.service-img-2 {
  background-image: url('art/house.svg');
}
.service-img-3 {
  background-image: url('art/panel.svg');
}

.service-body { padding: var(--space-6); }

/* Service breakdown list */
.service-breakdown {
  list-style: none;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.service-breakdown li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
}
.service-breakdown li svg {
  flex-shrink: 0;
  color: var(--color-primary);
}
.service-icon {
  width: 44px; height: 44px;
  background: var(--color-orange-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.service-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.service-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.service-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
}

/* ===== ABOUT ===== */
.about-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.about-image-col { position: relative; }
.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background:
    url('art/house.svg') center/cover;
  box-shadow: var(--shadow-lg);
}
.about-image-badge {
  position: absolute;
  bottom: -var(--space-4);
  right: -var(--space-4);
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  bottom: var(--space-4);
  right: var(--space-4);
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-block: var(--space-8);
}
.about-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--color-orange-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
}
a.contact-item:hover { color: var(--color-primary); }
.contact-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--color-orange-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}

/* Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.form-group label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.required { color: var(--color-primary); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(224,75,26,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}
.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
}
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: #edf7e9;
  color: #2d7a1f;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
[data-theme='dark'] .form-success { background: #1e3518; color: #6daa45; }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.65);
}
[data-theme='dark'] .footer { background: #0d1117; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.footer-brand .logo-name { color: white; }
.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
  max-width: 36ch;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--color-primary); color: white; }
.footer-heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-primary); }
.footer-newsletter p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: var(--space-2);
}
.newsletter-form input {
  flex: 1;
  padding: 0.65em 0.9em;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: white;
  min-width: 0;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { outline: none; border-color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-5);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}
.footer-legal {
  display: flex;
  gap: var(--space-6);
}
.footer-legal a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===== MAP SECTION ===== */
.map-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.map-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.jobsite-map {
  height: 500px;
  width: 100%;
  background: var(--color-surface-2);
}
@media (max-width: 600px) {
  .jobsite-map { height: 350px; }
}
/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  font-family: 'DM Sans', sans-serif !important;
}
.leaflet-popup-content {
  margin: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
.popup-city { font-weight: 700; color: #1a2235; }
.popup-label { color: #E04B1A; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-heading { font-size: clamp(2rem, 8vw, 2.8rem); }
  .intro-heading { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .intro-stats { flex-direction: column; align-items: flex-start; }
  .stat-divider { display: none; }
}

/* ===== PHOTO GALLERY ===== */
.gallery-section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-navy-dark);
}
.gallery-section .section-label {
  color: rgba(255,255,255,0.5);
}
.gallery-section .section-title {
  color: white;
}
.gallery-section .section-sub {
  color: rgba(255,255,255,0.55);
}

/* Masonry grid */
.gallery-grid {
  columns: 4;
  column-gap: var(--space-3);
}
@media (max-width: 1000px) { .gallery-grid { columns: 3; } }
@media (max-width: 680px)  { .gallery-grid { columns: 2; } }
@media (max-width: 420px)  { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(224,75,26,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:hover::after { opacity: 1; }

/* Load more */
.gallery-more {
  text-align: center;
  margin-top: var(--space-10);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  backdrop-filter: blur(4px);
}
.lightbox.open,
.lightbox.active { display: flex; }
.lightbox-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 90vw;
}
.lightbox-img-wrap img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  line-height: 1;
}
.lightbox-nav:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(224,75,26,0.7); }
.lightbox-prev { left: var(--space-5); }
.lightbox-next { right: var(--space-5); }
@media (max-width: 600px) {
  .lightbox-prev { left: var(--space-2); }
  .lightbox-next { right: var(--space-2); }
}

/* Gallery overlay label */
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  pointer-events: none;
  z-index: 2;
}
.gallery-overlay span {
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gallery-item:hover .gallery-overlay span { opacity: 1; }

/* Gallery CTA button */
.gallery-cta {
  text-align: center;
  margin-top: var(--space-10);
}
.gallery-section .btn-outline-light {
  border-color: rgba(255,255,255,0.3);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.gallery-section .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Coming Soon badge variant */
.service-badge.coming-soon {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===== Project map: bubbles + photo thumbs ===== */
.rck-bubble { display:flex; align-items:center; justify-content:center; border-radius:50%; border:2px solid rgba(37,99,235,.85); box-shadow:0 2px 8px rgba(0,0,0,.15); cursor:pointer; transition:transform .15s ease; }
.rck-bubble:hover { transform:scale(1.06); }
.rck-bubble span { color:#DC2626; font-weight:900; font-family:inherit; line-height:1; letter-spacing:-0.02em;
  text-shadow:0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff, 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff; }
.rck-photo { position:relative; border-radius:50%; border:3px solid #fff; box-shadow:0 3px 10px rgba(0,0,0,.35); background:#eee; cursor:pointer; transition:transform .15s ease; }
.rck-photo:hover { transform:scale(1.12); }
.rck-photo img { width:100%; height:100%; object-fit:cover; border-radius:50%; display:block; }
.rck-photo b { position:absolute; right:-6px; top:-6px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#E04B1A; color:#fff; font-size:11px; line-height:20px; text-align:center; border:2px solid #fff; }
.rck-area-photos { cursor:pointer; }
.leaflet-tooltip.rck-card { width:max-content; padding:10px 12px; border:none; border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,.28); font-family:inherit; color:#1f2937; white-space:normal; max-width:300px; }
.rck-card-title { font-size:13px; font-weight:700; white-space:nowrap; }
.rck-card-photos { display:flex; gap:6px; align-items:center; margin-top:8px; }
.rck-card-photos img { width:58px; height:58px; border-radius:50%; object-fit:cover; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.25); }
.rck-card-more { font-size:13px; font-weight:700; color:#E04B1A; padding-left:2px; }
.rck-card-hint { margin-top:6px; font-size:12px; color:#6b7280; }

/* License classifications under the license number */
.hero-lic-class { margin:calc(var(--space-2) - var(--space-6)) 0 var(--space-6); font-size:0.8rem; font-weight:600; letter-spacing:0.04em; color:var(--color-text-muted, #6b7280); }
.stat-lic-class { display:block; margin-top:2px; font-weight:700; }
.contact-lic-class { display:block; font-size:0.85em; opacity:0.8; margin-top:2px; }

/* Team login (employees & office → app.rckbuild.com/login) */
.nav-login{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--color-text-muted);text-decoration:none;padding:8px 10px;border-radius:8px;white-space:nowrap}
.nav-login:hover{color:var(--color-orange);background:var(--color-orange-light)}
.mobile-login{display:inline-flex;align-items:center;gap:8px}
@media (max-width: 1100px){.nav-login span{display:none}.nav-login{padding:8px}}
@media (max-width: 900px){.nav-login{display:none}}

/* ===== Phone (408) 686-4705 ===== */
.nav-phone{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--color-orange);text-decoration:none;padding:8px 10px;border-radius:8px;white-space:nowrap}
.nav-phone:hover{background:var(--color-orange-light)}
@media (max-width: 1200px){.nav-phone span{display:none}.nav-phone{padding:8px}}
@media (max-width: 900px){.nav-phone{width:40px;height:40px;justify-content:center;border-radius:50%;background:var(--color-orange);color:#fff;padding:0}.nav-phone:hover{background:var(--color-orange)}}
.mobile-call{display:inline-flex;align-items:center;gap:8px;color:var(--color-orange);font-weight:700}
.gallery-cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.footer-contact{list-style:none;padding:0;margin:0 0 16px;display:grid;gap:6px;font-size:14px}
.footer-contact a{display:inline-flex;align-items:center;gap:8px;color:inherit;text-decoration:none}
.footer-contact a:hover{color:var(--color-orange)}

/* ===== RCK logo: black on light backgrounds, silver on dark ===== */
.logo:has(.logo-tag){flex-direction:column;align-items:center;gap:3px}
.logo-img{display:block;height:44px;width:auto}
.logo-tag{font-family:'Black Ops One',var(--font-display),sans-serif;font-size:9px;line-height:1;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;color:#000}
[data-theme='dark'] .logo-tag{color:#C0C0C0}
.logo-footer .logo-tag{color:#C0C0C0;font-size:11px;letter-spacing:.03em}
.logo-on-dark{display:none}
[data-theme='dark'] .logo-on-light{display:none}
[data-theme='dark'] .logo-on-dark{display:block}
.logo-footer .logo-img{height:70px}
@media (max-width: 600px){.logo-img{height:38px}.logo-tag{font-size:8.5px;letter-spacing:0;text-rendering:geometricPrecision}}

/* ===== RCK Solar additions ===== */
.estimator-iframe { min-height: 760px; transition: height .2s; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
@media (max-width: 1000px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: var(--space-6); color: #fff; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-bottom: var(--space-4); }
.step-card h3 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); color: #fff; }
.step-card p { color: rgba(255,255,255,.72); font-size: var(--text-sm); }
.gallery-empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b42318; font-size: var(--text-xs); margin-top: var(--space-2); min-height: 1em; }
.prelim-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-4); max-width: 80ch; }
.check-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-2); }
.check-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: var(--text-sm); }
.check-row input { width: auto !important; }
/* RCK mark + "Solar Solutions" word line */
.logo-img{height:34px}
.logo-tag{font-size:11px;letter-spacing:.07em}
.logo-footer .logo-img{height:52px}
.logo-footer .logo-tag{font-size:15px}
@media (max-width: 600px){.logo-img{height:30px}.logo-tag{font-size:10px;letter-spacing:.04em}}
