/* Thai-inspired design - Variables and base styles */
:root {
    --thai-gold: #D4AF37;     /* Traditional Thai gold */
    --thai-red: #9D2235;      /* Traditional Thai red */
    --thai-blue: #27408B;     /* Royal Thai blue */
    --off-white: #F8F5E6;     /* Soft off-white for background */
    --white: #FFFFFF;
    --light-grey: #f9f9f9;
    --grey: #E6E6E6;
    --dark-grey: #333333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 0;              /* Thai design often uses sharp corners */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sarabun', 'Prompt', sans-serif;  /* Thai fonts */
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--off-white);
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--thai-red);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--thai-gold);
}

/* Thai pattern background */
.thai-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--thai-gold) 1px, transparent 1px),
        linear-gradient(45deg, transparent 49%, var(--thai-gold) 49%, var(--thai-gold) 51%, transparent 51%);
    background-size: 30px 30px, 20px 20px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Header styles */
.site-header {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--thai-gold);
}

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

.site-logo {
    height: 60px;
    width: auto;
}

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

.menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu a {
    color: var(--thai-red);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--thai-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.menu a:hover::after,
.menu a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--thai-red);
    margin: 6px auto;
    transition: var(--transition);
}

/* Hero section */
.hero-section {
    padding: 8rem 0 2rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(157,34,53,0.05) 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-svg {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 5px 15px rgba(157, 34, 53, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-cta {
    margin-top: 2rem;
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
}

/* Buttons */
.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background-color: var(--thai-red);
    color: var(--white);
    border: 2px solid var(--thai-red);
    box-shadow: 0 5px 15px rgba(157, 34, 53, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(157, 34, 53, 0.5);
    color: var(--white);
    background-color: var(--thai-blue);
    border-color: var(--thai-blue);
}

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

.secondary-btn:hover {
    background-color: var(--thai-gold);
    color: var(--dark-grey);
    transform: translateY(-3px);
    border-color: var(--thai-gold);
    box-shadow: var(--shadow);
}

/* Benefits section */
.benefits-section {
    padding: 5rem 0;
    background-color: var(--light-grey);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--thai-red);
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--thai-gold);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

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

.benefit-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--grey);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 98%, var(--thai-gold) 98%),
                linear-gradient(135deg, transparent 98%, var(--thai-gold) 98%),
                linear-gradient(225deg, transparent 98%, var(--thai-gold) 98%),
                linear-gradient(315deg, transparent 98%, var(--thai-gold) 98%);
    pointer-events: none;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--thai-gold);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    color: var(--thai-blue);
    margin-bottom: 1rem;
}

/* How it works section */
.how-it-works-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.steps {
    max-width: 900px;
    margin: 3rem auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-number {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.step-content {
    padding: 1.5rem;
    background-color: var(--light-grey);
    border-left: 3px solid var(--thai-gold);
    flex-grow: 1;
}

.step-content h3 {
    color: var(--thai-red);
    margin-bottom: 0.5rem;
}

.step-connector {
    margin: 0 0 1rem 25px;
    height: 30px;
}

.center-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonial section */
.testimonial-section {
    padding: 5rem 0;
    background-color: var(--light-grey);
    position: relative;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--grey);
}

.thai-decorative-element {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: linear-gradient(45deg, var(--thai-gold) 45%, transparent 45%),
                      linear-gradient(135deg, var(--thai-gold) 45%, transparent 45%),
                      linear-gradient(225deg, var(--thai-gold) 45%, transparent 45%),
                      linear-gradient(315deg, var(--thai-gold) 45%, transparent 45%);
}

.top-left {
    top: 0;
    left: 0;
}

.top-right {
    top: 0;
    right: 0;
    transform: rotate(90deg);
}

.bottom-left {
    bottom: 0;
    left: 0;
    transform: rotate(270deg);
}

.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    padding-left: 1.5rem;
    border-left: 3px solid var(--thai-red);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--grey);
    padding-top: 1.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--thai-blue);
    font-size: 1.1rem;
}

.author-info span {
    font-size: 0.9rem;
    color: #666;
}

.stars {
    color: var(--thai-gold);
    margin-top: 0.3rem;
}

/* Footer */
.site-footer {
    padding: 5rem 0 2rem;
    background-color: var(--thai-blue);
    color: var(--white);
    position: relative;
}

.thai-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--thai-red) 0px,
        var(--thai-red) 20px,
        var(--thai-gold) 20px,
        var(--thai-gold) 40px
    );
}

.thai-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--thai-gold) 0px,
        var(--thai-gold) 20px,
        var(--thai-red) 20px,
        var(--thai-red) 40px
    );
}

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

.footer-logo {
    display: flex;
    justify-content: center;
}

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

.footer-links h3,
.footer-contact h3 {
    color: var(--thai-gold);
    border-bottom: 2px solid var(--thai-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--thai-gold);
    transform: translateX(5px);
}

.footer-contact p {
    color: var(--white);
    opacity: 0.8;
}

.footer-contact a {
    color: var(--thai-gold);
    display: inline-block;
    margin-top: 0.5rem;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

.keywords {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--thai-gold);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        text-align: center;
        order: 2;
    }
    
    .hero-graphic {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin: 0 0 1rem;
    }
    
    .step-content {
        border-left: none;
        border-top: 3px solid var(--thai-gold);
    }
    
    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
        z-index: 1000;
    }
    
    .menu.visible {
        right: 0;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .quote-icon {
        display: none;
    }
    
    .testimonial-text {
        padding-left: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h3,
    .footer-contact h3 {
        display: block;
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .thai-decorative-element {
        width: 20px;
        height: 20px;
    }
}
