/*
 * theme-modern.css
 * ------------------------------------------------------------------
 * GiantLeap modernization layer — Stage A (design system) + Stage B
 * (nav/footer). Loaded AFTER all legacy bundles on every page so it
 * can safely unify the two older template systems the site was built
 * from without touching or removing any existing stylesheet.
 *
 * Fonts/icons used here are free for commercial use:
 *   - Poppins (Google Fonts, OFL license)
 *   - Font Awesome Free (already vendored in this project)
 * ------------------------------------------------------------------
 */

:root {
  /* Brand colors (extracted from existing theme, unchanged) */
  --gl-primary: #4527a4;
  --gl-primary-dark: #2f1a73;
  --gl-primary-light: #6c4bd6;
  --gl-accent: #e0435c;
  --gl-gold: #d4a017;

  --gl-text: #23213a;
  --gl-text-muted: #6b6885;
  --gl-bg: #ffffff;
  --gl-bg-alt: #f8f7fc;
  --gl-border: #e7e4f2;

  /* Spacing scale */
  --gl-space-xs: 0.5rem;
  --gl-space-sm: 1rem;
  --gl-space-md: 1.5rem;
  --gl-space-lg: 2.5rem;
  --gl-space-xl: 4rem;

  /* Radius / shadow */
  --gl-radius-sm: 8px;
  --gl-radius-md: 14px;
  --gl-radius-lg: 22px;
  --gl-shadow-sm: 0 2px 10px rgba(35, 33, 58, 0.06);
  --gl-shadow-md: 0 10px 30px rgba(35, 33, 58, 0.10);
  --gl-shadow-lg: 0 20px 50px rgba(35, 33, 58, 0.16);

  --gl-font: 'Poppins', 'Ubuntu', 'Nunito', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ------------------------------------------------------------------
 * Base typography polish (non-destructive — only sets font-family
 * and heading weight/letter-spacing, doesn't touch layout)
 * ------------------------------------------------------------------ */
body {
  font-family: var(--gl-font);
  color: var(--gl-text);
}

h1, h2, h3, h4, h5, h6,
.sec-title, .widget-title, .top-text {
  font-family: var(--gl-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Restore normal browser text-selection behavior. Disabling copy /
   right-click hurts usability and trust signals on a professional
   site and provides no real protection, so this layer explicitly
   turns it back on. */
body, * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

/* Guard against any legacy element (fixed-width iframes, un-initialized
   carousels, etc.) pushing the page wider than the viewport and creating
   stray blank space / a horizontal scrollbar next to the footer. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* The Google Map embed on the homepage used a fixed 600px width, which
   left a large blank gap next to it on wider screens right above the
   footer. Force every iframe to behave responsively by default. */
iframe {
  max-width: 100%;
}

/* ==================================================================
 * UNIFIED NAVIGATION (gl-nav)
 * Markup: resources/views/frontend/partials/nav.blade.php
 * ================================================================== */
.gl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gl-bg);
  box-shadow: var(--gl-shadow-sm);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.gl-header.gl-scrolled {
  box-shadow: var(--gl-shadow-md);
}

.gl-topbar {
  background: var(--gl-primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}

.gl-topbar a {
  color: #fff;
  opacity: 0.9;
}

.gl-topbar a:hover {
  opacity: 1;
  text-decoration: none;
}

.gl-navbar {
  background: var(--gl-bg);
  padding: 0.75rem 0;
}

.gl-navbar .gl-logo img {
  max-height: 52px;
  width: auto;
}

.gl-navbar .gl-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gl-navbar .gl-nav-links a {
  display: inline-block;
  padding: 0.6rem 1rem;
  color: var(--gl-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--gl-radius-sm);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.gl-navbar .gl-nav-links a:hover,
.gl-navbar .gl-nav-links a.active {
  background: rgba(69, 39, 164, 0.08);
  color: var(--gl-primary);
}

.gl-navbar .gl-cta {
  background: var(--gl-primary);
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gl-navbar .gl-cta:hover {
  background: var(--gl-primary-dark);
  transform: translateY(-1px);
}

.gl-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gl-bg-alt);
  border: none;
  cursor: pointer;
}

.gl-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--gl-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Slide-out side menu */
.gl-side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 85vw);
  background: var(--gl-primary);
  color: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  padding: var(--gl-space-lg) var(--gl-space-md);
}

.gl-side-menu.gl-open {
  transform: translateX(0);
}

.gl-side-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 56, 0.55);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gl-side-backdrop.gl-open {
  opacity: 1;
  pointer-events: auto;
}

.gl-side-menu .gl-side-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: var(--gl-space-md);
  cursor: pointer;
}

.gl-side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gl-space-lg);
}

.gl-side-menu ul li a {
  display: block;
  color: #fff;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 500;
}

.gl-side-menu ul li a:hover,
.gl-side-menu ul li a.active {
  color: #ffd873;
}

