/* ==========================================================================
   Landing-page header + footer for doctor.ayurvedabio.com CodeIgniter pages
   Ported from the static homepage (public/index.html) so /Home/* and
   /Customer/* share the cream/frosted-glass header and dark-green footer.

   Loaded AFTER style.css / media.css / rs6.css so cascade order wins.
   Everything is scoped under header.header / footer.footer to avoid
   leaking into the old Bootstrap 3 page bodies. Two intentional renames
   vs. the landing page (Bootstrap collisions): .nav -> .topbar-nav,
   and the CTA uses a.btn-cta (not .btn.btn-cta).
   ========================================================================== */

/* --- design tokens (verbatim from index.html) --- */
:root {
  --ink: #1F2A20;
  --paper: #FFF9F0;
  --sage: #EEF6ED;
  --card: #FFFCF7;
  --leaf: #3D6B4F;
  --deep: #1C3527;
  --cta-green: #5E9B73;
  --cta-green-dark: #4F8663;
  --gold: #E8B45A;
  --gold-text: #A8752B;
  --muted: #52604F;
  --line: #E9DDCB;
  --shadow: 0 10px 30px rgba(61, 107, 79, .10);
  --max: 1180px;
  --step--1: clamp(13px, 12.3px + .22vw, 15px);
  --step-0: clamp(16px, 15.3px + .22vw, 18px);
  --step-1: clamp(18px, 17px + .35vw, 21px);
  --step-2: clamp(22px, 20px + .6vw, 27px);
  --step-3: clamp(27px, 23.5px + 1.1vw, 36px);
  --step-4: clamp(33px, 27px + 1.9vw, 50px);
  --step-5: clamp(40px, 29px + 3.6vw, 74px);
}

/* offset the fixed header; overrides old style.css body padding (67px / 45px) */
body { padding-top: 72px; }

/* --- fixed frosted header --- */
header.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000; /* keep above Slider Revolution */
  background: rgba(255, 249, 240, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  font-family: "Inter", sans-serif;
}

/* scoped resets so Bootstrap defaults don't bleed into the header/footer */
header.header *, header.header *::before, header.header *::after,
footer.footer *, footer.footer *::before, footer.footer *::after {
  box-sizing: border-box;
}
header.header a { color: inherit; text-decoration: none; }
header.header img { display: block; max-width: 100%; height: auto; }

/* --- layout container --- */
header.header .shell,
footer.footer .shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* --- nav row (renamed from .nav to dodge Bootstrap .nav) --- */
header.header .topbar-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

header.header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--leaf);
}

header.header .brand img { width: 84px; }

header.header .navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

header.header .navlinks a { color: inherit; }
header.header .navlinks a:hover { color: var(--leaf); }

header.header .actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

header.header .phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-weight: 700;
  color: var(--leaf);
  white-space: nowrap;
}

header.header .phone-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
}

/* --- CTA button: merged .btn base + .btn-cta, as a.btn-cta to beat Bootstrap .btn --- */
header.header a.btn-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--cta-green);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(94, 155, 115, .32);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

header.header a.btn-cta:hover {
  transform: translateY(-2px);
  background: var(--cta-green-dark);
  box-shadow: 0 10px 26px rgba(94, 155, 115, .4);
}

header.header a.btn-cta:active { transform: translateY(0); }

header.header a.btn-cta:focus-visible {
  outline: 3px solid var(--cta-green-dark);
  outline-offset: 2px;
}

/* --- account menu (login / register / profile) --- */
header.header .account {
  position: relative;
  flex: 0 0 auto;
}

header.header .account-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--leaf);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

header.header .account-toggle:hover {
  background: var(--sage);
  border-color: rgba(94, 155, 115, .4);
  transform: translateY(-1px);
}

header.header .account-toggle:focus-visible {
  outline: 3px solid var(--cta-green-dark);
  outline-offset: 2px;
}

header.header .account-icon {
  width: 21px;
  height: 21px;
}

header.header .account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 190px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

header.header .account.is-open .account-menu {
  display: grid;
  gap: 4px;
}

header.header .account-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}

header.header .account-menu a:hover {
  background: var(--sage);
  color: var(--leaf);
}

header.header .account-menu a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--leaf);
}

/* --- footer (no id, so old #footer{background:#fff} can't win) --- */
footer.footer {
  padding: 36px 0 40px;
  background: #2A4A37;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

footer.footer .shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

footer.footer .phone { color: #fff; }

footer.footer .phone-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
}

footer.footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

footer.footer a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

footer.footer a:hover { text-decoration: underline; }

/* mandatory BG euro dual-display currency line */
footer.footer .footer-rate {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}

/* --- responsive --- */
@media (min-width: 640px) {
  footer.footer .shell {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* mobile: hide the desktop nav links entirely (no hamburger — matches landing) */
@media (max-width: 979px) {
  header.header .navlinks { display: none; }
}

@media (max-width: 639px) {
  body { padding-top: 64px; }
  header.header .topbar-nav { min-height: 64px; }
  header.header .brand img { width: 68px; }
  header.header .brand span { display: none; }
  header.header .actions .phone span { display: none; }
}
