/*
 * ════════════════════════════════════════════════════════════════════
 * css/style.css — Aaral Campus Store
 * ════════════════════════════════════════════════════════════════════
 *
 * This file controls ALL the visual styling for the Aaral website.
 * It is organised into clearly labelled sections so you can quickly
 * find and edit any part.
 *
 * How CSS works (quick primer):
 *   • A "rule" looks like:  selector { property: value; }
 *   • The selector targets HTML elements (by tag, .class, or #id).
 *   • Properties control colour, size, spacing, layout, etc.
 *   • Comments like this one start with  /*  and end with  * /
 *
 * Section index:
 *   1.  VARIABLES & RESET
 *   2.  TYPOGRAPHY
 *   3.  TOP BAR
 *   4.  BANNER CAROUSEL
 *   5.  SECTION HEADERS
 *   6.  CATEGORY CARDS
 *   7.  SERVICE CARDS
 *   8.  FLOATING BOTTOM NAV
 *   9.  CONTACT POPUP
 *   10. CONTACTS PAGE
 *   11. UTILITY CLASSES
 *   12. ANIMATIONS
 *   13. RESPONSIVE — 640px
 *   14. RESPONSIVE — 1024px
 * ════════════════════════════════════════════════════════════════════
 */


/* ── 1. VARIABLES & RESET ──────────────────────────────────────────────
   CSS custom properties (variables) live here so we can reuse the same
   value throughout the file.  Change a colour once and it updates
   everywhere it is used.
   ──────────────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --yellow:       #FFCC33;   /* Primary yellow — CTAs, active states    */
  --yellow-light: #FFFBEB;   /* Soft yellow for icon circles / bg areas  */
  --yellow-dark:  #F5B800;   /* Slightly darker yellow for hover states  */
  --teal:         #00897B;   /* Accent teal — service icons, tags        */
  --teal-light:   #E6F4F1;   /* Soft teal for icon circles               */
  --teal-dark:    #00695C;   /* Darker teal for hover / active states    */
  --navy:         #1F2937;   /* Dark text and nav background             */
  --grey-medium:  #374151;   /* Slightly lighter dark grey               */
  --grey-muted:   #6B7280;   /* Muted / secondary text colour            */
  --grey-light:   #9CA3AF;   /* Very light grey for icons, placeholders  */
  --bg:           #F3F4F6;   /* Page background                          */
  --bg-card:      #FFFFFF;   /* Card backgrounds                         */
  --border:       #E5E7EB;   /* Card and input borders                   */

  /* Shadow tokens — reusable shadow presets */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16);

  /* Border radius tokens */
  --r-card: 14px;   /* Cards                  */
  --r-sm:   10px;   /* Small elements / inputs */
  --r-pill: 100px;  /* Tags and pills          */
  --r-nav:  20px;   /* Floating nav bar        */

  /* Font */
  --font: 'DM Sans', sans-serif;

  /* Layout heights — used for padding calculations */
  --top-h: 58px;    /* Top bar height   */
  --nav-h: 62px;    /* Nav bar height   */
}

/* Box-sizing reset — makes width/height include padding and borders,
   which is far easier to reason about than the default browser behaviour. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling when jumping to anchors */
html {
  scroll-behavior: smooth;
}

/* Base body styles */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased; /* Crisper text on macOS/iOS  */
  -moz-osx-font-smoothing: grayscale;

  /* Push content below the fixed top bar */
  padding-top: calc(var(--top-h) + 8px);

  /* Push content above the fixed bottom nav + breathing room */
  padding-bottom: calc(var(--nav-h) + 28px);

  /* Page-load fade-in: starts invisible, becomes visible when
     JS adds class "page-loaded" to the body element.          */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* JS adds this class on DOMContentLoaded to fade the page in */
body.page-loaded {
  opacity: 1;
}

/* Remove default list styles wherever they appear */
ul, ol { list-style: none; }

/* Remove default button styles so we can style them from scratch */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}

/* Remove underline from all links by default */
a { text-decoration: none; color: inherit; }

/* Images never overflow their container */
img { max-width: 100%; display: block; }


/* ── 2. TYPOGRAPHY ─────────────────────────────────────────────────────
   Base sizes and weights.  We rely on DM Sans exclusively.
   ──────────────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

p {
  line-height: 1.5;
}


/* ── 3. TOP BAR ────────────────────────────────────────────────────────
   Fixed header bar that sticks to the very top of the viewport.
   Uses flexbox to put the brand on the left and actions on the right.
   ──────────────────────────────────────────────────────────────────── */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;                   /* Above everything except popups   */
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);

  /* Smooth hide/show animation when scrolling */
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When JS adds this class, the bar slides up off-screen */
#top-bar.top-bar-hidden {
  transform: translateY(-100%);
}

