/* PinUp Recovery Lab - Calm Wellness Theme */
/* Design: Modern Minimalist with Tailwind CSS + AOS */
/* Color Mood: Calm - Cool pastels (sage green, soft blue, lavender) */

:root {
    --primary-sage: #8FBC8F;
    --primary-sage-dark: #6B8E6B;
    --primary-sage-light: #A8D8A8;
    --accent-lavender: #9B8AA6;
    --accent-blue: #87CEEB;
    --accent-blue-light: #B0E0E6;
    --text-dark: #2D3748;
    --text-muted: #4A5568;
    --text-light: #718096;
    --bg-light: #F7FAF7;
    --bg-white: #FFFFFF;
    --bg-gradient-start: #E8F5E9;
    --bg-gradient-end: #E3F2FD;
    --border-soft: #E2E8F0;
    --shadow-soft: rgba(143, 188, 143, 0.15);
    --shadow-medium: rgba(143, 188, 143, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-sage-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-sage-dark);
    background: var(--bg-gradient-start);
}

@media (max-width: 640px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .nav-menu {
        gap: 0.25rem;
    }

    .nav-menu a {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 1.5rem 3rem;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-sage-dark) 0%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: left;
}

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

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

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-screen {
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9/19;
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.device-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .hero-content h1 {
        text-align: center !important;
    }

    .hero-content p {
        text-align: left !important;
    }

    .hero-buttons {
        justify-content: center;
    }

    .device-mockup {
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .device-mockup {
        max-width: 180px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-sage) 0%, var(--primary-sage-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-sage-dark);
    border: 2px solid var(--primary-sage);
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--bg-gradient-start);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
}

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

.section-gradient {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Screenshots Carousel */
.screenshots-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
    overflow: hidden;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.carousel-device {
    max-width: 200px;
    position: relative;
}

.carousel-device .device-frame {
    padding: 8px;
    border-radius: 28px;
}

.carousel-device .device-screen {
    border-radius: 22px;
}

.carousel-device .device-notch {
    width: 60px;
    height: 18px;
    top: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--primary-sage);
    color: var(--primary-sage-dark);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.carousel-btn:hover {
    background: var(--primary-sage);
    color: white;
}

.carousel-btn.prev {
    left: -22px;
}

.carousel-btn.next {
    right: -22px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-soft);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-sage);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .screenshots-section {
        max-height: 400px;
        padding: 2rem 1rem;
    }

    .carousel-device {
        max-width: 160px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }
}

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

.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid var(--border-soft);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-medium);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Alternating Content Blocks */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

.content-block-text {
    text-align: left;
}

.content-block-text h3 {
    margin-bottom: 1rem;
    color: var(--primary-sage-dark);
}

.content-block-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-block-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-block-text li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-muted);
}

.content-block-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-sage);
    font-weight: 700;
}

.content-block-image {
    display: flex;
    justify-content: center;
}

.content-block-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-soft);
}

@media (max-width: 768px) {
    .content-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-block.reverse {
        direction: ltr;
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-sage) 0%, var(--accent-lavender) 100%);
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-sage-dark);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-sage-light);
}

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

/* Privacy & Terms Pages */
.legal-page {
    padding-top: 6rem;
    min-height: 100vh;
    background: var(--bg-light);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px var(--shadow-soft);
    text-align: left;
}

.legal-content h1 {
    margin-bottom: 0.5rem;
    color: var(--primary-sage-dark);
}

.legal-content .date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    display: block;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

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

.legal-content a {
    color: var(--primary-sage-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-sage-light);
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-sage);
    border-bottom-color: var(--primary-sage);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 20px var(--shadow-medium);
    z-index: 9999;
    display: none;
}

.privacy-accept-container.visible {
    display: block;
}

.privacy-accept-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.privacy-accept-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.privacy-accept-btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-sage) 0%, var(--primary-sage-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-height: 52px;
}

.privacy-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Contact Page */
.contact-page {
    padding-top: 6rem;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.contact-card h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-sage-dark);
}

.contact-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-soft);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-sage);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px var(--shadow-soft);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input[type="file"] {
    padding: 0.75rem;
    background: var(--bg-white);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-sage) 0%, var(--primary-sage-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: var(--bg-gradient-start);
    border-radius: 12px;
    display: none;
}

.form-success.visible {
    display: block;
}

.form-success h3 {
    color: var(--primary-sage-dark);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .contact-card {
        padding: 2rem 1.5rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Progressive Image Loading */
.img-loading {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.img-loaded {
    filter: blur(0);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
