/* ==========================================================================
   EL MANAR (المنار) - Official Corporate Design System & Stylesheet
   Identity: Construction, Soil Reinforcement, Building Materials & Decoration
   Established: 2005
   Primary Palette: Dark Navy Blue, Warm Bronze/Brown, Off-White, White
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens - Exact Match to Photoshop Reference */
  --navy-dark: #07101d;
  --navy-header: #0a1526;
  --navy-primary: #0e1b34;
  --navy-accent: #0f2b48;
  --navy-card: #0e1b34;
  
  --brown-primary: #8c5a2b;
  --brown-gold: #a67c48;
  --brown-light: #c9a227;
  --brown-dark: #6e441d;
  
  --bg-offwhite: #f8f7f5;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #ffffff;
  --text-gold: #a67c48;
  
  --border-light: #e5e7eb;
  --border-brown: #a67c48;

  /* Typography */
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Outfit', 'Cairo', system-ui, -apple-system, sans-serif;

  /* Spacing & Layout */
  --container-max: 1280px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[dir="ltr"] body {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}

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

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Utility */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--brown-gold);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 10px;
  font-weight: 500;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--navy-accent);
  transform: translateY(-2px);
}

.btn-brown {
  background-color: var(--brown-primary);
  color: var(--bg-white);
}

.btn-brown:hover {
  background-color: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--brown-primary);
  border: 1px solid var(--bg-white);
}

.btn-white:hover {
  background-color: var(--bg-offwhite);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--navy-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

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

/* Logo Styling */
.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-icon-svg {
  width: 44px;
  height: 44px;
}

.logo-icon-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bg-white);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brown-gold);
  line-height: 1.2;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.3s ease;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brown-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--bg-white);
  background-color: transparent;
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link.active {
  color: var(--brown-gold);
  background-color: transparent;
  border: none;
}

.nav-link.active::after {
  width: 70%;
  background: var(--brown-gold);
}

/* Language Switcher */
.lang-switcher {
  margin-right: 16px;
}

html[dir="ltr"] .lang-switcher {
  margin-right: 0;
  margin-left: 16px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background-color: transparent;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  gap: 6px;
}

.lang-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.lang-btn:hover .lang-icon {
  transform: rotate(45deg);
}

.lang-btn:hover {
  background-color: var(--bg-white);
  color: var(--navy-primary);
  border-color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Mobile Navigation Controls */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -300px;
  width: 280px;
  background-color: var(--navy-header);
  z-index: 1001;
  padding: 40px 24px;
  transition: var(--transition-smooth);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

html[dir="ltr"] .mobile-menu-drawer {
  right: auto;
  left: -300px;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

.mobile-menu-drawer.open {
  right: 0;
}

html[dir="ltr"] .mobile-menu-drawer.open {
  left: 0;
}

.mobile-drawer-close {
  align-self: flex-end;
  background: none;
  color: var(--bg-white);
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: 24px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: var(--bg-white);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-overlay-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   HERO SECTION (Reproduction of Photoshop composition)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-white);
}

.hero-bg-wrapper {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

/* Smooth curved bottom edge */
.hero-bg-wrapper::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,90 L0,55 Q360,0 720,40 Q1080,75 1440,20 L1440,90 Z' fill='%23f8f7f5'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  z-index: 10;
  pointer-events: none;
}


.hero-full-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: heroZoom 6s infinite alternate ease-in-out;
  transform-origin: center center;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Mobile Hero Horizontal Sliding Animation (Right to Left & Left to Right) */
@keyframes heroPanMobile {
  0% {
    transform: translateX(-7%);
  }
  100% {
    transform: translateX(7%);
  }
}


.hero-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 40px 24px 0px 24px;
  z-index: 2;
  pointer-events: none;
}

/* RTL: اليمين = flex-start */
.hero-main-title-container {
  align-self: flex-start;
  text-align: right;
  margin-top: 60px;
  pointer-events: auto;
}

/* LTR: اليمين = flex-end */
html[dir="ltr"] .hero-main-title-container {
  align-self: flex-end;
  text-align: left;
}

.hero-company-name {
  font-size: 11rem;
  font-weight: 900;
  color: var(--navy-primary);
  line-height: 1;
  letter-spacing: normal;
  margin-bottom: 8px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.95), 0 2px 14px rgba(255, 255, 255, 0.85);
}

.hero-tagline {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--brown-primary);
  letter-spacing: normal;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.95);
}

.hero-bottom-text-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: auto;
  z-index: 3;
}


/* News Ticker */
.news-ticker-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  position: relative;
}

.news-ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.95);
  animation: ticker-rtl 18s linear infinite;
}

/* RTL: يمين → شمال */
@keyframes ticker-rtl {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* LTR: شمال → يمين */
@keyframes ticker-ltr {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

html[dir="ltr"] .news-ticker-text {
  animation-name: ticker-ltr;
}



/* ==========================================================================
   ABOUT SECTION ("من نحن")
   ========================================================================== */
.about-section {
  background-color: var(--bg-offwhite);
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 40px;
  align-items: center;
}

.about-divider {
  background-color: rgba(166, 124, 72, 0.3);
  height: 80%;
  width: 1px;
  align-self: center;
}

.about-info-col {
  padding-right: 20px;
}

html[dir="ltr"] .about-info-col {
  padding-right: 0;
  padding-left: 20px;
}

.about-text-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-text-item {
  position: relative;
  padding-right: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.7;
}

html[dir="ltr"] .about-text-item {
  padding-right: 0;
  padding-left: 24px;
}

.about-text-item::before {
  content: '▪';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brown-gold);
  font-size: 1.2rem;
}

html[dir="ltr"] .about-text-item::before {
  right: auto;
  left: 0;
}

.about-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-brown-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.about-emblem-caption {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown-primary);
}

