/* base.html — styles moved out of the template's inline <style> block */

:root {
    --c-red:        #C8102E;
    --c-red-d:      #A50D24;
    --c-red-l:      #FCEBEB;
    --c-yellow:     #F4C430;
    --c-yellow-d:   #B8860B;
    --c-yellow-l:   #FDF6E3;
    --c-yellow-bg:  #FFFCEC;
    --c-green:      #1B5E20;
    --c-green-d:    #0D3A12;
    --c-green-l:    #F0F7F0;
    --c-blue:       #0D47A1;
    --c-blue-d:     #08316E;
    --c-blue-l:     #E8F0F8;
    --c-white:      #FFFFFF;
    --c-bg:         #FFFEF7;
    --c-surface:    #FFFFFF;
    --c-border:     #E5DCC4;
    --c-border-soft:#F0E8D4;
    --c-text:       #1A1A1A;
    --c-text-2:     #5A5040;
    --c-text-3:     #8B7860;
    --nav-h:        62px;
    --radius:       8px;
    --radius-lg:    12px;
    --shadow:       0 1px 3px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
    --shadow-lg:    0 4px 6px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.08);
    --font-head:    'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.55;
}
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-red); }
img { max-width: 100%; }

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    height: var(--nav-h);
    background: var(--c-white);
    border-bottom: 0.5px solid var(--c-border);
    display: flex; align-items: center;
    padding: 0 18px;
    gap: 14px;
}
.nav-brand {
    display: flex; align-items: center; gap: 11px;
    text-decoration: none; flex-shrink: 0;
    margin-right: auto;
    min-width: 0;
}
.nav-brand:hover { color: inherit; }
.nav-brand-logo {
    width: 40px; height: 40px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 1.5px solid var(--c-yellow);
    background: linear-gradient(135deg, #C9986A 0%, #8B6F47 100%);
    display: grid; place-items: center;
    font-size: 18px;
}
.nav-brand-logo img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.nav-brand-text { min-width: 0; }
.nav-brand-name {
    font-family: var(--font-head);
    font-size: 17px; font-weight: 600;
    line-height: 1.15; color: var(--c-text);
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
.nav-brand-sub {
    font-size: 10px; letter-spacing: .8px;
    color: var(--c-red); font-weight: 500;
    margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    padding: 7px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 500;
    color: var(--c-text-2); text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-link:hover { background: var(--c-yellow-l); color: var(--c-text); }
.nav-link.active { background: var(--c-yellow-l); color: var(--c-yellow-d); font-weight: 600; }

.nav-search {
    display: flex; align-items: center;
    background: var(--c-bg);
    border: 0.5px solid var(--c-border);
    border-radius: 6px; overflow: hidden;
    padding: 0 4px 0 10px;
}
.nav-search input {
    background: none; border: none; outline: none;
    color: var(--c-text); font-size: 13px; width: 140px;
    padding: 6px 0; font-family: var(--font-body);
}
.nav-search input::placeholder { color: var(--c-text-3); }
.nav-search button {
    background: none; border: none; color: var(--c-text-3);
    cursor: pointer; padding: 6px 8px; font-size: 12px;
}
.nav-search button:hover { color: var(--c-red); }

.nav-ham {
    display: none; background: none; border: none;
    color: var(--c-text); font-size: 20px; cursor: pointer;
    padding: 6px; border-radius: 6px;
}
.nav-ham:hover { background: var(--c-yellow-l); }

.flag-stripe {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 899;
    display: flex; height: 3px;
}
.flag-stripe span { flex: 1; }
.flag-stripe .s-w { background: var(--c-white); border-bottom: 0.5px solid var(--c-border); }
.flag-stripe .s-r { background: var(--c-red); }
.flag-stripe .s-y { background: var(--c-yellow); }
.flag-stripe .s-g { background: var(--c-green); }
.flag-stripe .s-b { background: var(--c-blue); }

.drawer {
    display: none; flex-direction: column;
    position: fixed; top: calc(var(--nav-h) + 3px); left: 0; right: 0; z-index: 898;
    background: var(--c-white);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-bottom: 1px solid var(--c-border);
}
.drawer.open { display: flex; }
.drawer-search {
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--c-border);
    background: var(--c-bg);
}
.drawer-search form { display: flex; gap: 8px; }
.drawer-search input {
    flex: 1; padding: 10px 12px; border-radius: 7px;
    border: 0.5px solid var(--c-border); font-size: 14px; outline: none;
    font-family: var(--font-body); background: var(--c-white);
}
.drawer-search input:focus { border-color: var(--c-red); }
.drawer-search button {
    padding: 10px 16px; background: var(--c-red);
    border: none; border-radius: 7px; color: var(--c-white);
    cursor: pointer; font-size: 13px; font-weight: 500;
}
.drawer-link {
    padding: 14px 18px; color: var(--c-text);
    font-size: 14px; font-weight: 500;
    border-bottom: 0.5px solid var(--c-border-soft);
    text-decoration: none;
    display: flex; align-items: center; gap: 12px;
}
.drawer-link:hover { background: var(--c-yellow-l); color: var(--c-text); }
.drawer-link i { width: 18px; color: var(--c-yellow-d); font-size: 14px; }

.hero { position: relative; overflow: hidden; background: var(--c-green-d); }
.hero-slide { display: none; position: relative; }
.hero-slide img {
    width: 100%; display: block;
    height: 360px; object-fit: cover; opacity: .92;
}
.hero-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 24px 20px;
    background: linear-gradient(transparent, rgba(13,58,18,.78));
    color: var(--c-white);
}
.hero-caption h3 {
    font-family: var(--font-head);
    font-size: 24px; font-weight: 600; margin-bottom: 4px;
}
.hero-caption h3 a { color: var(--c-white); }
.hero-caption p { font-size: 13px; opacity: .85; }

.page { padding-top: calc(var(--nav-h) + 3px); }
.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.section { padding: 28px 0; }

.divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--c-text-3); font-size: 18px;
    margin: 24px 0 18px;
}
.divider::before, .divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--c-border);
}

