:root {
  --brand: #0d3b66;
  --brand-strong: #082848;
  --brand-soft: #e8f0f9;
  --accent: #c8102e;
  --accent-soft: #fbe4e7;
  --text: #16202c;
  --muted: #5a6b7a;
  --border: #dbe3ec;
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --shadow: 0 16px 34px rgba(13, 59, 102, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background: var(--surface-alt);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--brand);
  white-space: nowrap;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--brand-soft);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.22);
}

.nav-cta:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

/* Hero (SVG-led, no photography) */
.hero-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
  padding: 38px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: var(--shadow);
  margin-top: 22px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  color: #fff;
  margin: 12px 0 14px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  font-size: 1.02rem;
}

.hero-badge,
.section-badge,
.panel-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-copy .hero-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.primary-action {
  background: var(--accent);
  color: #fff;
  padding: 13px 22px;
  box-shadow: 0 12px 26px rgba(200, 16, 46, 0.22);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 13px 20px;
  background: transparent;
  color: #fff;
}

.hero-copy .secondary-action {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Hero SVG graphic panel (original, hand-authored — no photography) */
.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-graphic svg {
  width: 100%;
  height: auto;
  max-height: 300px;
}

/* Legal trust strip */
.legal-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 22px 0 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: 0 8px 18px rgba(13, 59, 102, 0.05);
}

.legal-trust-strip div {
  display: grid;
  gap: 3px;
  padding: 18px;
  background: #fff;
}

.legal-trust-strip strong {
  color: var(--brand-strong);
  font-size: 1.02rem;
}

.legal-trust-strip span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 52px 0 8px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--brand-strong);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.info-grid,
.services-grid,
.why-grid,
.contact-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.info-grid,
.why-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid,
.steps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.service-card,
.why-card,
.contact-card,
.project-panel,
.step-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: 0 8px 20px rgba(22, 32, 44, 0.04);
  border-top: 3px solid var(--accent);
}

.info-card:hover,
.service-card:hover,
.why-card:hover,
.contact-card:hover,
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(22, 32, 44, 0.08);
}

.info-card h3,
.service-card h3,
.why-card h3,
.contact-card h3,
.project-panel h3,
.step-card h3,
.card h3 {
  margin: 0 0 8px;
  color: var(--brand-strong);
}

.info-card p,
.service-card p,
.why-card p,
.contact-card p,
.project-panel p,
.project-panel li,
.step-card p,
.card p {
  margin: 0;
  color: var(--muted);
}

.step-card {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 10px;
}

.projects-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.project-panel ul {
  padding-right: 18px;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.8rem auto 2.2rem;
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
}

.about-visual img {
  max-height: 260px;
  width: auto;
  border-radius: 16px;
}

/* Legal card / table */
.legal-card {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
}

.legal-card-compact {
  margin-top: 28px;
}

.legal-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.legal-list > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-list dt {
  color: var(--brand-strong);
  font-weight: 800;
}

.legal-list dd {
  margin: 0;
  color: var(--muted);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 0.92rem;
}

.legal-table caption {
  text-align: right;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.legal-table th {
  color: var(--brand-strong);
  font-weight: 800;
}

.legal-table td {
  color: var(--muted);
}

.inline-link {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
}

/* Quote form */
.quote-form-wrap {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.quote-form {
  display: grid;
  gap: 18px;
}

.quote-form-head h3 {
  margin-bottom: 4px;
}

.quote-form-head p {
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--brand-strong);
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.quote-form textarea {
  resize: vertical;
  min-height: 120px;
}

.quote-form .full-width {
  grid-column: 1 / -1;
}

/* CTA banner */
.cta-banner {
  padding-top: 20px;
}

.cta-banner-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #93081f);
  color: #fff;
  box-shadow: 0 20px 44px rgba(200, 16, 46, 0.2);
}

.cta-copy h2 {
  color: #fff;
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
}

.cta-banner .hero-actions .primary-action {
  background: #fff;
  color: var(--accent);
}

.cta-banner .hero-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  color: var(--brand-strong);
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--brand);
  font-weight: 700;
}

/* Simple pages container (privacy/terms style) */
.container {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

nav.simple-nav {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
  flex-wrap: wrap;
}

nav.simple-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand);
}

nav.simple-nav .brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

nav.simple-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

nav.simple-nav a.active,
nav.simple-nav a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-panel,
  .cta-banner-inner,
  .projects-layout,
  .info-grid,
  .services-grid,
  .why-grid,
  .contact-grid,
  .steps-grid,
  .field-grid,
  .legal-trust-strip {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .legal-trust-strip div {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    min-height: 68px;
  }

  .hero-panel {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .legal-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
