/* ==========================================================================
   AL ENSAN AMANA ASSOCIATION - DESIGN SYSTEM & STYLESHEET
   Clean, contemporary NGO design focused on Dignity, Inclusion & Community Resilience
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors (Extracted from Official Logo) */
  --primary-navy: #0f2b5c;
  --primary-navy-dark: #091a3a;
  --primary-navy-light: #1c4080;
  
  --brand-crimson: #c02652;
  --brand-crimson-hover: #9e1c40;
  --brand-orange: #f37023;
  --brand-orange-hover: #d85c12;
  --brand-green: #689f38;
  --brand-yellow: #f59e0b;
  --brand-cyan: #0284c7;

  /* Neutral Color Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-warm-tint: #fefce8;
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-on-dark: #ffffff;

  /* Border & Surface Variables */
  --border-light: #e2e8f0;
  --border-focus: #c02652;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 43, 92, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 43, 92, 0.08), 0 8px 10px -6px rgba(15, 43, 92, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 43, 92, 0.12), 0 10px 15px -5px rgba(15, 43, 92, 0.06);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary-navy);
  color: var(--text-on-dark);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--brand-orange);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand-crimson);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-crimson-hover);
}

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

/* --------------------------------------------------------------------------
   3. Focus & Accessibility Controls
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 3px;
}

.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;
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Grid System
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: rgba(192, 38, 82, 0.1);
  color: var(--brand-crimson);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Sticky Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: var(--header-height);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 72px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.02);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-crimson), var(--brand-orange));
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-crimson);
}

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

.nav-link.active {
  color: var(--brand-crimson);
}

/* Header CTA Button */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-on-dark);
  background-color: var(--brand-crimson);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(192, 38, 82, 0.25);
  transition: all var(--transition-fast);
}

.btn-header-cta:hover {
  background-color: var(--brand-crimson-hover);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 38, 82, 0.35);
}

/* Mobile Toggle Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-navy);
  border-radius: var(--radius-sm);
  z-index: 1001;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Drawer Navigation */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 43, 92, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-card);
  z-index: 1003;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer-overlay.active .mobile-drawer {
  transform: translateX(-320px);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: block;
  padding: 0.5rem 0;
}

.mobile-nav-link.active {
  color: var(--brand-crimson);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   6. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--brand-crimson);
  color: var(--text-on-dark);
  box-shadow: 0 4px 14px rgba(192, 38, 82, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-crimson-hover);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 38, 82, 0.4);
}

.btn-secondary {
  background-color: var(--brand-orange);
  color: var(--text-on-dark);
  box-shadow: 0 4px 14px rgba(243, 112, 35, 0.3);
}

.btn-secondary:hover {
  background-color: var(--brand-orange-hover);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 112, 35, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline:hover {
  background-color: var(--primary-navy);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background-color: var(--text-on-dark);
  color: var(--primary-navy);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: var(--primary-navy-dark);
  color: var(--text-on-dark);
  padding: 6rem 0 7rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: contrast(1.05) brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 43, 92, 0.92) 0%,
    rgba(9, 26, 58, 0.85) 60%,
    rgba(192, 38, 82, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--text-on-dark);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 740px;
}

/* Page Header Hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: var(--text-on-dark);
  padding: 4.5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(243, 112, 35, 0.15) 0%, rgba(192, 38, 82, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-title {
  color: var(--text-on-dark);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.page-hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 780px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. Feature Cards & Work Grid
   -------------------------------------------------------------------------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* Service / Activity Card */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192, 38, 82, 0.2);
}

.card-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 43, 92, 0.06), rgba(192, 38, 82, 0.08));
  color: var(--brand-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast);
}

.card:hover .card-icon-wrap {
  background: var(--brand-crimson);
  color: var(--text-on-dark);
  transform: scale(1.05);
}

.card-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--primary-navy);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-crimson);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.card-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Values Card Styling */
.value-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border-top: 4px solid var(--brand-crimson);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.value-card:nth-child(2) { border-top-color: var(--brand-orange); }
.value-card:nth-child(3) { border-top-color: var(--brand-green); }
.value-card:nth-child(4) { border-top-color: var(--primary-navy); }

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   9. Photo Gallery & Lightbox
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 43, 92, 0.85) 0%, rgba(15, 43, 92, 0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1.4;
}

.gallery-zoom-icon {
  margin-bottom: 0.5rem;
  color: var(--brand-orange);
}

.gallery-zoom-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(9, 26, 58, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 950px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption-box {
  margin-top: 1.25rem;
  color: var(--text-on-dark);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 2001;
}

.lightbox-btn:hover {
  background: var(--brand-crimson);
}

.lightbox-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
}

.lightbox-prev {
  position: absolute;
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -50px; right: 10px; }
}

/* --------------------------------------------------------------------------
   10. Call To Action (CTA) Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-dark) 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-crimson), var(--brand-orange), var(--brand-green));
}

.cta-title {
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

/* --------------------------------------------------------------------------
   11. Contact Form & Interactive Components
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-box {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(192, 38, 82, 0.1);
  color: var(--brand-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.contact-form-card {
  background-color: var(--bg-card);
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: var(--brand-crimson);
  margin-left: 0.2rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-main);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--brand-crimson);
  box-shadow: 0 0 0 4px rgba(192, 38, 82, 0.12);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-feedback {
  font-size: 0.85rem;
  color: var(--brand-crimson);
  margin-top: 0.35rem;
  display: none;
}

.form-group.error .form-control {
  border-color: var(--brand-crimson);
  background-color: #fff5f5;
}

.form-group.error .form-feedback {
  display: block;
}

.privacy-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1.25rem;
  line-height: 1.5;
}

/* Toast Success Modal */
.toast-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 5px solid var(--brand-green);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.toast-success.active {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

.toast-icon {
  color: var(--brand-green);
  flex-shrink: 0;
}

.toast-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.toast-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.95rem;
  color: #047857;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Rich Content Sections & Inner Page Layouts
   -------------------------------------------------------------------------- */
.content-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.work-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.work-section:nth-child(even) {
  direction: rtl;
}

.work-section:nth-child(even) .work-section-content {
  direction: ltr;
}

.work-section:nth-child(even) .work-section-media {
  direction: ltr;
}

.work-section-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.safeguard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.safeguard-card {
  background: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.safeguard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--brand-crimson);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--primary-navy-dark);
  color: var(--text-on-dark);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  margin-top: auto;
  border-top: 4px solid var(--brand-crimson);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-logo {
  height: 54px;
  width: auto;
  margin-bottom: 1.25rem;
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-heading {
  color: var(--text-on-dark);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--brand-orange);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--brand-orange);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   14. Subtle Animations & Micro-interactions
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .work-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr !important;
  }
  .work-section-media {
    direction: ltr !important;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }
  .content-box, .contact-form-card, .contact-info-box {
    padding: 1.75rem;
  }
  .hero-section {
    padding: 4rem 0 5rem 0;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
  }
}
