/* ============================================
   ข้าวหอมเจ๊แดง - Page Sections
   Hero, Products, Why-us, How-to-order,
   Delivery, Gallery, Trust, FAQ, CTA, Contact
   ============================================ */

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.7) 0%,
            rgba(10, 10, 10, 0.5) 40%,
            rgba(10, 10, 10, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary-200);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-300);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-400);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
}

/* --- Products Section --- */
.products {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Why Us Section --- */
.why-us {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--gray-50), var(--background));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- How to Order Section --- */
.how-to-order {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.step-connector {
    position: absolute;
    top: 60px;
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-200), var(--primary-400), var(--primary-200));
    z-index: 0;
    border-radius: 2px;
}

.step-connector::before,
.step-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-400);
}

.step-connector::before {
    left: -6px;
}

.step-connector::after {
    right: -6px;
}

.steps-cta {
    text-align: center;
}

/* --- Delivery Section --- */
.delivery {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.delivery-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.delivery-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.delivery-wrapper::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.delivery-content {
    position: relative;
    z-index: 1;
}

.delivery-content .section-badge {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--green-100);
}

.delivery-content .section-title {
    color: var(--white);
}

.delivery-content .text-gradient {
    background: linear-gradient(135deg, #4ade80, #86efac, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.delivery-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    line-height: 1.8;
}

.delivery-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.area-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-base);
}

.area-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.delivery-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.map-decoration {
    position: relative;
    width: 280px;
    height: 280px;
}

.map-circle {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

.map-circle::before {
    content: '';
    position: absolute;
    inset: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.map-circle::after {
    content: '';
    position: absolute;
    inset: 60px;
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 50%;
}

.map-pin {
    position: absolute;
    font-size: 1.5rem;
    animation: pinBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pin-1 {
    top: 30%;
    left: 50%;
    animation-delay: 0s;
}

.pin-2 {
    top: 55%;
    left: 25%;
    animation-delay: 0.5s;
}

.pin-3 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.map-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

/* --- Gallery Section --- */
.gallery {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

/* --- Trust / Testimonials Section --- */
.trust {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: var(--gradient-warm);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}