:root {
  --navy: #0b2d52;
  --blue: #145b96;
  --blue-light: #eaf3fb;
  --blue-mid: #c9dff1;
  --ink: #17324d;
  --muted: #60758a;
  --white: #ffffff;
  --surface: #f5f8fc;
  --line: #dce6f0;
  --shadow: 0 18px 50px rgba(11, 45, 82, 0.10);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section-space { padding-block: 104px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(220, 230, 240, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--white);
  background: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  color: #435b73;
  font-size: 0.91rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--blue); }

.main-nav .nav-contact {
  padding: 11px 18px;
  color: var(--white);
  background: var(--navy);
}

.main-nav .nav-contact:hover { background: var(--blue); }

.menu-toggle {
  display: none;
  padding: 8px 12px;
  color: var(--navy);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-image {
  background-image: url("/assets/STARLIGHT/SOLAR%20PANELS-2.jpg");
  background-size: cover;
  background-position: center 54%;
  opacity: 0.58;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(5, 29, 54, 0.96) 0%, rgba(8, 43, 77, 0.83) 46%, rgba(8, 43, 77, 0.18) 100%);
}

.hero-content {
  position: relative;
  padding-block: 100px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.hero .eyebrow { color: #b8d9f5; }

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.65rem, 5.5vw, 4.65rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.09;
}

.hero-copy {
  max-width: 610px;
  margin: 27px 0 34px;
  color: #e0edf8;
  font-size: 1.08rem;
  line-height: 1.9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 13px 22px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-light:hover { background: var(--blue-light); }

.hero-bottom-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), #91c5ee, var(--white));
}

.intro { background: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 100px;
}

.intro h2,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.intro-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-weight: 750;
}

.text-link:hover { gap: 17px; }

.products { background: var(--surface); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 4px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(11, 45, 82, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  height: 205px;
  padding: 10px;
  object-fit: contain;
  background: #edf3f9;
}

.product-card-body { padding: 23px 21px 25px; }

.card-number {
  color: #6d9fc8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.product-card h3 {
  margin: 9px 0 8px;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.4;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.7;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 35px;
  padding: 26px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
}

.service-strip > div {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.service-icon {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #d5eaff;
  font-size: 1.25rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.service-strip h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
}

.about-panel {
  padding: 44px;
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about-panel h2 { margin-bottom: 23px; }

.about-panel > p:last-child,
.about-details > p {
  color: var(--muted);
  line-height: 1.9;
}

.about-panel > p:last-child { margin-bottom: 0; }
.about-details > p:first-child { margin-top: 0; }

.value-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.value-list > div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.value-list span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.value-list strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.contact {
  color: var(--white);
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 100px;
}

.contact .eyebrow { color: #b8d9f5; }
.contact h2 { color: var(--white); }

.contact-intro > p:not(.eyebrow) {
  max-width: 490px;
  color: #d2e0ee;
  line-height: 1.9;
}

.contact-details {
  align-self: center;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-item {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-item > span {
  color: #a9cce9;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-item a,
.contact-item address {
  overflow-wrap: anywhere;
  color: var(--white);
  font-style: normal;
}

.contact-item a:hover { text-decoration: underline; }

.site-footer {
  padding: 40px 0 0;
  color: #d9e6f3;
  background: #071f39;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 25px;
}

.footer-brand { color: var(--white); }
.footer-brand .brand-mark { background: var(--blue); }
.footer-inner p { margin: 0; color: #b9cde0; font-size: 0.9rem; }
.footer-inner > a:last-child { font-size: 0.88rem; }
.footer-inner > a:last-child:hover { text-decoration: underline; }

.copyright {
  padding-top: 18px;
  color: #9db4ca;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
}

:focus-visible {
  outline: 3px solid #8bc7f5;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .main-nav { gap: 20px; }
  .intro-grid, .about-grid, .contact-grid { gap: 45px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 36px, 540px); }
  .section-space { padding-block: 72px; }
  .header-inner { min-height: 70px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 35px; height: 35px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 25px rgba(11, 45, 82, 0.08);
  }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav a { padding: 13px 8px; }
  .main-nav .nav-contact { margin-top: 6px; text-align: center; }
  .hero { min-height: 570px; }
  .hero-image { background-position: center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5, 29, 54, 0.93), rgba(8, 43, 77, 0.63)); }
  .hero-content { padding-block: 75px; }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 3.6rem); }
  .hero-copy { font-size: 1rem; }
  .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 14px; }
  .product-grid { gap: 14px; }
  .product-card img { height: 175px; }
  .product-card-body { padding: 17px 15px 20px; }
  .product-card h3 { font-size: 1rem; }
  .product-card p { font-size: 0.86rem; }
  .service-strip { padding: 20px 16px; gap: 20px 12px; }
  .service-strip > div { align-items: flex-start; flex-direction: column; }
  .service-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.service-strip h3 { font-size: 0.85rem; }
  .about-panel { padding: 30px 25px; }
  .contact-item { grid-template-columns: 75px minmax(0, 1fr); gap: 12px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card img { height: 220px; }
  .service-strip { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* STARLIGHT product carousel */
.product-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  min-height: 380px;
}

.carousel-slide {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  min-width: 0;
}

.carousel-slide[hidden] {
  display: none !important;
}

.carousel-image-link {
  display: flex;
  min-width: 0;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  background: #edf3f9;
}

.carousel-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 480px;
  padding: 20px;
  object-fit: contain;
}

.carousel-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 54px);
}

.carousel-caption h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.carousel-caption h3 a {
  color: inherit;
  text-decoration: none;
}

.carousel-caption p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.carousel-cta:hover,
.carousel-cta:focus-visible {
  opacity: 0.88;
}

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 0 18px;
}

