:root {
  --green-950: #042f26;
  --green-900: #063d32;
  --green-800: #0a4f41;
  --green-700: #176b58;
  --gold-500: #b89b60;
  --gold-400: #d4bd83;
  --ink: #14352e;
  --muted: #697a75;
  --line: #e5e8e5;
  --paper: #ffffff;
  --soft: #f7f8f5;
  --shadow: 0 24px 60px rgba(5, 44, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23063d32' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M60 5 72 42l38 0-31 22 12 36-31-22-31 22 12-36-31-22 38 0Z'/%3E%3Cpath d='M0 60h120M60 0v120M18 18l84 84M102 18 18 102'/%3E%3C/g%3E%3C/svg%3E");
  line-height: 1.6;
}

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

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 84px);
  background: linear-gradient(90deg, var(--green-950), var(--green-900));
  color: #fff;
  box-shadow: 0 12px 32px rgba(4, 47, 38, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--gold-400);
}

.brand-mark svg {
  width: 58px;
  height: 38px;
  stroke-width: 3.8;
}

.brand strong {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.brand small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3.2vw, 54px);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.88);
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  content: "";
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-cta,
.btn,
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  padding: 0 22px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 155, 96, 0.32);
}

.whatsapp-link {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(212, 189, 131, 0.46);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.contact-whatsapp {
  margin-top: 22px;
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, #fff 61%, #fff 100%), url("assets/basira-hero.png");
  background-size: cover;
  background-position: left center;
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #fff 100%),
    radial-gradient(circle at 72% 34%, rgba(184, 155, 96, 0.1), transparent 26%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  grid-column: 1;
  max-width: 650px;
  padding: clamp(42px, 7vw, 92px) clamp(32px, 7vw, 104px) clamp(92px, 9vw, 120px) 36px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 5.8vw, 82px);
  font-weight: 900;
  line-height: 1.12;
  color: var(--green-900);
}

.hero p {
  max-width: 610px;
  margin: 0 0 34px;
  color: #3f4d49;
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.btn {
  padding: 0 34px;
  border: 1px solid transparent;
  font-size: 19px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  color: #fff;
  box-shadow: 0 18px 38px rgba(6, 61, 50, 0.24);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--green-800);
  color: var(--green-900);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--gold-500);
  transform: translateX(-50%);
}

.services-section,
.popular-section,
.division-section,
.coverage-section,
.trust-section,
.about-section,
.contact-section {
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 84px);
}

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

.section-heading.wide {
  max-width: 980px;
}

h2 {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 1.15;
}

.section-heading p,
.trust-copy p,
.about-section p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

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

.service-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  text-align: right;
  box-shadow: 0 10px 28px rgba(8, 48, 39, 0.04);
}

.service-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 245, 0.94)),
    radial-gradient(circle at 18% 12%, rgba(184, 155, 96, 0.12), transparent 30%);
  border-color: rgba(184, 155, 96, 0.35);
}

.service-card:hover {
  border-color: rgba(184, 155, 96, 0.55);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--green-800);
}

.service-icon.gold {
  color: var(--gold-500);
}

.service-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--green-950);
  font-size: 23px;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-right: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.popular-section {
  background: linear-gradient(180deg, #fff, rgba(247, 248, 245, 0.96));
}

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

.popular-list article {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 48, 39, 0.04);
}

.popular-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: rgba(184, 155, 96, 0.14);
  color: var(--gold-500);
  font-weight: 900;
}

.popular-list h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 23px;
  line-height: 1.25;
}

.popular-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.division-section {
  background: #fff;
}

