/* =========================================================
   GLOBAL / SITE-WIDE (global.css)
   - Layout container (Rosla-style)
   - Base typography scale
   - Topbar + rotating message animation
   - Global navbar (pill + centered links + CTA)
   - Nav modes (static vs overlay)
   ========================================================= */

/* GLOBAL SAFETY NET */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


:root {
  /* We force a consistent topbar height to prevent “jumping” between pages */
  --topbar-h: 2.75rem;
  --nav-gap: 0.75rem;

  --site-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;


  /* Pill sizing */
  --nav-pill-max: 65.625rem; /* 1050px */
}

/* Always reserve scrollbar width so things don’t shift page-to-page */
html { overflow-y: scroll; }

/* =========================================================
   LAYOUT CONTAINER
   ========================================================= */

.site-frame {
  width: 100%;
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =========================================================
   BASE TYPOGRAPHY
   ========================================================= */

body {
  font-size: 0.95rem;
  font-family: var(--site-font);
}

h1, h2, h3, .navbar-brand{
  letter-spacing: -0.02em;
}

h1{
  font-weight: 800;
}

h2, h3{
  font-weight: 700;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;

  height: var(--topbar-h);
  background: var(--bs-primary);
  color: var(--bs-dark);
  border-bottom: none !important;

  display: flex;
  align-items: center;
}

/* Bootstrap adds py-2 in the template — we override so height stays constant */
.topbar .site-frame.py-2 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 100%;
  display: flex;
  align-items: center;
}

.topbar .text-muted {
  color: rgba(0, 0, 0, 0.65) !important;
}

.topbar-text {
  font-size: 0.85rem;
  font-weight: 500;
}

/* =========================================================
   TOPBAR ROTATING MESSAGE (fade in/out)
   ========================================================= */

.topbar-rotate {
  position: relative;
  display: block;
  width: min(35rem, 52vw);
  height: 1.2em;
  overflow: hidden;
}

.topbar-rotate__item {
  position: absolute !important;
  inset: 0;
  display: block !important;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  opacity: 0;
  animation: topbar-rotate-fade 12s infinite;

  transform: translateY(0.125rem);

  color: rgba(0, 0, 0, 0.65);
  font-size: 0.85rem;
  font-weight: 500;
}

.topbar-rotate__item:nth-child(1) { animation-delay: 0s; }
.topbar-rotate__item:nth-child(2) { animation-delay: 4s; }
.topbar-rotate__item:nth-child(3) { animation-delay: 8s; }

@keyframes topbar-rotate-fade {
  0%   { opacity: 0; transform: translateY(0.125rem); }
  8%   { opacity: 1; transform: translateY(0); }
  30%  { opacity: 1; transform: translateY(0); }
  38%  { opacity: 0; transform: translateY(-0.125rem); }
  100% { opacity: 0; transform: translateY(-0.125rem); }
}

/* =========================================================
   SHARED UI HELPERS
   ========================================================= */

.icon-circle{
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* support both inline svg + img icons */
.icon-circle svg,
.icon-circle img{
  width: 0.85rem;
  height: 0.85rem;
  display: block;
}

/* make sure inline svg inherits topbar text color */


/* =========================================================
   NAVBAR (GLOBAL)
   ========================================================= */

.main-nav {
  z-index: 50;
}

/* This is the pill “frame” that contains the brand / links / CTA */
.main-nav .nav-frame {
  display: flex;
  align-items: center;
}

/* Brand styling */
.main-nav .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.main-nav .brand-sub {
  font-weight: 600;
  opacity: 0.75;
}

.main-nav .brand-sep {
  opacity: 0.45;
  margin: 0 0.35rem;
}

/* Desktop: true centered links */
@media (min-width: 62rem) {
  .main-nav .navbar-collapse {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .main-nav .nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
  }

  .main-nav .nav-cta-wrap {
    display: flex;
    justify-content: flex-end;
  }
}

/* CTA button */
.main-nav .nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.05rem;
  border-radius: 999rem;

  background: rgba(120, 145, 130, 0.95);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;

  border: 0.0625rem solid rgba(0,0,0,0.12);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.12);
}

