/* =========================================
   1. VARIABLES & THEME (Eco-Homestead)
   ========================================= */
:root {
    /* Colors */
    --bg-color: #F9F7F2;       /* Cream Background */
    --bg-white: #FFFFFF;       /* White Container */
    --text-main: #333333;      /* Dark Charcoal */
    --text-light: #555555;     /* Soft Grey */
    --primary-green: #2E5A34;  /* Forest Green (Headings/Header) */
    --accent-orange: #D35400;  /* Harvest Orange (CTA Buttons) */
    --accent-hover: #E67E22;   /* Lighter Orange for Hover */
    
    /* Spacing & Layout */
    --container-width: 800px;  /* Landing Page ไม่ควรกว้างเกินไป ให้อ่านง่าย */
    --spacing-std: 20px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7; /* อ่านง่ายสบายตา */
    font-size: 18px;  /* ขนาดตัวหนังสือมาตรฐาน */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* =========================================
   3. LAYOUT & CONTAINER
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-std);
    background: transparent;
}

/* Content Box (กล่องขาวรองเนื้อหา) */
.content-box {
    background: var(--bg-white);
    padding: 40px;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   4. HEADER (Minimal)
   ========================================= */
header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}
.logo-small {
    height: 50px; /* โลโก้ขนาดเล็กสำหรับ Header */
    width: auto;
    margin: 0 auto;
}

/* =========================================
   5. TYPOGRAPHY
   ========================================= */
h1, h2, h3 {
    color: var(--primary-green);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 20px;
}

h1 { font-size: 2.2rem; text-align: center; }
h2 { font-size: 1.8rem; border-left: 5px solid var(--accent-orange); padding-left: 15px; margin-top: 40px; }
p { margin-bottom: 20px; }

.sub-headline {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: -10px;
    margin-bottom: 30px;
}

/* Highlight Text */
.highlight { background-color: #fff3cd; padding: 2px 5px; border-radius: 4px; font-weight: bold; }

/* =========================================
   6. COMPONENTS (Images & Lists)
   ========================================= */
/* Image Containers */
.img-wrapper {
    margin: 30px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Benefits List (ติ๊กถูกสีเขียว) */
.benefits-list { list-style: none; margin: 20px 0; }
.benefits-list li {
    padding-left: 30px;
    margin-bottom: 15px;
    position: relative;
    font-weight: 600;
}
.benefits-list li::before {
    content: '✔';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* =========================================
   7. BUTTONS (CTA)
   ========================================= */
.cta-container { text-align: center; margin: 40px 0; }

.btn-main {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(211, 84, 0, 0.4);
    animation: pulse 2s infinite; /* เอฟเฟกต์ตุ้บๆ ดึงดูดสายตา */
}

.btn-main:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* Small Animation for Button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* =========================================
   8. FOOTER & DISCLAIMER
   ========================================= */
footer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    padding: 40px 20px;
    border-top: 1px solid #ddd;
    margin-top: 50px;
}
.disclaimer { margin-top: 10px; font-style: italic; }

/* =========================================
   9. RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 600px) {
    .content-box { padding: 20px; margin: 10px auto; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .btn-main { font-size: 1.1rem; padding: 15px 30px; width: 100%; }
}
/* =========================================
   SOCIAL SHARE BAR (Bottom Sticky)
   ========================================= */
.social-share-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    z-index: 9999; /* อยู่บนสุดเสมอ */
    gap: 15px; /* ระยะห่างระหว่างปุ่ม */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s, opacity 0.2s;
    font-family: sans-serif;
    font-weight: bold;
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Brand Colors */
.btn-facebook { background-color: #1877F2; }
.btn-x { background-color: #000000; }
.btn-linkedin { background-color: #0077B5; }
.btn-pinterest { background-color: #E60023; }

/* Mobile Adjustment */
@media (max-width: 600px) {
    .social-share-bar { padding: 8px 0; }
    .social-btn { width: 35px; height: 35px; font-size: 16px; }
    body { padding-bottom: 60px; } /* กันไม่ให้เนื้อหาถูกบัง */
}