/* ═══════════════════════════════════════════════════════════════
   حسين روتانا للمطابخ - Creative Landing
   Bootstrap 5.2 (local) + Brand & Creative Overrides
   Cross-browser & mobile optimized
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --gold: #d4af37;
  --gold-dark: #a8893b;
  --gold-light: #e8cc6e;
  --bg-beige: #f3ede4;
  --bg-offwhite: #faf8f4;
  --bg-dark: #0f0f0f;
  --bg-charcoal: #1a1a1a;
  --font-heading: "Cairo", sans-serif;
  --font-body: "Tajawal", sans-serif;
}

/* ─── Hide scrollbar (all browsers) ─── */
html {
  /* width */
  ::-webkit-scrollbar {
    width: 10px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    background-color: var(--bg-dark ); 
  } 

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--gold);    
    transition: all 0.5s;
  }

  ::selection {
    color: var(--gold) ;
    background: rgba(0, 0, 0) ;
  } 
}

body {
  font-family: var(--font-body);
  background: var(--bg-offwhite);
  color: #333;
  overflow-x: hidden;
  width:100%;
  /* Smooth scrolling for iOS Safari */
  -webkit-overflow-scrolling: touch;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Tap highlight removal on mobile */
a, button {
  -webkit-tap-highlight-color: transparent;
}

.text-gold { color: var(--gold) !important; }
.bg-gold-subtle { background: rgba(212, 175, 55, 0.12); }
.text-gold-dark { color: var(--gold-dark); }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR – transparent → glassmorphism on scroll
   ═══════════════════════════════════════════════════════════════ */
#mainNav {
  padding: 0.85rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  z-index: 1050;
  -webkit-transition: background 0.45s ease, padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, -webkit-transform 0.35s ease, -webkit-backdrop-filter 0.4s ease;
  transition: background 0.45s ease, padding 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.35s ease, backdrop-filter 0.4s ease;
}

#mainNav.scrolled {
  padding: 0.4rem 0;
  background: rgba(10, 10, 10, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(212, 175, 55, 0.05) inset;
}

.nav-logo {
  height: 60px;
  -webkit-transition: all 0.4s ease;
  transition: all 0.4s ease;
  -webkit-filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}

#mainNav.scrolled .nav-logo {
  height: 80px;
}

/* Toggler */
.navbar-toggler {
  padding: 0.35rem 0.5rem;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  /* Ensure minimum touch target 44x44 */
  min-width: 44px;
  min-height: 44px;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Nav links */
.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 50px;
  position: relative;
  -webkit-transition: color 0.3s ease, background 0.3s ease;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  /* RTL-safe centering */
  left: 15%;
  right: 15%;
  width: auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover::after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--gold) !important;
  background: rgba(212, 175, 55, 0.08);
}

.nav-link.active::after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

/* Scrolled state */
#mainNav.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active {
  color: var(--gold) !important;
}

