

:root { --bg:#0f172a; --card:#0c1328; --text:#e5e7eb; --muted:#94a3b8; --accent:#38bdf8; }
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;background:#0b1020;color:var(--text)}
a{color:var(--accent);text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:20px}
.site-header{background:rgba(0,0,0,.45);backdrop-filter:blur(6px);position:sticky;top:0}
.site-header .logo a{font-weight:700}
.site-footer{border-top:1px solid #1f2937;margin-top:40px}
.hero{padding:40px 0}
.button{display:inline-block;padding:10px 16px;border-radius:10px;background:var(--accent);color:#00172d;font-weight:700;margin-right:10px}
.button.ghost{background:transparent;border:1px solid var(--accent);color:var(--text)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{background:var(--card);border:1px solid #1e293b;border-radius:14px;padding:16px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{border-bottom:1px solid #1e293b;text-align:left;padding:10px}
label{display:block;margin:10px 0}
input,textarea,select{width:100%;padding:10px;border-radius:8px;border:1px solid #1e293b;background:#0b1225;color:var(--text)}
.flash{background:#052e2b;border:1px solid #155e75;padding:10px;border-radius:8px;margin:10px 0}
.stats{display:flex;gap:16px;flex-wrap:wrap}
.stat{background:var(--card);border:1px solid #1e293b;border-radius:14px;padding:16px;min-width:140px}
.chat-box{background:#0a1022;border:1px solid #1e293b;border-radius:12px;padding:10px;max-height:360px;overflow:auto;margin:10px 0}
.bubble{padding:8px 10px;border-radius:10px;margin:8px 0;background:#0b1835}
.bubble.admin{background:#10365a}
.bubble.user{background:#18233f}
.whatsapp-fab{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:#25D366;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.whatsapp-fab::before{content:'';position:absolute;inset:0;background:url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') center/60% no-repeat}

/* === Admin layout & toast additions === */
.topbar{position:sticky;top:0;z-index:50;background:rgba(0,0,0,.45);backdrop-filter:blur(6px);border-bottom:1px solid #1f2937}
.topbar .row{display:flex;align-items:center;justify-content:space-between}
.topbar .brand a{font-weight:700}
.topbar .top-actions{display:flex;gap:12px;align-items:center}

.admin-layout{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 120px)}
.sidebar{border-right:1px solid #1e293b;background:#0c1328;padding:16px;position:sticky;top:60px;height:calc(100vh - 60px)}
.sidebar nav{display:flex;flex-direction:column;gap:10px}
.sidebar a{padding:10px 12px;border-radius:10px;background:transparent;border:1px solid #1e293b}
.sidebar a:hover{background:#0b1835}
.admin-content{padding:24px}

/* Fixed footer for admin & public */
.site-footer.fixed{position:fixed;left:0;right:0;bottom:0;border-top:1px solid #1e293b;background:#0c1328}
body{padding-bottom:70px} /* prevent content overlap */

/* Toast (bottom-right) */
.toast.hidden{display:none}
.toast{position:fixed;right:20px;bottom:90px;max-width:320px;background:#0b1225;border:1px solid #1e293b;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.45);padding:14px}
.toast-title{font-weight:700;margin-bottom:4px}
.toast-text{color:#94a3b8;margin-bottom:10px}
.toast .button{padding:6px 10px;font-size:12px}
.toast .button.ghost{background:transparent;border:1px solid #38bdf8;color:#e5e7eb}


/* Theme tokens (match admin) */
:root{--bg:#ffffff;--fg:#0f172a;--muted:#475569;--card:#ffffff;--border:#e2e8f0;--link:#2563eb}
html[data-theme="dark"]{--bg:#0b1120;--fg:#e5e7eb;--muted:#9ca3af;--card:#0f172a;--border:#1f2937;--link:#60a5fa}
body{background:var(--bg);color:var(--fg);margin:0;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif}

/* Header */
.site-header{background:var(--card);border-bottom:1px solid var(--border)}
.nav-row{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;min-height:56px}
.logo a{font-weight:800;color:var(--link);letter-spacing:.2px;text-decoration:none}
.site-header a{color:var(--fg);text-decoration:none;padding:.5rem .75rem;border-radius:.5rem}
.site-header a:hover,.site-header a.active{background:var(--border)}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:.5rem}
.theme-toggle{background:var(--card);border:1px solid var(--border);border-radius:.6rem;padding:.45rem .65rem;cursor:pointer}
.admin-pill{background:rgba(37,99,235,.12);border:1px solid rgba(37,99,235,.35);border-radius:.6rem}

/* Container */
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Flash */
.flash{background:#22c55e22;border:1px solid #22c55e55;padding:.75rem 1rem;border-radius:.5rem;margin:1rem 0}

/* Hero (clean like admin) */
.hero{padding:42px 0 24px;border-bottom:1px solid var(--border)}
.hero h1{font-size:40px;line-height:1.1;margin:0 0 10px}
.hero .content{color:var(--muted);max-width:800px}
.cta{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.button{display:inline-block;background:#2563eb;color:#fff;padding:10px 14px;border-radius:10px;border:1px solid #2563eb;text-decoration:none}
.button.ghost{background:transparent;color:#2563eb}

/* Cards / grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:14px 0 30px}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px}

/* Fixed footer */
.site-footer.fixed{position:fixed;left:0;right:0;bottom:0;background:var(--card);border-top:1px solid var(--border);padding:12px 0}
body{padding-bottom:64px} /* prevent overlap with fixed footer */


/* Sections */
.hero{ padding:44px 0 20px; border-bottom:1px solid var(--border); }
.hero h1{ font-size:44px; line-height:1.1; margin:0 0 10px; }
.hero .content{ color:var(--muted); max-width:820px; }
.cta{ margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
.button{ display:inline-block; background:#2563eb; color:#fff; padding:10px 14px; border-radius:10px; border:1px solid #2563eb; text-decoration:none }
.button.ghost{ background:transparent; color:#2563eb }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; margin:14px 0 30px }
.card{ background:var(--card); border:1px solid var(--border); border-radius:14px; padding:14px }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:18px }
.two-col .row{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
input, select, textarea{ width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:var(--card); color:var(--fg); }
.flash{ background:#22c55e22; border:1px solid #22c55e55; padding:.75rem 1rem; border-radius:.5rem; margin:1rem 0; }

/* Modal (site) */
/* Modal (site) */
.modal-backdrop{ position:fixed; inset:0; background:rgba(15,23,42,.45); display:none; align-items:center; justify-content:center; z-index:1000 }
.modal-backdrop.show{ display:flex }
.modal{ background:var(--card); border:1px solid var(--border); border-radius:14px; max-width:760px; width:96% }
.modal .head{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border) }
.modal .body{ padding:16px; max-height:calc(100vh - 220px); overflow:auto }
.modal .foot{ padding:12px 16px; border-top:1px solid var(--border); display:flex; gap:8px; justify-content:flex-end }
.modal .close{ background:transparent; border:0; font-size:24px; cursor:pointer; color:#64748b }


/* Footer layout */
.site-footer{ margin-top:36px; background:var(--card); border-top:1px solid var(--border); }
.site-footer .foot-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:18px; padding:24px 16px; }
.site-footer .brand{ font-weight:800; color:var(--link); }
.site-footer a{ color:var(--fg); text-decoration:none }
.site-footer a:hover{ text-decoration:underline }
.site-footer .legal{ border-top:1px solid var(--border); padding:10px 16px; color:var(--muted) }

/* Responsive */
@media (max-width: 800px){
  .two-col{ grid-template-columns:1fr; }
  .site-footer .foot-grid{ grid-template-columns:1fr; }
}

input, select, textarea{ background:var(--card); color:var(--fg); border:1px solid var(--border); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{ background:#0f172a; border-color:#1f2937; color:#e5e7eb; }

/* Footer – 4 columns like the screenshot */
.site-footer{ background:#0b1120; border-top:1px solid var(--border); color:var(--fg); margin-top:36px; }
.site-footer .footer-cols{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; padding:28px 0 14px; }
.site-footer .brand-row{ display:flex; align-items:center; gap:12px; }
.site-footer .brand-logo{ height:34px; width:auto; }
.site-footer .brand-name{ font-weight:800; font-size:1.1rem; color:var(--link); }
.site-footer .brand-tag{ color:var(--muted); margin:.35rem 0 0; max-width:560px; }
.site-footer h4{ margin:0 0 .6rem; font-weight:700; }
.site-footer .flat{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.site-footer a{ color:var(--fg); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.site-footer .follow .icons{ display:flex; gap:12px; margin:.25rem 0 .5rem; }
.site-footer .addr-line{ color:var(--muted); font-size:.95rem; }
.site-footer .copyright{ border-top:1px solid var(--border); color:var(--muted); padding:12px 0; margin-top:10px; }

/* Responsive */
@media (max-width: 980px){
  .site-footer .footer-cols{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px){
  .site-footer .footer-cols{ grid-template-columns:1fr; }
}

/* kill any old bar if it still exists */
.site-footer .legal{ display:none !important; }

/* ----- Simple slider (under nav) ----- */
.slider{ position:relative; margin:12px 0 20px; border-radius:16px; overflow:hidden; border:1px solid var(--border); }
.slide{ position:relative; height:320px; display:none; background-size:cover; background-position:center; }
.slide.active{ display:block; }
.slide::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.35)); }
.slide .caption{ position:absolute; inset:auto 16px 16px 16px; z-index:1; color:#fff; }
.slide .caption h2{ margin:0 0 .25rem; font-size:1.6rem; line-height:1.2; }
.slide .caption p{ margin:0; opacity:.9; }

/* slider controls */
.slider .nav{ position:absolute; inset:auto 12px 12px auto; z-index:2; display:flex; gap:8px; }
.slider .dot{ width:10px; height:10px; border-radius:999px; background:#fff; opacity:.5; border:0; cursor:pointer; }
.slider .dot.active{ opacity:1; }
.slider .arrow{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.35); color:#fff; border:0; width:36px; height:36px; border-radius:999px; cursor:pointer; z-index:2; }
.slider .arrow.prev{ left:10px; } .slider .arrow.next{ right:10px; }

/* responsive tweaks */
@media (max-width: 900px){
  .slide{ height:240px; }
  .site-footer .footer-links{ grid-template-columns:1fr; }
}

/* Map */
.map-wrap{ margin-top:10px; border:1px solid var(--border); border-radius:12px; overflow:hidden }
.map-wrap iframe{ width:100%; height:220px; display:block; border:0 }

/* Remove old .legal bar if present */
.site-footer .legal{ display:none !important; }

/* Responsive */
@media (max-width: 900px){
  .site-footer .foot-grid{ grid-template-columns:1fr; }
}

/* reset default page margin so no white gap below footer */
html, body { margin: 0; padding: 0; }

/* footer colors come from theme tokens */
.site-footer{
  background: var(--footer-bg);
  color: var(--footer-fg);
}

/* readable links/text in footer */
.site-footer a { color: var(--footer-fg); text-decoration: none; opacity: 1; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-tag,
.site-footer .addr-line { color: var(--footer-muted); }

/* Blue nav */
.site-header{
  background:#0b5cff;           /* bright blue */
  border-bottom:none;
}
html[data-theme="dark"] .site-header{
  background:#1e3a8a;           /* deep blue in dark mode (optional) */
}
.site-header .logo a,
.site-header a{
  color:#fff !important;
}
.site-header a:hover,
.site-header a.active{
  background:rgba(255,255,255,.12);
  color:#fff !important;
}
.theme-toggle{
  background:rgba(255,255,255,.15);
  border-color:transparent;
  color:#fff;
}


/* ensure full cover and no repeat */
.slider .slide{
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}

/* lighter overlay so the bottom doesn't look like empty space */
.slider .slide::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.08) 55%, rgba(0,0,0,.06) 100%);
}
