/**
 * Main stylesheet for bbwaiporn.site
 * Features a teal/dark blue color scheme with responsive design
 */

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

:root {
    /* Primary color palette */
    --primary: #1abc9c;
    --primary-dark: #16a085;
    --secondary: #2c3e50;
    --secondary-light: #34495e;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Nunito', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

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

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: var(--spacing-md);
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.highlight {
    color: var(--primary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.primary-btn {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(22, 160, 133, 0.2);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background-color: rgba(26, 188, 156, 0.1);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

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

/* Header and Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    margin-right: var(--spacing-lg);
}

.nav-menu li {
    margin: 0 var(--spacing-sm);
}

.nav-link {
    font-weight: 600;
    color: var(--secondary);
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

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

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.feature-desc {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-svg {
    width: 100%;
    height: auto;
}

.gallery-cta {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* How It Works Section */
.how-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
}

.how-section .section-title,
.how-section .section-subtitle {
    color: var(--white);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: var(--spacing-lg) 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    width: 30%;
    min-width: 280px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.step-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.how-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

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

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-md);
    background-color: var(--light);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon:before,
.faq-icon:after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.faq-icon:before {
    width: 2px;
    height: 16px;
    top: 2px;
    left: 9px;
}

.faq-icon:after {
    width: 16px;
    height: 2px;
    top: 9px;
    left: 2px;
}

.faq-item.active .faq-icon:before {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: var(--spacing-md);
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-title .highlight {
    color: var(--white);
    text-decoration: underline;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .primary-btn {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-buttons .primary-btn:hover {
    background-color: transparent;
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    flex: 1;
    max-width: 300px;
    margin-right: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: var(--spacing-sm);
    color: var(--white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    margin-right: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    min-width: 120px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--body-font);
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries for Responsive Design */

/* Large Devices */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

/* Medium Devices */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-visual {
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 500px;
    }
}

/* Small Devices */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-medium);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 5;
    }
    
    .nav-wrapper.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .nav-menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-card, .gallery-item {
        margin-bottom: var(--spacing-md);
    }
    
    .features-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta, .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin: 0 auto var(--spacing-lg);
    }
    
    .footer-links {
        justify-content: space-around;
        width: 100%;
    }
    
    .footer-column {
        margin-right: 0;
        text-align: center;
        flex: 1;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slideUp {
    animation: slideUp 0.8s ease forwards;
}

.feature-card, .gallery-item, .faq-item, .step {
    opacity: 0;
}

.feature-card.animate, .gallery-item.animate, .faq-item.animate, .step.animate {
    animation: slideUp 0.8s ease forwards;
}

/* Dark mode media query - for future enhancement */
@media (prefers-color-scheme: dark) {
    /* This would be implemented in a future version */
}
