/* ABAD Hotel: shared styles for the v2 public pages (sign-in, guest portal, ABAD LIFE, booking, careers). */
:root {
  --ink: #0d0d14;
  --ink-2: #14141d;
  --ink-3: #1b1b26;
  --line: #2a2a35;
  --gold: #c8a84b;
  --gold-2: #e5c46b;
  --ivory: #f2ede1;
  --muted: #a39c8a;
  --ok: #3fae6a;
  --bad: #e5534b;
  --radius: 10px;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 16px/1.6 var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ivory); }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(13, 13, 20, .92); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); font-family: var(--display); font-size: 1.2rem; }
.brand img { height: 44px; width: 44px; border-radius: 6px; object-fit: cover; }
.brand:hover { color: var(--gold-2); }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); color: var(--ivory); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.site-nav { display: none; }
.site-nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
.site-nav a { color: var(--ivory); text-decoration: none; padding: 10px 4px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-2); }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; flex-direction: row; gap: 26px; padding: 0; border: 0; background: none; }
  .site-nav a { padding: 6px 0; }
}
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 6px; }
.site-footer strong { color: var(--ivory); font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.site-footer a { color: var(--muted); }

/* ---------- forms ---------- */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 600px) { .card { padding: 32px; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 500; font-size: .95rem; }
.hint { color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; background: var(--ink); color: var(--ivory); border: 1px solid #3a3a47; border-radius: 8px;
  padding: 12px 14px; font: inherit; min-height: 48px;
}
input:not([type="checkbox"]):not([type="file"]), select { height: 48px; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f6a5e; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 168, 75, .25); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.row { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--gold);
  background: var(--gold); color: #17140b; font: 600 1rem var(--text); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: #17140b; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ivory); border-color: #3a3a47; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--muted); text-decoration: none; cursor: default; }

.alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; border: 1px solid; }
.alert.error { border-color: rgba(229, 83, 75, .5); background: rgba(229, 83, 75, .1); color: #ffcfcb; }
.alert.ok { border-color: rgba(63, 174, 106, .5); background: rgba(63, 174, 106, .1); color: #c9f0d6; }
.alert.info { border-color: rgba(200, 168, 75, .4); background: rgba(200, 168, 75, .08); color: var(--ivory); }
.alert:empty { display: none; }

.code-input { letter-spacing: .5em; font-size: 1.6rem !important; text-align: center; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.ok { color: #9be0b5; border-color: rgba(63, 174, 106, .5); }
.badge.warn { color: var(--gold-2); border-color: rgba(200, 168, 75, .5); }
.badge.bad { color: #ffb3ad; border-color: rgba(229, 83, 75, .5); }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

table.lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.lines td, table.lines th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.lines th { color: var(--muted); font-weight: 500; font-size: .85rem; }
table.lines td.num, table.lines th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- language switcher ---------- */
.header-tools { display: flex; align-items: center; gap: 10px; }
@media (min-width: 860px) { .header-tools { order: 3; } .site-header .wrap { flex-wrap: nowrap; } }
.lang-switch { display: inline-flex; }
.lang-select {
  width: auto; height: 38px !important; min-height: 38px; padding: 0 30px 0 10px; font-size: .9rem;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a39c8a'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none; border-radius: 8px; border: 1px solid var(--line); color: var(--ivory); cursor: pointer;
}
.brand span { white-space: nowrap; }
@media (max-width: 460px) { .brand span { display: none; } }

/* ---------- Amharic: Ethiopic script needs its own font (Playfair/DM Sans have no Ge'ez glyphs) ---------- */
html[lang="am"] {
  --display: "Noto Sans Ethiopic", "Playfair Display", Georgia, serif;
  --text: "Noto Sans Ethiopic", "DM Sans", system-ui, sans-serif;
}
html[lang="am"] body { font-size: 17px; line-height: 1.7; }
html[lang="am"] h1, html[lang="am"] h2, html[lang="am"] h3 { font-weight: 700; line-height: 1.3; }
/* the ABAD LIFE wordmark stays in the brand serif */
html[lang="am"] .life-title { font-family: "Playfair Display", Georgia, serif; }

/* Google review links */
.rv-link { color: var(--gold-2) !important; text-decoration: none; font-weight: 500; }
.rv-link:hover { text-decoration: underline; }
.rv-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--ink-2); margin: 18px 0; }
.rv-card p { margin: 0; }
.site-footer span:empty { display: none; }

/* ---- header: same look as the main site (black bar, uppercase links, gold Reserve) ---- */
.site-header { background: rgba(0, 0, 0, .9); border-bottom: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(12px); }
.site-header .wrap { min-height: 80px; gap: 20px; max-width: 1440px; }
.brand { gap: 14px; font-family: "DM Sans", system-ui, sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #f2ede1; }
.brand img { width: 48px; height: 48px; border-radius: 0; object-fit: contain; background: #fff; }
.site-nav a { font-family: "DM Sans", system-ui, sans-serif; font-size: 14px; letter-spacing: .7px; text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 500; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #d9a520; }
.header-tools { display: flex; align-items: center; gap: 14px; order: 3; }
.reserve-btn { background: #d9a520; color: #000; border: 0; border-radius: 0; padding: 9px 28px; font: 700 14px/1.2 "DM Sans", system-ui, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.reserve-btn:hover, .reserve-btn:focus-visible { background: #e8b83a; outline: 2px solid #fff; outline-offset: 2px; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 8px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #f2ede1; border-radius: 1px; }
.site-nav { display: none; order: 2; }
.site-nav.open { display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; background: rgba(0, 0, 0, .96); border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 8px 24px 18px; }
.site-nav.open a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; flex-direction: row; gap: 18px; padding: 0; border: 0; background: none; margin-left: auto; }
  .site-nav a { padding: 6px 0; border: 0; }
  .brand span { display: none; }
}
@media (max-width: 640px) { .reserve-btn { padding: 8px 14px; font-size: 12px; } .site-header .wrap { gap: 10px; } }
@media (max-width: 420px) { .lang-slot { display: none; } }
/* Reserve: room or hall */
.reserve-back { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 8, 14, .8); overflow-y: auto; padding: 16px; }
.reserve-back[hidden] { display: none; }
.reserve-box { margin: 10vh auto 16px; background: #14141d; color: #f2ede1; border: 1px solid #2a2a35; border-radius: 12px; width: min(720px, 100%); padding: 26px; position: relative; }
.reserve-box h2 { font-family: var(--display); margin: 0 0 18px; font-size: 1.6rem; padding-right: 40px; }
.reserve-opts { display: flex; flex-wrap: wrap; gap: 14px; }
.reserve-opts a { flex: 1 1 240px; display: block; text-decoration: none; border-radius: 10px; padding: 20px; color: inherit; border: 1px solid #2a2a35; transition: transform .15s; }
.reserve-opts a:hover, .reserve-opts a:focus-visible { transform: translateY(-2px); outline: 2px solid #c8a84b; }
.reserve-opts a.rooms { background: linear-gradient(160deg, #1f1f2b, #14141d); }
.reserve-opts a.halls { background: linear-gradient(135deg, #0f2a44, #183b5e); color: #fff; border-color: #183b5e; }
.reserve-opts b { display: block; font-size: 1.2rem; margin-bottom: 6px; color: #e5c46b; }
.reserve-opts span { font-size: .92rem; opacity: .85; }
.reserve-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
.reserve-wa { margin: 16px 0 0; font-size: .92rem; }
.reserve-wa a { color: #25d366; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .reserve-opts a { transition: none; } }
.site-header .lang-select { border-radius: 2px; border-color: rgba(212, 175, 55, .55); background-color: rgba(0, 0, 0, .35); }
.site-header .brand, .site-header .brand img, .header-tools { flex: none; }
@media (min-width: 1280px) { .site-header .wrap { max-width: none; padding-left: 52px; padding-right: 52px; } }
