:root {
    --bg: #f7f7f7;
    --surface: #ffffff;
    --text: #1c1f24;
    --muted: #667085;
    --line: #e6e8ec;
    --brand: #d01820;
    --brand-dark: #9d1117;
    --dark: #111827;
    --dark-soft: #1f2937;
    --warning: #fff7db;
    --success: #e7f7ed;
    --error: #ffe9e9;
    --shadow: 0 18px 45px rgba(17, 24, 39, .10);
    --radius: 18px;
    --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 36px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--dark); color: white; font-weight: 900;
    letter-spacing: -.04em;
}
.logo strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.logo small { color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    text-decoration: none;
    color: var(--dark-soft);
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
}
.main-nav a:hover { background: #f0f2f5; color: var(--brand); }
.menu-toggle { display: none; border: 0; background: var(--dark); color: #fff; border-radius: 12px; font-size: 1.3rem; padding: 8px 12px; }

.hero { position: relative; min-height: 620px; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,22,.92), rgba(8,13,22,.62), rgba(8,13,22,.25)); }
.hero-content { position: relative; z-index: 1; max-width: 780px; padding: 70px 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; margin: 14px 0 20px; letter-spacing: -.05em; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.86); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; color: var(--brand); text-transform: uppercase; font-size: .8rem; letter-spacing: .15em; font-weight: 900; }
.hero .eyebrow { color: #ff7278; }

.section { padding: 86px 0; }
.section-muted { background: #eef0f3; }
.section-heading { margin-bottom: 34px; }
.section-heading h2, .split h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.05; margin: 8px 0 0; }
.with-action { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.lead { font-size: 1.2rem; color: #374151; }
.narrow { max-width: 880px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    font-family: inherit;
    font-size: .96rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px rgba(208,24,32,.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--dark); border: 1px solid var(--line); }
.btn-light { background: #f3f4f6; color: var(--dark); }
.btn-danger { background: #b42318; color: #fff; }
.btn-small { padding: 8px 12px; font-size: .85rem; }
.full { width: 100%; }
.text-link { color: var(--brand); font-weight: 900; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.card.solid { box-shadow: none; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid.large { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111827;
    text-decoration: none;
    min-height: 230px;
    box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 260px; object-fit: cover; opacity: .86; transition: transform .35s ease, opacity .35s ease; }
.gallery-item:hover img { transform: scale(1.05); opacity: .68; }
.gallery-item span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.gallery-item small {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 46px;
    color: rgba(255,255,255,.82);
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.video-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.video-card iframe, .video-placeholder { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #111827; color: white; display: grid; place-items: center; }
.video-card h3, .video-card p { padding: 0 20px; }
.video-card h3 { margin: 20px 0 6px; }
.video-card p { margin: 0 0 20px; color: var(--muted); }

.contact-band { background: var(--dark); color: #fff; }
.contact-band p { color: rgba(255,255,255,.72); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.page-hero { background: var(--dark); color: #fff; padding: 82px 0; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 8px 0 12px; letter-spacing: -.04em; line-height: 1; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 760px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 800; color: #344054; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(208,24,32,.16); border-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hidden-field { position: absolute; left: -9999px; }
.alert { border-radius: 14px; padding: 14px 16px; font-weight: 700; margin-bottom: 16px; }
.alert-success { background: var(--success); color: #067647; }
.alert-error { background: var(--error); color: #b42318; }
.alert-info { background: #e7f0ff; color: #175cd3; }
.alert-warning { background: var(--warning); color: #854a0e; }
.empty-state { background: #fff; border: 1px dashed #c7ccd3; border-radius: var(--radius); padding: 28px; color: var(--muted); text-align: center; }

.accordion { display: grid; gap: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 26px rgba(17, 24, 39, .06); }
summary { cursor: pointer; font-weight: 900; font-size: 1.05rem; }
details p { color: var(--muted); }

.site-footer { background: #0b0f19; color: #fff; padding-top: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding: 18px; text-align: center; color: rgba(255,255,255,.62); }
.admin-link { color: rgba(255,255,255,.5); margin-left: 12px; text-decoration: none; font-size: .9rem; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #12b76a; color: #fff; border-radius: 999px; padding: 12px 16px; text-decoration: none; font-weight: 900; box-shadow: 0 14px 24px rgba(18,183,106,.28); }

/* Admin */
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #111827, #2b1012); padding: 20px; }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.login-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; margin-bottom: 16px; }
.login-card h1 { margin: 0; }
.login-card p { color: var(--muted); margin-top: 6px; }

.admin-body { background: #f2f4f7; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.admin-sidebar { background: #111827; color: #fff; padding: 22px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-brand { display: grid; gap: 4px; padding: 12px 10px 22px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 16px; }
.admin-brand span { color: rgba(255,255,255,.62); font-size: .9rem; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 11px 12px; border-radius: 12px; font-weight: 800; }
.admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { padding: 28px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-topbar h1 { margin: 0; letter-spacing: -.04em; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 20px; box-shadow: 0 8px 24px rgba(17,24,39,.05); }
.warning-card { background: var(--warning); }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 8px 24px rgba(17,24,39,.05); }
.stat-card strong { display: block; font-size: 2.4rem; line-height: 1; color: var(--brand); }
.stat-card span { color: var(--muted); font-weight: 800; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form { display: inline; }
.admin-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-photo { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; display: grid; gap: 12px; }
.admin-photo img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
.compact { gap: 10px; }
.message-list { display: grid; gap: 16px; }
.message-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.message-card.unread { border-color: rgba(208,24,32,.35); box-shadow: 0 0 0 4px rgba(208,24,32,.07); }
.message-head { display: flex; justify-content: space-between; gap: 16px; }
.message-head h3 { margin: 0; }
.message-head p { margin: 4px 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; align-self: flex-start; background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .82rem; font-weight: 900; }
.narrow-form { max-width: 560px; }

@media (max-width: 980px) {
    .cards, .video-grid, .gallery-grid, .gallery-grid.large, .admin-gallery, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; }
    .admin-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .header-inner { min-height: 66px; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; left: 18px; right: 18px; top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 10px; flex-direction: column; align-items: stretch; }
    .main-nav.open { display: flex; }
    .hero { min-height: 540px; }
    .section { padding: 58px 0; }
    .cards, .video-grid, .gallery-grid, .gallery-grid.large, .admin-gallery, .dashboard-grid, .form-grid { grid-template-columns: 1fr; }
    .with-action, .contact-band-inner, .admin-topbar { align-items: flex-start; flex-direction: column; }
    .admin-main { padding: 18px; }
    .admin-nav { grid-template-columns: 1fr; }
    .logo small { display: none; }
    .footer-bottom { padding-bottom: 70px; }
}
