/* ============================================================
   SolarRain Website — Global Stylesheet
   Colour palette:
     Navy    #0A2540   (primary dark)
     Sky     #1A6FB8   (mid blue)
     Gold    #F5A623   (solar accent)
     Light   #F0F5FA   (background tint)
     White   #FFFFFF
     Text    #2D3748
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2D3748;
  background: #fff;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: #1A6FB8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p  { margin-bottom: 1rem; }

.text-gold  { color: #F5A623; }
.text-navy  { color: #0A2540; }
.text-sky   { color: #1A6FB8; }
.text-white { color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

.section--light  { background: #F0F5FA; }
.section--navy   { background: #0A2540; color: #fff; }
.section--dark   { background: #061828; color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #F5A623;
  color: #0A2540;
  border-color: #F5A623;
}
.btn-primary:hover { background: #e09410; border-color: #e09410; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); text-decoration: none; }

.btn-navy {
  background: #0A2540;
  color: #fff;
  border-color: #0A2540;
}
.btn-navy:hover { background: #0d3160; text-decoration: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0A2540;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav__logo img { height: 42px; width: auto; }
.nav__logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav__logo-text span { color: #F5A623; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav__links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}
.nav__links a:hover,
.nav__links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}
.nav__links a.active { color: #F5A623; }

.nav__cta { margin-left: 1rem; }

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: #0A2540;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav__links.open { display: flex; }
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #061828 0%, #0A2540 60%, #0d3a6a 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/system.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-block;
  background: rgba(245,166,35,0.18);
  color: #F5A623;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(245,166,35,0.35);
}

.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 span { color: #F5A623; }

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  margin-top: 4rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero__stat {}
.hero__stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #F5A623;
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Section headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: #1A6FB8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-header.light .eyebrow { color: #F5A623; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { color: #5a6a7e; max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.section-header.light p { color: rgba(255,255,255,0.7); }
.section-header.light h2 { color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(10,37,64,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(10,37,64,0.13);
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1A6FB8, #0A2540);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; color: #0A2540; }
.card p  { color: #5a6a7e; font-size: 0.95rem; margin: 0; }

/* ---------- Feature rows ---------- */
.feature-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(10,37,64,0.2);
}
.feature-img img { width: 100%; height: 360px; object-fit: cover; }

.feature-text h2 { color: #0A2540; margin-bottom: 1rem; }
.feature-text .eyebrow {
  display: block;
  color: #1A6FB8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.feature-text p { color: #5a6a7e; }

.tick-list { list-style: none; margin: 1.2rem 0; }
.tick-list li {
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: #2D3748;
  font-size: 0.97rem;
}
.tick-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #F5A623;
  font-weight: 700;
}

/* ---------- Stat band ---------- */
.stat-band {
  background: linear-gradient(135deg, #0A2540, #1A6FB8);
  padding: 60px 0;
}
.stat-band .grid-4 { text-align: center; }
.stat-item__num {
  font-size: 2.4rem;
  font-weight: 700;
  color: #F5A623;
  line-height: 1;
}
.stat-item__label {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(#1A6FB8, #F5A623);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F5A623;
  border: 3px solid #0A2540;
}
.timeline-item h3 { color: #0A2540; margin-bottom: 0.3rem; }
.timeline-item p  { color: #5a6a7e; font-size: 0.95rem; margin: 0; }

/* ---------- Team cards ---------- */
.team-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 18px rgba(10,37,64,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(10,37,64,0.15);
}
.team-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
}
.team-card__body { padding: 1.5rem; }
.team-card__name { font-size: 1.15rem; font-weight: 700; color: #0A2540; margin-bottom: 0.2rem; }
.team-card__title { font-size: 0.85rem; color: #1A6FB8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.team-card__bio { font-size: 0.93rem; color: #5a6a7e; line-height: 1.6; }

/* ---------- Quote / callout ---------- */
.callout {
  background: linear-gradient(135deg, rgba(26,111,184,0.08), rgba(245,166,35,0.06));
  border-left: 4px solid #F5A623;
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.callout p { color: #0A2540; font-size: 1.05rem; font-style: italic; margin: 0; }

/* ---------- Table ---------- */
.fin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.fin-table th {
  background: #0A2540;
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: right;
  font-weight: 600;
  font-size: 0.82rem;
}
.fin-table th:first-child { text-align: left; }
.fin-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e8eef5;
  text-align: right;
  color: #2D3748;
}
.fin-table td:first-child { text-align: left; font-weight: 500; }
.fin-table tr:nth-child(even) td { background: #f7fafd; }
.fin-table .total td { background: #e9f0f8; font-weight: 700; color: #0A2540; }
.fin-table .highlight td { background: rgba(245,166,35,0.08); font-weight: 700; color: #0A2540; }

/* ---------- Contact form area ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { color: #0A2540; margin-bottom: 1rem; }
.contact-info p  { color: #5a6a7e; }

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}
.contact-detail__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1A6FB8, #0A2540);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #fff;
}
.contact-detail__text h4 { color: #0A2540; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem; }
.contact-detail__text p  { color: #5a6a7e; font-size: 0.95rem; margin: 0; }

.contact-form { background: #F0F5FA; border-radius: 14px; padding: 2.5rem; }
.contact-form h3 { color: #0A2540; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #0A2540; margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #d0dae8;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #2D3748;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1A6FB8;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: #8a9ab0; margin-top: 0.8rem; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: #061828;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer__logo img { height: 36px; }
.footer__logo-text { font-size: 1.15rem; font-weight: 700; color: #fff; }
.footer__logo-text span { color: #F5A623; }
.footer__tagline { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer__col h4 { color: #fff; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 0.55rem; }
.footer__col ul a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer__col ul a:hover { color: #F5A623; text-decoration: none; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__bottom p { margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #061828, #0A2540 70%, #0d3a6a);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 60px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero .eyebrow {
  display: inline-block;
  color: #F5A623;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.8rem; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 580px; }

/* ---------- Page hero with light bottom ---------- */
.page-hero--light::after { background: #F0F5FA; }

/* ---------- Image gallery strip ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-strip img {
  border-radius: 10px;
  height: 220px;
  width: 100%;
  object-fit: cover;
}

/* ---------- Highlight box ---------- */
.highlight-box {
  background: linear-gradient(135deg, #0A2540, #1A6FB8);
  border-radius: 16px;
  padding: 3rem;
  color: #fff;
  text-align: center;
}
.highlight-box h2 { color: #fff; margin-bottom: 1rem; }
.highlight-box p  { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 1.75rem; }

/* ---------- Tag badge ---------- */
.badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: #b07800;
  border: 1px solid rgba(245,166,35,0.4);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0dae8, transparent);
  margin: 3rem 0;
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex-gap { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- Scroll fade-in (JS-driven) ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }
