/* Steels Structures — main stylesheet */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=El+Messiri:wght@500;600;700;800&display=swap");

:root {
  --color-primary: #236576;
  --color-primary-dark: #1a4d5a;
  --color-primary-light: #2d7a8f;
  --color-accent: #c9a227;
  --color-bg: #f4f8f9;
  --color-surface: #ffffff;
  --color-text: #1a2e33;
  --color-text-muted: #5a6f75;
  --font-en: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: "Cairo", "Segoe UI", "Tahoma", sans-serif;
  --font-ar-display: "El Messiri", "Cairo", serif;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(35, 101, 118, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
  font-feature-settings: "kern" 1;
  line-height: 1.75;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .hero h1,
[dir="rtl"] .hero-badge,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .section-head h2,
[dir="rtl"] .card-service h3,
[dir="rtl"] .cta-band h2,
[dir="rtl"] .site-footer h3,
[dir="rtl"] .logo-link span,
[dir="rtl"] .nav-main a,
[dir="rtl"] .btn,
[dir="rtl"] .lang-switch a,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .nav-toggle,
[dir="rtl"] .feature strong {
  font-family: var(--font-ar-display);
  letter-spacing: 0;
}

[dir="rtl"] .hero h1,
[dir="rtl"] .page-hero h1 {
  font-weight: 800;
  line-height: 1.25;
}

[dir="rtl"] .prose p,
[dir="rtl"] .prose li {
  font-family: var(--font-ar);
  font-size: 1.05rem;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 101, 118, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 50% 100%, 0 calc(100% - 8px));
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}

.nav-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.nav-main a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-main a:hover::after,
.nav-main a[aria-current="page"]::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
}

.lang-switch a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(35, 101, 118, 0.08);
  color: var(--color-primary-dark);
}

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

[dir="rtl"] .nav-main a::after {
  left: auto;
  right: 0;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(35, 101, 118, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
  }

  .nav-main.is-open {
    max-height: 480px;
  }

  .nav-main ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    align-items: stretch;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, #1a5563 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero-clip {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 45%;
  max-width: 520px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: float-hex 8s ease-in-out infinite;
}

[dir="rtl"] .hero-clip {
  right: auto;
  left: -5%;
}

.hero-clip--2 {
  width: 28%;
  max-width: 280px;
  top: 55%;
  right: 15%;
  opacity: 0.5;
  animation-delay: -3s;
}

[dir="rtl"] .hero-clip--2 {
  right: auto;
  left: 15%;
}

@keyframes float-hex {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(6deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

  .hero-clip,
  .hero-clip--2 {
    opacity: 0.25;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: fade-up 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  animation: fade-up 0.8s 0.1s ease both;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 36ch;
  margin-bottom: 1.75rem;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fade-up 0.8s 0.3s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

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

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

.hero-visual {
  position: relative;
  animation: fade-up 1s 0.25s ease both;
}

.hero-visual img {
  width: 100%;
  border-radius: 4px;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(201, 162, 39, 0.4);
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  pointer-events: none;
  z-index: -1;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Sections ——— */
.section {
  padding: 4rem 1.25rem;
}

.section--alt {
  background: var(--color-surface);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin-top: -2rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--color-primary-dark);
  margin: 0 0 0.65rem;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ——— Service cards ——— */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-service {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.card-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgba(35, 101, 118, 0.18);
}

.card-service a {
  color: inherit;
  display: block;
}

.card-service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.card-service .card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.card-service p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Modifier: Image-only card (for portfolio) */
.card-service.is-image-only {
  padding: 0;
  height: 280px;
}

.card-service.is-image-only img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  clip-path: none; /* No angled cut for full-card images */
}



/* ——— Portfolio ——— */
.grid-portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

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

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
  box-shadow: var(--shadow);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

.portfolio-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(26, 77, 90, 0.92));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.portfolio-item:hover figcaption {
  transform: translateY(0);
}

/* ——— Why us ——— */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(35, 101, 118, 0.06), rgba(35, 101, 118, 0.02));
  border-radius: var(--radius);
  border: 1px solid rgba(35, 101, 118, 0.12);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%);
  transition: border-color var(--transition), transform var(--transition);
}

.feature:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.feature strong {
  display: block;
  color: var(--color-primary-dark);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ——— CTA band ——— */
.cta-band {
  margin: 2rem 1.25rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  clip-path: polygon(2% 0, 98% 0, 100% 50%, 98% 100%, 2% 100%, 0 50%);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

/* ——— Contact hub (home) ——— */
.contact-hub {
  position: relative;
  padding: 4rem 1.25rem 4.5rem;
  overflow: hidden;
  background: var(--color-bg); /* Use the light background color */
}

/* Removed background pseudo-elements */
.contact-hub::before,
.contact-hub::after {
  display: none;
}


.contact-hub-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-hub-head {
  text-align: center;
  color: var(--color-text); /* Black/Dark text */
  margin-bottom: 2.5rem;
}

.contact-hub-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
}


.contact-hub-head p {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}


.contact-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.35rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid rgba(35, 101, 118, 0.12);
  border-radius: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

a.contact-card:hover {
  transform: translateY(-6px);
  background: var(--color-surface);
  box-shadow: 0 20px 40px rgba(35, 101, 118, 0.12);
  color: var(--color-primary);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.25);
  border-radius: 12px;
  font-size: 1.35rem;
  line-height: 1;
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.contact-card-value {
  font-size: 1.2rem;
  font-weight: 700;
  word-break: break-word;
}

.contact-card-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-hub-nap {
  text-align: center;
  padding: 1.35rem 1.5rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.contact-hub-nap strong {
  color: #fff;
  font-size: 1.05rem;
}

.contact-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(35, 101, 118, 0.1);
  border: 1px solid rgba(35, 101, 118, 0.12);
}


.contact-map-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

[dir="rtl"] .contact-card {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 600px) {
  .contact-card-value {
    font-size: 1.05rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  margin-top: 4rem;
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 1.25rem;
  clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}

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

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #fff;
}

.nap-block address {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.8;
}

/* ——— Service / inner pages ——— */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 3rem 1.25rem 3.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.92;
  font-size: 1.05rem;
}

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.prose h2 {
  color: var(--color-primary-dark);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.85rem;
}

.prose h3 {
  color: var(--color-text);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.prose ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
}

.media-clip {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.map-wrap {
  margin: 2.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: inset(0 round 12px);
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ——— Breadcrumb ——— */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
}
