/* ===================================
   JDSTRIDE COMPONENT SYSTEM v7.0
   Single file containing all reusable components
   Loads on EVERY page for consistency
   =================================== */

/* ===================================
   BASE - CSS VARIABLES & RESET
   v7.0 Component Architecture
   =================================== */

:root {
    /* Colors - Primary */
    --color-primary-navy: #0A1628;
    --color-white: #FFFFFF;
    --color-light-bg: #F8F7F5;
    --color-warm-grey: #8B8680;
    --color-border-subtle: #E5E3DF;
    
    /* Colors - Accent */
    --color-accent-orange: #FF6B35;
    --color-accent-blue: #2E5BFF;
    --color-success: #10b981;
    --color-danger: #ef4444;
    
    /* Typography */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-section: 80px;
    --spacing-container: 60px;
    --spacing-element: 40px;
    
    /* Layout */
    --container-max-width: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    
    /* Effects */
    --transition-base: 0.3s ease;
    --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary-navy);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

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

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* ===================================
   TYPOGRAPHY COMPONENTS
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-primary-navy);
}

h1 {
    font-size: 3.5rem;
    font-weight: 400;
}

h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.text-large {
    font-size: 1.25rem;
}

.text-small {
    font-size: 0.875rem;
}

.highlight {
    color: var(--color-accent-orange);
    font-style: italic;
}

/* Responsive Typography */
@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ===================================
   BUTTON COMPONENTS
   =================================== */

/* Base Button */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-family: var(--font-sans);
}

/* Primary Button (Blue) */
.btn-primary {
    background: var(--color-accent-blue);
    color: var(--color-white);
    border-color: var(--color-accent-blue);
}

.btn-primary:hover {
    background: #1e4bef;
    border-color: #1e4bef;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(46, 91, 255, 0.3);
}

/* Orange CTA Button */
.btn-orange {
    background: var(--color-accent-orange);
    color: var(--color-white);
    border-color: var(--color-accent-orange);
}

.btn-orange:hover {
    background: #e55a28;
    border-color: #e55a28;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Outline Button (for dark backgrounds) */
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

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

/* Dark Outline Button (for light backgrounds) */
.btn-outline-dark {
    background: transparent;
    color: var(--color-primary-navy);
    border-color: var(--color-border-subtle);
}

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

/* Button Sizes */
.btn-small {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Button Full Width */
.btn-block {
    display: block;
    width: 100%;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 640px) {
    .btn {
        padding: 12px 24px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* ===================================
   HERO COMPONENTS
   =================================== */

/* Base Hero */
.hero {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 24px;
    color: inherit;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: inherit;
    opacity: 0.9;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 20px;
}

.hero-note {
    font-size: 0.875rem;
    margin-top: 20px;
    opacity: 0.8;
}

/* Hero Variants - Dark */
.hero-dark {
    background: var(--color-primary-navy);
    color: var(--color-white);
}

.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 91, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    pointer-events: none;
}

.hero-dark .hero-eyebrow {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Hero Variants - Light */
.hero-light {
    background: var(--color-light-bg);
    color: var(--color-primary-navy);
}

.hero-light .hero-eyebrow {
    background: var(--color-white);
    color: var(--color-primary-navy);
}

/* Hero Variants - White */
.hero-white {
    background: var(--color-white);
    color: var(--color-primary-navy);
}

.hero-white .hero-eyebrow {
    background: var(--color-light-bg);
    color: var(--color-primary-navy);
}

/* Hero Variants - Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0A1628 0%, #1a2942 100%);
    color: var(--color-white);
}

/* Hero Left-Aligned */
.hero-left .hero-content {
    text-align: left;
    margin: 0;
    max-width: 700px;
}

/* Hero Split Layout */
.hero-split {
    padding: 80px 0;
}

.hero-split .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-split .hero-content {
    text-align: left;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-split .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-split .hero-content {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 60px 0;
    }
}

/* ===================================
   SECTION COMPONENTS
   =================================== */

/* Base Section */
.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-blue);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-warm-grey);
    margin-top: 16px;
}

/* Section Backgrounds */
.section-light {
    background: var(--color-light-bg);
}

.section-white {
    background: var(--color-white);
}

.section-dark {
    background: var(--color-primary-navy);
    color: var(--color-white);
}

.section-dark .section-eyebrow {
    color: var(--color-accent-orange);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

/* Section Spacing Variants */
.section-small {
    padding: 60px 0;
}

.section-large {
    padding: 120px 0;
}

/* Split Section */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-reverse {
    direction: rtl;
}

.split-reverse > * {
    direction: ltr;
}

/* Responsive */
@media (max-width: 968px) {
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-reverse {
        direction: ltr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 40px 0;
    }
}

/* ===================================
   CARD COMPONENTS
   =================================== */

/* Base Card */
.card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition-base);
    border: 1px solid var(--color-border-subtle);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card h3 {
    margin-bottom: 16px;
}

.card p {
    color: var(--color-warm-grey);
    margin-bottom: 20px;
}

/* Feature Card */
.feature-card {
    text-align: center;
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-light-bg);
    border-radius: 50%;
    font-size: 2rem;
}

