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

:root {
  --navy: #082e5f;
  --navy-2: #0f437e;
  --yellow: #f4ad22;
  --ink: #142235;
  --muted: #526275;
  --line: #dce4ef;
  --bg: #f4f7fb;
  --white: #fff;
  --soft: #edf4fb;
  --shadow: 0 16px 38px rgba(8, 46, 95, 0.11);
  --shadow-sm: 0 8px 22px rgba(8, 46, 95, 0.08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 15px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

body[dir="ltr"] { font-family: 'Cairo', Arial, Tahoma, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container-custom {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 46, 95, 0.12);
  backdrop-filter: blur(18px);
}

.example-header {
  top: 0;
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand small { color: var(--muted); font-size: .78rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
}

.nav-links a {
  padding: 8px 9px;
  border-radius: 8px;
  font-size: .92rem;
  transition: background .18s ease, color .18s ease;
}

.product-menu {
  position: relative;
}

.product-menu > a {
  display: inline-flex;
}

.product-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: 230px;
  display: none;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-menu:hover .product-menu-panel,
.product-menu:focus-within .product-menu-panel {
  display: grid;
}

.product-menu-panel a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--navy);
}


.nav-links a:hover,
.nav-links a.active {
  background: rgba(244, 173, 34, .16);
  color: var(--navy);
}

.menu-toggle, .lang-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  min-width: 40px;
  height: 40px;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle { display: none; place-items: center; }

.btn, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: .94rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover, .nav-cta:hover {
  transform: translateY(-1px);
}

.btn.primary, .nav-cta {
  color: #10233d;
  background: var(--yellow);
  box-shadow: 0 12px 28px rgba(244, 173, 34, .27);
}

.btn.secondary {
  color: var(--white);
  background: var(--navy);
}

.btn.outline {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn.outline-light {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .74);
}

.btn.outline-light:hover {
  background: rgba(255, 255, 255, .1);
}

svg { width: 19px; height: 19px; }

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 46, 95, .08), rgba(8, 46, 95, .78) 55%, rgba(8, 46, 95, .95));
}

body[dir="ltr"] .hero-overlay {
  background: linear-gradient(270deg, rgba(8, 46, 95, .08), rgba(8, 46, 95, .78) 55%, rgba(8, 46, 95, .95));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  color: var(--white);
}

.hero-content h1 {
  max-width: 720px;
  margin: 0 0 14px;
  font-size: 3.05rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.02rem;
}

.page-hero {
  min-height: 310px;
  background: var(--navy);
}

.page-hero .hero-content h1 { font-size: 2.35rem; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h2 { color: var(--navy); font-size: 2rem; line-height: 1.3; margin-bottom: 10px; letter-spacing: 0; }
h3 { color: var(--navy); line-height: 1.35; margin-bottom: 7px; font-size: 1.15rem; letter-spacing: 0; }
p { color: var(--muted); }

.hero-content p,
.wide-banner p,
.package p {
  color: rgba(255, 255, 255, .9);
}

.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 56px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.stats-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 12px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stats-strip article {
  padding: 18px 20px;
  border-inline-end: 1px solid var(--line);
}

.stats-strip article:last-child { border-inline-end: 0; }
.stats-strip strong { display: block; color: var(--navy); font-size: 1.05rem; }
.stats-strip span { color: var(--muted); font-size: .9rem; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list a, .category-card, .product-card, .service-card, .contact-card, .form-card {
  background: var(--white);
  border: 1px solid rgba(8, 46, 95, .1);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.info-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  color: var(--navy);
  font-weight: 800;
}

.info-list svg, .category-card svg, .service-card svg, .contact-card svg { color: var(--yellow); width: 30px; height: 30px; }

.category-grid, .service-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card, .service-card, .contact-card {
  padding: 20px;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover,
.service-card:hover,
.contact-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(244, 173, 34, .42);
}

.wide-banner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 300px;
  margin: 24px auto 56px;
  overflow: hidden;
  border-radius: 8px;
  display: grid;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background: var(--navy);
}

.wide-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
}

.wide-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 46, 95, .12), rgba(8, 46, 95, .9));
}

body[dir="ltr"] .wide-banner::after {
  background: linear-gradient(270deg, rgba(8, 46, 95, .12), rgba(8, 46, 95, .9));
}

.wide-banner > div {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.wide-banner h2 { color: var(--white); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 7px 14px;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
}

.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

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

.catalog-deep {
  display: grid;
  gap: 24px;
}

.series-card {
  background: var(--white);
  border: 1px solid rgba(8, 46, 95, .1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--navy);
  color: var(--white);
}

.series-head h3 {
  margin: 0;
  color: var(--white);
}

.series-head p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.76);
}

.series-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.table-wrap {
  overflow-x: auto;
}

.series-table th,
.series-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.series-table th {
  color: var(--navy);
  background: var(--soft);
  font-weight: 800;
}

.series-table td {
  color: var(--muted);
}

