/*
 * Jaypee Sports City Advisory - Premium Design System (2026 Redesign)
 * Theme: Cinematic, Luxury, Authority
 */

/* ========================================
   1. CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  /* --- COLOR PALETTE --- */
  /* Primary Backgrounds */
  --color-primary: #020617;
  /* Deep Midnight Blue (Slate 950) */
  --color-primary-light: #0f172a;
  /* Slate 900 */
  --color-bg-dark: #1e293b;
  /* Slate 800 */

  /* Accents (Wealth & Premium) */
  --color-gold: #d4af37;
  /* Classic Gold */
  --color-gold-light: #dfbd69;
  --color-gold-dark: #9e7d34;
  --gradient-gold: linear-gradient(135deg, #dfbd69 0%, #9e7d34 100%);

  /* Text Colors */
  --color-text-white: #ffffff;
  --color-text-gray: #94a3b8;
  /* Slate 400 */
  --color-text-muted: #64748b;
  /* Slate 500 */
  --color-text-dark: #334155;
  /* Slate 700 (for light backgrounds) */

  /* Functional */
  --color-success: #059669;
  /* Emerald 600 */
  --color-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* --- TYPOGRAPHY --- */
  --font-heading: 'Playfair Display', serif;
  /* Cinematic, Editorial */
  --font-body: 'Inter', sans-serif;
  /* Clean, Modern */

  /* --- SPACING & LAYOUT --- */
  --container-max: 1280px;
  --header-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* --- SHADOWS --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.15);
  /* Gold Glow */
}

/* ========================================
   2. RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary);
  color: var(--color-text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }
}

p {
  margin-bottom: 1rem;
}

.text-gold {
  color: var(--color-gold);
}

.text-white {
  color: var(--color-text-white);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ========================================
   4. LAYOUT UTILITIES
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-col {
  flex-direction: column;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hidden-mobile {
    display: block;
  }
}

/* ========================================
   5. COMPONENT: BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: none;
}

/* Primary Gold Button */
.btn-primary {
  background: var(--gradient-gold);
  color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

/* Secondary Outline Button */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-primary);
}

/* White Outline (for dark overlays) */
.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   6. COMPONENT: HEADER & NAV
   ======================================== */
.header {
  height: var(--header-height);
  background: rgba(2, 6, 23, 0.9);
  /* Translucent dark */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 0.9rem;
  background: var(--gradient-gold);
  color: var(--color-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
}

.nav {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav-link {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-gold);
  }
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 6px;
  transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 899px) {
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    width: 100%;
  }

  .nav .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* ========================================
   7. COMPONENT: CARDS (Glassmorphism)
   ======================================== */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* Deep shadow */
}

/* Feature Icon */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-gold);
  display: inline-block;
}

/* Project Card */
.project-card {
  background: var(--color-primary-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
}

.project-card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  /* Overlay for text readability if needed */
}

.project-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent);
}

.project-card-body {
  padding: 1.5rem;
}

/* ========================================
   8. HERO SECTION
   ======================================== */
.hero-banner {
  position: relative;
  padding: 8rem 0;
  background: url('../images/hero-aerial.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Abstract Background Effect */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 50%, #020617 100%);
  z-index: 0;
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* ========================================
   9. ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* ========================================
   10. FORMS
   ======================================== */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-family: inherit;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.1);
}

.lead-form-inline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--radius-md);
}

/* ========================================
   11. FOOTER
   ======================================== */
.footer {
  background: #000000;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.sticky-footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-light);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
  border-top: 1px solid var(--color-gold);
}

@media(min-width:768px) {
  .sticky-footer-cta {
    display: none;
  }
}

/* ========================================
   12. PILLAR PAGE UTILITIES
   ======================================== */
.pillar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .pillar-layout {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}

.pillar-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
}

.pillar-sidebar h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 0.5rem;
}

.toc-link {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
  color: var(--color-gold);
}

.pillar-content h2 {
  margin-top: 3rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.pillar-content h3 {
  margin-top: 2rem;
  color: var(--color-gold-light);
}

/* SEO Data Tables */
.data-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  color: var(--color-text-white);
  font-size: 0.9rem;
}

.data-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--color-gold-dark);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   13. WIDGETS & INTERACTIVE
   ======================================== */
/* FAQ Accordion */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: var(--glass-bg);
  color: var(--color-text-white);
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  color: var(--color-gold);
  font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
  max-height: 2000px;
  padding: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

/* Calculator Widget */
.calc-widget {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--color-gold-dark);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-result {
  background: rgba(212, 175, 55, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold);
  margin-top: 2rem;
}

.calc-result-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.calc-result-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}