/*
Theme Name: Pets Mall
Theme URI: https://pets-mall.net
Author: Pets Mall
Author URI: https://pets-mall.net
Description: Cairo's #1 Pet Destination — Dogs & cats food, accessories, treats, grooming, and veterinary care. All in 1 place.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pets-mall
Tags: pets, woocommerce, dark, red, one-page, responsive
*/

/* ─────────────────────────────────────────
   CSS Variables
───────────────────────────────────────── */
:root {
  --red: #e31e24;
  --red-dark: #b91519;
  --red-light: #ff4d52;
}

/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─────────────────────────────────────────
   Scrollbar
───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #e31e24; border-radius: 3px; }

/* ─────────────────────────────────────────
   Keyframe Animations
───────────────────────────────────────── */
@keyframes float-kf {
  0%, 100% { transform: translateY(0) rotate(0); opacity: .15; }
  50%       { transform: translateY(-18px) rotate(10deg); opacity: .3; }
}

@keyframes floatR-kf {
  0%, 100% { transform: translateY(0) rotate(0); opacity: .1; }
  50%       { transform: translateY(18px) rotate(-10deg); opacity: .25; }
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,30,36,.6); }
  50%       { box-shadow: 0 0 0 10px rgba(227,30,36,0); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

@keyframes scrollDotAnim {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes ping2 {
  0%        { transform: scale(1); opacity: .4; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ─────────────────────────────────────────
   Utility Classes
───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #e31e24, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-red {
  background: linear-gradient(135deg, #e31e24, #b91519);
  box-shadow: 0 4px 20px rgba(227,30,36,.4);
  transition: all .3s ease;
}
.btn-red:hover {
  box-shadow: 0 6px 30px rgba(227,30,36,.6);
  transform: translateY(-2px);
}

.badge-pulse { animation: pulseRed 2s infinite; }
.paw-float   { animation: float-kf 4s ease-in-out infinite; }
.paw-float-r { animation: floatR-kf 5s ease-in-out infinite; }

/* ─────────────────────────────────────────
   Reveal on scroll
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   Section Typography Helpers
───────────────────────────────────────── */
.section-label {
  display: inline-block;
  color: #e31e24;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.section-sub {
  color: rgba(255,255,255,.48);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

/* ─────────────────────────────────────────
   Hero Slide
───────────────────────────────────────── */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero entrance animations */
.hero-badge-anim  { animation: fadeIn .6s ease forwards; }
.hero-h1-anim     { animation: fadeIn .7s .15s ease both; }
.hero-slogan-anim { animation: fadeIn .7s .3s ease both; }
.hero-p-anim      { animation: fadeIn .7s .45s ease both; }
.hero-btns-anim   { animation: fadeIn .7s .6s ease both; }
.hero-stats-anim  { animation: fadeIn .7s .75s ease both; }

.scroll-dot-a {
  width: 4px;
  height: 8px;
  background: #e31e24;
  border-radius: 2px;
  animation: scrollDotAnim 2s infinite;
}

/* ─────────────────────────────────────────
   Service Cards
───────────────────────────────────────── */
.svc-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.svc-card:hover .svc-img img { transform: scale(1.1); }
.svc-img img { transition: transform .7s; }
.svc-line {
  margin-top: 16px;
  height: 2px;
  border-radius: 1px;
  opacity: .35;
  transition: opacity .3s;
}
.svc-card:hover .svc-line { opacity: 1; }

/* ─────────────────────────────────────────
   Offer Cards
───────────────────────────────────────── */
.offer-card {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.offer-card.featured {
  border-color: rgba(227,30,36,.45);
  box-shadow: 0 0 60px rgba(227,30,36,.18);
}
.offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 13px 24px;
  border-radius: 14px;
  border: 1px solid;
  transition: all .3s;
  text-decoration: none;
}

/* ─────────────────────────────────────────
   Branch Cards
───────────────────────────────────────── */
.branch-card {
  background: #111;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  transition: border-color .5s;
}
.branch-card:hover { border-color: rgba(227,30,36,.28); }
.branch-cta {
  margin-top: 24px;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: 1px solid;
  font-weight: 600;
  font-size: 13px;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* ─────────────────────────────────────────
   Form Inputs
───────────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: border-color .25s, background .25s;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,.28); }
.form-input:focus {
  border-color: rgba(227,30,36,.55);
  background: rgba(227,30,36,.04);
}
select.form-input { background-color: #1a1a1a; }
select.form-input option { background: #1a1a1a; color: #fff; }

/* ─────────────────────────────────────────
   Footer Links
───────────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,.45);
  font-size: 13px;
  transition: color .25s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.footer-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e31e24;
  opacity: 0;
  transition: opacity .25s;
  flex-shrink: 0;
}
.footer-link:hover { color: #e31e24; }
.footer-link:hover::before { opacity: 1; }

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .3s;
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(227,30,36,.1);
  border-color: rgba(227,30,36,.4);
}

/* ─────────────────────────────────────────
   Contact Info Row
───────────────────────────────────────── */
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(227,30,36,.1);
  border: 1px solid rgba(227,30,36,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: background .25s;
}
.contact-info-row:hover .contact-info-icon { background: rgba(227,30,36,.2); }

/* ─────────────────────────────────────────
   Ticker / Marquee
───────────────────────────────────────── */
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* ─────────────────────────────────────────
   About Section Float Cards
───────────────────────────────────────── */
.about-float-card { animation: float2 4s ease-in-out infinite; }
.about-pill-card  { animation: float3 3s ease-in-out infinite; }

/* ─────────────────────────────────────────
   Map Pin Bounce
───────────────────────────────────────── */
.pin-bounce { animation: pinBounce 2.5s ease-in-out infinite; }

/* ─────────────────────────────────────────
   Navigation
───────────────────────────────────────── */
.nav-link-h {
  position: relative;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: color .25s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link-h::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e31e24;
  transition: width .3s;
}
.nav-link-h:hover,
.nav-link-h.active { color: #fff; }
.nav-link-h:hover::after,
.nav-link-h.active::after { width: 100%; }

/* Burger button */
.burger-bar {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.burger-open .burger-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-open .burger-bar:nth-child(2) { opacity: 0; }
.burger-open .burger-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.mobile-menu-link:hover        { background: rgba(255,255,255,.05); }
.mobile-menu-link.active       { background: rgba(227,30,36,.15); color: #e31e24; }

/* ─────────────────────────────────────────
   WhatsApp Floating Button
───────────────────────────────────────── */
.wa-ping2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: ping2 1.8s ease-out infinite;
}
.wa-tooltip2 {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.9);
  border: 1px solid rgba(37,211,102,.28);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.wa-wrap:hover .wa-tooltip2 { opacity: 1; }
.wa-wrap:hover .wa-inner {
  background: #1ab855 !important;
  transform: scale(1.1) !important;
}

/* ─────────────────────────────────────────
   Responsive Breakpoints
───────────────────────────────────────── */

/* Tablet: hide desktop nav, show burger */
@media (max-width: 900px) {
  nav { display: none !important; }
  #burgerDesktop { display: flex !important; }
}

/* Large Tablet */
@media (max-width: 1024px) {
  .services-grid-inner  { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-grid-inner     { grid-template-columns: 1fr 1fr !important; }
  .footer-grid-inner    { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .services-grid-inner      { grid-template-columns: 1fr !important; }
  .offers-grid-inner        { grid-template-columns: 1fr !important; }
  .about-grid-inner         { grid-template-columns: 1fr !important; }
  .branches-grid-inner      { grid-template-columns: 1fr !important; }
  .contact-grid-inner       { grid-template-columns: 1fr !important; }
  .stats-grid-inner         { grid-template-columns: 1fr 1fr !important; }
  .footer-grid-inner        { grid-template-columns: 1fr !important; }
  .shipping-banner-inner    { flex-direction: column !important; text-align: center !important; }
  .form-row-inner           { grid-template-columns: 1fr !important; }
  .hero-btns-inner          { flex-direction: column !important; }
  .paw-float-hide           { display: none !important; }
}
