/* Shumailah & Sons — Corporate Website */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --navy: #1b3f54;
  --navy-dark: #0f2a38;
  --navy-light: #24465b;
  --teal: #005b6e;
  --orange: #e87722;
  --orange-hover: #f18a21;
  --white: #ffffff;
  --off-white: #f4f7f9;
  --gray-100: #e8edf1;
  --gray-300: #b0bec5;
  --gray-600: #546e7a;
  --gray-800: #263238;
  --shadow: 0 4px 24px rgba(15, 42, 56, 0.12);
  --shadow-lg: 0 12px 48px rgba(15, 42, 56, 0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --font: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Tajawal', sans-serif;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font);
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 63, 84, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img {
  height: auto;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(232, 119, 34, 0.15);
  color: var(--orange-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 2px solid var(--orange);
  z-index: 999;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  color: var(--white);
  padding: 0.85rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--orange);
}

/* Language toggle */
.lang-toggle {
  background: rgba(232, 119, 34, 0.15);
  border: 1px solid rgba(232, 119, 34, 0.4);
  color: var(--orange-hover);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font);
  margin-inline-start: 0.5rem;
}

.lang-toggle:hover {
  background: rgba(232, 119, 34, 0.3);
  color: var(--white);
}

.lang-toggle--mobile {
  display: block;
  width: 100%;
  margin: 1rem 0 0;
  text-align: center;
}

[dir="rtl"] body {
  font-family: var(--font);
}

[dir="rtl"] .lang-toggle,
.lang-toggle {
  font-family: var(--font);
}

/* RTL header — mirror layout (logo right, navigation left) */
[dir="rtl"] .site-header {
  direction: rtl;
}

[dir="rtl"] .header-inner {
  direction: rtl;
  flex-direction: row;
}

[dir="rtl"] .nav-desktop {
  direction: rtl;
  flex-direction: row;
}

[dir="rtl"] .nav-desktop a {
  letter-spacing: 0;
}

[dir="rtl"] .nav-mobile {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-toggle {
  margin-inline-start: 0.5rem;
  margin-inline-end: 0;
}

[dir="rtl"] .overview-grid,
[dir="rtl"] .ceo-section {
  direction: rtl;
}

[dir="rtl"] .stat-item {
  border-left: none;
  border-right: 3px solid var(--orange);
}

/* Contact info always LTR */
.chapter-closing__contact a[href^="tel:"],
.chapter-closing__contact a[href^="mailto:"],
.chapter-closing__contact a[href^="https://"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
a.hero-badge {
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

a.hero-badge:hover {
  background: rgba(232, 119, 34, 0.35);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-dark) url('../assets/backgrounds/texture.jpg') center/cover no-repeat;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 42, 56, 0.88) 0%, rgba(27, 63, 84, 0.75) 50%, rgba(0, 91, 110, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 119, 34, 0.2);
  border: 1px solid var(--orange);
  color: var(--orange-hover);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 119, 34, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

/* Overview */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.overview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.overview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 63, 84, 0.5) 0%,
    rgba(0, 91, 110, 0.4) 50%,
    rgba(27, 63, 84, 0.35) 100%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
  border-radius: inherit;
  transition: opacity var(--transition);
}

.overview-image:hover::after {
  opacity: 0.75;
}

.overview-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.overview-text h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.overview-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--navy);
  font-weight: 700;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--orange);
  transition: transform var(--transition);
}

.partner-card:hover {
  transform: translateY(-4px);
}

.partner-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(232, 119, 34, 0.2);
  box-shadow: 0 4px 16px rgba(15, 42, 56, 0.1), inset 0 0 0 4px var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.partner-card:hover .partner-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(232, 119, 34, 0.2), inset 0 0 0 4px var(--white);
}

.partner-icon picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.partner-icon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.partner-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.4;
}

/* About */
.ceo-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.ceo-photo {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--white);
}

.ceo-avatar {
  width: 160px;
  height: 216px;
  border: 3px solid var(--orange);
  border-radius: var(--radius);
  margin: 0 auto 1.25rem;
  overflow: hidden;
  display: block;
}

.ceo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ceo-photo h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.ceo-photo span {
  color: var(--orange);
  font-size: 0.9rem;
}

.ceo-message {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border-left: 4px solid var(--orange);
}

.ceo-message blockquote {
  font-size: 1.05rem;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.8;
}

.ceo-message blockquote p {
  margin-bottom: 1rem;
}

.ceo-message blockquote p:last-child {
  margin-bottom: 0;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-100);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--orange);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--orange);
}

.timeline-year {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--gray-600);
}

/* Contact */
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status--success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-form {
  position: relative;
}

/* CTA */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--teal) 100%);
  text-align: center;
}

.cta-section::before {
  content: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
  position: relative;
}

.site-footer::before {
  content: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 70px;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at center, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at center, #000 72%, transparent 100%);
  transition: filter var(--transition), transform var(--transition);
}

.footer-brand:hover img {
  filter: drop-shadow(0 3px 10px rgba(232, 119, 34, 0.22));
  transform: translateY(-1px);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--orange);
}

/* Keep phone numbers, emails, and URLs readable in RTL */
.footer-col a[href^="tel:"],
.footer-col a[href^="mailto:"],
.footer-col a[href^="https://www."] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

[dir="rtl"] .footer-col a[href^="tel:"],
[dir="rtl"] .footer-col a[href^="mailto:"],
[dir="rtl"] .footer-col a[href^="https://www."] {
  text-align: left;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .js-loaded .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .js-loaded .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .overview-grid,
  .ceo-section,
  .vision-mission {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .overview-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop .lang-toggle {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .overview-stats {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.5rem 0;
  }
}
