/* =============================================================
   AHK STORE – Landing Page Stylesheet
   Author: AHK Store Dev
   Description: Dark-themed, mobile-first, Gen-Z friendly landing
   page for a mobile accessories reseller in Hyderabad, Pakistan.
   ============================================================= */


/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (Design Tokens)
───────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --color-bg:          #0F172A;   /* Main dark background */
  --color-bg-card:     #1E293B;   /* Card / surface background */
  --color-bg-card-alt: #162032;   /* Slightly different card for variety */
  --color-border:      #334155;   /* Subtle border color */
  --color-accent:      #22C55E;   /* Brand green (CTA, highlights) */
  --color-accent-dark: #16A34A;   /* Darker green for hover states */
  --color-accent-glow: rgba(34, 197, 94, 0.15); /* Green glow tint */

  /* Text Colors */
  --color-text-primary:   #F1F5F9;  /* Main white text */
  --color-text-secondary: #94A3B8;  /* Muted / sub-text */
  --color-text-muted:     #64748B;  /* Very muted labels */

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Poppins', sans-serif;

  /* Spacing Scale */
  --space-xs:  0.5rem;    /*  8px */
  --space-sm:  1rem;      /* 16px */
  --space-md:  1.5rem;    /* 24px */
  --space-lg:  2.5rem;    /* 40px */
  --space-xl:  4rem;      /* 64px */
  --space-2xl: 6rem;      /* 96px */

  /* Border Radius */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 100px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-mid:  0.28s ease;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-btn:  0 4px 18px rgba(34, 197, 94, 0.30);

  /* Layout */
  --container-max: 1100px;
  --container-pad: clamp(1rem, 5vw, 2rem);
}


/* ─────────────────────────────────────────────
   2. RESET & BASE STYLES
───────────────────────────────────────────── */

/* Box-sizing reset for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Base body styles */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll from glow effects */
}

/* Images and media */
img, svg {
  display: block;
  max-width: 100%;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove list styles globally */
ul, ol {
  list-style: none;
}


/* ─────────────────────────────────────────────
   3. UTILITY CLASSES
───────────────────────────────────────────── */

/* Centered max-width wrapper */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Green accent text */
.text-green {
  color: var(--color-accent);
}

/* Section padding shared across all main sections */
.section {
  padding-block: var(--space-2xl);
}

/* ─────────────────────────────────────────────
   4. BUTTONS
───────────────────────────────────────────── */

/* Base button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--transition-fast),
    border-color     var(--transition-fast),
    transform        var(--transition-fast),
    box-shadow       var(--transition-fast);
  white-space: nowrap;
  text-align: center;
}

/* Green filled CTA button */
.btn-green {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-green:hover,
.btn-green:focus-visible {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
}

/* Outline / secondary button */
.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Small button variant (used in header) */
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Large button variant (used in CTA section) */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Icon inside button */
.btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* Focus ring for keyboard accessibility */
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}


/* ─────────────────────────────────────────────
   5. BADGE / PILL LABELS
───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--color-accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

/* Light version for the final CTA section */
.badge-light {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-secondary);
}


/* ─────────────────────────────────────────────
   6. SECTION HEADER (reusable heading block)
───────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Small label above heading */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* Main section title */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Supporting sub-text under section title */
.section-sub {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────
   7. HEADER / NAV
───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  /* Frosted glass effect: dark bg with slight blur */
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--color-border);
  padding-block: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo text */
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.85;
}

/* Green part of logo */
.logo-accent {
  color: var(--color-accent);
}


/* ─────────────────────────────────────────────
   8. HERO SECTION
───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 12vw, 7rem);
  text-align: center;
}

/* Subtle dot grid background pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(51, 65, 85, 0.6) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Large radial green glow in background */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 70vw, 700px);
  height: clamp(300px, 70vw, 700px);
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Ensure hero content sits above background effects */
.hero-inner {
  position: relative;
  z-index: 1;
}

/* Main hero heading */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* Hero tagline (brand slogan) */
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* Hero supporting copy */
.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

/* CTA button group */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

/* Social proof / stat pill row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

/* Individual stat pill */
.stat-pill {
  padding: 0.4rem 0.9rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}


/* ─────────────────────────────────────────────
   9. CATEGORIES SECTION
───────────────────────────────────────────── */
.categories-section {
  /* Subtle top border separator */
  border-top: 1px solid var(--color-border);
}

/* Responsive grid: 2 cols on mobile, 3 on tablet/desktop */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 columns on mobile */
  gap: 1rem;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
  }
}

/* Category card */
.category-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition:
    border-color var(--transition-mid),
    transform    var(--transition-mid),
    box-shadow   var(--transition-mid);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Hover state: lift + green border */