.gl-side-menu .gl-side-contact li {
  border-bottom: none;
  padding: 0.35rem 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

.gl-side-menu .gl-side-social {
  display: flex;
  gap: 0.6rem;
  margin: var(--gl-space-md) 0;
}

.gl-side-menu .gl-side-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-bottom: none;
}

.gl-side-menu .gl-side-social a:hover {
  background: #fff;
  color: var(--gl-primary);
}

/* ==================================================================
 * UNIFIED FOOTER (gl-footer)
 * Markup: resources/views/frontend/partials/footer.blade.php
 * ================================================================== */
.gl-footer {
  background: var(--gl-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--gl-space-xl) 0 var(--gl-space-sm);
  font-family: var(--gl-font);
  overflow-x: hidden;
}

.gl-footer *,
.gl-footer *::before,
.gl-footer *::after {
  box-sizing: border-box;
}

.gl-footer .row > * {
  max-width: 100%;
}

.gl-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--gl-space-sm);
}

.gl-footer p, .gl-footer li {
  font-size: 0.92rem;
  line-height: 1.7;
}

.gl-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gl-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gl-footer a:hover {
  color: #fff;
}

.gl-footer .gl-footer-logo img {
  max-height: 46px;
  margin-bottom: var(--gl-space-sm);
}

.gl-footer .gl-social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--gl-space-sm);
}

.gl-footer .gl-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gl-footer .gl-social a:hover {
  background: #fff;
  color: var(--gl-primary);
}

.gl-footer .gl-newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--gl-space-sm);
  max-width: 100%;
}

.gl-footer .gl-newsletter input {
  flex: 1 1 160px;
  min-width: 0;
  width: auto;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.gl-footer .gl-newsletter button {
  flex: 0 0 auto;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  background: var(--gl-accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.gl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: var(--gl-space-lg);
  padding-top: var(--gl-space-sm);
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Back-to-top button, shared look across both page families */
.gl-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gl-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--gl-shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 900;
  text-decoration: none;
}

.gl-back-to-top.gl-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .gl-navbar .gl-nav-links {
    display: none;
  }
}

/* ==================================================================
 * STAGE C — Homepage section polish (courses / services / blog /
 * gallery). Additive/override rules only, layered on top of the
 * legacy bundle.min.css — no existing selectors removed.
 * ================================================================== */

/* The decorative ".half-blue-overlay" background block used behind the
   Courses and Blogs sections was overlapping card content because it
   had no z-index of its own. Pin it behind everything and make sure
   card content stacks above it. */
.inner-courses-content,
.inner-blog-content {
  position: relative;
}

.half-blue-overlay {
  z-index: 0;
  pointer-events: none;
}

.course-cards, .blog-cards {
  position: relative;
  z-index: 1;
}

/* Equal-height, evenly spaced course + blog cards with soft shadows and
   consistent rounded corners, plus a hover lift. */
.course-card, .news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--gl-bg);
  border-radius: var(--gl-radius-md);
  overflow: hidden;
  box-shadow: var(--gl-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover, .news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gl-shadow-md);
}

/* Course cards - plain responsive grid (no owl-carousel, see script.js).
   flex-wrap + a fixed basis means 1, 2, 3 or more courses all lay out
   evenly with no gaps, no clone-duplication, no leftover background
   showing through. */
.course-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gl-space-md);
}

.course-cards .item {
  height: auto !important;
  padding: 0.5rem;
  flex: 0 1 320px;
  max-width: 320px;
}

.course-card .course-img img,
.news-card .news-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card .course-content,
.news-card .news-content {
  padding: var(--gl-space-sm) var(--gl-space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card .course-heading,
.news-card .news-heading {
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-cards.row {
  row-gap: var(--gl-space-md);
}

/* Services cards */
.services-box {
  background: var(--gl-bg);
  border-radius: var(--gl-radius-md);
  box-shadow: var(--gl-shadow-sm);
  padding: var(--gl-space-lg) var(--gl-space-sm);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--gl-shadow-md);
}

.services-box i {
  color: var(--gl-primary);
}

/* About section + stat counters */
.about-img {
  border-radius: var(--gl-radius-lg);
  overflow: hidden;
  box-shadow: var(--gl-shadow-md);
}

.about-sec .title, .heading-area .title {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.counter-card {
  background: var(--gl-bg);
  border-radius: var(--gl-radius-md);
  box-shadow: var(--gl-shadow-sm);
  padding: var(--gl-space-md) var(--gl-space-sm);
  transition: transform 0.25s ease;
}

.counter-card:hover {
  transform: translateY(-4px);
}

.counter-card .counter-icon i {
  color: var(--gl-primary);
  font-size: 2rem;
}

.counter-num {
  font-weight: 800;
  color: var(--gl-primary);
}

/* Section heading rhythm so every section on the homepage reads
   consistently regardless of which legacy sub-theme it came from */
.heading-area .title strong,
.heading-details .heading strong {
  color: var(--gl-primary);
}

/* ==================================================================
 * STAGE D — Inner pages (about / contact / appointment / service
 * pages). These pages use the older "family B" template classes
 * (page-title, single-info-box, default-form, service-block-three,
 * theme-btn-two) — polish them to match the new design system without
 * touching their markup/structure.
 * ================================================================== */
.page-title {
  position: relative;
  padding: 5rem 0 4rem;
  background-color: var(--gl-primary);
  background-blend-mode: multiply;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gl-primary) 0%, var(--gl-primary-dark) 100%);
  opacity: 0.92;
  z-index: 0;
}

.page-title .content-box,
.page-title h1 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-title .bread-crumb {
  position: relative;
  z-index: 1;
  list-style: none;
}

.page-title .bread-crumb li {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85);
}

