/* ===================================================================
   CalTrako Product Website - Stylesheet
   Modern, responsive design with brand colors
   =================================================================== */

/* Root Variables - CalTrako Brand Colors */
:root {
    --color-teal: #1EB89E;
    --color-teal-light: #5EEACA;
    --color-coral: #F06060;
    --color-coral-light: #FF9B8B;
    --color-amber: #E8A808;
    --color-amber-light: #FDE68A;
    --color-navy: #1A2540;
    --color-navy-dark: #141B2D;
    --color-grey-light: #F5F5F5;
    --color-grey-medium: #E0E0E0;
    --color-text-primary: #2C3E50;
    --color-text-secondary: #7F8C8D;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--color-teal);
    transition: var(--transition);
}

a:hover {
    color: var(--color-teal-light);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Navigation Bar */
.navbar {
    background: var(--color-navy);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo a {
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

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

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

.btn-contact {
    background: var(--color-teal);
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
    color: white !important;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background: var(--color-teal-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(30, 184, 158, 0.1) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-teal-light);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-teal);
    color: white;
}

.btn-primary:hover {
    background: var(--color-teal-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--color-navy);
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: white;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.phone-screen {
    background: var(--color-navy);
    height: 100%;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.app-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preview-bar {
    height: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.preview-bar.teal {
    width: 80%;
    background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
}

.preview-bar.coral {
    width: 60%;
    background: linear-gradient(90deg, var(--color-coral) 0%, var(--color-coral-light) 100%);
}

.preview-bar.amber {
    width: 40%;
    background: linear-gradient(90deg, var(--color-amber) 0%, var(--color-amber-light) 100%);
}

.preview-bar::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    background: var(--color-grey-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* How It Works */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.step p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: white;
    text-align: center;
}

.download .section-title {
    color: white;
}

.download .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.store-badge {
    transition: var(--transition);
}

.store-badge:hover {
    transform: scale(1.05);
}

.download-note {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
}

.footer-section a:hover {
    color: var(--color-teal-light);
}

.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Legal Pages */
.legal-page {
    padding: 2rem 0 4rem;
    background: var(--color-grey-light);
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-grey-medium);
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    margin: 1.5rem 0 1rem;
}

.legal-content ul, .legal-content ol {
    margin: 1rem 0 1rem 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.legal-content strong {
    color: var(--color-navy);
}

.contact-info {
    background: var(--color-grey-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.response-time {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 1rem;
}

.important-notice {
    background: #FFF3CD;
    border-left: 4px solid #FFA000;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.summary {
    background: var(--color-grey-light);
    padding: 2rem !important;
    border-radius: var(--border-radius);
}

.summary-box h3 {
    color: var(--color-teal);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.acceptance {
    text-align: center;
    background: var(--color-grey-light);
    padding: 2rem !important;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}
