:root {
  --primary: #d13434;
  --primary-dark: #b23500;
  --text: #212529;
  --muted: #6f7478;
  --white: #ffffff;
  --dark: #212529;
  --container: 1200px;
  --header-height: 108px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.045);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 5px 24px rgba(0, 0, 0, 0.09);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  margin-inline-end: auto;
  flex: 0 0 auto;
}

.brand img {
  width: 123px;
  max-height: 88px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--primary-dark);
  transition: width 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-dark);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

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

.social-links {
  display: flex;
  gap: 4px;
  direction: ltr;
}

.social-links a {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.phone-link {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--primary);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  margin-top: var(--header-height);
  height: min(850px, calc(100vh - 25px));
  min-height: 560px;
  background-image: url("../media/2024/09/IMG-20240922-WA0016.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.11));
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(90px, 14vh, 150px);
}

.hero h1 {
  margin: 0;
  color: #ff3a2d;
  font-size: clamp(44px, 5.7vw, 80px);
  line-height: 1.1;
  letter-spacing: -4px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.18);
}

/* Split sections */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split-media {
  position: relative;
  min-height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.about-media {
  background-image: url("../media/2024/09/IMG-20240922-WA0017-1.jpg");
}

.why-media {
  background-image: url("../media/2024/09/IMG-20240922-WA0015-1.jpg");
}

.dot-art {
  position: absolute;
  width: 126px;
  height: 123px;
  object-fit: contain;
  z-index: 2;
}

.dot-bottom {
  right: 10px;
  bottom: 10px;
}

.dot-top {
  left: 10px;
  top: 10px;
}

.split-copy {
  display: flex;
  align-items: center;
  padding: 70px clamp(36px, 6vw, 105px);
  background: #fff;
}

.copy-inner {
  width: min(100%, 610px);
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 29px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 2px;
}

.split-copy p,
.why-list {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.95;
  color: #30353a;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 34px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.why-copy {
  margin-inline-start: auto;
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  position: relative;
  padding-inline-start: 20px;
}

.why-list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--text);
}

/* Partners */
.partners-section {
  padding: 90px 0 110px;
}

.section-title {
  margin: 0 0 58px;
  color: var(--primary);
  text-align: center;
  font-size: 38px;
  line-height: 1.25;
  font-weight: 600;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 48px;
  align-items: center;
}

.partner-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  transition: transform 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-5px);
}

.partner-card img {
  max-width: 100%;
  max-height: 175px;
  width: auto;
  object-fit: contain;
}

.partner-wide img {
  max-height: 100px;
}

.partner-square img {
  max-height: 190px;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding-top: 76px;
}

.footer-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.b1 { width: 32px; height: 32px; right: 2.5%; top: 34%; border: 2px solid var(--primary); background: transparent; }
.b2 { width: 9px; height: 9px; right: 15%; bottom: 14%; background: var(--primary); }
.b3 { width: 20px; height: 20px; left: 30%; top: 46%; }
.b4 { width: 12px; height: 12px; left: 3%; top: 25%; background: var(--primary); }

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 78px;
}

.footer-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 2px;
}

.site-footer h2 {
  margin: 0 0 45px;
  text-align: center;
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 25px;
}

.contact-item {
  text-align: center;
}

.contact-phone {
  grid-column: 1 / -1;
}

.contact-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-item h3 {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 700;
}

.contact-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
}

