/* Inheritor Website Styles */
/* Light theme with glassmorphism effects */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #FFA726;
    --primary-light: #FFB74D;
    --primary-dark: #F57C00;

    --light: #ffffff;
    --light-secondary: #f8f9fa;
    --light-tertiary: #f0f0f0;

    --accent-green: #2E7D32;
    --accent-green-light: #4CAF50;

    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #888888;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-blur: 16px;
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text-primary);
}

::selection {
    background-color: var(--primary);
    color: var(--light);
}

/* ========================================
   Navigation
   ======================================== */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.text-primary {
    color: var(--primary);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

/* Navbar scroll state */
.navbar-scrolled .glass-nav {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 167, 38, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 2px solid var(--glass-border);
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 167, 38, 0.05);
}

/* ========================================
   Glass Cards
   ======================================== */
.glass-card {
    background: var(--light);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card:hover,
.doc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 167, 38, 0.3);
    box-shadow: 0 12px 40px rgba(255, 167, 38, 0.1);
}

/* ========================================
   Expandable Example Cards
   ======================================== */
.example-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: rgba(255, 167, 38, 0.3);
    box-shadow: 0 12px 40px rgba(255, 167, 38, 0.1);
}

.example-card[data-expanded="true"] {
    grid-column: 1 / -1;
}

.example-card .expand-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.example-card[data-expanded="true"] .expand-icon {
    transform: rotate(180deg);
}

.example-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.example-card[data-expanded="true"] .example-content {
    max-height: 2000px;
    opacity: 1;
}

.letter-content {
    font-family: 'Georgia', serif;
    background: rgba(255, 167, 38, 0.05);
    border-left: 3px solid var(--primary);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 0 12px 12px 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.letter-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.letter-greeting {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.letter-signature {
    font-style: italic;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.letter-section-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.letter-credentials {
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.letter-steps {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.letter-steps li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* Premium card glow effect */
.pricing-card.border-primary {
    box-shadow: 0 0 40px rgba(255, 167, 38, 0.15);
}

.pricing-card.border-primary:hover {
    box-shadow: 0 0 60px rgba(255, 167, 38, 0.25);
}

/* ========================================
   FAQ Accordion
   ======================================== */
.faq-tab {
    background: var(--light);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.faq-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.faq-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================
   Section Animations (GSAP targets)
   ======================================== */
.hero-title,
.hero-subtitle,
.hero-stories,
.hero-value,
.hero-cta,
.section-title,
.feature-card,
.example-card,
.pricing-card,
.faq-item {
    opacity: 0;
    transform: translateY(30px);
}

/* Initial state for GSAP - will be animated in */
.gsap-ready .hero-title,
.gsap-ready .hero-subtitle,
.gsap-ready .hero-stories,
.gsap-ready .hero-value,
.gsap-ready .hero-cta,
.gsap-ready .section-title,
.gsap-ready .feature-card,
.gsap-ready .example-card,
.gsap-ready .pricing-card,
.gsap-ready .faq-item {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for no-JS */
.no-js .hero-title,
.no-js .hero-subtitle,
.no-js .hero-stories,
.no-js .hero-value,
.no-js .hero-cta,
.no-js .section-title,
.no-js .feature-card,
.no-js .example-card,
.no-js .pricing-card,
.no-js .faq-item {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Glow Effects
   ======================================== */
@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 167, 38, 0.2);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 167, 38, 0.4);
    }
}

.glow-animation {
    animation: glow 2s ease-in-out infinite alternate;
}

/* ========================================
   Pricing Toggle Buttons
   ======================================== */
.pricing-toggle-btn {
    cursor: pointer;
}

.pricing-toggle-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    position: fixed;
    inset: 0;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Hero Section Specifics
   ======================================== */
#hero {
    background: linear-gradient(135deg, var(--light) 0%, var(--light-secondary) 100%);
}

/* ========================================
   Light Theme Specific Overrides
   ======================================== */
.bg-light {
    background-color: var(--light);
}

.bg-light-secondary {
    background-color: var(--light-secondary);
}

.bg-light-tertiary {
    background-color: var(--light-tertiary);
}

/* Text color utilities */
.text-gray-900 {
    color: var(--text-primary);
}

.text-gray-600 {
    color: var(--text-secondary);
}

.text-gray-500 {
    color: var(--text-muted);
}
