/* MarkAvla Landing Page - Light Theme Styles
 * Color Palette: Crisp Light Background (#F8FAFC), Deep Midnight Navy (#0A1128, #0F172A), MarkAvla Signature Orange (#FF6B00, #E65100)
 */

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

:root {
  --color-bg-light: #F8FAFC;
  --color-surface-light: #FFFFFF;
  --color-surface-light-alt: #F1F5F9;
  --color-border-light: #E2E8F0;
  --color-navy-dark: #0A1128;
  --color-navy-text: #0F172A;
  --color-navy-muted: #475569;
  --color-orange-primary: #FF6B00;
  --color-orange-hover: #E65100;
  --color-gold-accent: #D97706;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body.light-theme {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-navy-text);
  overflow-x: hidden;
}

/* Custom Scrollbar for Light Theme */
body.light-theme::-webkit-scrollbar {
  width: 8px;
}
body.light-theme::-webkit-scrollbar-track {
  background: #F1F5F9;
}
body.light-theme::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
body.light-theme::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

/* Ambient Glow for Light Theme */
.light-glow-orange {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.light-glow-navy {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(10, 17, 40, 0.06) 0%, rgba(10, 17, 40, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.light-grid-pattern {
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Light Theme Cards */
.light-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 16px 32px -8px rgba(255, 107, 0, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  transform: translateY(-4px);
}

.light-card-static {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

/* Glowing Border Accent Light */
.light-border-glow {
  position: relative;
}
.light-border-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.7), rgba(245, 158, 11, 0.3), rgba(10, 17, 40, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Accordion in Light Theme */
.light-theme .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.light-theme .faq-item.active .faq-content {
  max-height: 300px;
  opacity: 1;
}

.light-theme .faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #FF6B00;
}

.light-theme .faq-item.active {
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 8px 24px -4px rgba(255, 107, 0, 0.12);
}

/* Button Glow Effect Light */
.btn-orange-glow {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.35);
  transition: all 0.25s ease;
}

.btn-orange-glow:hover {
  background: linear-gradient(135deg, #E65100 0%, #FF6B00 100%);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.5);
  transform: translateY(-1px);
}

.btn-navy-dark {
  background: #0A1128;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(10, 17, 40, 0.2);
  transition: all 0.25s ease;
}

.btn-navy-dark:hover {
  background: #131F42;
  box-shadow: 0 6px 22px rgba(10, 17, 40, 0.35);
  transform: translateY(-1px);
}

/* iPhone Frame Light Canvas Shadow */
.iphone-frame-light {
  position: relative;
  width: 312px;
  height: 652px;
  background: #0F1624;
  border-radius: 46px;
  border: 10px solid #1E293B;
  box-shadow: 0 25px 50px -12px rgba(10, 17, 40, 0.3), 0 0 35px rgba(255, 107, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .iphone-frame-light {
    width: 326px;
    height: 682px;
    border-radius: 50px;
    border-width: 11px;
  }
}

/* Subpages Dark Mode Override (when toggled via #subpage-theme-toggle) */
body.subpage-dark {
  background-color: #0A0E17 !important;
  color: #F1F5F9 !important;
}

body.subpage-dark #main-navbar {
  background-color: rgba(10, 14, 23, 0.92) !important;
  border-color: #1E2638 !important;
}

body.subpage-dark #main-navbar nav a {
  color: #CBD5E1 !important;
}

body.subpage-dark #main-navbar nav a:hover {
  color: #FF6B00 !important;
}

body.subpage-dark #subpage-theme-toggle,
body.subpage-dark #subpage-theme-toggle-mobile {
  background-color: #131926 !important;
  border-color: #1E2638 !important;
  color: #E2E8F0 !important;
}

body.subpage-dark .subpage-hero {
  background: linear-gradient(to bottom, rgba(19, 25, 38, 0.6), transparent) !important;
  border-color: #1E2638 !important;
}

body.subpage-dark .subpage-hero h1 {
  color: #FFFFFF !important;
}

body.subpage-dark .subpage-hero p {
  color: #94A3B8 !important;
}

body.subpage-dark .light-card-static,
body.subpage-dark .light-card {
  background-color: rgba(19, 25, 38, 0.9) !important;
  border-color: #1E2638 !important;
  color: #CBD5E1 !important;
}

body.subpage-dark .light-card-static h2,
body.subpage-dark .light-card-static h3,
body.subpage-dark .light-card-static h4,
body.subpage-dark .light-card h2,
body.subpage-dark .light-card h3,
body.subpage-dark .light-card h4,
body.subpage-dark .light-card strong,
body.subpage-dark .light-card a,
body.subpage-dark .light-card span.text-\[\#0A1128\],
body.subpage-dark .light-card-static .text-\[\#0A1128\] {
  color: #FFFFFF !important;
}

body.subpage-dark .light-card-static .text-slate-700,
body.subpage-dark .light-card-static .text-slate-600 {
  color: #CBD5E1 !important;
}

body.subpage-dark .light-card-static .text-\[\#E65100\] {
  color: #FF8533 !important;
}

body.subpage-dark .light-card-static .text-emerald-700 {
  color: #34D399 !important;
}

body.subpage-dark .light-card .subpage-box,
body.subpage-dark .light-card-static .subpage-box {
  background-color: #0A0E17 !important;
  border-color: #1E2638 !important;
}

body.subpage-dark .light-card .subpage-box span.text-\[\#0A1128\],
body.subpage-dark .light-card .subpage-box a {
  color: #FFFFFF !important;
}

body.subpage-dark .light-card .subpage-box span.text-slate-600 {
  color: #CBD5E1 !important;
}

body.subpage-dark .faq-item {
  background-color: #0D121E !important;
  border-color: #1E2638 !important;
}

body.subpage-dark .faq-item .faq-header span {
  color: #FFFFFF !important;
}

body.subpage-dark .faq-item .faq-content {
  color: #94A3B8 !important;
  border-color: #1E2638 !important;
}

body.subpage-dark .light-card-static .subpage-box-orange {
  background-color: rgba(255, 107, 0, 0.08) !important;
  border-color: rgba(255, 107, 0, 0.3) !important;
}

body.subpage-dark .light-card-static input,
body.subpage-dark .light-card-static select,
body.subpage-dark .light-card-static textarea {
  background-color: #0A0E17 !important;
  border-color: #1E2638 !important;
  color: #FFFFFF !important;
}

body.subpage-dark .light-card-static label {
  color: #CBD5E1 !important;
}

body.subpage-dark .subpage-divider {
  border-color: #1E2638 !important;
}

body.subpage-dark footer {
  background-color: #070A10 !important;
  border-color: #1E2638 !important;
}