.contact-item a:hover {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: #ccc;
  font-size: 14px;
  padding: 15px 17px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input {
  height: 52px;
}

.contact-form textarea {
  min-height: 183px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ccc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form button {
  justify-self: center;
  min-width: 130px;
  border: 0;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  padding: 13px 30px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.form-note {
  min-height: 22px;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.copyright {
  position: relative;
  z-index: 1;
  padding: 30px 0 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 13px;
}

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

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

@media (max-width: 1100px) {
  :root { --header-height: 92px; }

  .desktop-nav { gap: 18px; }
  .desktop-nav a { font-size: 14px; }
  .social-links { display: none; }
  .brand img { width: 108px; }
  .hero { min-height: 520px; }
}

@media (max-width: 900px) {
  .desktop-nav,
  .phone-link {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 14px 25px rgba(0, 0, 0, 0.09);
    transition: max-height 0.3s ease;
  }

  .mobile-nav.open {
    max-height: 430px;
  }

  .mobile-nav a {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    color: var(--primary);
    font-weight: 700;
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    background: #fafafa;
    color: var(--primary-dark);
  }

  .hero {
    height: 66vh;
    min-height: 460px;
  }

  .hero-content {
    padding-top: 75px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .split-media {
    min-height: 430px;
  }

  .about-preview .split-media {
    order: 1;
  }

  .about-preview .split-copy {
    order: 2;
  }

  .why-section .split-copy {
    order: 2;
  }

  .why-section .split-media {
    order: 1;
  }

  .split-copy {
    padding: 60px 35px;
  }

  .copy-inner,
  .why-copy {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 600px) {
  :root { --header-height: 78px; }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand img {
    width: 92px;
    max-height: 66px;
  }

  .header-inner {
    gap: 18px;
  }

  .menu-toggle {
    width: 42px;
    height: 40px;
  }

  .hero {
    height: 58vh;
    min-height: 380px;
    background-position: 48% center;
  }

  .hero-content {
    padding-top: 55px;
  }

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

  .split-media {
    min-height: 330px;
  }

  .split-copy {
    padding: 48px 24px;
  }

  .eyebrow {
    font-size: 25px;
  }

  .split-copy p,
  .why-list {
    font-size: 16px;
    line-height: 1.9;
  }

  .partners-section {
    padding: 65px 0 75px;
  }

  .section-title {
    margin-bottom: 35px;
    font-size: 31px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .partner-card {
    min-height: 175px;
  }

  .footer-grid {
    padding-bottom: 55px;
  }

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

  .contact-phone {
    grid-column: auto;
  }

  .site-footer {
    padding-top: 60px;
  }

  .site-footer h2 {
    margin-bottom: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================
   Inner pages + complete static pages
   ========================================================== */
.inner-page .site-header {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
}

.inner-page .site-header.scrolled {
  box-shadow: none;
}

.inner-page .mobile-nav {
  top: var(--header-height);
}

.inner-footer {
  padding-top: 128px;
}

/* About */
.about-main {
  background: #fff;
}

.about-intro-section {
  padding: 74px 0 88px;
}

.about-intro {
  text-align: center;
}

.about-main-logo {
  width: min(999px, 88%);
  max-height: 188px;
  object-fit: contain;
  margin: 0 auto 45px;
}

.about-intro h1,
.inner-page-intro h1 {
  margin: 0 0 48px;
  color: var(--primary);
  text-align: center;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.25;
  font-weight: 600;
}

.about-text {
  max-width: 1120px;
  margin: 0 auto;
  text-align: right;
}

.about-text p {
  margin: 0 0 26px;
  color: #30353a;
  font-size: 18px;
  line-height: 2;
  font-weight: 500;
}

.vision-section {
  background: #f7f7f7;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 520px;
}

.vision-copy {
  display: flex;
  align-items: center;
  padding: 70px clamp(35px, 6vw, 105px);
}

.vision-copy-inner {
  width: min(100%, 600px);
  margin-inline-start: auto;
  text-align: center;
}

.vision-copy h2,
.values-section .section-title {
  margin-top: 0;
  color: var(--primary);
}

.vision-copy h2 {
  margin-bottom: 24px;
  font-size: 38px;
  font-weight: 600;
}

.vision-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  font-weight: 500;
}

.vision-image {
  min-height: 520px;
}

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

.values-section {
  padding: 82px 0 100px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 22px 12px;
}

.value-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  color: var(--primary);
}

.value-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.value-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.5;
  font-weight: 600;
}

/* Partners detail page */
.compact-intro {
  padding: 72px 0 10px;
}

.compact-intro h1 {
  margin-bottom: 28px;
}

.partner-details-section {
  padding: 0 0 105px;
}

.partner-detail {
  padding: 58px 0 64px;
  border-bottom: 1px solid #ededed;
}

.partner-detail:last-child {
  border-bottom: 0;
}

.partner-detail-head {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 36px;
}

.partner-logo-box {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.partner-logo-box img {
  width: auto;
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.partner-copy h2 {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: clamp(24px, 2.25vw, 31px);
  line-height: 1.5;
  font-weight: 600;
}

.partner-copy p {
  margin: 0;
  color: #30353a;
  font-size: 17px;
  line-height: 2;
  font-weight: 500;
}

.partner-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  direction: rtl;
}

.partner-photo {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: #f3f3f3;
  cursor: zoom-in;
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.partner-photo:hover img {
  transform: scale(1.06);
}

/* Gallery */
.gallery-section {
  padding: 58px 0 105px;
}

.gallery-masonry {
  columns: 4 250px;
  column-gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  background: #efefef;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}

.gallery-item::after,
.partner-photo::after {
  content: "＋";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.18);
  color: #fff;
  font-size: 42px;
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-item:hover::after,
.partner-photo:hover::after {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

/* Contact page: the original page body is empty; footer is the page content. */
.contact-main {
  height: 0;
}

/* Static lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  background: rgba(0, 0, 0, .92);
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-stage {
  position: relative;
  max-width: min(1320px, 96vw);
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 3002;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  opacity: .88;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 22px;
  left: 26px;
  font-size: 44px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 58px;
  padding: 18px;
}

.lightbox-prev {
  right: 15px;
}

.lightbox-next {
  left: 15px;
}

.lightbox-counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.78);
  font: 14px/1.4 Arial, sans-serif;
  direction: ltr;
}

/* Inner responsive fixes */
@media (max-width: 900px) {
  .inner-page .mobile-nav {
    position: absolute;
  }

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

  .vision-image,
  .vision-image img {
    min-height: 420px;
  }

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

  .partner-detail-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .partner-logo-box {
    min-height: 120px;
  }

  .partner-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry {
    columns: 2 260px;
  }

  .inner-footer {
    padding-top: 90px;
  }
}

@media (max-width: 600px) {
  .about-intro-section {
    padding: 48px 0 58px;
  }

  .about-main-logo {
    width: 100%;
    margin-bottom: 30px;
  }

  .about-intro h1,
  .inner-page-intro h1 {
    margin-bottom: 30px;
    font-size: 32px;
  }

  .about-text p,
  .vision-copy p,
  .partner-copy p {
    font-size: 16px;
    line-height: 1.95;
  }

  .vision-copy {
    padding: 55px 24px;
  }

  .vision-copy h2 {
    font-size: 31px;
  }

  .vision-image,
  .vision-image img {
    min-height: 300px;
  }

  .values-section {
    padding: 62px 0 72px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .value-card h3 {
    font-size: 21px;
  }

  .compact-intro {
    padding-top: 48px;
  }

  .partner-detail {
    padding: 42px 0 48px;
  }

  .partner-copy h2 {
    font-size: 24px;
  }

  .partner-photo-grid {
    grid-template-columns: 1fr;
  }

  .partner-photo {
    height: 235px;
  }

  .gallery-section {
    padding: 32px 0 72px;
  }

  .gallery-masonry {
    columns: 1;
  }

  .lightbox-modal {
    padding: 55px 15px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 42px;
    padding: 10px;
  }

  .lightbox-close {
    top: 12px;
    left: 15px;
    font-size: 38px;
  }

  .inner-footer {
    padding-top: 70px;
  }
}
