/* ============================================================
   PIANO Cosmetics & Perfumes — Luxury Design System
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #9B8472;
  --secondary: #DCCFC2;
  --background: #F8F6F3;
  --dark: #2F2F2F;
  --accent: #C2A98C;
  --border: #E9E3DD;
  --white: #FFFFFF;
  --overlay: rgba(47, 47, 47, 0.65);

  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 12px rgba(47, 47, 47, 0.04);
  --shadow-md: 0 8px 32px rgba(47, 47, 47, 0.08);
  --shadow-lg: 0 16px 48px rgba(47, 47, 47, 0.12);
  --shadow-glow: 0 0 40px rgba(155, 132, 114, 0.15);

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.25s ease;

  --header-height: 80px;
  --container: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  background: var(--background);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-en {
  font-family: var(--font-body);
}

body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4,
body.lang-en .section__title,
body.lang-en .hero__title {
  font-family: var(--font-en);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Page Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
}

.loader__inner .logo {
  margin: 0 auto 32px;
  opacity: 0;
  animation: loaderFadeIn 1s ease forwards;
}

.loader__bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  animation: loaderBar 1.8s ease forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

@keyframes loaderBar {
  to { width: 100%; }
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

[dir="rtl"] .scroll-progress {
  left: auto;
  right: 0;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header,
.header.scrolled,
.header.hero-active {
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo — transparent PNG, no background or container styling */
.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.logo img {
  background: transparent;
}

.nav__logo {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  display: inline-flex;
  line-height: 0;
}

.nav__logo:hover .logo {
  transform: scale(1.03);
  transition: transform var(--transition-fast);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
}

.header.hero-active .nav__link {
  color: var(--white);
}

.header.scrolled .nav__link {
  color: var(--dark);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

[dir="rtl"] .nav__link::after {
  left: auto;
  right: 0;
}

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

/* Language Switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.header.hero-active .lang-switch {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.header.scrolled .lang-switch {
  border-color: var(--border);
  color: var(--dark);
}

.lang-switch:hover {
  border-color: var(--primary);
  background: rgba(155, 132, 114, 0.06);
}

.lang-switch__active {
  color: var(--primary);
  font-weight: 600;
}

.header.hero-active .lang-switch__active {
  color: var(--accent);
}

.lang-switch__divider {
  opacity: 0.3;
}

.lang-switch__inactive {
  opacity: 0.5;
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.header.hero-active .nav__toggle span {
  background: var(--white);
}

.header.scrolled .nav__toggle span {
  background: var(--dark);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 0.8125rem;
}

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

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(47, 47, 47, 0.5) 0%,
    rgba(47, 47, 47, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 24px;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  opacity: 0;
}

body.lang-en .hero__title {
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__content .reveal.visible {
  animation: heroFadeUp 1s ease forwards;
}

.hero__content .reveal.visible:nth-child(1) { animation-delay: 0.2s; }
.hero__content .reveal.visible:nth-child(2) { animation-delay: 0.4s; }
.hero__content .reveal.visible:nth-child(3) { animation-delay: 0.6s; }
.hero__content .reveal.visible:nth-child(4) { animation-delay: 0.8s; }

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

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
  transition: color var(--transition-fast);
}

.hero__scroll:hover {
  color: var(--white);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

.hero__scroll-text {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

body.lang-en .section__title {
  font-weight: 300;
}

.section__desc {
  font-size: 1rem;
  color: rgba(47, 47, 47, 0.65);
  font-weight: 300;
  line-height: 1.8;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.about__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.about__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.about__icon svg {
  width: 100%;
  height: 100%;
}

.about__year {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.about__card h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}

/* --- Products --- */
.products {
  background: var(--white);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.product-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  color: var(--primary);
  transition: transform var(--transition), color var(--transition);
}

.product-card:hover .product-card__icon {
  transform: scale(1.1);
  color: var(--accent);
}

.product-card__icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--dark);
}

.product-card p {
  font-size: 0.875rem;
  color: rgba(47, 47, 47, 0.6);
  line-height: 1.7;
  font-weight: 300;
}

.product-card__line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.product-card:hover .product-card__line {
  width: 60px;
}

/* --- Why Choose Us --- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why__item {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.why__item:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.why__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(155, 132, 114, 0.08);
  color: var(--primary);
  transition: background var(--transition), box-shadow var(--transition);
}

.why__item:hover .why__icon {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.why__icon svg {
  width: 28px;
  height: 28px;
}

.why__item h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.why__item p {
  font-size: 0.875rem;
  color: rgba(47, 47, 47, 0.6);
  font-weight: 300;
  line-height: 1.7;
}

/* --- Branches --- */
.branches {
  background: var(--white);
}

.branches__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.branch-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.branch-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--primary);
}

.branch-card__icon svg {
  width: 100%;
  height: 100%;
}

.branch-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.branch-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.branch-card p {
  font-size: 0.875rem;
  color: rgba(47, 47, 47, 0.6);
  margin-bottom: 24px;
  font-weight: 300;
}

/* --- Gallery --- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  grid-column: span 4;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 8;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(47, 47, 47, 0.5) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--white);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

[dir="rtl"] .gallery__caption {
  text-align: right;
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(47, 47, 47, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

[dir="rtl"] .lightbox__close {
  right: auto;
  left: 24px;
}

.lightbox__close:hover {
  transform: rotate(90deg);
}

/* --- Statistics --- */
.stats {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

body.lang-en .stat__number {
  font-family: var(--font-en);
}

.stat__label {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* --- Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--primary);
}

.contact-card__icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-card__link {
  font-size: 1rem;
  color: var(--primary);
  transition: color var(--transition-fast);
}

.contact-card__link:hover {
  color: var(--accent);
}

.contact-card__btn {
  margin-top: 4px;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand .logo {
  margin-bottom: 20px;
  background: transparent;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.8;
  font-weight: 300;
  max-width: 360px;
}

.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.875rem;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__contact a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
  font-weight: 300;
  transition: color var(--transition-fast);
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  font-weight: 300;
  opacity: 0.5;
}

/* --- Floating Buttons --- */
.float-btn {
  position: fixed;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition);
  box-shadow: var(--shadow-md);
}

.float-btn svg {
  width: 24px;
  height: 24px;
}

.float-btn--whatsapp {
  bottom: 96px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
}

[dir="rtl"] .float-btn--whatsapp {
  right: auto;
  left: 24px;
}

.float-btn--whatsapp:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
  background: var(--accent);
}

.float-btn--top {
  bottom: 32px;
  right: 24px;
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

[dir="rtl"] .float-btn--top {
  right: auto;
  left: 24px;
}

.float-btn--top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn--top:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-auto-rows: 200px;
  }

  .gallery__item--wide {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 80px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--background);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }

  [dir="rtl"] .nav__menu {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.125rem;
    color: var(--dark) !important;
  }

  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery__item,
  .gallery__item--tall,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

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