.commercial-section {
  background:
    linear-gradient(180deg, rgba(247, 248, 245, 0.96), #fff 34%),
    radial-gradient(circle at 15% 18%, rgba(184, 155, 96, 0.12), transparent 24%);
}

.engineering-section {
  background:
    linear-gradient(180deg, #fff, rgba(247, 248, 245, 0.96)),
    radial-gradient(circle at 86% 22%, rgba(10, 79, 65, 0.08), transparent 24%);
}

.division-intro {
  max-width: 1050px;
  margin: 0 0 28px;
  padding: 24px 28px;
  border-right: 4px solid var(--gold-500);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(5, 44, 36, 0.05);
}

.division-intro p,
.engineering-copy p,
.legal-note p,
.insight-band p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.division-card {
  min-height: 440px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(5, 44, 36, 0.06);
}

.division-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(184, 155, 96, 0.14);
  color: var(--gold-500);
  font-weight: 900;
}

.division-card h3,
.insight-band h3,
.engineering-services strong {
  margin: 0 0 14px;
  color: var(--green-950);
  font-size: 24px;
  line-height: 1.25;
}

.division-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.division-card li {
  position: relative;
  padding-right: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.division-card li::before {
  position: absolute;
  top: 0.78em;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.insight-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.insight-band > div {
  padding: 30px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
}

.insight-band h3 {
  color: #fff;
}

.insight-band p {
  color: rgba(255, 255, 255, 0.78);
}

.legal-note {
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid rgba(184, 155, 96, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.legal-note summary {
  cursor: pointer;
  color: var(--green-950);
  font-size: 22px;
  font-weight: 900;
}

.legal-note p {
  margin-top: 16px;
}

.engineering-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
  gap: 28px;
  align-items: start;
}

.engineering-copy {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 8px;
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.engineering-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.engineering-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.engineering-services article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(5, 44, 36, 0.05);
}

.engineering-services strong {
  display: block;
  margin-bottom: 10px;
}

.engineering-services span {
  color: var(--muted);
  font-size: 17px;
}

.coverage-section {
  background: linear-gradient(180deg, rgba(247, 248, 245, 0.96), #fff);
}

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

.coverage-grid article {
  min-height: 170px;
  padding: 24px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
}

.coverage-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.coverage-grid span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 54px;
  align-items: center;
  background: linear-gradient(180deg, rgba(247, 248, 245, 0.96), #fff);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.metrics div {
  padding: 18px;
  border-right: 3px solid var(--gold-400);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(5, 44, 36, 0.05);
}

.metrics strong {
  display: block;
  color: var(--green-800);
  font-size: 32px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-weight: 700;
}

.timeline {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.timeline h3 {
  margin: 0 0 28px;
  color: var(--green-900);
  font-size: 32px;
  text-align: center;
}

.timeline ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  text-align: center;
}

.timeline li + li::before {
  position: absolute;
  top: 24px;
  right: calc(-50% + 32px);
  width: calc(100% - 44px);
  border-top: 1px dashed var(--gold-500);
  content: "";
}

.timeline span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-weight: 900;
}

.timeline p {
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(400px, 1fr);
  gap: 44px;
  align-items: center;
}

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

.assurance-grid div {
  min-height: 180px;
  padding: 24px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
}

.assurance-grid svg {
  width: 42px;
  height: 42px;
  color: var(--gold-400);
}

.assurance-grid strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
}

.assurance-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: start;
  background: var(--soft);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form .full,
.paid-note,
.form-submit,
.form-note {
  grid-column: span 2;
}

.contact-form label:not(.full) {
  grid-column: span 1;
}

.contact-form span {
  display: block;
  margin-bottom: 7px;
  color: var(--green-950);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9dedb;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(184, 155, 96, 0.22);
  border-color: var(--gold-500);
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.paid-note {
  margin: 4px 0;
  padding: 14px 16px;
  border-right: 4px solid var(--gold-500);
  border-radius: 6px;
  background: rgba(184, 155, 96, 0.12);
  color: var(--green-950);
  font-weight: 700;
}

.form-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 84px);
  background: var(--green-950);
  color: #fff;
}

.site-footer .brand strong {
  font-size: 28px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

@media (max-width: 860px) {
  .site-header {
    position: relative;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    grid-column: 1 / -1;
  }

  .main-nav {
    grid-column: 1 / -1;
  }

  .header-whatsapp,
  .header-cta {
    width: 100%;
    min-width: 0;
  }

  .header-cta {
    padding: 0 14px;
  }

  .header-whatsapp {
    padding: 0 12px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 320px;
  }

  .hero-media {
    height: 420px;
    inset: 0 0 auto;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 15%, #fff 96%), url("assets/basira-hero.png");
    background-position: left top;
  }

  .hero-content {
    grid-column: 1;
    padding: 34px 22px 76px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .hero p {
    font-size: 20px;
  }

  .services-grid,
  .popular-list,
  .division-grid,
  .insight-band,
  .engineering-layout,
  .engineering-services,
  .coverage-grid,
  .metrics,
  .timeline ol,
  .assurance-grid,
  .trust-section,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .timeline li + li::before {
    display: none;
  }

  .contact-form label:not(.full) {
    grid-column: span 2;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 16px;
  }

  .brand strong {
    font-size: 30px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark svg {
    width: 42px;
  }

  .header-cta {
    min-height: 42px;
    font-size: 14px;
  }

  .header-whatsapp {
    min-height: 42px;
    font-size: 14px;
  }

  .main-nav {
    gap: 22px;
    font-size: 15px;
  }

  .hero {
    padding-top: 250px;
  }

  .hero-media {
    height: 320px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

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

  .service-card {
    min-height: auto;
    padding: 22px;
  }

  .contact-form {
    padding: 18px;
  }
}
