/* =====================================================================
   Grace Standard School — Premium Homepage Stylesheet
   Built on top of Bootstrap 5.3. This file supplies the custom look:
   glassmorphism navbar, animated hero, card interactions, gradient/
   glow buttons, floating-label glass login card, scroll animations,
   and the dark footer.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. GLOBAL — variables, resets, typography, scrollbar, selection
--------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&family=Nunito:wght@600;700&display=swap');

:root {
  --gss-primary: #0D47A1;
  --gss-primary-dark: #093071;
  --gss-primary-rgb: 13, 71, 161;
  --gss-secondary: #FFC107;
  --gss-secondary-dark: #E0A800;
  --gss-success: #198754;
  --gss-bg: #F8F9FA;
  --gss-footer: #0A1931;
  --gss-text: #212529;
  --gss-text-muted: #6C757D;
  --gss-white: #FFFFFF;

  --gss-font-heading: 'Poppins', sans-serif;
  --gss-font-body: 'Inter', sans-serif;
  --gss-font-accent: 'Nunito', sans-serif;

  --gss-radius-sm: 10px;
  --gss-radius: 16px;
  --gss-radius-lg: 20px;
  --gss-radius-pill: 999px;

  --gss-shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.08);
  --gss-shadow-md: 0 10px 30px rgba(13, 71, 161, 0.12);
  --gss-shadow-lg: 0 24px 60px rgba(13, 71, 161, 0.20);

  --gss-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-x: hidden; }

body {
  font-family: var(--gss-font-body);
  color: var(--gss-text);
  background-color: var(--gss-bg);
  width: 100%;
  overflow-x: hidden;
}
body.mobile-menu-modal-open { padding-right: 0 !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gss-font-heading);
  font-weight: 700;
  color: var(--gss-primary-dark);
}

::selection {
  background: var(--gss-secondary);
  color: var(--gss-primary-dark);
}

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gss-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gss-primary), var(--gss-primary-dark));
  border-radius: 10px;
  border: 2px solid var(--gss-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gss-secondary-dark); }
html { scrollbar-width: thin; scrollbar-color: var(--gss-primary) var(--gss-bg); }

:focus-visible {
  outline: 3px solid var(--gss-secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.text-primary-gss { color: var(--gss-primary) !important; }
.text-gold { color: var(--gss-secondary) !important; }
.bg-gold { background-color: var(--gss-secondary) !important; }
.fw-accent { font-family: var(--gss-font-accent); font-weight: 700; }

/* Section heading with decorative underline + icon */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gss-font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gss-primary);
  background: rgba(var(--gss-primary-rgb), 0.08);
  padding: 6px 16px;
  border-radius: var(--gss-radius-pill);
  margin-bottom: 14px;
}
.section-heading h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); margin-bottom: 0; }
.section-heading .underline {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--gss-primary), var(--gss-secondary));
  border-radius: 4px;
  margin: 18px auto 0;
}
.section-heading p { color: var(--gss-text-muted); max-width: 560px; margin: 16px auto 0; }

.rounded-section { border-radius: var(--gss-radius-lg); }
section { padding: 5rem 0; }

