/* ==========================================================================
   Base & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette — Client Approved: Navy Blue, Gold, White */
  --color-navy: #0B1F3A;        /* Navy Blue — Trust, authority */
  --color-navy-dark: #081628;   /* Darker navy for deep backgrounds */
  --color-navy-light: #122847;  /* Lighter navy for card/section backgrounds */
  --color-gold: #C8A45D;        /* Gold — Premium, success */
  --color-gold-hover: #ddb870;  /* Gold hover state */
  --color-gold-dark: #a8893d;   /* Gold darker variant */
  --color-text-light: #FFFFFF;  /* White — Clean, modern */
  --color-text-muted: #9aacc0;  /* Muted text on dark backgrounds */
  --color-bg-cream: #f4f0e6;    /* Cream for Our Courses section */

  /* Typography — Cinzel Bold as specified by client */
  --font-heading: "Cinzel", serif;
  --font-body: "Montserrat", sans-serif;

  /* Spacing & Layout */
  --container-max-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-navy);
  color: var(--color-text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  padding: 0 var(--spacing-md) !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text-light); /* Changed to white for dark logo */
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 90%;
  max-width: 300px;
  height: auto;
  animation: pulse-loader 1.5s infinite ease-in-out;
}

@keyframes pulse-loader {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typography — Cinzel Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.text-center { text-align: center; }
.text-navy { color: var(--color-navy) !important; }
.text-white { color: var(--color-text-light) !important; }
.text-gold { color: var(--color-gold) !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--color-gold-hover);
  box-shadow: 0 4px 12px rgba(200, 164, 93, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(255,255,255,0.5); 
}

.btn-outline:hover, .btn-outline:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-light);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.5rem 0;
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(200, 164, 93, 0.3);
}
.site-header svg {
  display: block;
  vertical-align: middle;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}
.logo-link {
  display: flex;
  align-items: center;
}
.site-logo {
  height: 64px;
  width: auto;
  display: block;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  position: relative;
  display: block;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
}
.menu-icon-btn {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xl) 0;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.6) 50%, rgba(10, 25, 47, 0) 100%), url("assets/images/Firefly.png") center/cover no-repeat;
  z-index: -1;
}
.hero-title {
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.hero-subtitle-primary {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 600px;
}
.hero-cta {
  display: flex;
  gap: 1.5rem;
}

/* Stats Bar */
.stats-bar {
  background-color: var(--color-navy-dark);
  border-top: 1px solid var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding: 2rem 0;
}
.stats-section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .stats-container { flex-direction: row; }
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.stat-icon img {
  width: 50px; height: 50px;
  filter: brightness(0) saturate(100%) invert(75%) sepia(18%) saturate(1039%) hue-rotate(5deg) brightness(89%) contrast(85%); /* Gold filter */
}
.stat-text {
  display: flex;
  flex-direction: column;
}
.stat-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1.1;
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.divider { display: none; }
@media (min-width: 768px) {
  .divider {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(200,164,93,0), rgba(200,164,93,1), rgba(200,164,93,0));
  }
}

/* Features (Why Choose) */
.features-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-navy);
  background: radial-gradient(circle at center, var(--color-navy-light) 0%, var(--color-navy-dark) 100%);
}
.section-title {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-xl);
  color: #0B1F3A;;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

/* Double Border Card Utility */
.double-border-card {
  position: relative;
  background-color: var(--color-navy);
  border: 1px solid var(--color-gold);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.double-border-card::before {
  content: '';
  position: absolute;
  top: 6px; right: 6px; bottom: 6px; left: 6px;
  border: 1px solid rgba(200, 164, 93, 0.4);
  pointer-events: none;
  z-index: -1;
}
.feature-icon { margin-bottom: 1.25rem; }
.feature-icon img { width: 56px; height: 56px; }
.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}
.feature-btn {
  width: 100%;
  padding: 0.6rem 1rem;
}

