/* FILE: assets/css/style.css */
/* ----- GLOBAL & RESET - FULLY RESPONSIVE ----- */

:root {
  /* HA FAISAL LOGO THEME */
  --primary-black: #111111;
  --secondary-black: #1a1a1a;
  --primary-gold: #f5d000;
  --accent-gold-light: #ffdf2e;
  --primary-gray: #505352;
  --dark-gray: #2f3332;

  --light-bg: #f7f6f2;
  --dark-text: #1e2b37;
  --muted-text: #4a5568;
  --body-bg: #ffffff;
  --box-bg: #ffffff;
  --footer-bg: #111111;

  --transition-smooth: all 0.3s ease;
  --header-height: 75px;
  --header-height-md: 88px;
}

/* Base responsive typography */
html {
  font-size: 14px;
}

@media (min-width: 576px) {
  html { font-size: 15px; }
}

@media (min-width: 992px) {
  html { font-size: 16px; }
}

body {
  font-family: 'Roboto', 'Poppins', sans-serif;
  color: var(--dark-text);
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--primary-black);
  line-height: 1.3;
}

h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

/* Responsive headings */
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* Container fluid padding */
.container, .container-fluid {
  padding-left: clamp(1rem, 5vw, 3rem);
  padding-right: clamp(1rem, 5vw, 3rem);
  width: 100%;
}

/* Buttons - responsive */
.btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

.btn-primary {
  background-color: var(--primary-black);
  border-color: var(--primary-black);
  color: white;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--primary-black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 208, 0, 0.35);
}

.btn-outline-primary {
  color: var(--primary-black);
  border-color: var(--primary-gold);
}

.btn-outline-primary:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--primary-black);
}

.btn-outline-light {
  border-width: 2px;
  border-color: var(--primary-gold);
  color: white;
}

.btn-outline-light:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: var(--primary-black);
}

/* ----- HEADER - FULLY RESPONSIVE ----- */
#header {
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
  padding: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(245, 208, 0, 0.25);
}

/* Full width header - no left/right empty spacing */
#header .container-fluid,
#header .container-xl {
  max-width: 100%;
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
}

@media (min-width: 768px) {
  #header {
    height: var(--header-height-md);
  }

  #header .container-fluid,
  #header .container-xl {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Logo style */
.logo {
  gap: 10px;
  min-width: auto;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .logo-img {
    width: 68px;
    height: 68px;
  }
}

#header .sitename {
  font-weight: 600;
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  background-clip: initial;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1;
}

#header .sitename::after {
  content: '';
  display: block;
  width: 45%;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gray));
}

/* Navigation */
#navmenu ul {
  margin: 0;
  padding: 0;
}

#navmenu a {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  font-size: 0.95rem;
  display: block;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  #navmenu a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}

#navmenu a:hover,
#navmenu a.active {
  color: var(--primary-gold);
}

#navmenu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gray));
  transition: width 0.25s ease;
}

@media (min-width: 768px) {
  #navmenu a:hover::before,
  #navmenu a.active::before {
    width: 100%;
  }
}

/* Mobile menu toggle */
.menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--primary-gold);
  cursor: pointer;
  display: block;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  z-index: 1001;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu styles */
@media (max-width: 767px) {
  #header .sitename {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  #header .sitename::after {
    width: 55%;
    height: 1px;
    margin-top: 4px;
  }

  #navmenu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--primary-black);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(245, 208, 0, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
  }

  #navmenu.active {
    display: block;
    animation: slideDown 0.3s ease;
  }

  #navmenu ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1.5rem;
  }

  #navmenu a {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #navmenu a:last-child {
    border-bottom: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- HERO SLIDER - FULLY RESPONSIVE ----- */
.hero-section {
  margin-top: var(--header-height);
}

@media (min-width: 768px) {
  .hero-section {
    margin-top: var(--header-height-md);
  }
}

.swiper {
  width: 100%;
  height: 400px;
}

@media (min-width: 576px) {
  .swiper { height: 450px; }
}

@media (min-width: 768px) {
  .swiper { height: 500px; }
}

@media (min-width: 992px) {
  .swiper { height: 600px; }
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,17,0.25), rgba(80,83,82,0.15));
  pointer-events: none;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 1.2rem;
  max-width: 500px;
  border-left: 4px solid var(--primary-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 2;
}

@media (min-width: 576px) {
  .slide-content {
    bottom: 30px;
    left: 30px;
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .slide-content {
    bottom: 40px;
    left: 40px;
    padding: 1.8rem;
    max-width: 550px;
  }
}

.slide-content h2 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.slide-content p {
  color: #e0e0e0;
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

/* Swiper navigation - hidden on mobile for better UX */
.swiper-button-next, 
.swiper-button-prev {
  display: none;
}

@media (min-width: 768px) {
  .swiper-button-next, 
  .swiper-button-prev {
    display: flex;
    color: white;
    background: rgba(17,17,17,0.75);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(245, 208, 0, 0.5);
  }

  .swiper-button-next:after, 
  .swiper-button-prev:after {
    font-size: 1.1rem;
  }

  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background: var(--primary-gold);
    color: var(--primary-black);
  }
}

@media (min-width: 992px) {
  .swiper-button-next, 
  .swiper-button-prev {
    width: 50px;
    height: 50px;
  }

  .swiper-button-next:after, 
  .swiper-button-prev:after {
    font-size: 1.3rem;
  }
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.6;
  width: 8px;
  height: 8px;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }
}