/* ---------------------------------------------------------------------
   2. SCROLL / FADE ANIMATIONS
--------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--gss-primary-rgb), 0.35); } 50% { box-shadow: 0 0 0 14px rgba(var(--gss-primary-rgb), 0); } }
@keyframes rippleAnim { to { transform: scale(3); opacity: 0; } }
@keyframes shapeDrift { 0% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(20px,-24px) rotate(12deg); } 100% { transform: translate(0,0) rotate(0deg); } }

[data-animate] { opacity: 0; }
[data-animate].in-view.fade-in { animation: fadeIn 0.7s ease forwards; }
[data-animate].in-view.fade-up { animation: fadeUp 0.7s ease forwards; }
[data-animate].in-view.fade-left { animation: fadeLeft 0.7s ease forwards; }
[data-animate].in-view.fade-right { animation: fadeRight 0.7s ease forwards; }
[data-animate].in-view.zoom-in { animation: zoomIn 0.7s ease forwards; }

.animate-float { animation: floatY 5s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce 2.4s ease-in-out infinite; }
.animate-pulse { animation: pulseGlow 2.4s ease-in-out infinite; }

/* ---------------------------------------------------------------------
   3. NAVBAR — glassmorphism, sticky shadow, active indicator
--------------------------------------------------------------------- */
.navbar-gss {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 71, 161, 0.08);
  transition: box-shadow var(--gss-transition), padding var(--gss-transition), background var(--gss-transition);
}
.navbar-gss.scrolled {
  box-shadow: var(--gss-shadow-md);
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.92);
}
.navbar-gss .navbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--gss-font-heading); font-weight: 800; color: var(--gss-primary-dark); }
.navbar-gss .navbar-brand img { height: 42px; width: auto; transition: height var(--gss-transition); }
.navbar-gss.scrolled .navbar-brand img { height: 36px; }

.navbar-gss .nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--gss-text) !important;
  margin: 0 6px;
  padding: 8px 4px !important;
  transition: color var(--gss-transition);
}
.navbar-gss .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gss-secondary);
  transition: width var(--gss-transition);
  border-radius: 2px;
}
.navbar-gss .nav-link:hover,
.navbar-gss .nav-link.active { color: var(--gss-primary) !important; }
.navbar-gss .nav-link:hover::after,
.navbar-gss .nav-link.active::after { width: 100%; }

.navbar-gss .dropdown-menu {
  border: none;
  border-radius: var(--gss-radius);
  box-shadow: var(--gss-shadow-lg);
  padding: 10px;
  opacity: 0;
  transform: translateY(8px);
  display: block;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.navbar-gss .dropdown-menu.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.navbar-gss .dropdown-item { border-radius: var(--gss-radius-sm); padding: 10px 14px; font-weight: 500; }
.navbar-gss .dropdown-item:hover { background: rgba(var(--gss-primary-rgb), 0.08); color: var(--gss-primary); }

#mobileMenu {
  --bs-modal-width: 280px;
}
#mobileMenu .modal-dialog {
  width: calc(100% - 2rem);
  max-width: 280px;
}
#mobileMenu .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gss-primary-dark), #071f4d 85%);
  color: #fff;
  box-shadow: 0 24px 70px rgba(7, 31, 77, 0.3);
}
#mobileMenu .modal-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#mobileMenu .modal-title {
  font-family: var(--gss-font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}
#mobileMenu .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.8;
}
#mobileMenu .modal-body { padding: 18px 14px 22px; }
#mobileMenu .nav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px !important;
  border-radius: var(--gss-radius-sm);
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: var(--gss-font-accent);
  font-size: 0.98rem !important;
  font-weight: 700;
  transition: background var(--gss-transition), color var(--gss-transition), transform var(--gss-transition);
}
#mobileMenu .nav-link:hover,
#mobileMenu .nav-link:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}
#mobileMenu .btn { width: 100%; min-height: 46px; }
.modal-backdrop { background-color: rgba(9, 48, 113, 0.35); }
.modal-backdrop.show { opacity: 1; }

.cart-fab {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(var(--gss-primary-rgb), 0.08);
  color: var(--gss-primary);
  border: none;
  font-size: 1.15rem;
  transition: background var(--gss-transition), transform var(--gss-transition);
}
.cart-fab:hover { background: rgba(var(--gss-primary-rgb), 0.16); transform: translateY(-2px); }
.cart-fab .badge { position: absolute; top: -4px; right: -4px; }

/* ---------------------------------------------------------------------
   4. BUTTONS — gradient / gold / glow / ripple
--------------------------------------------------------------------- */
.btn { font-family: var(--gss-font-accent); font-weight: 700; border-radius: var(--gss-radius-pill); position: relative; overflow: hidden; transition: transform var(--gss-transition), box-shadow var(--gss-transition), background var(--gss-transition); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-gss-primary {
  background: linear-gradient(135deg, var(--gss-primary), var(--gss-primary-dark));
  color: #fff; border: none;
  box-shadow: var(--gss-shadow-sm);
}
.btn-gss-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--gss-shadow-md); }

