/* YWAM Chiang Rai Base — site styles
   Design: light cream + brick red minimal style */

:root {
    --cream: #fdf4e3;
    --cream-light: #fffbf2;
    --brick: #a6422b;
    --brick-dark: #8e3824;
    --red-text: #b24a31;
    --ink: #1f1f1f;
    --ink-soft: #333;
    --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    background: var(--cream);
    color: var(--ink);
    font-size: 16.5px;
    line-height: 1.65;
}

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

a { color: var(--red-text); font-weight: 600; }
a:hover { color: var(--brick-dark); }

h1, h2, h3 { line-height: 1.25; }

/* ---------- Header / nav ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand img { width: 58px; height: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-en { font-weight: 600; font-size: 1.05rem; }
.brand-th { font-size: .85rem; color: var(--ink-soft); }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }

.nav-btn {
    background: var(--brick);
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 3px;
    transition: background .15s;
}

.nav-btn:hover { background: var(--brick-dark); color: #fff; }

.nav-btn.is-active {
    background: transparent;
    color: var(--brick);
    outline: 2px solid var(--brick);
    outline-offset: -2px;
}

.nav-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--brick);
    cursor: pointer;
}

/* ---------- Layout helpers ---------- */

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 48px 0; }
.section.tight { padding: 28px 0; }

.banner {
    background: var(--brick);
    color: #fff;
    padding: 26px 20px;
}

.banner h1, .banner h2 {
    max-width: var(--max);
    margin: 0 auto;
    font-size: 1.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center;
}

.banner.left h1, .banner.left h2 { text-align: left; }

.banner p {
    max-width: var(--max);
    margin: 0 auto;
    font-size: 1.35rem;
    text-align: center;
}

.banner a { color: #ffd9c9; }

/* two column rows */
.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cols.top { align-items: start; }

/* red bullet lists */
.red-list { padding-left: 1.3em; margin: 0 0 1em; }
.red-list li { color: var(--red-text); margin: .35em 0; }

ul.plain { padding-left: 1.3em; }
ul.plain li { margin: .35em 0; }

/* buttons */
.btn {
    display: inline-block;
    background: var(--brick);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    border: none;
    border-radius: 3px;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}

.btn:hover { background: var(--brick-dark); color: #fff; }

.btn.big { font-size: 1.1rem; padding: 14px 30px; }

/* hero */
.hero-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 10px auto 30px;
    max-width: 900px;
}

.hero-photo { margin: 0 auto; }
.hero-photo img { width: 100%; }

/* video grid on home */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.video-grid h3 { font-size: 1.05rem; margin-bottom: 14px; text-align: center; }

.video-embed {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* quote blocks */
.quote {
    font-style: italic;
    font-size: 1.1rem;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.quote-by {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brick);
    margin-top: 18px;
}

/* cards (projects / training) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

.card {
    display: block;
    background: var(--cream-light);
    border: 1px solid #eadfc8;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.08); color: var(--ink); }

.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.card .card-label {
    display: block;
    background: var(--brick);
    color: #fff;
    font-weight: 700;
    padding: 12px 10px;
}

/* forms */
.contact-form { max-width: 560px; }

.contact-form .req-note { font-style: italic; margin-bottom: 18px; }

.contact-form label {
    display: block;
    font-weight: 500;
    margin: 14px 0 4px;
}

.contact-form input[type=text],
.contact-form input[type=email],
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--brick);
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
    font-size: .95rem;
}

.contact-form .submit-row { text-align: right; margin-top: 18px; }

.form-msg {
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--brick);
    background: var(--cream-light);
    font-weight: 500;
}

/* address block */
.address-block p { margin: 2px 0; }

.map-embed { border: 0; width: 100%; height: 300px; margin-top: 18px; }

/* gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* footer */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 20px 50px;
}

.footer-email {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.footer-email:hover { color: var(--brick); }

.footer-icons { display: flex; gap: 16px; }

.footer-icons a { color: #111; display: inline-flex; }
.footer-icons a:hover { color: var(--brick); }

/* misc text helpers */
.center { text-align: center; }
.lead { font-size: 1.15rem; }
.red { color: var(--red-text); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .cols, .video-grid { grid-template-columns: 1fr; }

    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    body.nav-open .site-nav { display: flex; }

    .nav-btn { text-align: center; }

    .hero-title { font-size: 1.4rem; }
    .banner h1, .banner h2 { font-size: 1.3rem; }
    .banner p { font-size: 1.1rem; }
}