/* ==========================================================================
   PRODUCTS SECTION ("منتجاتنا")
   ========================================================================== */
.products-section {
  background-color: var(--bg-white);
  padding: 80px 0;
}

/* Product Categories Grid (Square Cards) */
.categories-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 50px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 125px;
  padding: 16px 10px;
  background-color: var(--bg-offwhite);
  border: 1.5px solid rgba(166, 124, 72, 0.25);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  outline: none;
}

.category-card:hover {
  background-color: var(--bg-white);
  border-color: var(--brown-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(166, 124, 72, 0.2);
}

.category-card.active {
  background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%);
  border-color: var(--brown-gold);
  box-shadow: 0 8px 24px rgba(14, 27, 52, 0.35);
  transform: translateY(-3px);
}

.category-card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(166, 124, 72, 0.12);
  border-radius: 10px;
  color: var(--brown-gold);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
  background-color: var(--brown-gold);
  color: #ffffff;
  transform: scale(1.08);
}

.category-card.active .category-card-icon {
  background-color: var(--brown-gold);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(166, 124, 72, 0.4);
}

.category-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.35;
  transition: color 0.3s ease;
  text-align: center;
}

.category-card:hover .category-card-title {
  color: var(--brown-primary);
}

.category-card.active .category-card-title {
  color: #ffffff;
}


/* Featured Product Area */
.featured-product-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background-color: var(--bg-offwhite);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
  border: 1.5px solid rgba(166, 124, 72, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.featured-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--brown-gold);
  box-shadow: 0 4px 15px rgba(166, 124, 72, 0.08);
  transition: all 0.4s ease;
  min-height: 140px;
}

.featured-product-media svg {
  transition: transform 0.4s ease;
}

.featured-product-box:hover .featured-product-media svg {
  transform: scale(1.12);
}


.featured-product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-product-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-primary);
  position: relative;
  padding-bottom: 8px;
}

.featured-product-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 3px;
  background-color: var(--brown-gold);
}

html[dir="ltr"] .featured-product-title::after {
  right: auto;
  left: 0;
}

.featured-product-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.featured-product-media {
  width: 100%;
  height: 280px;
  background-color: var(--navy-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  font-weight: 600;
  overflow: hidden;
}

.featured-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--brown-gold);
}

.product-image-box {
  width: 100%;
  height: 180px;
  background-color: var(--navy-card);
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;

}

.product-card .btn-contact {
  margin-top: auto;
  width: 100%;
  padding: 10px 20px;
  font-weight: 700;
  background-color: var(--navy-primary);
  color: var(--bg-white);
  border-radius: 4px;
}

.product-card .btn-contact:hover {
  background-color: var(--navy-accent);
}

.products-more-action {
  text-align: center;
}

/* ==========================================================================
   PROJECTS SECTION ("من أعمالنا")
   ========================================================================== */
.projects-section {
  background-color: var(--bg-offwhite);
  padding: 80px 0;
}

.projects-showcase-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.carousel-arrow-btn {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--navy-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 12px;
  line-height: 1;
}

.carousel-arrow-btn:hover {
  color: var(--brown-gold);
  transform: scale(1.2);
}

.project-slide-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  background-color: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.project-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-primary);
}

.project-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-location {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown-primary);
}

.project-image-frame {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-light);
}

.project-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  background-color: var(--navy-card);
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(14, 27, 52, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.indicator-dot.active {
  background-color: var(--brown-primary);
  width: 24px;
  border-radius: 12px;
}

/* ==========================================================================
   PARTNERS SECTION ("وكلائنا")
   ========================================================================== */
.partners-section {
  background-color: var(--bg-white);
  padding: 70px 0;
}

.partners-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--bg-offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.partner-logo-item:hover {
  transform: translateY(-3px);
  border-color: var(--brown-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.partner-logo-img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   CTA SECTION ("نحن هنا لخدمتكم")
   ========================================================================== */
.cta-section {
  position: relative;
  background-color: var(--brown-primary);
  color: var(--bg-white);
  padding: 70px 0;
  text-align: center;
  overflow: hidden;
}

/* Subtle Geometric Star Pattern Background Overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 2px, transparent 2px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-heading {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-subtext {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--bg-white);
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-logo-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--bg-white);
}

.footer-logo-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-gold);
}

.footer-engineer-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer-col-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--brown-gold);
}

html[dir="ltr"] .footer-col-title::after {
  right: auto;
  left: 0;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--brown-gold);
  transform: translateX(-4px);
}

html[dir="ltr"] .footer-link:hover {
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.social-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.social-icon-circle:hover {
  background-color: var(--brown-gold);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   CONTACT PAGE STYLES (contact.html)
   ========================================================================== */
.contact-page-hero {
  background-color: var(--navy-primary);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}

.contact-page-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.contact-main-section {
  padding: 80px 0;
  background-color: var(--bg-offwhite);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
}

.contact-info-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-offwhite);
  color: var(--brown-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

/* Contact Form */
.contact-form-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-offwhite);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--brown-gold);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(166, 124, 72, 0.15);
}

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

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
  display: none;
}

.form-alert.success {
  display: block;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  display: block;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ==========================================================================
   LANGUAGE SWITCH ANIMATION - Per-Element Fade
   ========================================================================== */

[data-i18n] {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

[data-i18n].lang-out {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

[data-i18n].lang-in {
  animation: langFadeIn 0.28s ease forwards;
}

@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

