/* =========================================================
   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%;
  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: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Cormorant Garamond", "Palatino Linotype", Georgia, 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;
  font-family: var(--heading-font);
}

h1{
  font-weight: 700;
}

h2, h3{
  font-weight: 600;
}


/* =========================================================
   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 {
  /* Narrower pill — feels more refined */
  max-width: 56rem;
  margin: 0 auto;

  /* Deeper, richer green — calming, not loud */
  background: var(--bs-primary);
  backdrop-filter: blur(0.5rem);

  border-radius: 1.5rem;
  padding: 0.6rem 1.1rem;

  border: 0.0625rem solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
}

/* Nav links */
.nav-pill .main-nav .nav-link {
  position: relative;
  font-family: var(--site-font);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--bs-navbar-brand-color);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Underline grows in on hover */
.nav-pill .main-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(20, 35, 30, 0.7);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.nav-pill .main-nav .nav-link:hover,
.nav-pill .main-nav .nav-link.active {
  color: rgba(20, 35, 30, 1) !important;
  transform: translateY(-2px);
}

.nav-pill .main-nav .nav-link:hover::after,
.nav-pill .main-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* Brand title — elegant serif, refined */
.nav-pill .main-nav .navbar-brand {
  font-family: var(--heading-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-pill .main-nav .brand-sub {
  font-family: var(--heading-font);
  font-weight: 400;
  font-style: italic;
}

/* Book Now button — blue */
.nav-pill .main-nav .nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.52rem 1.2rem 0.52rem 1.1rem;
  border-radius: 999rem;

  /* Warm terracotta — distinct from the green nav, feels like a call to action */
  background: linear-gradient(
    135deg,
    rgba(210, 105, 80, 0.96) 0%,
    rgba(196, 88, 65, 0.98) 100%
  );
  color: #fff;

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 4px 16px rgba(196, 88, 65, 0.38),
    0 1px 3px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  font-family: var(--site-font);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;

  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease,
              filter 0.22s ease;
}

/* The arrow — subtle, spaced right */
.nav-pill .main-nav .nav-cta-btn::after {
  content: "→";
  font-size: 0.82rem;
  opacity: 0.85;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.nav-pill .main-nav .nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 26px rgba(196, 88, 65, 0.46),
    0 2px 6px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.06);
}

.nav-pill .main-nav .nav-cta-btn:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

.nav-pill .main-nav .nav-cta-btn:active {
  transform: translateY(0) scale(0.97);
  filter: brightness(0.97);
  transition-duration: 0.08s;
}


/* 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(4, 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;
}

.site-footer .footer-bottom .footer-bottom__inner {
  display: block !important;
  text-align: center;
}

.site-footer .footer-bottom .footer-bottom__inner > span,
.site-footer .footer-bottom .footer-bottom__inner > a {
  display: block !important;
}

.footer-bottom__divider {
  display: none;
}

.site-footer .footer-bottom .footer-credit,
.site-footer .footer-bottom .footer-credit:link,
.site-footer .footer-bottom .footer-credit:visited,
.site-footer .footer-bottom .footer-credit:active {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer .footer-bottom .footer-credit:hover,
.site-footer .footer-bottom .footer-credit:focus-visible {
  color: rgba(255,255,255,1) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

.ss-map-fallback {
  display: grid;
  place-items: center;
  min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(125,155,135,0.16), transparent 56%),
    linear-gradient(180deg, rgba(247,242,234,0.96), rgba(255,255,255,0.98));
  color: rgba(29,45,37,0.8);
}

.ss-map-fallback__inner {
  max-width: 24rem;
}

.ss-map-fallback__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(125,155,135,0.95);
}

.ss-map-fallback__title {
  margin: 0 0 0.7rem;
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.02;
  color: #1d2d25;
}

.ss-map-fallback__text {
  margin: 0 0 1rem;
  line-height: 1.7;
}

/* --- GLOBAL MOBILE GUARDS --- */
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  /* NOTE: max-width is set in agency-polish.css for the centred-app layout */
  overflow-x: hidden;
}

/* Any page wrapper you might have */
main, .page, .site, .wrapper {
  max-width: 100%;
  overflow-x: hidden;
}
