/* =========================================
   1. CORE VARIABLES (The "Deep Navy & Neon" Palette)
   ========================================= */
:root {
  /* --- 1. BRAND COLORS --- */
  
  /* The Anchor: Deepest Navy/Black (Matches Hero) */
  --primary-dark: #020617;
  
  /* The Spark: Neon Cyan for Accents & Links */
  --primary-cyan: #00C2FF;
  
  /* The Depth: Rich Blue for Gradients */
  --primary-blue: #0056D2; 
  
  /* The Hover State: Bright White/Cyan Mix */
  --primary-hover: #e0f2fe; 

  /* --- 2. NEUTRALS --- */
  --white: #ffffff;
  --text-main: #ffffff;       /* Main headings */
  --text-muted: #94A3B8;      /* Paragraphs (Slate Grey) */
  
  /* --- 3. UI BASICS (GLASSMORPHISM) --- */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;
  
  --shadow-glow: 0 0 20px rgba(0, 194, 255, 0.15);
  --border-radius: 16px;
  --max-width: 1200px;
}

/* =========================================
   2. GLOBAL RESETS & TYPOGRAPHY
   ========================================= */
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-muted);
  background-color: var(--primary-dark); /* Global Dark Background */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, .price-tag, .btn-primary, .btn-outline {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
}

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

/* Container Wrapper */
.container {
  max-width: var(--max-width); 
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* =========================================
   3. MODULAR PAGE HEADER (Re-usable)
   ========================================= */
/* Note: This is now handled by the .page-header-module in components.php, 
   but we keep this for legacy safety */
.page-section-standard {
  padding: 60px 0;
  position: relative;
}

/* =========================================
   4. PACKAGES GRID SYSTEM
   ========================================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-bottom: 60px;
}

/* =========================================
   5. GLASS CARD DESIGN (Replaces Old White Cards)
   ========================================= */
.package-card, 
.insight-card, 
.project-card,
.info-card,
.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card:hover, 
.insight-card:hover, 
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 194, 255, 0.3); /* Cyan Glow Border */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* --- Card Typography --- */
.card-header h3, 
.insight-content h3,
.project-content h3,
.info-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--primary-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* --- Price Tag --- */
.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 15px;
}

.price-tag small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: -5px;
}

/* --- Description --- */
.description, 
.insight-content p,
.project-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* --- Features List (Checkmarks) --- */
.features-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  font-size: 0.95rem;
  color: #cbd5e1; /* Light Grey */
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-cyan);
  font-weight: 800;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--primary-cyan);
  color: var(--primary-dark);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--white);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255,255,255,0.05);
}

/* =========================================
   6. SPECIAL CARD VARIANTS
   ========================================= */

/* Featured Card (Innovate): Glow Effect */
.package-card.featured {
  border: 2px solid var(--primary-blue);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,86,210,0.1));
  box-shadow: 0 0 30px rgba(0, 86, 210, 0.2);
}

.badge-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
  color: var(--white);
  padding: 5px 15px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 194, 255, 0.4);
  z-index: 10;
}

/* =========================================
   7. RETAINER SECTION (Glass)
   ========================================= */
.retainer-section-glass {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 40px;
  margin-top: 60px;
}

.retainer-header h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.retainer-header p {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.retainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.glass-mini-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 25px;
  border-radius: 12px;
}

.glass-mini-card.featured-retainer {
  border: 1px solid var(--primary-cyan);
  background: rgba(0, 194, 255, 0.05);
}

/* =========================================
   8. INSIGHTS / BLOG STYLES
   ========================================= */
.insight-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.insight-content {
  padding: 25px;
}

.post-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.read-more-link {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more-link:hover {
  color: var(--primary-cyan);
  gap: 10px;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
}

.pagination a:hover, .pagination span.current {
  background: var(--primary-cyan);
  color: var(--primary-dark);
  border-color: var(--primary-cyan);
}

/* =========================================
   9. FORMS (Contact Page)
   ========================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

/* Info Card (Left) */
.info-card {
  text-align: left;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.info-item .icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--primary-cyan);
}

.info-item .link {
  color: var(--white);
  font-weight: 600;
}

.info-item .link:hover {
  color: var(--primary-cyan);
}

/* Form (Right) */
.contact-form-wrapper label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-cyan);
  font-size: 0.9rem;
}

.smart-form input,
.smart-form select,
.smart-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--white);
  background-color: rgba(0,0,0,0.2);
  margin-bottom: 20px;
  box-sizing: border-box;
}

.smart-form input:focus,
.smart-form textarea:focus {
  border-color: var(--primary-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-cyan);
  color: var(--primary-dark);
  border: none;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.4);
}

/* =========================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .packages-grid, .retainer-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header-module h1 {
    font-size: 2.5rem;
  }
}