.card {
    background: var(--c-surface);
    border: 0.5px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-head {
    padding: 14px 18px;
    border-bottom: 0.5px solid var(--c-border);
    display: flex; align-items: center; gap: 12px;
}
.card-head-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--c-yellow-l); color: var(--c-yellow-d);
    display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.card-head-title {
    font-family: var(--font-head);
    font-size: 19px; font-weight: 600; color: var(--c-text);
}
.card-head-sub { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }
.card-body { padding: 18px; }

.form-field { margin-bottom: 16px; }
.form-field label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--c-text-2); margin-bottom: 6px;
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px; font-family: var(--font-body);
    color: var(--c-text); background: var(--c-surface); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--c-red);
    box-shadow: 0 0 0 3px rgba(200,16,46,.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.full { grid-template-columns: 1fr; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; cursor: pointer;
    border: none; text-decoration: none;
    transition: background .15s, transform .05s;
    white-space: nowrap;
    font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-red); color: var(--c-white); }
.btn-primary:hover { background: var(--c-red-d); color: var(--c-white); }
.btn-secondary { background: var(--c-blue); color: var(--c-white); }
.btn-secondary:hover { background: var(--c-blue-d); color: var(--c-white); }
.btn-accent {
    background: var(--c-white); color: var(--c-text);
    border: 0.5px solid var(--c-border);
}
.btn-accent:hover { background: var(--c-yellow-l); color: var(--c-text); border-color: var(--c-yellow); }
.btn-ghost {
    background: transparent; color: var(--c-text-2);
    border: 0.5px solid var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-red); color: var(--c-red); }
.btn-wa { background: var(--c-green); color: var(--c-white); }
.btn-wa:hover { background: var(--c-green-d); color: var(--c-white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.msg { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.msg i { flex-shrink: 0; }
.msg-success { background: var(--c-green-l); border: 0.5px solid #C8DCC8; color: var(--c-green-d); }
.msg-error   { background: var(--c-red-l); border: 0.5px solid #F7C1C1; color: var(--c-red-d); }
.msg-info    { background: var(--c-yellow-l); border: 0.5px solid #F0E4B8; color: var(--c-yellow-d); }

.wa-bubble {
    position: fixed; bottom: 22px; right: 22px; z-index: 850;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--c-green); border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(27,94,32,.35);
    display: grid; place-items: center;
    font-size: 26px; color: var(--c-white);
    transition: transform .15s;
}
.wa-bubble:hover { transform: scale(1.08); background: var(--c-green-d); }

.modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(13,58,18,.45); z-index: 1000;
    align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--c-surface); border-radius: var(--radius-lg);
    width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-head {
    padding: 14px 18px;
    border-bottom: 0.5px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.modal-close {
    background: none; border: none; font-size: 22px;
    color: var(--c-text-3); cursor: pointer; padding: 2px 8px; border-radius: 5px;
    line-height: 1;
}
.modal-close:hover { color: var(--c-text); background: var(--c-bg); }
.modal-body { padding: 18px; }

.footer {
    background: var(--c-green-d); color: rgba(255,255,255,.6);
    padding: 28px 20px 20px;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1060px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; text-align: center;
}
.footer-name {
    font-family: var(--font-head);
    font-size: 19px; color: var(--c-yellow);
    font-weight: 600;
}
.footer-social { display: flex; gap: 16px; font-size: 18px; }
.footer-social a { color: rgba(255,255,255,.5); }
.footer-social a:hover { color: var(--c-yellow); }
.footer-copy { font-size: 12px; }
.footer-copy a { color: rgba(255,255,255,.55); }
.footer-copy a:hover { color: var(--c-yellow); }

#googleMap { height: 280px; width: 100%; }

@media (max-width: 768px) {
    .nav-links, .nav-search { display: none; }
    .nav-ham { display: block; }
    .nav-brand-sub { display: none; }
    .nav-brand-name { font-size: 14px; max-width: 200px; }
    .hero-slide img { height: 220px; }
    .hero-caption { padding: 28px 16px 14px; }
    .hero-caption h3 { font-size: 17px; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 18px 0; }
    .card-body { padding: 14px; }
}
@media (max-width: 480px) {
    :root { --nav-h: 58px; }
    .nav-brand-name { font-size: 13px; }
    .nav-brand-logo { width: 34px; height: 34px; font-size: 15px; }
    .container { padding: 0 14px; }
}

/* ── Footer / captcha / small modal ──────────────────────────── */
.footer-committee { font-size: 13px; color: rgba(255,255,255,.55); }
.captcha-prepend { margin-top: 10px; text-align: center; }
.captcha-img { margin-right: 15px; }
.modal--sm { max-width: 360px; }

/* ── Utilities (replace former inline style="" attributes) ───── */
.is-hidden { display: none; }
.w-100 { width: 100%; }
.icon-xs { font-size: 9px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mb-8  { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
