/* Shams Baghdad Solar — shared stylesheet, RTL handled via [dir="rtl"] overrides */

:root {
  --terracotta: #c1440e;
  --terracotta-dark: #9c350a;
  --gold: #d9a54b;
  --gold-soft: #e8c583;
  --espresso: #241812;
  --espresso-soft: #3a2a1e;
  --sand: #f6eedf;
  --sand-dim: #ede0c8;
  --ink: #241812;
  --line: rgba(36, 24, 18, 0.12);
  --shadow: 0 20px 50px -20px rgba(36, 24, 18, 0.4);
  --radius: 16px;
  --display: "Bricolage Grotesque", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --arabic-display: "El Messiri", serif;
  --arabic-body: "Tajawal", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--arabic-body);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--espresso);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  font-family: var(--arabic-display);
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terracotta);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

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

.section-head p {
  color: var(--espresso-soft);
  font-size: 1.05rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(193, 68, 14, 0.65);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--espresso);
  color: #fff;
}

.btn-dark:hover {
  background: var(--espresso-soft);
  transform: translateY(-2px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 238, 223, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--espresso);
}

[dir="rtl"] .brand {
  font-family: var(--arabic-display);
}

.brand .mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--espresso-soft);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--terracotta-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--espresso);
  direction: ltr;
}

.phone-chip svg {
  width: 16px;
  height: 16px;
  color: var(--terracotta);
}

.lang-switch {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border: 1.5px solid var(--espresso);
  border-radius: 999px;
  color: var(--espresso);
}

.lang-switch:hover {
  background: var(--espresso);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--espresso);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero — asymmetric split panel */

.hero {
  position: relative;
  background: var(--espresso);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 86vh;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 80px 6vw;
  color: #fff;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(217, 165, 75, 0.18), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(193, 68, 14, 0.25), transparent 50%);
  z-index: -1;
}

.hero-inner {
  max-width: 560px;
}

.hero .eyebrow {
  color: var(--gold-soft);
}

.hero .eyebrow::before {
  background: var(--gold-soft);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-image {
  position: relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0% 100%);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(36, 24, 18, 0.05) 40%, rgba(36, 24, 18, 0.55) 100%);
}

.hero-ring {
  position: absolute;
  bottom: 40px;
  inset-inline-end: 40px;
  width: 108px;
  height: 108px;
  z-index: 2;
}

@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 110px 24px 60px;
  }

  .hero-image {
    clip-path: none;
    order: -1;
  }

  .hero-image img {
    min-height: 280px;
  }

  .hero-ring {
    display: none;
  }
}

/* Trust strip */

.trust-strip {
  background: var(--sand-dim);
  border-bottom: 1px solid var(--line);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 36px 24px;
}

.trust-strip div {
  flex: 1;
  min-width: 160px;
  padding: 0 24px;
  text-align: center;
  border-inline-start: 1px solid var(--line);
}

.trust-strip div:first-child {
  border-inline-start: none;
}

.trust-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--terracotta-dark);
}

[dir="rtl"] .trust-strip strong {
  font-family: var(--arabic-display);
}

.trust-strip span {
  font-size: 0.85rem;
  color: var(--espresso-soft);
}

@media (max-width: 720px) {
  .trust-strip div {
    border-inline-start: none;
    border-top: 1px solid var(--line);
    padding: 16px 8px 0;
    flex-basis: 100%;
  }

  .trust-strip div:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* Services — bento layout */

.services {
  padding: 100px 0;
  background: var(--sand);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card.featured {
  background: var(--espresso);
  color: #fff;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card.featured h3,
.service-card.featured .eyebrow {
  color: #fff;
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card.featured .service-icon {
  background: rgba(255, 255, 255, 0.12);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--terracotta);
}

.service-card.featured .service-icon svg {
  color: var(--gold);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--espresso-soft);
  margin-bottom: 0;
}

.card-tag {
  position: absolute;
  top: -12px;
  inset-inline-start: 26px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card.featured {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Process timeline */

.process {
  padding: 100px 0;
  background: var(--sand-dim);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 26px;
  inset-inline: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 10px, transparent 10px 18px);
}

.process-step {
  position: relative;
}

.process-step .step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--gold-soft);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

[dir="rtl"] .process-step .step-num {
  font-family: var(--arabic-display);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--espresso-soft);
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .process-track {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-track::before {
    display: none;
  }
}

/* Why us */

.why-us {
  padding: 100px 0;
  background: var(--espresso);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(217, 165, 75, 0.16), transparent 40%),
    radial-gradient(circle at 5% 90%, rgba(193, 68, 14, 0.18), transparent 40%);
}

.why-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.why-us .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.why-us .section-head h2 {
  color: #fff;
}

.why-list {
  display: grid;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.why-item .num {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  width: 34px;
}

[dir="rtl"] .why-item .num {
  font-family: var(--arabic-display);
}

.why-item h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.why-item p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Gallery */

.gallery {
  padding: 100px 0;
}

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

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
}

.gallery-grid figure:first-child {
  grid-row: span 2;
  aspect-ratio: 3 / 5.4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
}

.gallery-grid figcaption {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  padding: 18px 16px 14px;
  background: linear-gradient(0deg, rgba(36, 24, 18, 0.88), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Service area */

.area {
  padding: 90px 0;
  background: var(--sand-dim);
}

.area-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-chips span {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--espresso-soft);
}

.area-chips span.hq {
  background: var(--terracotta);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 780px) {
  .area-inner {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact {
  padding: 100px 0;
  background: var(--sand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-row .ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sand-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .ico svg {
  width: 20px;
  height: 20px;
  color: var(--terracotta);
}

.contact-row h3 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-row p,
.contact-row a.value {
  color: var(--espresso-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.contact-row a.value {
  font-weight: 700;
  color: var(--espresso);
  direction: ltr;
  display: inline-block;
}

.contact-ctas {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.contact-ctas .btn {
  color: #fff;
}

.btn-whatsapp {
  background: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
  border: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* Footer */

.site-footer {
  background: var(--espresso);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--display);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

[dir="rtl"] .footer-brand {
  font-family: var(--arabic-display);
}

.footer-brand + p {
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

[dir="rtl"] .footer-links h4 {
  letter-spacing: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid figure:first-child {
    grid-row: span 1;
    aspect-ratio: 3 / 4;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .phone-chip {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 78px;
    inset-inline: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
  }

  .site-header.open .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats {
    gap: 28px;
  }

  .contact-card {
    padding: 28px;
  }
}
