/* Grenorita Solar — storefront styles (extracted from index.html <style>) */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
[data-theme] { --brand-navy: #0b2352; --brand-blue: #1a6fd4; --brand-sky: #2f9bf0; --brand-gold: #f6a821; }
[data-theme="light"] {
  --primary: #1a6fd4; --primary-hover: #14559f; --primary-foreground: #ffffff;
  --primary-subtle: #eaf2fd; --primary-subtle-foreground: #14559f; --primary-border: #c3dbf8;
  --accent: #eaf2fd; --accent-foreground: #14559f; --ring: #1a6fd4;
  --ring-shadow: 0 0 0 3px rgba(26,111,212,0.32);
  --hero-bg-img: url('/assets/hero-section-bg-light.svg');
}
[data-theme="dark"] {
  --background: #08152b; --foreground: #e9eefa; --surface: #0d1e38; --surface-2: #12294a;
  --muted: #12294a; --muted-foreground: #93a7c4; --subtle: #163056;
  --border: #1c3457; --border-strong: #2a4676; --input: #2a4676;
  --primary: #4a9ff0; --primary-hover: #7bbcf7; --primary-foreground: #06152f;
  --primary-subtle: #123159; --primary-subtle-foreground: #bcd8f7; --primary-border: #1d4b86;
  --accent: #123159; --accent-foreground: #bcd8f7; --ring: #4a9ff0;
  --ring-shadow: 0 0 0 3px rgba(74,159,240,0.32);
  --topbar-bg: rgba(8,21,43,0.82);
  --hero-bg-img: url('/assets/hero-section-bg-dark.svg');
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img { max-width: 100%; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sunPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }
@keyframes brandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brand-marquee-track { display: flex; align-items: center; gap: 22px; width: max-content; animation: brandScroll 32s linear infinite; }
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-chip { flex: none; display: flex; align-items: center; justify-content: center; width: 120px; height: 48px; border-radius: 10px; background: #ffffff; border: 1px solid var(--border); padding: 8px 14px; }
.brand-chip img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* Hero: real photo (replaces the SVG pattern) + dark overlay so the text stays readable */
.hero-bg {
  background-color: #0b2352;
  background-image: url('/assets/hero-solar.jpg');
  background-image: image-set(url('/assets/hero-solar.webp') type('image/webp'), url('/assets/hero-solar.jpg') type('image/jpeg'));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 55%;
}
.hero-overlay { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,18,40,0.82) 0%, rgba(6,18,40,0.62) 48%, rgba(6,18,40,0.28) 100%); }
.hero-copy h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.45); }
.hero-copy > p { color: rgba(255,255,255,0.92) !important; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.hero-copy > div:last-child { border-top-color: rgba(255,255,255,0.32) !important; }
.hero-copy > div:last-child strong { color: #fff; }
.hero-copy > div:last-child span { color: rgba(255,255,255,0.82) !important; }
@media (max-width: 720px) {
  .hero-bg { background-position: center 45%; }
  .hero-overlay { background: linear-gradient(180deg, rgba(6,18,40,0.80) 0%, rgba(6,18,40,0.62) 55%, rgba(6,18,40,0.42) 100%); }
}

/* About: exactly 2 columns (intro | services); 1 column on small screens.
   The old auto-fit grid kept a 3rd empty track because the full-width block below spans all tracks. */
.about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
