:root {
    --brand: #CC0202;
    --brand-dark: #8f0000;
    --bg: #f9f6f4;
    --dark: #1e1b1b;
    --muted: #5e5856;
    --light: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', 'Noto Sans Thai', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.7;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: var(--light);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--brand);
}

.tagline {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.site-header h1 {
    font-size: 1.2rem;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

nav a {
    font-weight: 600;
    color: var(--dark);
}

nav a.active {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

main {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 7vw, 6rem);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0.5rem;
}

.hero-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(204, 2, 2, 0.1);
    border: 1px solid rgba(204, 2, 2, 0.2);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.stat-value {
    font-size: 2.2rem;
    margin: 0.2rem 0;
    color: var(--brand);
}

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.eyebrow {
    font-size: 0.85rem;
    color: var(--brand);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card, .highlight, .contact-card {
    background: var(--light);
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cta {
    margin-top: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--light);
    padding: 2.5rem 1.5rem;
    border-radius: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn.primary {
    background: var(--brand);
    color: var(--light);
    box-shadow: 0 10px 25px rgba(204, 2, 2, 0.25);
}

.btn.ghost {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}

.btn.light {
    background: var(--light);
    color: var(--brand);
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.case-card {
    border-radius: 1.2rem;
    overflow: hidden;
    background: var(--light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.case-cover {
    height: 180px;
    background: linear-gradient(135deg, rgba(204,2,2,0.7), rgba(30,27,27,0.7));
    position: relative;
}

.case-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1505693314120-0d443867891c?auto=format&fit=crop&w=800&q=60');
    mix-blend-mode: lighten;
    opacity: 0.5;
}

.case-body {
    padding: 1.5rem;
}

.case-body ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.testimonial {
    text-align: center;
    margin: 3rem auto;
    max-width: 600px;
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card ul {
    list-style: none;
    padding: 0;
}

.contact-card li {
    margin-bottom: 0.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(0,0,0,0.1);
    font-family: inherit;
}

.map-placeholder {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light);
    text-align: center;
    border-radius: 1.2rem;
    border: 2px dashed rgba(204,2,2,0.3);
    color: var(--muted);
}

.note {
    font-size: 0.9rem;
    color: var(--muted);
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark);
    color: var(--light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 70px;
        right: 1rem;
        background: var(--light);
        flex-direction: column;
        padding: 1rem 1.5rem;
        border-radius: 1rem;
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        display: none;
    }

    nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .logo-wrap {
        gap: 0.6rem;
    }
}