.carousel-dot {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  transition: background-color 180ms ease, transform 180ms ease;
}

.carousel-dot:hover::before {
  background: var(--blue);
}

.carousel-dot.is-active::before {
  background: var(--navy);
  transform: scale(1.3);
}
@media (max-width: 700px) {
  .product-carousel {
    display: block;
  }

  .carousel-slide {
    display: grid;
    grid-template-columns: 1fr;
  }

  .carousel-slide[hidden] {
    display: none !important;
  }

  .carousel-image-link,
  .carousel-image-link img {
    height: 230px;
    min-height: 230px;
    max-height: 280px;
  }

  .carousel-image-link img {
    padding: 12px;
  }

  .carousel-caption {
    padding: 24px 22px 28px;
  }

  .carousel-caption h3 {
    font-size: 1.55rem;
  }

  .carousel-dots {
    padding: 12px 0 16px;
  }
}


/* STARLIGHT footer redesign */
.footer-grid { display:grid; grid-template-columns:1.2fr 1fr 1.25fr 1fr; gap:32px; padding-bottom:30px; }
.footer-col { min-width:0; }
.footer-brand { color:var(--white); }
.footer-brand .brand-mark { background:var(--blue); }
.footer-tagline { margin:12px 0 8px; color:var(--white); font-weight:600; }
.footer-desc { max-width:270px; margin:0; color:#b9cde0; font-size:.9rem; line-height:1.7; }
.footer-heading { margin:0 0 14px; color:var(--white); font-size:1rem; }
.footer-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.footer-list a, .footer-contact a { color:#c7d8e8; font-size:.9rem; line-height:1.7; text-decoration:none; overflow-wrap:anywhere; }
.footer-list a:hover, .footer-contact a:hover { color:var(--white); text-decoration:underline; }
.footer-list a:focus-visible, .footer-contact a:focus-visible, .footer-brand:focus-visible, .footer-top:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.footer-contact p { margin:0 0 10px; color:#c7d8e8; font-size:.9rem; line-height:1.7; overflow-wrap:anywhere; }
.footer-contact p:last-child { margin-bottom:0; }
.footer-bottom { padding:15px 0; color:#9db4ca; background:#041629; font-size:.85rem; }
.footer-bottom-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.footer-bottom .copyright { margin:0; padding:0; border:0; color:inherit; }
.footer-top { color:#c7d8e8; text-decoration:none; }
.footer-top:hover { color:#fff; text-decoration:underline; }
@media (max-width:1000px) { .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .footer-grid { grid-template-columns:minmax(0,1fr); gap:25px; } .footer-bottom-inner { align-items:flex-start; flex-direction:column; gap:10px; } }

/* STARLIGHT legal brand identity */
.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.1;
  letter-spacing: normal;
}

.brand-name {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-legal {
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.footer-brand .brand-copy {
  color: var(--white);
}

.footer-brand .brand-legal {
  opacity: 0.82;
}

@media (max-width: 700px) {
  .brand {
    gap: 9px;
  }

  .brand-legal {
    font-size: 0.49em;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 7px;
  }

  .brand-legal {
    font-size: 0.44em;
    letter-spacing: 0.02em;
  }
}

/* === STARLIGHT Solar Panels article gallery (additive, scoped) === */
.solar-article-gallery {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.solar-article-gallery-lead {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.solar-article-gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.solar-article-gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.solar-article-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .solar-article-gallery-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}