/* Inner container — limits width and centres content on large screens */
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--top-h);           /* 58px                              */
  padding: 0 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Brand area: yellow badge + text side by side */
.top-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The yellow "A" logo badge — a rounded square */
.brand-badge {
  width: 30px;
  height: 30px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* "Aaral" brand name in yellow */
.brand-name {
  color: var(--yellow);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

/* Slogan text on the right side of the top bar */
.top-bar-slogan {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.2px;
  font-style: italic;
}


/* ── 4. BANNER CAROUSEL ────────────────────────────────────────────────
   A horizontally scrollable row of slides with snapping behaviour.
   Dots overlay the bottom-centre of the banner.
   ──────────────────────────────────────────────────────────────────── */
#banner-carousel {
  width: 100%;
  position: relative;         /* Anchor for the absolutely-placed dots */
}

/* The scroll container — all slides sit inside this flex row */
.carousel-track {
  display: flex;
  overflow-x: auto;            /* Allow horizontal scrolling           */
  scroll-snap-type: x mandatory; /* Snap to each slide cleanly        */
  -webkit-overflow-scrolling: touch; /* Smooth momentum scroll on iOS */
  scrollbar-width: none;       /* Hide scrollbar on Firefox            */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Hide on Chrome/Safari */

/* Each slide takes exactly 100% of the carousel width */
.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 200px;              /* Mobile height                         */
  scroll-snap-align: start;   /* Snap to the left edge of each slide   */
  display: flex;
  align-items: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
}

/* Gradient backgrounds for each slide */
.slide-1 { background: linear-gradient(135deg, #00695C, #00897B); }
.slide-2 { background: linear-gradient(135deg, #1F2937, #374151); }
.slide-3 { background: linear-gradient(135deg, #B45309, #D97706); }

/* Large decorative emoji — floats to the right */
.slide-icon {
  position: absolute;
  right: 20px;
  font-size: 72px;
  opacity: 0.55;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Text content column — left side of the slide */
.slide-content {
  position: relative; /* Above the decorative icon's z-layer */
  z-index: 1;
  max-width: 70%;      /* Don't overlap the emoji too much     */
}

.slide-headline {
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.slide-sub {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  margin-top: 6px;
}

/* Yellow pill CTA tag at the bottom of each slide */
.slide-pill {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-top: 12px;
}

/* Dot indicator row — overlaid at the bottom-centre of the banner */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

/* Individual dot — white semi-transparent so any banner colour shows clearly */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  /* Drop shadow so dots are visible even on light slides */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
}

/* Active dot stretches into a pill shape */
.dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--yellow);
}


/* ── 6. SECTION HEADERS ────────────────────────────────────────────────
   Reusable layout for the header row of each section (Shops, Services).
   ──────────────────────────────────────────────────────────────────── */

/* A section is a content block with consistent horizontal padding */
.section {
  padding: 0 16px;
  margin-top: 24px;
}

/* Section header: title/sub on left, "See all" link on right */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.section-sub {
  font-size: 12px;
  color: var(--grey-muted);
  margin-top: 2px;
}



/* ── 7. CATEGORY CARDS ─────────────────────────────────────────────────
   2-column grid on mobile. Vertical stack of icon + name.
   Each card is tappable and navigates to the products page.
   ──────────────────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* 2 columns on mobile       */
  gap: 10px;
  margin-top: 14px;
}

/* Individual category card */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  /* Animation: staggered fade-in on page load */
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Staggered animation delays — each card appears slightly after the previous */
.category-card:nth-child(1)  { animation-delay: 0.05s; }
.category-card:nth-child(2)  { animation-delay: 0.10s; }
.category-card:nth-child(3)  { animation-delay: 0.15s; }
.category-card:nth-child(4)  { animation-delay: 0.20s; }
.category-card:nth-child(5)  { animation-delay: 0.25s; }
.category-card:nth-child(6)  { animation-delay: 0.30s; }
.category-card:nth-child(7)  { animation-delay: 0.35s; }
.category-card:nth-child(8)  { animation-delay: 0.40s; }
.category-card:nth-child(9)  { animation-delay: 0.45s; }
.category-card:nth-child(10) { animation-delay: 0.50s; }

/* Hover: lift the card slightly */
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* Tap/active: slightly shrink the card for a "press" feel */
.category-card:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* The coloured circle containing the emoji icon */
.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 40px;
  flex-shrink: 0;
}

/* Category name text */
.cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* Thin teal line accent below the name */
.cat-accent {
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: -4px;   /* Pull it slightly closer to the name */
}

/* Short note describing what is sold in this shop */
.cat-note {
  font-size: 10px;
  color: var(--grey-muted);
  line-height: 1.4;
  text-align: center;
  margin-top: -2px;
}


/* ── 8. SERVICE CARDS ──────────────────────────────────────────────────
   Horizontal layout: icon on left, text in centre, arrow on right.
   Stacked vertically on mobile, 2-column grid on desktop.
   ──────────────────────────────────────────────────────────────────── */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

/* Individual service card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  /* Staggered appearance animation */
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Staggered delays for service cards */
.service-card:nth-child(1) { animation-delay: 0.10s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.20s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.30s; }
.service-card:nth-child(6) { animation-delay: 0.35s; }

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

.service-card:hover .svc-icon {
  filter: brightness(0.94);
}

.service-card:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* Square icon container on the left */
.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;             /* Never shrink even if space is tight */
  transition: filter 0.18s ease;
}

/* Centre text block — takes all remaining horizontal space */
.svc-body {
  flex: 1;
  min-width: 0;               /* Allows text to wrap properly in flex */
}

/* Service name (bold) */
.svc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* One-line summary description */
.svc-summary {
  font-size: 12px;
  color: var(--grey-muted);
  margin-top: 3px;
  line-height: 1.5;
}

/* Row of price pill + availability tag */
.svc-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Price tag — yellow/amber themed */
.price-pill {
  background: var(--yellow-light);
  color: #D97706;
  border: 1px solid #FDE68A;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Availability tag — teal themed */
.avail-tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* Chevron arrow circle on the right */
.svc-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}


/* ── 9. FLOATING BOTTOM NAV ────────────────────────────────────────────
   The main navigation bar. Floats above the bottom edge of the screen
   with a frosted-glass appearance. Max 480px wide so it doesn't
   stretch across wide screens.
   ──────────────────────────────────────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);          /* Centre horizontally           */
  width: calc(100% - 32px);             /* Full width minus 16px margins */
  max-width: 480px;
  height: var(--nav-h);                 /* 62px                          */
  z-index: 999;

  /* Frosted glass background — semi-transparent dark panel with blur */
  background: rgba(31, 41, 55, 0.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);

  border-radius: var(--r-nav);          /* 20px — rounded pill shape     */
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.16);

  /* Distribute 4 nav items evenly across the bar */
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

/* Individual nav item (icon + label, stacked vertically) */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 14px;
  cursor: pointer;
  flex: 1;
  transition: background 0.15s ease;
  position: relative;                   /* Needed for the cart badge     */
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
}

/* SVG icon inside a nav item — pale white by default */
.nav-icon {
  stroke: rgba(255,255,255,0.5);
  transition: stroke 0.15s ease;
}

/* Text label under the icon */
.nav-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.15s ease;
}