.main-nav .nav-cta-btn:hover {
  filter: brightness(1.05);
}

/* Navbar links */
.navbar .nav-link {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(20, 35, 30, 0.85);
}

/* Hover / active */
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: rgba(20, 35, 30, 1);
}


/* =========================================================
   NAV MODES (via body classes)
   ========================================================= */

/* PILL LOOK (can be used on any page) */
.nav-pill .main-nav {
  background: transparent !important;
  padding: 0;
}

.nav-pill .main-nav .nav-frame {
  max-width: var(--nav-pill-max);
  margin: 0 auto;

  background: rgba(var(--bs-primary-rgb), 0.82);
  backdrop-filter: blur(0.5rem);

  border-radius: 1.5rem;
  padding: 0.85rem 1.15rem;

  border: 0.0625rem solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.14);
}

/* Links inside the pill (FINAL SOURCE OF TRUTH) */
.nav-pill .main-nav .nav-link{
  font-weight: 500;                 /* calmer than 600 */
  letter-spacing: 0.02em;
  color: rgba(20, 35, 30, 0.86) !important;
  opacity: 1;
}

/* Hover / active */
.nav-pill .main-nav .nav-link:hover,
.nav-pill .main-nav .nav-link.active{
  color: rgba(20, 35, 30, 1) !important;
  text-decoration: none;            /* remove underline if you want “premium” */
}

/* Premium hover motion */
.nav-pill .main-nav .nav-link{
  position: relative;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-pill .main-nav .nav-link:hover{
  transform: translateY(-1px);
  opacity: 1;
}


/* CTA inside the pill becomes “light” */
/* CTA inside the pill — premium glass */
.nav-pill .main-nav .nav-cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;

  padding: 0.60rem 1.10rem;
  border-radius: 999rem;

  background: rgba(255, 255, 255, 0.34);
  color: rgba(20, 35, 30, 0.92);

  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 0.55rem 1.15rem rgba(0, 0, 0, 0.10);

  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;

  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-pill .main-nav .nav-cta-btn:hover{
  transform: translateY(-1px);
  background-color: rgba(255, 255, 255, 0.50);
  box-shadow: 0 0.75rem 1.45rem rgba(0, 0, 0, 0.14);
}


.nav-pill .main-nav .nav-cta-btn:active{
  transform: translateY(0);
}


/* STATIC MODE: navbar sits under topbar with consistent spacing */
.nav-static .main-nav {
  position: relative;
  margin-top: var(--nav-gap);
}

/* OVERLAY MODE: navbar floats over content but stays under the sticky topbar */
.nav-overlay .main-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--topbar-h) + var(--nav-gap));
}

/* =========================================================
   PAGE ENTRANCE POLISH (subtle blur fade)
   ========================================================= */

/* main {
  animation: page-enter 1.1s ease-out both;
}

@keyframes page-enter {
  from {
    opacity: 0.92;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
} */

.topbar-location{
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  font-weight: 600;
}

.topbar-location:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* ================================
   FOOTER
================================ */

.site-footer {
  background: var(--bs-primary);
  color: rgba(255,255,255,0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  align-items: start;
  text-align: center;              /* 👈 key */
}


.footer-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;              /* ⬅ down again */
  color: rgba(255,255,255,0.95);
}


.footer-item,
.footer-link {
  display: block;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;               /* ⬅ slightly smaller */
  margin-bottom: 0.45rem;
}

.footer-item {
  display: flex;
  justify-content: center;         /* 👈 center row */
  align-items: center;
  gap: 0.45rem;
}

.footer-item--plain {
  display: block;
  text-align: center;
}

.footer-ico {
  display: inline-block;
  width: 1.6rem;
  margin-right: 0.55rem;
  opacity: 0.95;
}

.footer-link:hover,
.footer-item:hover {
  color: rgba(255,255,255,1);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer-bottom {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 0.45rem 0;
  font-weight: 600;
  font-size: 0.8rem;
}

/* --- GLOBAL MOBILE GUARDS --- */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* prevents sideways scroll / background showing */
}

/* Any page wrapper you might have */
main, .page, .site, .wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