.page-title .bread-crumb li a {
  color: #fff;
}

.single-info-box, .service-block-three .inner-box {
  background: var(--gl-bg);
  border-radius: var(--gl-radius-md);
  box-shadow: var(--gl-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.single-info-box:hover, .service-block-three .inner-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--gl-shadow-md);
}

.default-form .form-group input,
.default-form .form-group textarea,
.default-form .form-group select,
.contact-form input,
.contact-form textarea {
  border-radius: var(--gl-radius-sm) !important;
  border: 1px solid var(--gl-border) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.default-form .form-group input:focus,
.default-form .form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gl-primary) !important;
  box-shadow: 0 0 0 3px rgba(69, 39, 164, 0.15) !important;
  outline: none;
}

.theme-btn-two, .yellow-and-white-slider-btn, .news-btn, .course-btn {
  border-radius: 50px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-btn-two:hover, .yellow-and-white-slider-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--gl-shadow-sm);
}

/* Visible keyboard focus outline everywhere (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gl-primary);
  outline-offset: 2px;
}

/* Certificates - fixed-size square thumbnails in a grid, click to view
   full size via Fancybox (data-fancybox="certificates" in the markup). */
.certificate-grid {
  row-gap: var(--gl-space-md);
}

.certificate-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--gl-radius-md);
  overflow: hidden;
  box-shadow: var(--gl-shadow-sm);
  background: var(--gl-bg-alt);
}

.certificate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 0.3s ease;
}

.certificate-thumb .certificate-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(69, 39, 164, 0.55);
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.certificate-thumb:hover .certificate-zoom {
  opacity: 1;
}

.certificate-thumb:hover img {
  transform: scale(1.06);
}

/* WhatsApp appointment CTA (replaces the broken Calendly embed on the
   Book Appointment page and homepage "Make Appointment" modal). */
.gl-whatsapp-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--gl-bg);
  border: 1px solid var(--gl-border);
  border-radius: var(--gl-radius-lg);
  box-shadow: var(--gl-shadow-md);
  padding: var(--gl-space-lg) var(--gl-space-md);
}

.gl-whatsapp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--gl-space-sm);
}

.gl-whatsapp-card h3 {
  margin-bottom: 0.5rem;
}

.gl-whatsapp-card p {
  color: var(--gl-text-muted);
  margin-bottom: var(--gl-space-md);
}

.gl-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff !important;
  border-radius: 50px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gl-whatsapp-btn:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  color: #fff;
}

/* Gallery hover */
.portfolio-items .item {
  border-radius: var(--gl-radius-sm);
  overflow: hidden;
}

.portfolio-items .port-img img {
  transition: transform 0.35s ease;
}

.portfolio-items .item:hover .port-img img {
  transform: scale(1.08);
}

/* ------------------------------------------------------------------
 * Lighthouse accessibility fixes (2026-07-04 audit)
 * ------------------------------------------------------------------ */

/* color-contrast: the contact form's placeholder text (#6c757d from the
   legacy Bootstrap bundle) was failing on this page's white background.
   Force a darker, WCAG-AA-compliant color regardless of load order. */
#contact-us .form-control,
.contact-form .form-control {
  color: var(--gl-text) !important;
}
#contact-us .form-control::placeholder,
.contact-form .form-control::placeholder,
#contact-us .form-control::-webkit-input-placeholder,
.contact-form .form-control::-webkit-input-placeholder,
#contact-us .form-control::-moz-placeholder,
.contact-form .form-control::-moz-placeholder,
#contact-us .form-control:-ms-input-placeholder,
.contact-form .form-control:-ms-input-placeholder {
  color: #5b5b66 !important;
  opacity: 1 !important;
}

/* target-size / presentation-role-conflict: owl-carousel's generated
   prev/next buttons were far smaller than the 24x24 minimum touch target. */
.owl-nav .owl-prev,
.owl-nav .owl-next {
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* list: decorative star-rating icons in testimonials are no longer <a>
   elements (see index.blade.php) - style the wrapping <span> the same
   way the old anchor was styled so nothing shifts visually. */
.test-review .star-icon {
  display: inline-block;
}

/* landmark-one-main: the new <main> wrapper shouldn't affect layout. */
main#main-content {
  display: block;
}

/* Replaces the stray <br> tags removed from .contact-list (see
   index.blade.php) with the same visual gap via margin instead. */
.gl-contact-list .gl-list-gap {
  margin-top: 0.6rem;
}