.series-table strong {
  color: var(--navy);
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Custom sections inspired by the React example --- */

.example-home {
  background: var(--bg);
}

.example-hero {
  position: relative;
  min-height: calc(90vh - 104px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.example-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(8, 46, 95, .92), rgba(8, 46, 95, .72));
}

body[dir="ltr"] .example-hero-overlay {
  background: linear-gradient(90deg, rgba(8, 46, 95, .92), rgba(8, 46, 95, .72));
}

.example-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding-block: 74px;
}

.example-hero-content h1 {
  max-width: 880px;
  margin: 0 auto 18px;
  color: var(--yellow);
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1.16;
  font-weight: 800;
}

.example-hero-content p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.example-hero-content .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.example-stats {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.example-stats article {
  padding: 20px 22px;
  border-inline-end: 1px solid var(--line);
}

.example-stats article:last-child {
  border-inline-end: 0;
}

.example-stats strong {
  display: block;
  color: var(--navy);
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.example-stats span {
  color: var(--muted);
  font-size: .91rem;
}

/* Adjust the hero overlay on the home page to use a darker gradient overlay similar to the example design. */
.home-hero .hero-overlay {
  background: linear-gradient(90deg, rgba(8, 46, 95, 0.82), rgba(8, 46, 95, 0.52));
}

body[dir="ltr"] .home-hero .hero-overlay {
  background: linear-gradient(270deg, rgba(8, 46, 95, 0.82), rgba(8, 46, 95, 0.52));
}

/* Features section layout */
.features {
  padding: 78px 16px;
  background: var(--bg);
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.features .section-heading h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.features .section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 230px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(8, 46, 95, .15);
}

.feature-img {
  position: relative;
  height: 100%;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-img.product-contain {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.feature-img.product-contain img {
  width: 86%;
  height: 170px;
  object-fit: contain;
}

.feature-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(244, 173, 34, .18);
  font-weight: 900;
}

.feature-content h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 900;
}

.feature-content p {
  color: var(--muted);
  font-size: .94rem;
}

/* Call to action section styling */
.cta-section {
  padding: 76px 16px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  color: var(--yellow);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0 0 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 198px;
  background: linear-gradient(180deg, #fff, var(--soft));
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 84%;
  height: 160px;
  object-fit: contain;
}

.tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #17243a;
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 800;
}

.product-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body p {
  font-size: .92rem;
  color: #526275;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}

.specs li {
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 8px;
  margin-top: auto;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: .78rem;
  font-weight: 800;
}

.icon-btn i[data-lucide]::before {
  content: "+";
  font-style: normal;
}

.solar-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.package {
  padding: 22px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
}

.package h3 { color: var(--white); }
.package p { color: rgba(255,255,255,.78); }

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.form-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
  font-size: .92rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: 0;
  background: #fbfdff;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(244, 173, 34, .17);
}

textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }

.form-status {
  min-height: 22px;
  margin: -2px 0 0;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 800;
}

.form-status.success {
  color: #167a3a;
}

.form-status.error {
  color: #b42318;
}

.btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.map-frame {
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 38px 16px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 24px;
}

.footer img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 12px;
}

.footer h3 { color: var(--yellow); }
.footer p, .footer a { color: rgba(255,255,255,.78); }
.footer a { display: block; margin: 7px 0; }

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    position: absolute;
    top: 68px;
    inset-inline: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .nav-links.open .product-menu-panel {
    position: static;
    display: grid;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    background: var(--soft);
  }

  .hero { min-height: 480px; }
  .hero-content h1 { font-size: 2.35rem; }
  .page-hero .hero-content h1 { font-size: 2rem; }
  .stats-strip, .example-stats, .category-grid, .service-grid, .contact-grid, .product-grid, .solar-packages {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .split, .quote-layout, .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 14px; }
  .nav-shell, .section, .stats-strip, .wide-banner { width: min(100% - 22px, 1180px); }
  .nav-shell { min-height: 62px; gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand small { display: none; }
  .example-hero { min-height: 620px; }
  .example-hero-content { padding-block: 54px; }
  .example-hero-content h1 { font-size: 2.35rem; }
  .example-stats { grid-template-columns: 1fr; margin-top: 0; }
  .example-stats article { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-img { min-height: 190px; }
  .features { padding: 52px 16px; }
  .hero { min-height: 500px; }
  .hero-content { width: min(100% - 22px, 1180px); }
  .hero-content h1 { font-size: 2.05rem; }
  .hero-content p:not(.eyebrow) { font-size: .96rem; }
  .page-hero { min-height: 260px; }
  .page-hero .hero-content h1 { font-size: 1.75rem; }
  .hero-overlay { background: rgba(8, 46, 95, .82); }
  body[dir="ltr"] .hero-overlay { background: rgba(8, 46, 95, .82); }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  h2 { font-size: 1.55rem; }
  .stats-strip, .category-grid, .service-grid, .contact-grid, .product-grid, .solar-packages, .form-card {
    grid-template-columns: 1fr;
  }
  .stats-strip { margin-top: 0; }
  .wide-banner { padding: 24px 18px; min-height: 270px; }
  .product-media { height: 184px; }
  .product-media img { height: 145px; }
}
