/* 
 * ========================================
 * STRICT DESIGN SYSTEM (VANILLA CSS)
 * ========================================
 */

:root {
  /* Dynamic Colors */
  --color-primary: #0D52A0;      /* Medical Blue */
  --color-accent: #00AAFF;       /* CTA Tech Blue */
  --color-success: #25D366;      /* WhatsApp Green */
  --color-text-primary: #1A1A1A; /* Primary Text */
  --color-text-secondary: #555555;
  --color-bg-light: #F9F9F9;
  --color-bg-section: #F0F2F5;
  --color-white: #FFFFFF;

  /* Elevation System (Premium Shadows) */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-premium: 0 25px 50px -12px rgba(13, 82, 160, 0.15);

  /* Animation Tokens */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: 0.2s var(--ease-in-out);
  --transition-normal: 0.3s var(--ease-smooth);
  --transition-slow: 0.5s var(--ease-smooth);

  /* Spacing & Radius */
  --font-family: 'Cairo', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-width: 1200px;
}

/* 
 * ========================================
 * RESET & BASE
 * ========================================
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-secondary);
  background-color: var(--color-white);
  line-height: 1.7;
  font-size: 16px;
  direction: rtl;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* 
 * ========================================
 * TYPOGRAPHY
 * ========================================
 */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

p {
  font-size: 16px;
  margin-bottom: 1em;
}

.text-micro {
  font-size: 13px;
  color: #777;
}

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

img, picture {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* 
 * ========================================
 * LAYOUT SYSTEM
 * ========================================
 */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 20px;
}

.section--bg-light {
  background-color: var(--color-bg-light);
}

.section--bg-box {
  background-color: var(--color-bg-section);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* 
 * ========================================
 * COMPONENTS
 * ========================================
 */

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(-1px) scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.btn--whatsapp {
  background-color: var(--color-success);
  color: var(--color-white);
  width: 100%;
  margin-top: 15px;
}

.btn--whatsapp:hover {
  background-color: #20b858;
}

/* CARDS */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 82, 160, 0.1);
}

.card__image-container {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--color-bg-section);
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform var(--transition-normal);
}

.card:hover .card__image {
  transform: scale(1.05); /* subtle zoom */
}

.card__content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  color: var(--color-primary);
}

/* SLIDER */
.slider-container {
  position: relative;
  display: flex;
  align-items: center;
}

.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

.slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--color-white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.slider-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

.slider-btn--prev {
  left: -25px;
}

.slider-btn--next {
  right: -25px;
}

@media (max-width: 1250px) {
  .slider-btn--prev { left: 10px; }
  .slider-btn--next { right: 10px; }
}

@media (max-width: 768px) {
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
    top: 40%; /* slightly higher to avoid overlapping too much with card footer buttons */
  }
  .slider-btn--prev { left: 5px; }
  .slider-btn--next { right: 5px; }
}

.slider__item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 350px;
}

/* 
 * ========================================
 * SECTIONS SPECIFIC
 * ========================================
 */

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  z-index: 1000;
  box-shadow: var(--shadow-light);
  height: 80px;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.header__logo {
  width: 95px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-normal);
}