/* Service Card */
.service-card {
    border-left: 4px solid var(--color-accent-blue);
}

.service-card:hover {
    border-left-color: var(--color-accent-orange);
}

/* Pricing Card */
.pricing-card {
    position: relative;
    padding: 50px 40px;
    text-align: center;
}

.pricing-card-header {
    margin-bottom: 30px;
}

.pricing-card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-card-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-bottom: 10px;
}

.pricing-card-price span {
    font-size: 1.25rem;
    color: var(--color-warm-grey);
}

.pricing-card-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.pricing-card-features li:last-child {
    border-bottom: none;
}

/* Highlighted Pricing Card */
.pricing-card-featured {
    border: 2px solid var(--color-accent-blue);
    transform: scale(1.05);
}

.pricing-card-featured .pricing-card-price {
    color: var(--color-accent-orange);
}

/* Testimonial Card */
.testimonial-card {
    background: var(--color-light-bg);
    border-left: 4px solid var(--color-accent-blue);
}

.testimonial-card-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card-author {
    font-weight: 600;
    color: var(--color-accent-blue);
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: 30px;
}

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

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

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

/* Responsive */
@media (max-width: 968px) {
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .card {
        padding: 30px;
    }
    
    .card-grid-2,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   GRID & LAYOUT COMPONENTS
   =================================== */

/* Basic Grid */
.grid {
    display: grid;
    gap: 30px;
}

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

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

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

/* Auto-fit Grid (responsive by default) */
.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Gap Variants */
.gap-small {
    gap: 20px;
}

.gap-large {
    gap: 60px;
}

/* Flex Layouts */
.flex {
    display: flex;
    gap: 30px;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

/* Spacing Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 20px; }
.mt-2 { margin-top: 40px; }
.mt-3 { margin-top: 60px; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 20px; }
.mb-2 { margin-bottom: 40px; }
.mb-3 { margin-bottom: 60px; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 20px; }
.pt-2 { padding-top: 40px; }
.pt-3 { padding-top: 60px; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 20px; }
.pb-2 { padding-bottom: 40px; }
.pb-3 { padding-bottom: 60px; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Responsive */
@media (max-width: 968px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flex {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FORM COMPONENTS
   =================================== */

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary-navy);
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: var(--transition-base);
    background: var(--color-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(46, 91, 255, 0.1);
}

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

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.form-check input {
    width: auto;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Helper Text */
.form-help {
    font-size: 0.875rem;
    color: var(--color-warm-grey);
    margin-top: 8px;
}

.form-error {
    font-size: 0.875rem;
    color: var(--color-danger);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

