/**
 * GapFix Website - Custom Styles
 * Brand colors and custom components
 * ✅ Brand Colors Updated to GapFix Official Identity
 */

/* ==================== CSS Variables ==================== */
:root {
  /* GapFix Official Brand Palette */
  --gf-primary: #1C2755;      /* Navy Blue - Primary Brand Color */
  --gf-accent: #E7743A;       /* Orange - Accent/Secondary Color */
  --gf-bg: #FFFFFF;           /* White Background */
  --gf-surface: #F5F5F5;      /* Light Gray Surface */
  --gf-text: #1C2755;         /* Navy Text (Dark) */
  --gf-text-light: #FFFFFF;   /* White Text (Light) */
  
  /* Legacy aliases for compatibility */
  --gf-white: #FFFFFF;
  --gf-light: #F5F5F5;
  --gf-dark: #1C2755;
  --gf-gray: #6c757d;
  --gf-secondary: #E7743A;    /* Maps to accent orange */
  
  /* Bootstrap Breakpoints */
  --bs-breakpoint-xs: 0;
  --bs-breakpoint-sm: 576px;
  --bs-breakpoint-md: 768px;
  --bs-breakpoint-lg: 992px;
  --bs-breakpoint-xl: 1200px;
  --bs-breakpoint-xxl: 1400px;
  
  /* Responsive Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  --transition: all 0.3s ease;
}

/* ==================== Global Styles ==================== */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--gf-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

/* Prevent horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Responsive container adjustments */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h5 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

h6 {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

p, li, span {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ==================== Buttons ==================== */
.btn-gf,
.btn-gf-secondary,
.btn-outline-gf {
  padding: clamp(0.5rem, 2vw, 0.625rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: 0.375rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-align: center;
  white-space: nowrap;
}

.btn-gf {
  background: var(--gf-primary);
  color: var(--gf-white);
  border: none;
}

.btn-gf:hover {
  background: #141d42;
  color: var(--gf-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 39, 85, 0.4);
}

.btn-gf-secondary {
  background: var(--gf-secondary);
  color: var(--gf-white);
  border: none;
}

.btn-gf-secondary:hover {
  background: #d86331;
  color: var(--gf-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 116, 58, 0.4);
}

.btn-outline-gf {
  border: 2px solid var(--gf-primary);
  color: var(--gf-primary);
  background: transparent;
}

.btn-outline-gf:hover {
  background: var(--gf-primary);
  color: var(--gf-white);
}

/* Mobile button adjustments */
@media (max-width: 575px) {
  .btn-gf,
  .btn-gf-secondary,
  .btn-outline-gf {
    width: 100%;
    max-width: 100%;
  }
  
  .btn-lg {
    padding: 0.75rem 1rem;
  }
  
  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ==================== Navbar ==================== */
.navbar {
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  transition: var(--transition);
  background: var(--gf-white) !important;
}

.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: clamp(28px, 5vw, 48px);
  width: auto;
  max-width: 100%;
  transition: var(--transition);
}

.navbar-toggler {
  border: 2px solid var(--gf-primary);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(28, 39, 85, 0.25);
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--gf-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  position: relative;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gf-primary);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gf-primary);
  border-radius: 2px;
}

#lang-toggle {
  cursor: pointer;
  font-weight: 600;
  color: var(--gf-primary);
}

/* Mobile navbar adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--gf-white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    align-items: stretch;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gf-surface);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link.active::after {
    left: 0;
    transform: none;
    width: 4px;
    height: 100%;
    top: 0;
    border-radius: 0 2px 2px 0;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
  }
  
  .navbar-nav .btn-gf,
  .navbar-nav .btn-gf-secondary {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
  }
}

/* ==================== Hero Section ==================== */
.hero {
  background: linear-gradient(135deg, var(--gf-primary) 0%, #0f1633 100%);
  color: var(--gf-white);
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
  min-height: clamp(400px, 60vh, 600px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__title {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  animation: fadeInUp 0.8s ease;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 1.5;
}

.hero .row {
  align-items: center;
}

/* Mobile hero adjustments */
@media (max-width: 767px) {
  .hero {
    text-align: center;
    padding: 4rem 0 3rem;
  }
  
  .hero .btn-gf-secondary,
  .hero .btn-gf {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero svg {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero {
    padding: 5rem 0 4rem;
  }
}

/* ==================== Page Header ==================== */
.page-header {
  background: linear-gradient(135deg, var(--gf-primary) 0%, #0f1633 100%);
  color: var(--gf-white);
  padding: clamp(3rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.page-header__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  line-height: 1.2;
}

.page-header__subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  opacity: 0.9;
  line-height: 1.5;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.breadcrumb-item,
.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
  color: var(--gf-white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
  .page-header {
    text-align: center;
  }
}

/* ==================== Cards ==================== */
.card {
  border: none;
  border-radius: 0.5rem;
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  width: 100%;
  height: clamp(180px, 30vw, 250px);
  object-fit: cover;
}

.card-body {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.card-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
}

.card-text {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
}

.card-icon {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gf-primary) 0%, #0f1633 100%);
  border-radius: 0.5rem;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.card-icon img {
  width: clamp(24px, 5vw, 32px);
  height: clamp(24px, 5vw, 32px);
  filter: brightness(0) invert(1);
}

/* Responsive card grid */
@media (max-width: 575px) {
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .card-img-top {
    height: 220px;
  }
}

/* ==================== Stats Section ==================== */
.stats {
  background: var(--gf-light);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.stats__item {
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1rem);
}

.stats__number {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--gf-primary);
  display: block;
  margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
  line-height: 1.2;
}

.stats__label {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--gf-gray);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 575px) {
  .stats__item {
    padding: 1.5rem 0.5rem;
  }
}

/* ==================== Values Cards ==================== */
.value-card {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--gf-white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 1.5rem;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.value-card__icon {
  width: clamp(60px, 10vw, 70px);
  height: clamp(60px, 10vw, 70px);
  margin: 0 auto clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(135deg, var(--gf-primary) 0%, #0f1633 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gf-white);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.value-card__title {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--gf-primary);
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.value-card p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
}

/* ==================== Project Filters ==================== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 0.75rem);
  justify-content: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: 0 1rem;
}

.filter-btn {
  padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(1rem, 3vw, 1.5rem);
  border: 2px solid var(--gf-primary);
  background: transparent;
  color: var(--gf-primary);
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gf-primary);
  color: var(--gf-white);
}

@media (max-width: 575px) {
  .project-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
  }
}

/* ==================== Project Card ==================== */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card__image {
  width: 100%;
  height: clamp(200px, 40vw, 300px);
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(28, 39, 85, 0.95) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--gf-white);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__title {
  font-size: clamp(1.125rem, 3vw, 1.3rem);
  font-weight: 700;
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
  line-height: 1.3;
}

.project-card__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gf-accent);
  border-radius: 1rem;
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
}

.project-card p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.5;
}

/* Mobile: Show overlay always */
@media (max-width: 767px) {
  .project-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(28, 39, 85, 0.9) 0%, rgba(28, 39, 85, 0.3) 50%, transparent 100%);
  }
  
  .project-card__image {
    height: 250px;
  }
}

/* ==================== Client Logos ==================== */
.client-logo {
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--gf-white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(100px, 20vw, 120px);
  transition: var(--transition);
  filter: grayscale(100%);
  margin-bottom: 1.5rem;
}

.client-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.client-logo img {
  max-width: 100%;
  max-height: clamp(50px, 10vw, 60px);
  object-fit: contain;
}

@media (max-width: 575px) {
  .client-logo {
    height: 90px;
  }
}

/* ==================== Testimonial Card ==================== */
.testimonial-card {
  background: var(--gf-white);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 0.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  height: 100%;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: clamp(3.5rem, 8vw, 5rem);
  color: var(--gf-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-card__quote {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--gf-primary);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.testimonial-card__company {
  color: var(--gf-gray);
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

/* ==================== Contact Form ==================== */
.contact-form {
  background: var(--gf-white);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 0.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--gf-dark);
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid #e0e0e0;
  padding: clamp(0.625rem, 2vw, 0.75rem);
  border-radius: 0.375rem;
  transition: var(--transition);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--gf-primary);
  box-shadow: 0 0 0 0.2rem rgba(28, 39, 85, 0.15);
}

.contact-form textarea.form-control {
  min-height: clamp(120px, 30vw, 150px);
}

.contact-info-card {
  background: var(--gf-light);
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border-radius: 0.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
}

.contact-info-card__icon {
  width: clamp(45px, 8vw, 50px);
  height: clamp(45px, 8vw, 50px);
  background: var(--gf-primary);
  color: var(--gf-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.contact-info-card__title {
  font-weight: 700;
  color: var(--gf-dark);
  margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
  font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.contact-info-card__text {
  color: var(--gf-gray);
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .contact-form {
    margin-bottom: 2rem;
  }
}

/* ==================== Footer ==================== */
.footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(2.5rem, 5vw, 3rem) 0 clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: clamp(0.875rem, 2vw, 0.95rem);
}

.footer a:hover {
  color: var(--gf-accent);
}

.footer__title {
  color: var(--gf-white);
  font-weight: 700;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: clamp(1.5rem, 4vw, 2rem);
  padding-top: clamp(1.25rem, 3vw, 1.5rem);
}

.footer .list-unstyled li {
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
}

.social-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  flex-wrap: wrap;
}

.social-links a {
  width: clamp(38px, 6vw, 40px);
  height: clamp(38px, 6vw, 40px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gf-accent);
  transform: translateY(-3px);
}

.social-links svg {
  width: clamp(16px, 3vw, 20px);
  height: clamp(16px, 3vw, 20px);
}

/* Footer responsive layout */
@media (max-width: 767px) {
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .footer .row > div:last-child {
    margin-bottom: 0;
  }
  
  .footer__bottom .row {
    text-align: center;
  }
  
  .footer__bottom .row > div {
    margin-bottom: 1rem;
  }
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Utilities ==================== */
.section-padding {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
  color: var(--gf-primary);
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  color: var(--gf-gray);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.text-primary-gf {
  color: var(--gf-primary) !important;
}

.text-secondary-gf {
  color: var(--gf-secondary) !important;
}

.bg-light-gf {
  background-color: var(--gf-light) !important;
}

/* Responsive image utilities */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
  height: auto;
}

/* Responsive spacing utilities */
.mb-responsive {
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.mt-responsive {
  margin-top: clamp(1rem, 3vw, 1.5rem);
}

.py-responsive {
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.px-responsive {
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* ==================== RTL Adjustments ==================== */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  content: "\\";
}

[dir="rtl"] .navbar-nav {
  text-align: right;
}

/* ==================== Responsive Adjustments ==================== */

/* Large tablets and below */
@media (max-width: 991px) {
  .hero {
    min-height: 500px;
  }
  
  .row.g-4 {
    gap: 1rem !important;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
}

/* Mobile landscape and below */
@media (max-width: 767px) {
  body {
    font-size: 0.9375rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Stack all columns on mobile */
  .col-md-4,
  .col-md-6,
  .col-lg-3,
  .col-lg-4,
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Adjust spacing */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Mobile portrait */
@media (max-width: 575px) {
  body {
    font-size: 0.875rem;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
  
  /* Ensure buttons are touch-friendly */
  .btn,
  .btn-gf,
  .btn-gf-secondary,
  .btn-outline-gf {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
  }
  
  /* Adjust card spacing */
  .card {
    margin-bottom: 1.25rem;
  }
  
  /* Reduce padding in tight spaces */
  .card-body {
    padding: 1.25rem;
  }
}

/* Very small devices */
@media (max-width: 374px) {
  .hero__title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn,
  .btn-gf,
  .btn-gf-secondary {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
}

/* Large desktops */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ✅ Responsive design adjustments applied (GapFix v1.0) */
/* All components are now fully responsive across mobile, tablet, and desktop viewports */
/* Uses clamp() for fluid typography and spacing, Bootstrap grid for layouts */