/* Courses Section */
.courses-section {
  padding: var(--spacing-xxl) 0;
  background-color: #FFFFFF;
  position: relative;
}
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1050px;
  margin: 0 auto;
}
@media (min-width: 768px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card {
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  padding: 3rem 2rem;
}
.course-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(200, 164, 93, 0.3);
  width: 100%;
  color: var(--color-text-light);
}
.course-list {
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.course-list li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}
.course-list li::before {
  content: "•";
  color: var(--color-gold);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* Lifestyle Banner */
.lifestyle-banner {
  position: relative;
  padding: var(--spacing-xxl) 0;
  min-height: 450px;
  display: flex;
  align-items: center;
}
.lifestyle-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(17, 35, 64, 0.95) 0%, rgba(17, 35, 64, 0.7) 50%, rgba(17, 35, 64, 0) 100%), url("assets/images/lifestyle-new.jpg") center/cover no-repeat;
  z-index: -1;
}
.lifestyle-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.lifestyle-perks-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.lifestyle-perks-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-weight: 500;
}
.perk-icon {
  font-size: 1.5rem;
}

/* Subscribe Section */
.subscribe-section {
  background-color: var(--color-navy-dark);
}
.subscribe-container {
  background-color: #0c1d33;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border: 1px solid rgba(255,255,255,0.03);
}
@media (min-width: 992px) {
  .subscribe-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.subscribe-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.subscribe-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.subscribe-form {
  display: flex;
  width: 100%;
  max-width: 550px;
}
.subscribe-form input {
  flex-grow: 1;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(200, 164, 93, 0.3);
  color: white;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}
.subscribe-form input:focus {
  border-color: var(--color-gold);
}
.subscribe-form button {
  background-color: var(--color-gold);
  color: var(--color-navy);
  border: none;
  padding: 0 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background-color var(--transition-fast);
}
.subscribe-form button:hover {
  background-color: var(--color-gold-hover);
}

/* Footer Layout */
.site-footer {
  background-color: var(--color-navy-dark);
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
}
.footer-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw;
  max-width: 500px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-content { grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr; }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.footer-title-small {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 2rem;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-navy-light);
  border-radius: 4px;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}
.social-icons a:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

/* Footer Links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-links li a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.footer-links li a::before {
  content: '>';
  color: var(--color-gold);
  margin-right: 8px;
  font-family: monospace;
  font-weight: bold;
}
.footer-links li a:hover {
  color: var(--color-gold);
}

/* Footer Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  color: #ff4d4d;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.contact-icon-white {
  color: white;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.info-text {
  display: flex;
  flex-direction: column;
}
.info-text strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.info-text span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0;
}
.footer-bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-bottom-links a:hover {
  color: var(--color-gold);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 55px;
  width: 55px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: width 0.3s ease, background-color var(--transition-fast), transform var(--transition-fast);
}
.whatsapp-float:hover {
  width: 170px;
  transform: translateY(-3px);
  background-color: #1ebd5a;
}
.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
}
.whatsapp-icon svg {
  width: 25px;
  height: 25px;
}
.whatsapp-text {
  font-family: var(--font-body);
  font-weight: 600;
  margin-left: 10px;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}
.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
}

@media (min-width: 768px) {
  .menu-icon-item {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .header-container {
    flex-wrap: wrap;
  }
  .main-nav {
    flex-basis: 100%;
  }
  .nav-list {
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0; /* Remove desktop gap in mobile */
  }
  .nav-list li:not(.menu-icon-item) {
    display: none;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-list.active li:not(.menu-icon-item) {
    display: block;
  }
  .menu-icon-item {
    position: absolute;
    top: 26px; /* Centered in 80px header (80-28)/2 */
    right: 1.5rem;
  }
}

/* Consultation Section */
.consultation-section {
  padding: 4rem 0;
  background-color: var(--color-bg-cream);
}
.consultation-box {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.consultation-box .section-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.consultation-box .section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.consultation-form .form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(200, 164, 93, 0.3);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-navy);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-color: #fafafa;
}
.consultation-form .form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(200, 164, 93, 0.2);
  background-color: #fff;
}
.consultation-form .submit-btn {
  margin-top: 1rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}
.consultation-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  font-family: var(--font-body);
}
.form-message {
  text-align: center;
  font-size: 0.95rem;
  margin-top: 1rem;
  display: none;
  font-weight: 500;
}
.form-message.success {
  color: #1ebd5a;
  display: block;
}
.form-message.error {
  color: #e74c3c;
  display: block;
}
/* Anchor scroll margin to prevent sticky header overlap */
#inquiry-section {
  scroll-margin-top: 100px;
}