.category-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Highlighted card (On-Demand) */
.card-highlight {
  border-color: rgba(34, 197, 94, 0.35);
  background-color: var(--color-bg-card-alt);
}

.card-highlight:hover {
  border-color: var(--color-accent);
}

/* card image  */
.card-icon img {
  background: #f1f5f9;
  margin-bottom: 15px;
  border-radius: 10px;
}


/* Emoji icon */
.card-icon {
  font-size: 2rem;
  line-height: 1;
}

/* Card heading */
.card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
}

/* Card description */
.card-desc {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1; /* Push link to bottom */
}

/* "Ask for Price" link */
.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
  transition: opacity var(--transition-fast);
  display: inline-block;
}

.card-link:hover {
  opacity: 0.75;
}


/* ─────────────────────────────────────────────
   10. WHY CHOOSE US (TRUST) SECTION
───────────────────────────────────────────── */
.trust-section {
  border-top: 1px solid var(--color-border);
}

/* Responsive 2x2 grid for trust points */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;     /* 2 cols on mobile */
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 cols on desktop */
  }
}

/* Trust card */
.trust-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition:
    border-color var(--transition-mid),
    transform    var(--transition-mid);
}

.trust-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

/* Trust emoji icon */
.trust-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

/* Trust card heading */
.trust-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

/* Trust card description */
.trust-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   11. FINAL CTA SECTION
───────────────────────────────────────────── */
.cta-section {
  border-top: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Centered green glow behind CTA content */
.cta-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 60vw, 600px);
  height: clamp(300px, 60vw, 600px);
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* CTA section content wrapper (above glow) */
.cta-inner {
  position: relative;
  z-index: 1;
}

/* Large heading */
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Supporting copy */
.cta-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--color-text-secondary);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

/* CTA button group */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}


/* ─────────────────────────────────────────────
   12. FOOTER
───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-lg);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* Footer brand name */
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* Footer tagline */
.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Location line */
.footer-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Copyright */
.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}


/* ─────────────────────────────────────────────
   13. FLOATING WHATSAPP BUTTON (FAB)
   Always visible at bottom-right on mobile.
   Drives conversions from scrolling users.
───────────────────────────────────────────── */
.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background-color: var(--color-accent);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
  transition:
    background-color var(--transition-fast),
    transform        var(--transition-fast),
    box-shadow       var(--transition-fast);
}

.fab-whatsapp svg {
  width: 26px;
  height: 26px;
}

.fab-whatsapp:hover {
  background-color: var(--color-accent-dark);
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.55);
}

.fab-whatsapp:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}


/* ─────────────────────────────────────────────
   14. RESPONSIVE BREAKPOINTS
   (Mobile-first approach: base = mobile,
   then we expand layout at larger screens)
───────────────────────────────────────────── */

/* ── Tablet and up (≥ 768px) ── */
@media (min-width: 768px) {
  /* Larger hero CTA buttons */
  .hero-ctas .btn {
    padding: 0.9rem 1.8rem;
  }

  /* Trust grid already goes to 4 cols at 640px */
}

/* ── Desktop and up (≥ 1024px) ── */
@media (min-width: 1024px) {
  /* Slightly more generous card padding on large screens */
  .category-card,
  .trust-card {
    padding: 1.75rem;
  }
}

/* ── Small mobile (< 360px) ── */
@media (max-width: 360px) {
  /* Stack CTA buttons vertically on very small screens */
  .hero-ctas,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Full-width buttons on tiny screens */
  .hero-ctas .btn,
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Category cards: single column */
  .categories-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────
   15. ACCESSIBILITY
───────────────────────────────────────────── */

/* Respect user's preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ─────────────────────────────────────────────
   ANIMATION RECOMMENDATIONS (for future use)
   ─────────────────────────────────────────────
   When you're ready to add animations with JS or
   a lightweight library, here are the suggestions:

   1. HERO ENTRANCE — Fade + slide-up for title,
      tagline, and CTAs with staggered delay
      (e.g., AOS.js or a 5-line IntersectionObserver).

   2. CATEGORY CARDS — Scroll-triggered fade-in
      from bottom as user scrolls into view.
      Each card gets a small animation-delay offset.

   3. TRUST CARDS — Counter animation for any
      stats you add in future (e.g., "500+ orders").

   4. FAB BUTTON — Pulse/ring animation to draw
      attention. Use CSS @keyframes with
      box-shadow pulsing on a ::before pseudo-element.

   5. HEADER SCROLL EFFECT — Add a JS class on
      scroll to increase backdrop-filter blur and
      add a subtle border or shadow.

   6. CTA SECTION — Typewriter effect on the
      headline using vanilla JS.
   ─────────────────────────────────────────────── */
