/*
 * Basic stylesheet for the Thailand Dairy Organization site.
 * This file defines the colour palette, typography and layout
 * to loosely reflect the warm, organic feel of the provided mock‑up.
 */

:root {
    /* Colour palette */
    --cream: #F4E2C7;
    --light-cream: #F8F1E4;
    --brown: #935B32;
    --dark-brown: #653819;
    --orange: #C87C32;
    --orange-dark: #B36A2D;
    --white: #FFFFFF;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--dark-brown);
    line-height: 1.6;
}

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

/* Utility containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styling */
.site-header {
    background-color: var(--brown);
    color: var(--white);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.logo img {
    height: 64px;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.primary-nav li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.primary-nav li a:hover,
.primary-nav li a.active {
    background-color: var(--orange);
    color: var(--white);
}

/* Hero section */
.hero {
    padding: 3rem 0;
}
.hero-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-card {
    background-color: var(--light-cream);
    border-radius: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
}
.hero-card .image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 240px;
}
.hero-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card .card-content {
    padding: 1.5rem;
}
.hero-card h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--brown);
    font-size: 1.75rem;
}
.hero-card p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--dark-brown);
}
.btn {
    display: inline-block;
    background-color: var(--orange);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: var(--orange-dark);
}

/* Features grid */
.features {
    padding: 3rem 0;
    background-color: var(--light-cream);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.feature-card {
    background-color: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.feature-card i {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 0.75rem;
}
.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: var(--brown);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--dark-brown);
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: var(--brown);
    color: var(--light-cream);
    padding: 2.5rem 0;
}
.footer-inner {
    text-align: center;
}
.footer-logo img {
    height: 64px;
    margin-bottom: 1rem;
}
.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.social-links {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-links li a {
    color: var(--light-cream);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}
.social-links li a:hover {
    color: var(--orange);
}
.contact-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .primary-nav ul {
        gap: 0.5rem;
    }
    .hero-wrapper {
        flex-direction: column;
    }
    .hero-card {
        max-width: 100%;
    }
}