/* ACTIVE STATE — yellow highlight background + yellow icon/label */
.nav-item.nav-active {
  background: rgba(255, 204, 51, 0.15);
}

.nav-item.nav-active .nav-icon {
  stroke: var(--yellow);
}

.nav-item.nav-active .nav-label {
  color: var(--yellow);
  font-weight: 600;
}

/* Cart badge inside the nav bar */
.nav-cart-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 8px;
  font-weight: 700;
  border-radius: 8px;
  display: none;              /* Shown by JS when cart has items */
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ── 10. CONTACT POPUP ─────────────────────────────────────────────────
   Slides up from above the nav bar when Contact is tapped.
   Uses opacity + translateY to animate in/out.
   ──────────────────────────────────────────────────────────────────── */
#contact-popup {
  position: fixed;
  bottom: calc(var(--nav-h) + 24px);   /* Just above the nav bar        */
  left: 50%;
  transform: translateX(-50%) translateY(20px);  /* Start slightly below */
  width: calc(100% - 32px);
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.14), 0 8px 32px rgba(0,0,0,0.10);
  padding: 10px 16px 16px;
  z-index: 998;

  /* Hidden by default — pointer-events:none means clicks pass through */
  opacity: 0;
  pointer-events: none;

  /* Smooth appear/disappear */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When JS adds this class, popup slides into view */
#contact-popup.popup-open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Pill-shaped drag handle at the top of the popup */
.popup-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 12px;
  display: block;
}

/* "GET IN TOUCH" uppercase label */
.popup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

/* Popup action buttons — stacked with a gap between them */
.popup-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 8px;
  transition: opacity 0.15s ease, transform 0.1s ease;
  border: none;
}

.popup-btn:first-of-type { margin-top: 0; }
.popup-btn:active { transform: scale(0.97); }

/* The icon on the left of each popup button */
.popup-btn-icon {
  flex-shrink: 0;
}

/* The arrow on the right — pushed to the far right using auto margin */
.popup-btn-arrow {
  margin-left: auto;
  flex-shrink: 0;
}

/* WhatsApp button — green */
.btn-whatsapp {
  background: #25D366;
  color: white;
}

