/* ==========================================================================
   PANAMA (بنما) — Branch chooser homepage
   Same brand palette as the branch menu sites (see panama-menu/css/style.css).
   ========================================================================== */

:root {
  --cream: #F6EEDE;
  --cream-deep: #EDE1C8;
  --paper: #FFFFFF;
  --espresso: #2E1D14;
  --espresso-soft: #4A3226;
  --gold: #A97C4F;
  --gold-deep: #8B5E38;
  --gold-tint: #F1E2C9;
  --rose: #7A4632;
  --rose-deep: #5C3323;
  --rose-tint: #EDD9C6;
  --ink: #2E1D14;
  --ink-soft: #7A6A5C;
  --border: rgba(46, 29, 20, 0.12);
  --shadow-color: 46, 29, 20;

  --font-display-ar: 'El Messiri', sans-serif;
  --font-display-en: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-body-ar: 'IBM Plex Sans Arabic', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-md: 18px;
  --radius-lg: 28px;
  color-scheme: light;
}

/* Dark-mode auto-shift intentionally removed: the brand palette must look
   identical for every visitor regardless of device/browser color-scheme. */
:root[data-theme="light"] {
  --cream: #F6EEDE; --cream-deep: #EDE1C8; --paper: #FFFFFF;
  --espresso: #2E1D14; --espresso-soft: #4A3226;
  --gold: #A97C4F; --gold-deep: #8B5E38; --gold-tint: #F1E2C9;
  --rose: #7A4632; --rose-deep: #5C3323; --rose-tint: #EDD9C6;
  --ink: #2E1D14; --ink-soft: #7A6A5C; --border: rgba(46, 29, 20, 0.12);
  --shadow-color: 46, 29, 20; color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
html[data-lang="ar"] body { font-family: var(--font-body-ar); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-mark { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; }
.lang-toggle { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.lang-toggle button {
  border: none; background: transparent; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft);
  cursor: pointer; transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.lang-toggle button[aria-pressed="true"] { background: var(--espresso); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; flex: 1; display: flex; align-items: center; padding: 60px 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 55%; transform: scale(1.85); transform-origin: 92% 55%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.82) 0%, rgba(20, 14, 10, 0.72) 45%, rgba(20, 14, 10, 0.88) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.hero-photo .eyebrow { color: var(--rose); }
h1 {
  font-family: var(--font-display-en); font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15; margin-bottom: 14px;
  color: #FBF6EF;
}
html[data-lang="ar"] h1 { font-family: var(--font-display-ar); }
.hero-sub { color: rgba(251, 246, 239, 0.86); font-size: 16px; margin-bottom: 44px; }

/* ---------- Branch grid ---------- */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  text-align: start;
}
.branch-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 20px 40px -28px rgba(var(--shadow-color), 0.4);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.branch-card.is-live:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -24px rgba(var(--shadow-color), 0.5);
  border-color: var(--gold);
}
.branch-card.is-soon { opacity: .6; cursor: default; }
.branch-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.branch-icon svg { width: 22px; height: 22px; }
.branch-name { font-family: var(--font-display-en); font-size: 20px; }
html[data-lang="ar"] .branch-name { font-family: var(--font-display-ar); }
.branch-area { font-size: 13px; color: var(--ink-soft); }
.branch-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--gold-deep);
}
.branch-cta svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.branch-card.is-live:hover .branch-cta svg { transform: translateX(4px); }
html[dir="rtl"] .branch-card.is-live:hover .branch-cta svg { transform: translateX(-4px); }
.branch-badge {
  position: absolute; top: 18px; inset-inline-end: 18px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--rose-tint); color: var(--rose-deep);
  padding: 4px 10px; border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer { padding: 26px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p { font-size: 12.5px; color: var(--ink-soft); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.social-row a:hover { background: var(--gold); color: #fff; }
.social-row svg { width: 17px; height: 17px; }

@media (max-width: 560px) {
  .hero { padding: 24px 0 40px; }
  .branch-grid { grid-template-columns: 1fr; }
}