.header__logo:hover {
  transform: scale(1.08) rotate(-2deg);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav__link {
  color: var(--color-white);
  font-weight: 700;
  padding: 10px;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav__link:hover::after, .nav__link.is-active::after {
  width: 100%;
}

.nav__link--lang {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
  border: 1px solid var(--color-white);
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  transition: all var(--transition-fast);
  display: inline-flex;
}

.nav__link--lang:hover {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.header__nav-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__lang {
  margin: 0;
  display: inline-flex;
}

.header__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 30px;
  cursor: pointer;
  z-index: 1001;
}

/* HERO SLIDER */
.hero {
  margin-top: 80px; /* Offset for fixed header */
  position: relative;
  width: 100%;
  height: 70vh;
  background-color: #000;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero__picture {
  width: 100%;
  height: 100%;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
  z-index: 3;
}

.hero__content {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  max-width: 500px;
  color: var(--color-white);
}

.hero__content h1 {
  color: var(--color-white);
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero__controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hero__dot.is-active, .hero__dot:hover {
  background-color: var(--color-accent);
  transform: scale(1.2);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.1);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__map {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

/* 
 * ========================================
 * FOOTER (Advanced Multi-column)
 * ========================================
 */

.footer {
    background-color: #0b1c31;
    color: var(--color-white);
    padding: 80px 20px 20px;
}

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

.footer__col h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer__col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer__logo {
    width: 125px;
    height: auto;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-normal);
}

.footer__logo:hover {
    transform: rotate(3deg) scale(1.1);
}

.footer__bio {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer__list {
    list-style: none;
}

.footer__list-item {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.footer__contact-icon {
    font-size: 18px;
    color: var(--color-accent);
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer__social-link {
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

/* Legal Bar */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 15px;
}

.footer__copyright {
    font-size: 12px;
    opacity: 0.3;
}

@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 20px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 
 * ========================================
 * RESPONSIVE RULES (Mobile)
 * ========================================
 */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; margin-bottom: 30px; }
  .section { padding: 60px 15px; }

  /* HEADER MOBILE */
  .header__hamburger {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    box-shadow: var(--shadow-light);
  }

  .nav.is-open {
    max-height: 400px;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* SLIDERS MOBILE */
  .slider__item {
    width: 85vw;
    max-width: 320px;
    scroll-snap-align: center;
  }

  .hero__content {
    right: 5%;
    left: 5%;
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-radius: var(--radius-md);
    transform: translateY(-50%);
  }
  
  .hero__overlay {
    background: rgba(0,0,0,0.3);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* 
 * ========================================
 * ABOUT US SECTION (Card Grid Layout)
 * ========================================
 */

.about {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../img/check-your-vision-picture.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.about__intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    border-top: 4px solid var(--color-primary);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--color-accent);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
}

.about-card p {
    font-size: 15px;
    margin-bottom: 0;
}

.about__vision-box {
    margin-top: 50px;
    padding: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    text-align: center;
}

.about__vision-box h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.about__vision-box p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about__intro {
        text-align: right;
    }
    
    .about-card {
        padding: 20px;
    }
    
    .about__vision-box {
        padding: 30px 20px;
    }
    
    .about__vision-box p {
        font-size: 16px;
    }
}

/* 
 * ========================================
 * BRANDS SECTION (Dual Theme)
 * ========================================
 */

.brands {
    padding-top: 40px;
}

.brands__row {
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.brands__row--white {
    background-color: var(--color-white);
}

.brands__row--blue {
    background-color: var(--color-primary);
}

.brands__logo {
    max-height: 45px;
    max-width: 160px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.brands__logo:hover {
    transform: scale(1.1);
}

#contact {
    background-color: var(--color-bg);
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.contact-card {
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Color Staggering for Contrast */
.contact-card:nth-child(odd) {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.contact-card:nth-child(odd) .contact-card__icon {
    background: rgba(255, 255, 255, 0.1);
}

.contact-card:nth-child(odd) .contact-card__content p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-card:nth-child(odd) a {
    color: var(--color-accent);
}

.contact-card:nth-child(even) {
    background: var(--color-white);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-md);
}

.contact-card:nth-child(even) .contact-card__icon {
    background: var(--color-bg-section);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.contact-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: transform var(--transition-normal);
}

.contact-card:hover .contact-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card__content p {
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
}

.contact-card__content span, 
.contact-card__content a {
    font-size: 16px;
    font-weight: 700;
    display: block;
    line-height: 1.5;
}

/* Branch List Styling */
.branch-list {
    margin-top: 15px;
    width: 100%;
}

.branch-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:nth-child(even) .branch-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.branch-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.branch-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.branch-address {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.contact__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* WhatsApp Form */
.whatsapp-form {
    background: var(--color-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
}

.form-textarea {
    height: 120px;
    resize: none;
}

.contact__map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 400px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* 
 * ========================================
 * WHATSAPP WIDGET (Floating)
 * ========================================
 */

.wa-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.wa-widget__btn {
    width: 60px;
    height: 60px;
    background-color: var(--color-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform var(--transition-normal);
}

.wa-widget__btn:hover {
    transform: scale(1.1);
}

.wa-widget__popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    display: none;
    transform-origin: bottom left;
}

.wa-widget__popup.is-active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.wa-widget__header {
    background: var(--color-success);
    color: white;
    padding: 15px;
    text-align: center;
}

.wa-widget__body {
    padding: 15px;
}

.wa-widget__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.wa-widget__option:last-child {
    border-bottom: none;
}

.wa-widget__option:hover {
    background: #f9f9f9;
}

.wa-widget__option-icon {
    font-size: 24px;
    color: var(--color-success);
}

.wa-widget__option-info strong {
    display: block;
    font-size: 14px;
}

.wa-widget__option-info span {
    font-size: 12px;
    color: #888;
}

@media (max-width: 768px) {
    .contact__body {
        grid-template-columns: 1fr;
    }
    
    .contact__cards {
        grid-template-columns: 1fr;
    }
}

/* 
 * ========================================
 * SCROLL REVEAL ANIMATIONS
 * ========================================
 */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  will-change: opacity, transform;
}
.branch-list--footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-item--footer {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

.branch-item--footer strong {
    color: var(--color-accent);
    font-weight: 700;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delays */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* 
 * ========================================
 * MOBILE POLISH & TOUCH TARGETS
 * ========================================
 */

@media (max-width: 768px) {
    .section {
        padding: 80px 20px; /* Increased vertical spacing */
    }

    .btn, .nav__link, .wa-widget__option {
        min-height: 48px; /* Touch target standard */
    }

    .about-card, .card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .footer__col {
        margin-bottom: 40px;
    }
}


/* 
 * ========================================
 * PRODUCT MODAL
 * ========================================
 */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 28, 49, 0.85);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  background-color: var(--color-white);
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  padding: 45px 35px 35px;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3001;
  border-top: 5px solid var(--color-accent);
}

.modal.active .modal__dialog {
  transform: scale(1) translateY(0);
}

.modal__close {
  position: absolute;
  top: 15px;
  left: 15px; /* Left for RTL accessibility */
  width: 32px;
  height: 32px;
  background: #f4f7fa;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal__close:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal__title {
  font-size: 26px;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.modal__text {
  font-size: 17px;
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 30px;
  text-align: justify;
}

.modal__cta {
  width: 100%;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Adjusting Card Descriptions for uniformity */
.card__description-short {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  min-height: 3.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card__content .btn {
    margin-top: auto;
}
