/* =========================================================
   S H Sports Nets – Custom Styles
   ========================================================= */

/* ---------- Fonts (local) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --primary: #1E1660;
  --primary-2: #2E2285;
  --accent: #3D2B99;
  --accent-dark: #2B1E75;
  --accent-light: #A99BFF;
  --white: #FFFFFF;
  --alt: #F5F7FA;
  --text: #263238;
  --muted: #5f6b73;
  --accent-color: #3D2B99;
  --accent-secondary-color: #2B1E75;
  --radius: 16px;
  --shadow-sm: 0 4px 14px rgba(30, 22, 96, .08);
  --shadow: 0 12px 34px rgba(30, 22, 96, .14);
  --header-h: 96px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15.5px;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--primary); line-height: 1.25; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
address { font-style: normal; }
::selection { background: var(--accent); color: #fff; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }

.section { padding: 70px 0; }
.bg-alt { background: var(--alt); }
@media (min-width: 992px) { .section { padding: 96px 0; } }

.section-head { max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-tag {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  background: rgba(61, 43, 153, .1);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 12px;
}
.section-tag.light { background: rgba(255, 255, 255, .12); color: #C9C0FF; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 16px; position: relative; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .6rem 1.4rem; transition: all .3s var(--ease); }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn:focus-visible { outline: 3px solid rgba(61, 43, 153, .5); outline-offset: 2px; }

.btn-accent { background: var(--accent); color: #fff; border: 2px solid var(--accent); box-shadow: 0 8px 20px rgba(61, 43, 153, .3); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn-primary-dark { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary-dark:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; transform: translateY(-2px); }

.btn-outline-primary-dark { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary-dark:hover { background: var(--primary); color: #fff; }

.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { color: var(--primary); }


.btn-sm-pill { padding: .55rem 1.3rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: rgba(255, 255, 255, .8); font-size: .85rem; padding: 8px 0; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: var(--accent-light); }
.topbar i { color: var(--accent-light); }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); box-shadow: 0 2px 18px rgba(0, 0, 0, .06); transition: box-shadow .3s; z-index: 1030; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(30, 22, 96, .12); }
.navbar { min-height: var(--header-h); padding: 8px 0; }
.brand-logo { height: 80px; width: auto; object-fit: contain; }
@media (max-width: 575.98px) { .brand-logo { height: 64px; } }
.brand-text { font-weight: 800; font-size: 1.3rem; color: var(--primary); letter-spacing: -.3px; }
.brand-text span { color: var(--accent); }
.navbar-toggler { border: 0; color: var(--primary); font-size: 1.5rem; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(61, 43, 153, .3); }
.navbar .nav-link { color: var(--primary); font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent); }
@media (min-width: 992px) {
  .navbar .nav-link::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 2px; height: 2px;
    background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease);
  }
  .navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
}
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 10px 0 18px; border-top: 1px solid #eef1f4; margin-top: 8px; }
  .navbar .nav-link { padding: .65rem .25rem !important; border-bottom: 1px solid #f1f3f5; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-slide {
  min-height: clamp(560px, calc(100vh - var(--header-h)), 860px);
  min-height: clamp(560px, calc(100svh - var(--header-h)), 860px);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--pos-mobile, center);
  position: relative;
}
@media (min-width: 768px) { .hero-slide { background-position: var(--pos-desktop, center); } }
@media (min-width: 992px) { .hero-slide { min-height: clamp(600px, calc(100vh - var(--header-h) - 38px), 820px); } }
.carousel-item.hero-slide.active,
.carousel-item.hero-slide.carousel-item-next,
.carousel-item.hero-slide.carousel-item-prev { display: flex; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(16, 11, 56, .92) 0%, rgba(30, 22, 96, .78) 45%, rgba(30, 22, 96, .45) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 90px 24px 110px; }
.hero-content h1, .hero-content .hero-title {
  color: #fff; font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 800; max-width: 760px; margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-content p { font-size: clamp(.98rem, 1.6vw, 1.15rem); max-width: 640px; color: rgba(255, 255, 255, .88); margin-bottom: 30px; }
.hero-tag {
  display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; letter-spacing: .5px;
  background: rgba(61, 43, 153, .55); border: 1px solid rgba(169, 155, 255, .6); color: #E4DFFF;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 18px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 575.98px) {
  .hero-content { padding: 70px 18px 96px; text-align: left; }
  .hero-btns .btn { width: 100%; }
}

/* Slide-in animation for active slide content */
.carousel-item .hero-content > * { opacity: 0; transform: translateY(24px); }
.carousel-item.active .hero-content > * { animation: heroIn .8s var(--ease) forwards; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.carousel-control-prev, .carousel-control-next { width: 8%; opacity: 1; z-index: 3; }
.hero-arrow {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  backdrop-filter: blur(4px); transition: background .3s;
}
.carousel-control-prev:hover .hero-arrow, .carousel-control-next:hover .hero-arrow { background: var(--accent); border-color: var(--accent); }
@media (max-width: 767.98px) { .carousel-control-prev, .carousel-control-next { display: none; } }
.carousel-indicators { margin-bottom: 1.6rem; z-index: 3; }
.carousel-indicators [data-bs-target] { width: 30px; height: 5px; border-radius: 4px; border: 0; background: #fff; opacity: .5; transition: all .3s; }
.carousel-indicators .active { width: 46px; background: var(--accent-light); opacity: 1; }

/* ---------- About ---------- */
.about-img { position: relative; border-radius: var(--radius); }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-img::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 3px solid var(--accent);
  border-radius: var(--radius); z-index: -1;
}
.about-badge {
  position: absolute; right: -10px; bottom: -22px; background: var(--primary); color: #fff;
  border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; line-height: 1.35;
}
.about-badge i { font-size: 1.7rem; color: var(--accent-light); }
@media (max-width: 575.98px) { .about-badge { right: 10px; } .about-img::before { display: none; } }
.mini-feature {
  display: flex; align-items: center; gap: 10px; background: var(--alt); border-radius: 12px;
  padding: 12px 14px; height: 100%; font-weight: 600; font-size: .88rem; color: var(--primary); line-height: 1.35;
  border-left: 3px solid var(--accent);
}
.mini-feature i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  height: 100%; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e7ecf1; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 22, 96, .35), transparent 50%); }
.service-icon {
  position: absolute; left: 16px; bottom: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(61, 43, 153, .4);
}
.service-body { padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-body p { font-size: .9rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.service-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-actions .btn { font-size: .82rem; padding: .55rem .5rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn-call { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-call:hover { background: var(--primary-2); color: #fff; border-color: var(--primary-2); }
.btn-enquire { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-enquire:hover { background: var(--accent); color: #fff; }

/* ---------- Why Choose Us ---------- */
.why-us {
  background:
    linear-gradient(135deg, rgba(30, 22, 96, .96), rgba(16, 11, 56, .94)),
    url("../images/Football%20ground%20net/3.jpeg") center / cover fixed;
  color: rgba(255, 255, 255, .85);
}
@media (max-width: 991.98px) { .why-us { background-attachment: scroll; } }
.why-us .section-head p { color: rgba(255, 255, 255, .75); }
.why-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  padding: 30px 26px; height: 100%; transition: all .35s var(--ease);
}
.why-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--accent-light); transform: translateY(-5px); }
.why-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem;
  background: rgba(169, 155, 255, .14); color: var(--accent-light); margin-bottom: 18px; transition: all .35s;
}
.why-card:hover .why-icon { background: var(--accent); color: #fff; }
.why-card h3 { color: #fff; font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: .92rem; line-height: 1.65; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 14px;
  border: 0; padding: 0; background: #e7ecf1; cursor: zoom-in; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(30, 22, 96, .55);
  opacity: 0; transition: opacity .35s;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.08); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.gallery-more { text-align: center; margin-top: 32px; }

.lightbox-content { background: transparent; border: 0; align-items: center; position: relative; }
.lightbox-content img { max-height: 85vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: -40px; right: 0; z-index: 5; opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .9); color: var(--primary); display: grid; place-items: center;
}
.lightbox-nav:hover { background: var(--accent); color: #fff; }
.lightbox-nav.prev { left: 8px; }
.lightbox-nav.next { right: 8px; }
#lightbox { --bs-backdrop-opacity: .88; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed #d9e0e7; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 1.05rem;
}
.contact-list small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-list strong, .contact-list a, .contact-list address { color: var(--primary); font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }
.contact-list .map-link { display: inline-block; font-size: .85rem; color: var(--accent); margin-top: 4px; }

.form-label { font-weight: 600; font-size: .88rem; color: var(--primary); margin-bottom: 6px; }
.req { color: #dc3545; }
.form-control, .form-select { border-radius: 10px; padding: .72rem 1rem; border: 1.5px solid #dbe2e8; font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(61, 43, 153, .18); }

/* ---------- Modal ---------- */
.enquiry-modal { border: 0; border-radius: 18px; overflow: hidden; }
.enquiry-modal .modal-header { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: rgba(255, 255, 255, .8); border: 0; padding: 20px 24px; align-items: flex-start; }
.enquiry-modal .modal-title { color: #fff; font-size: 1.35rem; font-weight: 700; margin-bottom: 2px; }
.enquiry-modal .modal-title i { color: var(--accent-light); }
.enquiry-modal .modal-body { padding: 24px; }
.modal-alt span { font-size: .82rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-card { height: 100%; min-height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--accent); background: #e7ecf1; }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (min-width: 992px) { .map-card, .map-card iframe { min-height: 460px; } }

/* ---------- Footer ---------- */
.site-footer { background: #140E45; color: rgba(255, 255, 255, .75); padding: 22px 0; font-size: .88rem; }
@media (max-width: 767.98px) { .site-footer { padding-bottom: 84px; } }

/* ---------- Floating buttons ---------- */
.float-btn, .back-to-top {
  position: fixed; z-index: 1040; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 1.5rem; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); transition: transform .3s var(--ease);
}
.float-btn:hover { color: #fff; transform: scale(1.08); }
.float-call { right: 20px; bottom: 20px; background: var(--primary); font-size: 1.3rem; }
.float-call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary);
  animation: pulse 2s infinite; pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.back-to-top {
  right: 26px; bottom: 88px; width: 42px; height: 42px; font-size: 1rem; border: 0; background: var(--accent);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Vertical "Enquire Now" tab – right side, vertically centred */
.enquire-tab {
  position: fixed; right: 0; top: 50%; z-index: 1040;
  transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: mixed;
  background: var(--accent); color: #fff; border: 0;
  padding: 18px 10px; border-radius: 12px 0 0 12px;
  font-weight: 600; font-size: .9rem; letter-spacing: 1px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: -4px 6px 20px rgba(61, 43, 153, .35);
  transition: padding .3s var(--ease), background .3s;
}
.enquire-tab i { transform: rotate(90deg); }
.enquire-tab:hover, .enquire-tab:focus-visible { background: var(--accent-dark); padding-right: 14px; }
@media (max-width: 575.98px) { .enquire-tab { padding: 14px 7px; font-size: .78rem; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .carousel-item .hero-content > * { opacity: 1; transform: none; }
}
