/* =====================================================================
   SaralDesk – shared site chrome (every page)
   Design tokens, reset, utilities, navbar, mobile drawer, language
   switch, footer. Ported 1:1 from the original static landing page.
   ===================================================================== */

/* ===================== RESET & VARIABLES ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1B2B6B;
  --navy-dark: #0f1a46;
  --navy-light: #2a3f8f;
  --red: #E8194B;
  --red-dark: #c0133c;
  --purple: #4A3080;
  --purple-light: #6b4db8;
  --white: #FFFFFF;
  --light: #F5F6FA;
  --light2: #ECEEF6;
  --text: #1a1a2e;
  --text2: #555771;
  --text3: #8890a4;
  --border: rgba(27,43,107,0.1);
  --shadow-sm: 0 2px 12px rgba(27,43,107,0.08);
  --shadow-md: 0 8px 32px rgba(27,43,107,0.12);
  --shadow-lg: 0 24px 80px rgba(27,43,107,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --nav-h: 68px;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
/* Hindi: Devanagari first, Latin fallback (set by site.js via <html lang>). */
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul, ol { list-style: none; }

/* WordPress admin bar offset for the fixed navbar */
.admin-bar #navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar #navbar { top: 46px; } }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
:where(a, button):focus-visible { outline: 3px solid rgba(232,25,75,0.55); outline-offset: 2px; }

/* ===================== UTILITY ===================== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--light); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--red); background: rgba(232,25,75,0.08);
  border: 1px solid rgba(232,25,75,0.15);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; color: var(--navy);
  line-height: 1.15; margin-bottom: 16px;
}
.section-title .accent { color: var(--red); }
.section-sub { font-size: 17px; color: var(--text2); max-width: 560px; line-height: 1.7; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; }
.logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.5px;
}
.logo-text .n { color: var(--navy); }
.logo-text .r { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text2);
  padding: 7px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--navy); background: var(--light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 8px 18px; border-radius: 8px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s;
}
a.btn-ghost { display: inline-flex; align-items: center; justify-content: center; line-height: 1.6; }
.btn-ghost:hover { border-color: var(--navy); background: var(--light); }
.btn-cta {
  font-size: 14px; font-weight: 700; color: white;
  padding: 9px 20px; border-radius: 9px; border: none;
  background: var(--navy); cursor: pointer; font-family: var(--font-body);
  transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.btn-cta:hover { background: var(--red); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,25,75,0.3); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
  z-index: 1201; position: relative; background: none; border: none;
}
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; display: block; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== MOBILE DRAWER ===================== */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 1190;
  background: rgba(15,20,40,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(82vw, 340px);
  background: var(--white);
  z-index: 1200;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.32s;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.active { transform: translateX(0); visibility: visible; transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s; }
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-close {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1.5px solid var(--border); background: var(--light);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 16px; cursor: pointer;
}
.mobile-drawer-links {
  display: flex; flex-direction: column;
  padding: 12px 12px;
}
.mobile-drawer-links a {
  font-size: 16px; font-weight: 600; color: var(--text);
  padding: 14px 12px; border-radius: 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer-links a:last-child { border-bottom: none; }
.mobile-drawer-links a:hover, .mobile-drawer-links a:active { background: var(--light); color: var(--navy); }
.mobile-drawer-actions {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 20px 28px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}
.mobile-drawer-actions .btn-ghost,
.mobile-drawer-actions .btn-cta {
  width: 100%; justify-content: center;
}
body.menu-open { overflow: hidden; }

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switch {
  display: flex; align-items: center;
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.lang-btn {
  padding: 6px 12px; border: none; background: transparent;
  color: var(--text3); cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}
.lang-btn[lang="hi"] { font-family: 'Noto Sans Devanagari', var(--font-body); }
.lang-btn.active { background: var(--navy); color: white; border-radius: 6px; }
.lang-btn:hover:not(.active) { color: var(--navy); }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--navy-dark);
  padding: 72px 0 0;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; margin: 16px 0 24px; }
.footer-logo { margin-bottom: 25px; }
.footer-logo-img { height: 60px; width: auto; display: block; object-fit: contain; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 14px;
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.social-btn:hover { background: rgba(255,255,255,0.15); color: white; transform: translateY(-2px); }
.footer-col .footer-col-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 16px; line-height: 1.6; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ===================== RESPONSIVE (chrome) ===================== */
.nav-links a, .nav-actions .btn-ghost, .nav-actions .btn-cta { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 769px) {
  /* Tablet / small laptop: with Login + Resto Login + Book Free Demo there is no
     room for the section links, so they move into the ☰ drawer. */
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .lang-switch { flex-shrink: 0; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 420px) {
  .logo-icon { width: 38px; height: 38px; }
  .logo-text { font-size: 18px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
  .nav-inner { gap: 4px; }
}
@media (min-width: 1101px) {
  /* Drawer is for ≤1100px only; never leave it open on resize. */
  .mobile-drawer, .mobile-overlay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
