/* CSS Variables & Reset */
:root {
    --primary-color: #3660c9;
    --secondary-color: #38b6ff;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-grey: #f4f6f8;
    --border-color: #e0e0e0;
    --success-color: #28a745;

    --font-main: 'Sarabun', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    padding-bottom: 100px;
    /* Space for mobile sticky widget (reduced) */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    /* Changed from text-color to Primary as per brief (Headlines: #3660c9 or Black 90%) - chose Blue for impact */
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #2a4fa8;
    border-color: #2a4fa8;
}

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

.btn-outline:hover {
    background-color: var(--light-grey);
}

.btn-line {
    background-color: #06C755;
    /* Line Green */
    color: #fff;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
}

.desktop-nav {
    display: none;
}

.header-cta {
    display: none;
}

/* Hamburger Menu Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1100;
    padding: 80px 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav-cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: none !important;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .desktop-nav a {
        font-weight: 500;
        color: var(--text-color);
    }

    .desktop-nav a:hover {
        color: var(--primary-color);
    }

    .header-cta {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .mobile-nav,
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Sticky Widget */
.sticky-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.doctor-badge {
    position: absolute;
    top: -40px;
    left: 20px;
    display: flex;
    align-items: flex-end;
}

.doctor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.doctor-status {
    background: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--success-color);
    box-shadow: var(--shadow-sm);
    margin-left: -20px;
    margin-bottom: 10px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    margin-right: 4px;
}

.widget-content {
    margin-left: 90px;
    /* Space for doctor image */
    margin-bottom: 10px;
}

.widget-content h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.highlight-text-secondary {
    font-size: 0.8rem;
    color: #666;
}

.widget-actions {
    display: flex;
    gap: 10px;
}

.widget-actions .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.widget-social {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.45rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #fff;
}

.btn-facebook {
    background: #1877F2;
}

.btn-facebook:hover {
    background: #0d65d9;
    color: #fff;
    transform: translateY(-1px);
}

.btn-tiktok {
    background: #010101;
}

.btn-tiktok:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
}

.widget-actions {
    flex-direction: column;
}

/* Compact mobile sticky widget */
@media (max-width: 767px) {
    .sticky-widget {
        padding: 0.6rem 1rem;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .doctor-badge {
        display: none;
    }

    .widget-content {
        margin-left: 0;
        margin-bottom: 6px;
    }

    .widget-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .highlight-text {
        font-size: 0.8rem;
    }

    .highlight-text-secondary {
        display: none;
    }

    .widget-actions .btn {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 992px) {
    .sticky-widget {
        bottom: auto;
        top: 100px;
        left: auto;
        right: 20px;
        width: 340px;
        /* Increased from 280px */
        border-radius: 15px;
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        /* Increased from 1.2rem */
    }

    .doctor-badge {
        position: relative;
        top: auto;
        left: auto;
        justify-content: center;
        margin-bottom: 0.8rem;
        flex-direction: column;
        align-items: center;
    }

    .doctor-img {
        width: 60px;
        height: 60px;
    }

    .doctor-status {
        margin-left: 0;
        margin-top: -12px;
        z-index: 10;
        font-size: 0.75rem;
    }

    .widget-content {
        margin-left: 0;
        text-align: center;
        margin-bottom: 1rem;
    }

    .widget-content h3 {
        font-size: 1rem;
    }

    .highlight-text {
        font-size: 0.8rem;
    }

    .highlight-text-secondary {
        font-size: 0.75rem;
    }

    .widget-actions {
        flex-direction: column;
    }

    .widget-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    /* Give main content room so widget doesn't overlap */
    .hero-section .container,
    .pain-points-section .container,
    .why-us-section .container,
    .services-section .container,
    .reviews-section .container {
        padding-right: 320px;
    }
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-md) 0;
    text-align: center;
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
}

.hero-image {
    margin-bottom: var(--spacing-sm);
}

.hero-image img {
    border-radius: 15px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

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

.hero-sub {
    color: #666;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.hero-social-proof {
    display: inline-block;
    margin-top: var(--spacing-md);
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.hero-social-proof:hover {
    color: #2a4fa8;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 768px) {
    .hero-section .container {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: var(--spacing-lg);
        text-align: left;
    }

    .hero-image {
        flex: 1;
        margin-bottom: 0;
    }

    .hero-content {
        flex: 1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn-large {
        width: auto;
    }
}

/* Pain Points */
.pain-points-section {
    padding: var(--spacing-lg) 0;
    background-color: #fff;
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.pain-card {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pain-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.pain-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

@media (min-width: 600px) {
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .pain-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Why Us Section */
.why-us-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--light-grey);
}

#why-us .section-title {
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* max-width removed to allow full width for long text */
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.why-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    background: #eef4ff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .why-item {
        flex-direction: row;
        text-align: left;
        gap: var(--spacing-md);
    }

    /* Zigzag effect implementation if desired */
    /* For simplicity in this iteration, I'm keeping a clean list layout as it's often better for readability on mobile.
       But here's a simple grid for desktop */
    .why-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--spacing-md);
    }

    .why-item {
        height: 100%;
        flex-direction: column;
        text-align: center;
    }
}


/* Services & Pricing */
.services-section {
    padding: var(--spacing-lg) 0;
}

.pricing-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.pricing-card {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: var(--spacing-md);
    text-align: center;
    background: #fff;
    position: relative;
}

.pricing-card.recommended {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.pricing-desc {
    color: #666;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.pricing-card ul {
    text-align: left;
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.pricing-card ul li {
    margin-bottom: 0.5rem;
}

.pricing-card ul li i {
    color: var(--success-color);
    margin-right: 10px;
}

.payment-banner {
    text-align: center;
    background: #f9f9f9;
    padding: var(--spacing-sm);
    border-radius: 8px;
    font-weight: 500;
    color: #555;
    border: 1px dashed #ccc;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Reviews */
.reviews-section {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.reviews-grid {
    columns: 4 240px;
    column-gap: var(--spacing-md);
}

.review-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    break-inside: avoid;
    margin-bottom: var(--spacing-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.review-card img {
    width: 100%;
    display: block;
}

/* Locations */
.locations-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.location-item {
    background: var(--light-grey);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.location-item:hover {
    background: #e8f0fe;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.location-item i {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
}