/* ===================
   DESIGN SYSTEM
=================== */
:root {
    --primary-gold: #f4c430;
    --primary-gold-hover: #e6b800;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================
   BASE STYLES
=================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===================
   UTILITY CLASSES
=================== */
.section-padding { padding: 80px 24px; }
.section-padding-large { padding: 100px 24px; }
.bg-white { background: white; }
.bg-light { background: var(--background-light); }
.text-center { text-align: center; }
.mb-large { margin-bottom: 48px; }
.mb-medium { margin-bottom: 32px; }
.mb-small { margin-bottom: 16px; }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 800px; margin: 0 auto; }

/* ===================
   SKIP LINK
=================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-gold);
    color: var(--text-dark);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* ===================
   HEADER
=================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.header.scrolled .logo-light {
    display: none;
}

.header.scrolled .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-gold);
    outline: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* ===================
   BUTTONS
=================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: var(--text-dark);
}

.btn--primary:hover,
.btn--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
    outline: none;
}

.btn--secondary {
    background: #2d3748; /* Navy background */
    color: white;
    border: 2px solid #2d3748; /* Navy border */
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: var(--primary-gold); /* Gold on hover */
    color: var(--text-dark);
    border-color: var(--primary-gold); /* Gold border on hover */
    outline: none;
}

.btn--large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn--full-width {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    color: var(--text-dark);
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
    outline: none;
}

/* ===================
   MOBILE MENU
=================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    transition: var(--transition);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--text-dark);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    padding: 80px 24px 24px;
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin: 24px 0;
}

.mobile-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

/* ===================
   HERO SECTION
=================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), 
                url('/static/images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 strong {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================
   TRUST INDICATORS
=================== */
.trust-indicators {
    padding: 60px 24px;
    background: white;
    text-align: center;
}

.trust-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.trust-item {
    padding: 24px;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.trust-label {
    color: var(--text-medium);
    font-weight: 500;
}

/* ===================
   SECTIONS
=================== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About section specific header styling */
#about .section-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}

#about .section-title {
    margin-bottom: 8px;
    position: relative;
}

#about .section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    border-radius: 2px;
}

#about .section-subtitle {
    margin: 16px 0 0 0;
    max-width: none;
    font-size: 1.25rem;
    font-weight: 400;
}

/* ===================
   ABOUT SECTION
=================== */
.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 56px;
}

.about-left-column {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-hover));
    border-radius: calc(var(--border-radius-lg) + 8px);
    z-index: -1;
    opacity: 0.1;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-photo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Consistent content sections */
.content-section {
    padding: 28px;
    background: rgba(248, 250, 252, 0.6);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition);
}

.content-section:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateX(4px);
}

.content-section h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
}

.content-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.content-section p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Intro section without background for variety */
.about-intro {
    padding: 0 0 24px 0;
    background: none;
    border: none;
    border-bottom: 2px solid #f1f5f9;
}

.about-intro:hover {
    transform: none;
    background: none;
}

.about-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
    font-weight: 400;
}

/* Bootcamp section with consistent styling */
.about-bootcamp {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
    padding: 32px;
    background: rgba(248, 250, 252, 0.6);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition);
}

.about-bootcamp:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateX(4px);
}

.bootcamp-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.bootcamp-logo {
    height: 80px;
    width: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.bootcamp-title {
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
}

.bootcamp-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.bootcamp-text p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* ===================
   SERVICES
=================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Individual service images */
.service-card:nth-child(1) .service-image {
    background-image: url('/static/images/katy-db-row.jpg');
}

.service-card:nth-child(2) .service-image {
    background-image: url('/static/images/katy-stretch.jpg');
}

.service-card:nth-child(3) .service-image {
    background-image: url('/static/images/mealplan.png');
}

.service-image::before {
    content: '📸';
    font-size: 48px;
    opacity: 0.3;
}

.service-content {
    padding: 32px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.service-price {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.125rem;
}

.service-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    color: var(--text-medium);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

/* ===================
   FORMS
=================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    background: white;
    cursor: pointer;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-message--success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.form-message--error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* ===================
   CTA SECTIONS
=================== */
.cta-section {
    background: linear-gradient(135deg, var(--text-dark), #2d3748);
    color: white;
    padding: 80px 24px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ===================
   FOOTER
=================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-gold);
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #9ca3af;
}

/* ===================
   ANIMATIONS
=================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================
   RESPONSIVE DESIGN
=================== */
@media (max-width: 768px) {
    .nav-links,
    .cta-button {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 60px 16px;
    }

    .section-padding-large {
        padding: 80px 16px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        gap: 24px;
    }

    .content-section h3,
    .bootcamp-title {
        font-size: 1.25rem;
    }

    #about .section-header {
        text-align: center;
    }

    #about .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .bootcamp-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .bootcamp-logo {
        height: 100px;
        width: 100px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 16px;
    }

    .content-section {
        padding: 20px;
    }

    .about-bootcamp {
        padding: 24px;
    }
}

/* ===================
   ACCESSIBILITY
=================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}
