/* ============================================
   MODERN MINIMAL PROFESSIONAL FOOTER
   Fully Responsive | Clean Design | Smooth Animations
   ============================================ */

/* Base Footer Styles */
.modern-footer {
  background: linear-gradient(135deg, #e6eaef 0%, #eceef1 100%);
  width: 100%;
  position: relative;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  overflow-x: hidden;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

/* Main Footer Content */
.footer-main {
  padding: 2.5rem 2rem 2rem;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Footer Columns */
.footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Brand Column */
.footer-brand {
  gap: 0.75rem;
  align-items: center;
}

.footer-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.95);
  display: block;
}

.footer-logo:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

.footer-tagline {
  font-size: clamp(0.45rem, 1vw, 0.75rem);
  line-height: 1.5;
  color: #2d2d2d;
  margin: 0;
  max-width: 100%;
  font-weight: 400;
  text-align: center;
}

/* Social Buttons */
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
  justify-content: center;
}

.social-btn {
    width: 68px;
    height: 68px;
    border-radius: 53%;
    background: #ffffff;
    border: 1.5px solid #e8ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6c7d;
    text-decoration: none;
    font-size: 0.675rem;
    transition: all 0.4s 
cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d5266 0%, #4a7a94 100%);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

.social-btn:hover::before {
  transform: scale(1);
}

.social-btn i {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.social-btn:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(45, 82, 102, 0.25);
}

.social-btn:hover i {
  color: #ffffff;
}

/* Footer Headings */
.footer-heading {
  font-size: clamp(0.625rem, 1.2vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #2d2d2d;
  margin: 0 0 0.875rem 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1.5px;
  background: linear-gradient(90deg, #2d5266 0%, transparent 100%);
  border-radius: 2px;
}

/* Footer Lists */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: clamp(0.28rem, 1vw, 0.7rem);
  color: #5a6c7d;
  line-height: 1.5;
  transition: transform 0.2s ease;
  word-break: break-word;
}

.footer-list li:hover {
  transform: translateX(3px);
}

/* Products List - Separate styling */
.footer-products-list li {
  font-size: clamp(0.48rem, 1vw, 0.7rem);
  gap: 0 !important;
  justify-content: flex-start;
  text-align: left;
}

.footer-products-list li a {
  font-size: inherit;
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.footer-products-list li a span {
  text-align: left;
}

/* English specific alignment */
body[data-lang="en"] .footer-products-list li {
  justify-content: flex-start !important;
  text-align: left !important;
}

body[data-lang="en"] .footer-products-list li a {
  text-align: left !important;
}

body[data-lang="en"] .footer-products-list li a span {
  text-align: left !important;
}

.footer-list li i {
  font-size: clamp(0.425rem, 1.1vw, 0.75rem);
  color: #2d2d2d;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.85;
}

.footer-list li a,
.footer-list li span {
  color: #2d2d2d;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-list li a:hover {
  color: #2d5266;
  font-weight: 500;
}

/* Business Hours */
.hours-item {
  flex-direction: column !important;
  gap: 0.25rem !important;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item .day {
  font-weight: 600;
  color: #1a3a4d;
  font-size: 0.75rem;
}

.hours-item .time {
  color: #5a6c7d;
  font-size: 0.688rem;
  font-weight: 400;
}

/* Footer Map */
.footer-map {
  width: 100%;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 0;
  margin: 0.75rem 0 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.footer-map:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0;
  filter: grayscale(30%) contrast(95%) brightness(98%);
  transition: filter 0.4s ease;
}

.footer-map:hover iframe {
  filter: grayscale(0%) contrast(100%) brightness(100%);
}

/* Footer Bottom */
.footer-bottom {
  padding: 0.25rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-copyright {
  margin: 0;
  font-size: clamp(0.35rem, 1vw, 0.7rem);
  color: #ffffff;
  letter-spacing: 0.3px;
  font-weight: 400;
}

/* Language Control */
.footer-tagline [class^="lang-"],
.footer-heading [class^="lang-"],
.footer-list [class^="lang-"],
.footer-copyright [class^="lang-"],
.day [class^="lang-"],
.time [class^="lang-"] {
  display: none;
}

.footer-tagline .lang-en,
.footer-heading .lang-en,
.footer-list .lang-en,
.footer-copyright .lang-en,
.day .lang-en,
.time .lang-en {
  display: inline;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-lang="ar"] .footer-tagline .lang-ar,
body[data-lang="ar"] .footer-heading .lang-ar,
body[data-lang="ar"] .footer-list .lang-ar,
body[data-lang="ar"] .footer-copyright .lang-ar,
body[data-lang="ar"] .day .lang-ar,
body[data-lang="ar"] .time .lang-ar {
  display: inline;
  font-family: 'Tajawal', 'Arabic Typesetting', 'Segoe UI Arabic', 'Simplified Arabic', sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-lang="fa"] .footer-tagline .lang-fa,
body[data-lang="fa"] .footer-heading .lang-fa,
body[data-lang="fa"] .footer-list .lang-fa,
body[data-lang="fa"] .footer-copyright .lang-fa,
body[data-lang="fa"] .day .lang-fa,
body[data-lang="fa"] .time .lang-fa {
  display: inline;
  font-family: 'Vazirmatn', 'Tahoma', 'Iranian Sans', 'Segoe UI', sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-lang="ar"] .footer-tagline .lang-en,
body[data-lang="ar"] .footer-heading .lang-en,
body[data-lang="ar"] .footer-list .lang-en,
body[data-lang="ar"] .footer-copyright .lang-en,
body[data-lang="ar"] .day .lang-en,
body[data-lang="ar"] .time .lang-en,
body[data-lang="fa"] .footer-tagline .lang-en,
body[data-lang="fa"] .footer-heading .lang-en,
body[data-lang="fa"] .footer-list .lang-en,
body[data-lang="fa"] .footer-copyright .lang-en,
body[data-lang="fa"] .day .lang-en,
body[data-lang="fa"] .time .lang-en {
  display: none;
}

/* RTL Support */
body[data-lang="ar"] .footer-grid,
body[data-lang="fa"] .footer-grid {
  direction: rtl;
}

body[data-lang="ar"] .footer-heading::after,
body[data-lang="fa"] .footer-heading::after {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, #2d5266 0%, transparent 100%);
}

body[data-lang="ar"] .footer-list li:hover,
body[data-lang="fa"] .footer-list li:hover {
  transform: translateX(-4px);
}

/* RTL Support for Products List */
body[data-lang="ar"] .footer-hours,
body[data-lang="fa"] .footer-hours {
  direction: rtl;
}

body[data-lang="ar"] .footer-products-list,
body[data-lang="fa"] .footer-products-list {
  direction: rtl;
}

body[data-lang="ar"] .footer-products-list li,
body[data-lang="fa"] .footer-products-list li {
  text-align: right !important;
  direction: rtl !important;
}

body[data-lang="ar"] .footer-products-list li a,
body[data-lang="fa"] .footer-products-list li a {
  text-align: right !important;
  direction: rtl !important;
}

body[data-lang="ar"] .footer-products-list li a span,
body[data-lang="fa"] .footer-products-list li a span {
  text-align: right !important;
  direction: rtl !important;
}

/* ============================================
   RESPONSIVE DESIGN - DESKTOP FIRST
   ============================================ */

/* Common Desktop Screens (1366px - 1600px) */
@media (min-width: 1366px) and (max-width: 1600px) {
  .footer-container {
    max-width: 1320px;
  }
  
  .footer-main {
    padding: 2.5rem 2rem 2rem;
  }
  
  .footer-grid {
    gap: 2rem;
  }
}

/* Extra Large Desktop (1920px+) */
@media (min-width: 1920px) {
  .footer-container {
    max-width: 1600px;
  }
  
  .footer-main {
    padding: 3rem 2.5rem 2.5rem;
  }
  
  .footer-grid {
    gap: 2.5rem;
  }
  
  .footer-map {
    height: 320px;
    margin: 1rem 0 0;
  }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .footer-container {
    max-width: 1440px;
  }
  
  .footer-main {
    padding: 2.75rem 2.25rem 2.25rem;
  }
  
  .footer-grid {
    gap: 2.25rem;
  }
  
  .footer-map {
    height: 300px;
    margin: 1rem 0 0;
  }
}

/* Standard Desktop (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .footer-container {
    max-width: 1320px;
  }
  
  .footer-main {
    padding: 2.5rem 2rem 2rem;
  }
  
  .footer-grid {
    gap: 2rem;
  }
}

/* Medium Desktop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .footer-container {
    max-width: 1024px;
  }
  
  .footer-main {
    padding: 2.25rem 1.5rem 0.75rem;
  }
  
  .footer-grid {
    gap: 0.35rem;
  }
  
  .footer-map {
    height: 260px;
    margin: -1.25rem 0 0;
    border-radius: 0;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-main {
    padding: 3rem 1.75rem 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 450px;
  }
  
  .footer-map {
    height: 280px;
    margin: 1rem 0 0;
    border-radius: 0;
  }
  
  .footer-bottom {
    padding: 1.75rem 1.75rem;
  }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .footer-main {
    padding: 2.75rem 1.5rem 2.25rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    text-align: center;
    align-items: center;
  }
  
  .footer-tagline {
    max-width: 100%;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact,
  .footer-hours {
    align-items: center;
  }
  
  .footer-list li {
    justify-content: center;
  }
  
  .footer-products-list li {
    justify-content: flex-start !important;
  }
  
  .footer-list li:hover {
    transform: none;
  }
  
  .footer-map {
    height: 240px;
    margin: 0.75rem 0 0;
    border-radius: 0;
  }
  
  body[data-lang="ar"] .footer-heading::after,
  body[data-lang="fa"] .footer-heading::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  body[data-lang="ar"] .footer-products-list li,
  body[data-lang="fa"] .footer-products-list li {
    justify-content: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
  }
}

/* Mobile Landscape (481px - 599px) */
@media (min-width: 481px) and (max-width: 599px) {
  .modern-footer {
    margin-top: 3rem;
  }
  
  .footer-main {
    padding: 2.5rem 1.25rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  
  .footer-brand {
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    width: 100px;
  }
  
  .footer-tagline {
    font-size: 0.75rem;
    max-width: 100%;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .footer-heading {
    font-size: 0.813rem;
    text-align: center;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-contact,
  .footer-hours {
    align-items: center;
  }
  
  .footer-list {
    gap: 0.875rem;
  }
  
  .footer-list li {
    justify-content: center;
    font-size: 0.75rem;
  }
  
  .footer-products-list li {
    font-size: 0.75rem;
    justify-content: flex-start !important;
  }
  
  .footer-list li:hover {
    transform: none;
  }
  
  .footer-map {
    height: 220px;
    margin: 0.75rem 0 0;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  
  .footer-bottom {
    padding: 1.5rem 1.25rem;
  }
  
  .footer-copyright {
    font-size: 0.7rem;
  }
  
  body[data-lang="ar"] .footer-heading::after,
  body[data-lang="fa"] .footer-heading::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  body[data-lang="ar"] .footer-products-list li,
  body[data-lang="fa"] .footer-products-list li {
    justify-content: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
  }
}

/* Mobile Portrait (up to 480px) */
@media (max-width: 480px) {
  .modern-footer {
    margin-top: 2.5rem;
  }
  
  .footer-main {
    padding: 2rem 1rem 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    text-align: center;
    align-items: center;
  }
  
  .footer-logo {
    width: 90px;
  }
  
  .footer-tagline {
    font-size: 0.7rem;
    max-width: 100%;
    text-align: center;
    line-height: 1.5;
  }
  
  .footer-social {
    justify-content: center;
    gap: 0.625rem;
  }
  
  .social-btn {
    width: 38px;
    height: 38px;
    font-size: 0.938rem;
  }
  
  .social-btn:hover {
    transform: translateY(-3px);
  }
  
  .footer-heading {
    font-size: 0.65rem;
    text-align: center;
    letter-spacing: 1.2px;
    margin-bottom: 1.25rem;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
  }
  
  .footer-contact,
  .footer-hours {
    align-items: center;
  }
  
  .footer-list {
    gap: 0.75rem;
  }
  
  .footer-list li {
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
  }
  
  .footer-products-list li {
    font-size: 0.7rem;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  .footer-list li:hover {
    transform: none;
  }
  
  .footer-list li i {
    font-size: 0.8rem;
  }
  
  .hours-item {
    padding: 0.625rem 0;
    text-align: center;
  }
  
  .hours-item .day,
  .hours-item .time {
    font-size: 0.7rem;
  }
  
  .footer-map {
    height: 200px;
    margin: 0.75rem 0 0;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
  
  .footer-map:hover {
    transform: none;
  }
  
  .footer-bottom {
    padding: 1.25rem 1rem;
  }
  
  .footer-copyright {
    font-size: 0.65rem;
  }
  
  body[data-lang="ar"] .footer-heading::after,
  body[data-lang="fa"] .footer-heading::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  body[data-lang="ar"] .footer-products-list li,
  body[data-lang="fa"] .footer-products-list li {
    justify-content: flex-end !important;
    text-align: right !important;
    direction: rtl !important;
  }
}

/* Button Styles */
.btn-primary {
  padding: 11px 15px;
  background: #1a3a52;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.25rem;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary {
  padding: 9px 14px;
  background: transparent;
  color: #1a3a52;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.25rem;
  border: 2px solid #5a9ec9;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

/* Print Styles */
@media print {
  .footer-map,
  .footer-social {
    display: none;
  }
  
  .modern-footer {
    background: #fff;
    border-top: 1px solid #000;
  }
}
