/* ========================================
   PPH Bio - Sustainable Keycards
   Modern, Clean, Professional CSS
   ======================================== */

/* CSS Variables */
:root {
    /* Brand Colors */
    --green-500: #53b95f;
    --green-600: #4CAF50;
    --green-700: #3e8e41;
    --green-800: #2d6a30;
    --green-900: #1a4d1c;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #53b95f 0%, #3e8e41 100%);
    --gradient-hero: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    --gradient-dark: linear-gradient(135deg, #1a4d1c 0%, #111827 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-green: 0 4px 14px rgba(83, 185, 95, 0.4);

    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-max: 1200px;
    --container-padding: clamp(1rem, 4vw, 2rem);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83, 185, 95, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--green-500);
    color: var(--green-600);
}

.btn-white {
    background: var(--white);
    color: var(--green-700);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
}

.nav-links a:hover {
    color: var(--green-600);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all var(--transition-base);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-base);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-md);
}

.mobile-menu a:hover {
    background: var(--gray-50);
    color: var(--green-600);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(80px + 4rem) 0 4rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 160px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(83, 185, 95, 0.1);
    border: 1px solid rgba(83, 185, 95, 0.3);
    border-radius: var(--radius-full);
    color: var(--green-700);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.125rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--green-600);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-showcase {
    position: relative;
    perspective: 1000px;
}

.keycard {
    width: 320px;
    height: 200px;
    background: linear-gradient(145deg, #ffffff 0%, #e8f5e9 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: rotateY(-5deg) rotateX(5deg);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-5deg) rotateX(5deg) translateY(-10px); }
}

.keycard-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 6px;
}

.keycard-logo img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.keycard-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.2em;
}

.eco-particles {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: -10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; right: -10%; animation-delay: 1s; }
.particle:nth-child(3) { bottom: 10%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 20%; right: 10%; animation-delay: 3s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-15px) rotate(10deg); opacity: 1; }
}

.hero-bg-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,176C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
}

/* Section Styling */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-header.light h2,
.section-header.light p {
    color: var(--white);
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(83, 185, 95, 0.1);
    color: var(--green-600);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* Benefits Section */
.benefits {
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

/* Compatibility Section */
.compatibility {
    background: var(--gradient-dark);
    color: var(--white);
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.compat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
}

.compat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.compat-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.compat-check {
    font-size: 1.5rem;
    color: var(--green-500);
}

.compat-card-more {
    background: transparent;
    border-style: dashed;
}

.compat-card-more .compat-check {
    color: var(--gray-400);
}

.compat-cta {
    text-align: center;
    color: var(--gray-300);
}

.compat-cta a {
    color: var(--green-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.compat-cta a:hover {
    color: var(--green-400);
}

/* Sustainability Section */
.sustainability {
    background: var(--gray-50);
}

.sustain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sustain-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.sustain-content > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.sustain-list {
    list-style: none;
    margin-bottom: 2rem;
}

.sustain-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--green-500);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cert-icon {
    font-size: 1.25rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 3px solid var(--gray-300);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.timeline-item.active .timeline-dot {
    background: var(--green-500);
    border-color: var(--green-500);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-time {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--green-600);
}

.timeline-text {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: var(--section-padding) 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    max-width: 500px;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1) brightness(0.8);
}

.footer-brand p {
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--green-500);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 0;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

    .sustain-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding-top: calc(70px + 2rem);
    }

    .keycard {
        width: 280px;
        height: 175px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .compat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-content p {
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .keycard {
        width: 240px;
        height: 150px;
        padding: 1rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .compat-card {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu,
    .hero-visual,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    section {
        page-break-inside: avoid;
    }
}