/* Messenger button — gradient purple-blue */
.btn-messenger {
  background: linear-gradient(135deg, #0084FF, #A033FF);
  color: white;
}

/* Campus Contacts button — light grey with dark text */
.btn-contacts {
  background: #F3F4F6;
  color: var(--navy);
  border: 1px solid var(--border) !important;
}

/* Transparent overlay that sits behind the popup.
   When the popup is open, clicking this overlay closes it.       */
#popup-overlay {
  position: fixed;
  inset: 0;                  /* Covers the entire viewport          */
  z-index: 997;
  background: transparent;
  pointer-events: none;      /* Pass clicks through when popup closed */
  transition: background 0.25s ease;
}

/* Overlay becomes clickable (but still transparent) when popup opens */
#popup-overlay.overlay-active {
  pointer-events: all;
}


/* ── 11. CONTACTS PAGE ─────────────────────────────────────────────────
   Styles unique to contacts.html — the campus phone directory page.
   ──────────────────────────────────────────────────────────────────── */

/* Dark gradient hero at the top of the contacts page */
.contacts-hero {
  background: linear-gradient(135deg, #1F2937, #374151);
  padding: 28px 16px;
  color: white;
}

.contacts-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.contacts-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.70);
  margin-top: 6px;
  line-height: 1.5;
}

/* Teal info bar with a left border accent */
.contacts-info-bar {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  margin: 16px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--teal-dark);
  line-height: 1.5;
}

/* Container for all contact cards */
.contacts-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  /* Bottom padding so last card not hidden behind nav */
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* Individual contact card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Fade in on load */
  opacity: 0;
  animation: fadeInUp 0.35s ease forwards;
}

/* Stagger delays for contact cards */
.contact-card:nth-child(1)  { animation-delay: 0.05s; }
.contact-card:nth-child(2)  { animation-delay: 0.09s; }
.contact-card:nth-child(3)  { animation-delay: 0.13s; }
.contact-card:nth-child(4)  { animation-delay: 0.17s; }
.contact-card:nth-child(5)  { animation-delay: 0.21s; }
.contact-card:nth-child(6)  { animation-delay: 0.25s; }
.contact-card:nth-child(7)  { animation-delay: 0.29s; }
.contact-card:nth-child(8)  { animation-delay: 0.33s; }
.contact-card:nth-child(9)  { animation-delay: 0.37s; }
.contact-card:nth-child(10) { animation-delay: 0.41s; }

/* Left circular emoji icon */
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Middle text block */
.contact-body {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* Phone number — monospace for digit alignment */
.contact-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2px;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.5px;
}

/* Right side: small call + WhatsApp icon buttons */
.contact-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Small circular icon button (phone / WhatsApp) */
.contact-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.contact-action-btn:active { transform: scale(0.9); }

/* Phone button — teal background */
.btn-call {
  background: var(--teal-light);
}

/* WhatsApp button — green background */
.btn-wa {
  background: #ECFDF5;
}


/* ── 12. UTILITY CLASSES ───────────────────────────────────────────────
   Small reusable helper classes.
   ──────────────────────────────────────────────────────────────────── */

/* Visually hide an element but keep it accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Prevent body scroll when popup is open */
.no-scroll {
  overflow: hidden;
}


/* ── 13. ANIMATIONS ────────────────────────────────────────────────────
   Keyframe definitions used throughout the stylesheet.
   ──────────────────────────────────────────────────────────────────── */

/* Cards appear by rising from slightly below and fading in */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dot width pulsing (applied via JS class) */
@keyframes dotPulse {
  0%   { transform: scaleX(1); }
  50%  { transform: scaleX(1.15); }
  100% { transform: scaleX(1); }
}


/* ── 14. RESPONSIVE — 640px ────────────────────────────────────────────
   At 640px and wider (small tablets, large phones in landscape)
   we increase some text sizes and carousel height.
   ──────────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {

  .carousel-slide {
    height: 260px;
  }

  .slide-headline {
    font-size: 24px;
  }

  .slide-icon {
    font-size: 96px;
  }

}


/* ── 15. RESPONSIVE — 1024px ───────────────────────────────────────────
   At 1024px and wider (tablets in landscape, laptops, desktops)
   we switch to multi-column grids for both cards and services.
   ──────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {

  /* Centre and limit page width on large screens */
  .top-bar-inner {
    max-width: 1280px;
  }

  main {
    max-width: 1280px;
    margin: 0 auto;
  }

  /* Carousel taller on desktop */
  .carousel-slide {
    height: 320px;
  }

  .slide-headline {
    font-size: 28px;
  }

  .slide-icon {
    font-size: 120px;
    right: 48px;
  }

  /* 4 category columns on desktop */
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  /* Services become 2-column grid on desktop */
  .services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Contacts list wider */
  .contacts-list {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

}