.swiper-pagination-bullet-active {
  background: var(--primary-gold);
  opacity: 1;
  width: 24px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .swiper-pagination-bullet-active {
    width: 30px;
  }
}

/* ----- CONTENT CARDS - FULLY RESPONSIVE ----- */
.content-section {
  background-color: var(--light-bg);
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .content-section {
    padding: 4rem 0;
  }
}

@media (min-width: 992px) {
  .content-section {
    padding: 5rem 0;
  }
}

.custom-box {
  background-color: var(--box-bg);
  border: none;
  border-radius: 12px;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.custom-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gray));
  transition: width 0.3s ease;
}

.custom-box:hover::before {
  width: 100%;
}

.custom-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(17, 17, 17, 0.16);
  border-bottom-color: var(--primary-gold);
}

@media (min-width: 992px) {
  .custom-box:hover {
    transform: translateY(-8px);
  }
}

.custom-box img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (min-width: 576px) {
  .custom-box img {
    height: 180px;
  }
}

@media (min-width: 768px) {
  .custom-box img {
    height: 200px;
  }
}

.custom-box h5 {
  color: var(--primary-black);
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.custom-box p {
  color: var(--muted-text);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .custom-box p {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .custom-box p {
    font-size: 0.95rem;
  }
}

/* ----- GLOBAL OFFICES SECTION - FULLY RESPONSIVE ----- */
.global-offices-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
  min-height: 350px;
  display: flex;
  align-items: center;
  background-attachment: scroll;
}

@media (min-width: 768px) {
  .global-offices-section {
    min-height: 450px;
    background-attachment: fixed;
  }
}

@media (min-width: 992px) {
  .global-offices-section {
    min-height: 500px;
  }
}

.global-offices-section .overlay {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(80, 83, 82, 0.82) 100%);
  z-index: 1;
}

.global-offices-section .container {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

.global-offices-section h1 {
  color: white;
  font-size: clamp(1.8rem, 6vw, 3rem);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.35);
}

.global-offices-section h4 {
  color: var(--primary-gold);
  font-weight: 300;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}

.global-offices-section p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto;
}

/* ----- FOOTER - FULLY RESPONSIVE ----- */
#footer {
  background: var(--footer-bg);
  color: #d8d8d8;
  border-top: 3px solid var(--primary-gold);
  width: 100%;
  overflow-x: hidden;
}

#footer .sitename {
  font-weight: 600;
  color: white;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: #ffffff;
  background-clip: initial;
  letter-spacing: 3px;
}

#footer .sitename::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-gray));
  margin-top: 6px;
}

#footer a {
  color: #d8d8d8;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  #footer a {
    font-size: 0.95rem;
  }
}

#footer a:hover {
  color: white;
  padding-left: 5px;
}

.footer-links ul {
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-links li {
    margin-bottom: 0.7rem;
  }
}

.social-links {
  gap: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-gray);
  border-radius: 50%;
  transition: var(--transition-smooth);
  border: 1px solid rgba(245, 208, 0, 0.25);
  font-size: 1rem;
  color: white;
}

@media (min-width: 768px) {
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

.social-links a:hover {
  background: var(--primary-gold);
  color: var(--primary-black);
  transform: translateY(-3px);
  border-color: white;
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-contact p {
    font-size: 0.9rem;
  }
}

/* Theme helper classes */
.text-gold {
  color: var(--primary-gold) !important;
}

.text-gray-brand {
  color: var(--primary-gray) !important;
}

.bg-brand-black {
  background-color: var(--primary-black) !important;
}

.bg-brand-gold {
  background-color: var(--primary-gold) !important;
}

/* Utility classes for responsive spacing */
.gap-responsive {
  gap: clamp(0.5rem, 2vw, 1rem);
}






/* Social Icons Styling */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-gold, #d4a743);
    color: #fff;
    border-color: var(--primary-gold, #d4a743);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 167, 67, 0.3);
}

/* Footer Links Hover */
.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-gold, #d4a743);
    transform: translateX(5px);
}

.footer-links ul li a i {
    color: var(--primary-gold, #d4a743);
    font-size: 12px;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover i {
    transform: translateX(3px);
}



/* Prevent overflow issues */
img, iframe, video {
  max-width: 100%;
  height: auto;
}

/* Touch-friendly targets on mobile */
@media (max-width: 768px) {
  button, a {
    min-height: 44px;
    min-width: 44px;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}