.btn-gss-gold {
  background: linear-gradient(135deg, var(--gss-secondary), var(--gss-secondary-dark));
  color: var(--gss-primary-dark); border: none;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.35);
}
.btn-gss-gold:hover { color: var(--gss-primary-dark); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 193, 7, 0.45); }

.btn-gss-success { background: var(--gss-success); color: #fff; border: none; }
.btn-gss-success:hover { background: #157347; color: #fff; transform: translateY(-2px); }

.btn-gss-outline {
  background: transparent;
  border: 2px solid var(--gss-primary);
  color: var(--gss-primary);
}
.btn-gss-outline:hover { background: var(--gss-primary); color: #fff; transform: translateY(-2px); }

.btn-gss-glow { animation: pulseGlow 2.6s ease-in-out infinite; }

.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple .ripple-el {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

.btn-loading .btn-spinner { display: inline-block; }
.btn:not(.btn-loading) .btn-spinner { display: none; }

/* ---------------------------------------------------------------------
   5. HERO — gradient overlay, floating shapes, floating image
--------------------------------------------------------------------- */
.hero-gss {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background: linear-gradient(120deg, var(--gss-primary-dark) 0%, var(--gss-primary) 55%, #1259c3 100%);
  color: #fff;
}
.hero-gss::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,25,49,0.15), rgba(10,25,49,0.55));
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.16;
  background: var(--gss-secondary);
  animation: shapeDrift 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-shape.s1 { width: 220px; height: 220px; top: -60px; left: -60px; }
.hero-shape.s2 { width: 140px; height: 140px; bottom: 10%; left: 8%; background: #fff; animation-duration: 7s; }
.hero-shape.s3 { width: 300px; height: 300px; top: -80px; right: -100px; animation-duration: 11s; }

.hero-gss .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--gss-radius-pill);
  font-family: var(--gss-font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.hero-gss h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  position: relative; z-index: 1;
}
.hero-gss h1 .highlight { color: var(--gss-secondary); }
.hero-gss p.lead { color: rgba(255,255,255,0.85); position: relative; z-index: 1; max-width: 520px; }
.hero-gss .hero-actions { position: relative; z-index: 1; }

.hero-float-img {
  position: relative; z-index: 1;
  border-radius: var(--gss-radius-lg);
  box-shadow: var(--gss-shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
.hero-stat-chip {
  position: absolute;
  bottom: -18px; left: -18px;
  background: #fff;
  color: var(--gss-primary-dark);
  border-radius: var(--gss-radius);
  padding: 14px 20px;
  box-shadow: var(--gss-shadow-lg);
  z-index: 2;
  font-family: var(--gss-font-accent);
}

/* ---------------------------------------------------------------------
   6. STATS / PROGRESS
--------------------------------------------------------------------- */
.stat-box { text-align: center; }
.stat-box .num { font-family: var(--gss-font-heading); font-size: 2.2rem; font-weight: 800; color: var(--gss-primary); }
.stat-box .label { color: var(--gss-text-muted); font-size: 0.9rem; font-weight: 600; }

.progress-gss { height: 10px; border-radius: var(--gss-radius-pill); background: rgba(var(--gss-primary-rgb), 0.1); overflow: hidden; }
.progress-gss .progress-bar { background: linear-gradient(90deg, var(--gss-primary), var(--gss-secondary)); border-radius: var(--gss-radius-pill); }

/* ---------------------------------------------------------------------
   7. PRODUCT CARDS
--------------------------------------------------------------------- */
.product-card-gss {
  border: none;
  border-radius: var(--gss-radius-lg);
  box-shadow: var(--gss-shadow-sm);
  overflow: hidden;
  transition: transform var(--gss-transition), box-shadow var(--gss-transition);
  height: 100%;
}
.product-card-gss:hover { transform: translateY(-8px); box-shadow: var(--gss-shadow-lg); }
.product-card-gss .img-wrap { position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--gss-bg); }
.product-card-gss .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card-gss:hover .img-wrap img { transform: scale(1.08); }
.product-card-gss .price-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gss-primary); color: #fff;
  font-family: var(--gss-font-accent);
  padding: 6px 12px; border-radius: var(--gss-radius-pill); font-size: 0.85rem; font-weight: 700;
  box-shadow: var(--gss-shadow-sm);
}
.product-card-gss .stock-badge { position: absolute; top: 12px; left: 12px; font-size: 0.72rem; }
.product-card-gss .card-body { padding: 1.25rem; }
.product-card-gss .category-tag { font-size: 0.72rem; color: var(--gss-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.product-card-gss .product-title { font-family: var(--gss-font-heading); font-size: 1.02rem; margin: 4px 0 6px; }
.product-card-gss .rating i { color: var(--gss-secondary); font-size: 0.85rem; }
.product-card-gss .card-actions { display: flex; gap: 8px; margin-top: 14px; }
.product-card-gss .card-actions .btn { flex: 1; padding: 8px 10px; font-size: 0.82rem; }

.add-to-cart-flash { animation: zoomIn 0.35s ease; }

/* ---------------------------------------------------------------------
   8. LOGIN CARD — glassmorphism, floating labels, password toggle
--------------------------------------------------------------------- */
.login-card-gss {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--gss-radius-lg);
  box-shadow: var(--gss-shadow-lg);
  padding: 2.2rem;
}
.login-card-gss .icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gss-primary), var(--gss-primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.form-floating-gss { position: relative; margin-bottom: 1rem; }
.form-floating-gss .form-control {
  border-radius: var(--gss-radius-sm);
  border: 1.5px solid rgba(13,71,161,0.15);
  padding: 1.3rem 0.9rem 0.4rem;
  height: calc(3.2rem + 2px);
}
.form-floating-gss .form-control:focus { border-color: var(--gss-primary); box-shadow: 0 0 0 4px rgba(var(--gss-primary-rgb), 0.12); }
.form-floating-gss label { padding: 0.9rem 0.9rem; color: var(--gss-text-muted); }
.password-toggle-btn {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  background: none; border: none; color: var(--gss-text-muted); cursor: pointer;
}
.is-valid-gss { border-color: var(--gss-success) !important; }
.is-invalid-gss { border-color: #dc3545 !important; }

/* ---------------------------------------------------------------------
   9. SHOP TOOLBAR — search + category filter + pagination
--------------------------------------------------------------------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.shop-search { position: relative; max-width: 320px; flex: 1; min-width: 220px; }
.shop-search input {
  border-radius: var(--gss-radius-pill);
  padding-left: 42px;
  border: 1.5px solid rgba(13,71,161,0.15);
}
.shop-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gss-text-muted); }

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pills .btn {
  border-radius: var(--gss-radius-pill);
  padding: 8px 18px;
  font-size: 0.85rem;
  border: 1.5px solid rgba(13,71,161,0.15);
  background: #fff; color: var(--gss-text);
}
.category-pills .btn.active,
.category-pills .btn:hover { background: var(--gss-primary); color: #fff; border-color: var(--gss-primary); }

.pagination-gss .page-link {
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 4px;
  border: none;
  color: var(--gss-primary);
  font-weight: 600;
}
.pagination-gss .page-item.active .page-link { background: var(--gss-primary); color: #fff; }

/* ---------------------------------------------------------------------
   10. ACCORDION / FAQ
--------------------------------------------------------------------- */
.accordion-gss .accordion-item { border: none; border-radius: var(--gss-radius) !important; overflow: hidden; margin-bottom: 12px; box-shadow: var(--gss-shadow-sm); }
.accordion-gss .accordion-button { font-family: var(--gss-font-heading); font-weight: 600; padding: 1.1rem 1.4rem; }
.accordion-gss .accordion-button:not(.collapsed) { background: rgba(var(--gss-primary-rgb), 0.06); color: var(--gss-primary); box-shadow: none; }
.accordion-gss .accordion-button:focus { box-shadow: none; border-color: transparent; }

/* ---------------------------------------------------------------------
   11. TESTIMONIAL CAROUSEL
--------------------------------------------------------------------- */
.testimonial-card { background: #fff; border-radius: var(--gss-radius-lg); padding: 2rem; box-shadow: var(--gss-shadow-sm); text-align: center; max-width: 640px; margin: 0 auto; }
.testimonial-card .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--gss-secondary); }
.testimonial-card i.quote-icon { color: var(--gss-secondary); font-size: 1.6rem; }
.carousel-indicators.gss button { background-color: var(--gss-primary); width: 8px; height: 8px; border-radius: 50%; }

/* ---------------------------------------------------------------------
   12. TOASTS / ALERTS / SPINNER
--------------------------------------------------------------------- */
.toast-container { z-index: 1100; }
.gss-toast { border: none; border-radius: var(--gss-radius); box-shadow: var(--gss-shadow-lg); }

.page-loader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--gss-bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; }
.page-loader .spinner-border { width: 3rem; height: 3rem; color: var(--gss-primary); }

/* ---------------------------------------------------------------------
   13. BACK TO TOP
--------------------------------------------------------------------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 1050;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gss-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--gss-shadow-md);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity var(--gss-transition), transform var(--gss-transition), background var(--gss-transition);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--gss-secondary-dark); }

/* ---------------------------------------------------------------------
   14. FOOTER
--------------------------------------------------------------------- */
.footer-gss { background: var(--gss-footer); color: rgba(255,255,255,0.75); padding: 4rem 0 0; }
.footer-gss h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-gss a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s ease; }
.footer-gss a:hover { color: var(--gss-secondary); }
.footer-gss .footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-gss .footer-brand img { height: 38px; }
.footer-gss .social-icons { display: flex; gap: 10px; margin-top: 16px; }
.footer-gss .social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--gss-transition), transform var(--gss-transition);
}
.footer-gss .social-icons a:hover { background: var(--gss-secondary); color: var(--gss-footer); transform: translateY(-3px); }
.footer-gss .footer-links li { margin-bottom: 10px; }
.footer-gss .newsletter-form .form-control { border-radius: var(--gss-radius-pill) 0 0 var(--gss-radius-pill); border: none; }
.footer-gss .newsletter-form .btn { border-radius: 0 var(--gss-radius-pill) var(--gss-radius-pill) 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding: 1.4rem 0; text-align: center; font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   15. RESPONSIVE UTILITIES
--------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-gss { padding: 5rem 0 4rem; text-align: center; }
  .hero-gss .hero-actions { justify-content: center; }
  .hero-float-img { margin-top: 2.5rem; }
  .navbar-gss { padding: 11px 0; }
  .navbar-gss .navbar-brand { font-size: 1rem; }
}
@media (max-width: 767.98px) {
  section { padding: 3.5rem 0; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .login-card-gss { padding: 1.6rem; }
}
@media (max-width: 575.98px) {
  .hero-stat-chip { position: static; margin-top: 16px; display: inline-block; }
}

/* ---------------------------------------------------------------------
   16. MOBILE REFINEMENTS — tighter, more comfortable spacing on phones
   This section intentionally sits last so it wins the cascade at its
   breakpoints without having to touch any of the rules above.
--------------------------------------------------------------------- */

/* Never let anything cause horizontal scroll on a phone */
img { max-width: 100%; height: auto; }

/* Respect iPhone safe areas for floating/sticky UI */
.back-to-top {
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(18px + env(safe-area-inset-right));
}

@media (max-width: 575.98px) {
  /* Slightly smaller root scale so rem-based spacing feels tighter, not just text */
  html { font-size: 15px; }

  /* Comfortable side margins instead of Bootstrap's default 12px */
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }

  /* Bootstrap gutters (g-3 / g-4 / g-5) are generous by design — tighten them
     so 2-up grids (products, stats) don't feel like they have huge gaps */
  .row.g-3 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  .row.g-4 { --bs-gutter-x: 1rem;    --bs-gutter-y: 1rem; }
  .row.g-5 { --bs-gutter-x: 1.25rem; --bs-gutter-y: 1.25rem; }

  /* Sections */
  section { padding: 2.75rem 0; }
  .section-heading { margin-bottom: 2rem; }
  .section-heading .eyebrow { font-size: 0.7rem; padding: 5px 14px; }
  .section-heading p { font-size: 0.92rem; margin-top: 12px; }

  /* Navbar */
  .navbar-gss { padding: 10px 0; }
  .navbar-gss .container { padding-left: 1rem; padding-right: 1rem; }
  .navbar-gss .navbar-brand {
    font-size: 0.95rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cart-fab { width: 40px; height: 40px; font-size: 1.05rem; }

  /* Hero */
  .hero-gss { padding: 3.25rem 0 2.75rem; }
  .hero-gss .eyebrow { font-size: 0.7rem; padding: 5px 14px; }
  .hero-gss h1 { font-size: 1.9rem; line-height: 1.25; }
  .hero-gss p.lead { font-size: 0.95rem; }
  .hero-actions { gap: 0.6rem !important; }
  .hero-actions .btn { width: 100%; }
  .hero-float-img { margin-top: 2rem; max-width: 210px !important; }

  /* Stats */
  .stat-box .num { font-size: 1.65rem; }
  .stat-box .label { font-size: 0.76rem; }

  /* Product cards — this is the grid people notice most on mobile */
  .product-card-gss .card-body { padding: 0.9rem; }
  .product-card-gss .product-title { font-size: 0.9rem; margin: 2px 0 4px; }
  .product-card-gss .category-tag { font-size: 0.66rem; }
  .product-card-gss .price-badge { font-size: 0.7rem; padding: 4px 9px; top: 8px; right: 8px; }
  .product-card-gss .stock-badge { font-size: 0.6rem; top: 8px; left: 8px; }
  .product-card-gss .rating { font-size: 0.72rem; }
  .product-card-gss .card-actions { gap: 6px; margin-top: 10px; }
  .product-card-gss .card-actions .btn { font-size: 0.72rem; padding: 7px 4px; min-height: 36px; }

  /* Shop toolbar */
  .shop-toolbar { gap: 10px; margin-bottom: 1.5rem; }
  .shop-search { max-width: 100%; min-width: 0; }
  .category-pills { gap: 6px; }
  .category-pills .btn { padding: 6px 14px; font-size: 0.78rem; min-height: 36px; }

  /* Testimonials */
  .testimonial-card { padding: 1.4rem 1.1rem; }
  .testimonial-card p.fs-5 { font-size: 1rem !important; }

  /* FAQ */
  .accordion-gss .accordion-button { padding: 0.9rem 1.1rem; font-size: 0.92rem; }
  .accordion-gss .accordion-body { padding: 0.9rem 1.1rem; font-size: 0.9rem; }

  /* Modals — fee payment, admission, login, cart offcanvas */
  .modal-dialog { margin: 0.6rem; }
  .login-card-gss { padding: 1.4rem; }

  /* Comfortable tap targets for the primary calls to action (not the small
     paired buttons on product cards, which are handled above) */
  .btn-gss-primary, .btn-gss-gold, .btn-gss-outline { min-height: 44px; }
}

/* Extra-small phones (iPhone SE / small Android, ~360px and under) */
@media (max-width: 359.98px) {
  .hero-gss h1 { font-size: 1.7rem; }
  .navbar-gss .navbar-brand { max-width: 130px; }
}