/* Social icons – rounded with platform colors */
.nav-social {
  width: 36px;
  height: 36px;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #fff;
  border: none;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-social:hover {
  -webkit-transform: translateY(-3px) scale(1.12);
  transform: translateY(-3px) scale(1.12);
  color: #fff;
}

.nav-social--fb { background: #1877F2; }
.nav-social--fb:hover { box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5); background: #1565d8; }

.nav-social--ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.nav-social--ig:hover { box-shadow: 0 6px 20px rgba(225, 48, 108, 0.5); }

.nav-social--tk { background: #010101; border: 1px solid rgba(255, 255, 255, 0.15); }
.nav-social--tk:hover { box-shadow: 0 6px 20px rgba(105, 201, 208, 0.5); background: #1a1a1a; }

.nav-social--wa { background: #25D366; }
.nav-social--wa:hover { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); background: #20bd5a; }

/* Divider */
.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

/* AcmeCode badge */
.nav-acme {
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.03em;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-acme:hover {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-dark), #8a6e2f);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-wa:hover {
  color: #fff;
  background: #20bd5a;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: url("../images/homeBG.jpg") center/cover no-repeat;
  padding-top: 5rem;
  /* iOS 100vh fix */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
}

.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0; /* Safari < 14.1 fallback for inset: 0 */
  background: linear-gradient(160deg, rgba(15, 15, 15, 0.8) 0%, rgba(26, 26, 26, 0.6) 50%, rgba(15, 15, 15, 0.6) 100%);
}

.hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(212, 175, 55, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.75rem;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  font-size: 1.15rem;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  max-width: 560px;
}

/* Hero social strip */
.hero-social-strip {
  --strip-gap: 0.75rem;
}

.hero-social-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.hero-social-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5));
}

.hero-social-link {
  width: 42px;
  height: 42px;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.hero-social-link:hover {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* Hero social – platform colors */
.hero-social--fb { background: rgba(24, 119, 242, 0.18); border-color: rgba(24, 119, 242, 0.3); color: #6cb4ff; }
.hero-social--fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45); }

.hero-social--ig { background: rgba(225, 48, 108, 0.15); border-color: rgba(225, 48, 108, 0.25); color: #f77fbe; }
.hero-social--ig:hover { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; color: #fff; box-shadow: 0 6px 20px rgba(225, 48, 108, 0.45); }

.hero-social--tk { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #69c9d0; }
.hero-social--tk:hover { background: #010101; border-color: #69c9d0; color: #fff; box-shadow: 0 6px 20px rgba(105, 201, 208, 0.4); }

.hero-social--wa { background: rgba(37, 211, 102, 0.15); border-color: rgba(37, 211, 102, 0.3); color: #5bf5a0; }
.hero-social--wa:hover { background: #25d366; border-color: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45); }

.hero-scroll a {
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.hero-scroll a:hover {
  color: var(--gold) !important;
}

.hero-scroll i {
  -webkit-animation: bounce 2s ease-in-out infinite;
  animation: bounce 2s ease-in-out infinite;
}

@-webkit-keyframes bounce {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(6px); transform: translateY(6px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION TITLES & BADGES
   ═══════════════════════════════════════════════════════════════ */
.section-title {
  font-size: 2.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--bg-charcoal);
}

.badge-gold {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(212, 175, 55, 0.15);
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
}

.badge-gold-light {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about-img-wrap {
  position: relative;
}

.about-img-frame {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.35;
}

/* ═══════════════════════════════════════════════════════════════
   WHY US CARDS
   ═══════════════════════════════════════════════════════════════ */
.gold-bar {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 3px;
}

.why-icon {
  width: 64px;
  height: 64px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 50%;
  -webkit-transition: background 0.35s ease;
  transition: background 0.35s ease;
}

.why-icon img {
  width: 32px;
  height: 32px;
  -o-object-fit: contain;
  object-fit: contain;
  -webkit-filter: brightness(0) saturate(100%) invert(60%) sepia(40%) saturate(500%) hue-rotate(10deg);
  filter: brightness(0) saturate(100%) invert(60%) sepia(40%) saturate(500%) hue-rotate(10deg);
}

.card-hover {
  -webkit-transition: transform 0.35s ease, box-shadow 0.35s ease;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-hover:hover {
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-hover:hover .why-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.card-hover:hover .why-icon img {
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════════════════════
   KITCHEN TYPE CARDS
   ═══════════════════════════════════════════════════════════════ */
.type-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: -0.25rem;
}

.type-card {
  -webkit-transition: transform 0.35s ease, box-shadow 0.35s ease;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.type-card:hover {
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12) !important;
}

.type-card-featured {
  border: 2px solid var(--gold) !important;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15) !important;
}

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════ */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  /* aspect-ratio fallback for older Safari */
  aspect-ratio: 4/3;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 4/3) {
  .gallery-item {
    padding-bottom: 75%;
    height: 0;
  }
  .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform 0.5s ease;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  opacity: 0;
  -webkit-transition: opacity 0.35s ease;
  transition: opacity 0.35s ease;
  color: var(--gold);
  font-size: 1.5rem;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   WARRANTY
   ═══════════════════════════════════════════════════════════════ */
.warranty-box {
  background: linear-gradient(135deg, var(--bg-charcoal), var(--bg-dark));
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.warranty-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  pointer-events: none;
}

.warranty-icon-wrap {
  width: 100px;
  height: 100px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  font-size: 2.5rem;
  border: 2px dashed rgba(212, 175, 55, 0.25);
}

.warranty-point-icon {
  width: 40px;
  height: 40px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-icon-wrap {
  width: 48px;
  height: 48px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer-main {
  background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
  color: #fff;
}

.footer-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06), transparent 70%);
  pointer-events: none;
}

.footer-title {
  position: relative;
  padding-bottom: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  /* Ensure comfortable touch target */
  padding: 2px 0;
}

.footer-link:hover {
  color: var(--gold);
  padding-right: 6px;
}

.footer-link:hover i {
  opacity: 1 !important;
  color: var(--gold);
}

/* Phone links */
.footer-phone {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  padding: 2px 0;
}

.footer-phone:hover {
  color: var(--gold);
}

/* Social icons - platform colored */
.footer-social {
  width: 40px;
  height: 40px;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  border: none;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-social:hover {
  -webkit-transform: translateY(-4px) scale(1.1);
  transform: translateY(-4px) scale(1.1);
  color: #fff;
}

.footer-social--fb { background: #1877F2; }
.footer-social--fb:hover { box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45); }

.footer-social--ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social--ig:hover { box-shadow: 0 8px 24px rgba(225, 48, 108, 0.45); }

.footer-social--tk { background: #010101; border: 1px solid rgba(255, 255, 255, 0.15); }
.footer-social--tk:hover { box-shadow: 0 8px 24px rgba(105, 201, 208, 0.4); }

.footer-social--wa { background: #25D366; }
.footer-social--wa:hover { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }

/* Heartbeat */
@-webkit-keyframes heartbeat {
  0%, 100% { -webkit-transform: scale(1); }
  25% { -webkit-transform: scale(1.2); }
  50% { -webkit-transform: scale(1); }
  75% { -webkit-transform: scale(1.15); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.15); }
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP & BACK TO TOP
   ═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 1.6rem;
  z-index: 999;
  text-decoration: none;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Safe area for notched phones */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.wa-float:hover {
  color: #fff;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  font-size: 0.9rem;
  z-index: 999;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.back-top:hover {
  background: var(--gold-dark);
  color: #fff;
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
}

.back-top.visible {
  display: flex !important;
  visibility: visible;
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet & below: mobile collapse menu */
@media (max-width: 991.98px) {
  #mainNav {
    background: rgba(10, 10, 10, 0.5);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
  }

  #navMenu {
    margin-top: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
  }

  #navMenu .nav-link {
    padding: 0.65rem 1rem !important;
    border-radius: 10px;
    margin-bottom: 2px;
    /* Ensure minimum 44px touch target */
    min-height: 44px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
  }

  #navMenu .nav-link:hover {
    background: rgba(212, 175, 55, 0.08);
  }

  #navMenu .nav-link.active {
    background: rgba(212, 175, 55, 0.1);
  }

  /* No underline on mobile */
  #navMenu .nav-link::after {
    display: none;
  }

  .nav-divider {
    display: none;
  }

  #navMenu .d-flex {
    -webkit-justify-content: center;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.5rem;
  }

  /* Increase touch targets for nav social on mobile */
  .nav-social {
    width: 40px;
    height: 40px;
  }
}

/* Mobile phones */
@media (max-width: 767.98px) {
  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero {
    -webkit-background-attachment: scroll;
    background-attachment: scroll;
    padding-top: 4.5rem;
  }

  .hero-title {
    font-size: 2rem;
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  @supports not (aspect-ratio: 1) {
    .gallery-item {
      padding-bottom: 100%;
    }
  }

  .nav-logo {
    height: 60px;
  }

  #mainNav.scrolled .nav-logo {
    height: 80px;
  }

  /* Warranty section: stack properly */
  .warranty-icon-wrap {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  /* Footer: smaller glow */
  .footer-glow {
    width: 300px;
    height: 150px;
  }

  /* Stats in about: smaller */
  .display-6 {
    font-size: 1.5rem;
  }
}

/* Very small phones */
@media (max-width: 575.98px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.75;
  }

  .btn-lg {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
  }

  .hero-social-link {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .wa-float {
    width: 48px;
    height: 48px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    font-size: 1.35rem;
  }

  .back-top {
    width: 38px;
    height: 38px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    font-size: 0.8rem;
  }

  .footer-social {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  /* Kitchen type cards: full width */
  .type-num {
    font-size: 2rem;
  }

  /* Gallery captions always visible on touch */
  .gallery-caption {
    opacity: 0.7;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Selection color ─── */
::-moz-selection {
  background: var(--gold);
  color: #fff;
}

::selection {
  background: var(--gold);
  color: #fff;
}
