/* ===================================
   AquaPure Landing Page - Custom Styles
   Apple-inspired design system
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-black: #000000;
    --color-black-soft: #111111;
    --color-white: #FFFFFF;
    --color-gray-apple: #F5F5F7;
    --color-gray-text: #86868B;
    --color-gold: #D4AF37;
    
    /* Typography */
    --font-display: 'SF Pro Display', 'Inter', system-ui, sans-serif;
    --font-text: 'SF Pro Text', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-section: 120px;
    --spacing-element: 60px;
    
    /* Transitions */
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.feature-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-gray-text);
    margin-bottom: 20px;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--color-black);
    transition: opacity var(--transition-smooth);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Buttons & CTAs */
.cta-button {
    background: var(--color-gold);
    color: var(--color-black);
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.cta-button-large {
    background: var(--color-gold);
    color: var(--color-black);
    padding: 18px 48px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

/* Hero Section */
.hero-bg {
    z-index: 0;
}

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

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

/* Feature Cards */
.feature-card {
    text-align: center;
    transition: transform var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-image-container {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-gray-apple);
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.feature-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
    color: var(--color-gray-text);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

/* Specs Table */
.specs-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-gray-apple);
    transition: background var(--transition-smooth);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: var(--color-gray-apple);
}

.spec-label {
    font-weight: 600;
    color: var(--color-black);
}

.spec-value {
    color: var(--color-gray-text);
}

@media (max-width: 768px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 24px;
    }
}

/* Testimonials Carousel */
.testimonial-carousel {
    position: relative;
    min-height: 300px;
}

.testimonial-track {
    position: relative;
    width: 100%;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-content {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    font-style: italic;
    color: var(--color-black);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-black);
    font-size: 18px;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-black);
}

.author-location {
    font-size: 14px;
    color: var(--color-gray-text);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-smooth);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-gold);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

@media (max-width: 768px) {
    .carousel-prev {
        left: 0;
    }
    .carousel-next {
        right: 0;
    }
    .testimonial-content {
        padding: 32px 24px;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray-apple);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.dot.active {
    background: var(--color-gold);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--color-gold);
    opacity: 0.7;
}

/* FAQ Accordion */
.faq-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-item {
    border-bottom: 1px solid var(--color-gray-apple);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 28px 32px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-smooth);
}

.faq-question:hover {
    background: var(--color-gray-apple);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 32px 28px 32px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-text);
}

/* Price Box */
.price-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 32px 48px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer-link {
    color: var(--color-black);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

.footer-link:hover {
    color: var(--color-gold);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in.visible {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Utility Classes */
.text-gold {
    color: var(--color-gold);
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .carousel-btn,
    .carousel-dots,
    footer {
        display: none;
    }
}
