/* ============================== */
/* GLOBAL STYLES & VARIABLES      */
/* ============================== */
:root {
  --primary-color: #ecb360;
  --primary-hover: #d4a154;
  --primary-dark: #6e4900;
  --text-dark: #161e25;
  --text-light: #f8f9fa;
  --border-color: #e9ecef;
  --primary-rgb: 236, 179, 96;

  --font-body: 'Cairo', sans-serif;
  --font-headings: 'Cairo', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
}
html,
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 700;
}

/* ============================== */
/* COMPONENTS                     */
/* ============================== */

/* CTA */
.btn-cta {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-cta:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--text-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}
.btn-cta:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.25);
}
.btn-cta:focus {
  outline: none;
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}

/* Hero */
.page-eyebrow {
  font-size: 2.1rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}
.page-title {
  font-size: 2rem;
  line-height: 1.7;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  color: var(--text-light);
}
.page-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  opacity: 0.9;
}
@media (min-width: 992px) {
  .page-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 2.7rem;
  }
  .page-subtitle {
    font-size: 1.25rem;
  }
}

/* ============================== */
/* HEADER                         */
/* ============================== */
.header {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

/* 1. Brand / Logo */
.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
  margin-right: 1rem;
}
.header__brand:hover {
  opacity: 0.8;
}
.header__logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* 2. Mobile Toggler */
.header__toggler {
  border: none;
  box-shadow: none !important;
  padding: 0.5rem 0.75rem;
}
.header__toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(236, 179, 96, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 3. Main Navigation (ul) */
.header__nav .nav-link {
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
  margin-left: 1rem;
  font-size: 1.15rem;
}
.header__nav .nav-link:hover,
.header__nav .nav-link.active {
  color: var(--primary-color) !important;
}
.header__nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.header__nav .nav-link:hover::after {
  width: 100%;
}

/* 4. Actions Container (Language + CTA) */
.header__actions-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
}

/* 5. Language Switcher */
.lang-switcher {
  position: relative;
  width: 100%;
}
.lang-switcher__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f0f0f0;
  border: none;
  color: var(--text-dark);
  padding: 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  width: 100%;
  min-height: 40px;
}
.lang-switcher__btn:hover {
  background: transparent;
  color: var(--primary-color);
  transform: scale(1.1);
}
.lang-switcher__btn::after {
  display: none;
}
.lang-switcher__menu {
  position: absolute !important;
  min-width: 160px;
  margin-top: 0.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  padding: 0.5rem 0;
  background-color: #ffffff;
  right: 0;
  left: auto;
}
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
  margin: 0;
}
.lang-switcher__option:hover,
.lang-switcher__option.active {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}
.lang-switcher__text {
  font-size: 0.95rem;
}

/* 6. Header-Specific CTA Button */
#header-cta {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  width: 100%;
}

/* 7. HEADER RESPONSIVE (Desktop) */
@media (min-width: 992px) {
  .header {
    transition: padding 0.3s ease, box-shadow 0.3s ease;
  }
  .header__logo {
    transition: height 0.3s ease, width 0.3s ease;
  }
  .header--shrunk {
    padding: 0.3rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .header--shrunk .header__logo {
    height: 45px;
  }
  .header--shrunk #header-cta {
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
  }
  .header__menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .header__actions-container {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    margin-top: 0;
  }
  .lang-switcher {
    width: auto;
  }
  .lang-switcher__btn {
    width: auto;
    background: transparent;
    padding: 0.5rem;
  }
  #header-cta {
    width: auto;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* 8. HEADER RESPONSIVE (Mobile) */
@media (max-width: 991.98px) {
  .header__brand {
    gap: 0.5rem;
  }
  .header__logo {
    height: 45px;
  }
  .header__menu-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .header__nav .nav-link {
    padding: 0.75rem 0;
    font-size: 0.95rem;
  }
  .header__actions-container {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    gap: 0.75rem;
  }
  .lang-switcher__btn {
    width: 90%;
    margin: 0 auto;
    min-height: 50px;
  }
  .lang-switcher__menu {
    left: 0;
    right: auto;
  }
  #header-cta {
    width: 90%;
    margin: 0 auto;
    border-radius: 6px;
  }
}

/* ============================== */
/* FOOTER                         */
/* ============================== */
.main-footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}
.footer-brand {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-brand:hover {
  opacity: 0.8;
}
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.footer-about-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}
.copyright-text {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}
