/* ============================================================
   SHARED SITE CSS — The Luxury Loo
   Includes: reset, variables, announcement bar, header/nav,
             footer, social icons, fade-up animations, responsive
============================================================ */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: #1F1F1F;
  background: #F7F7F5;
  font-size: 18px;
  line-height: 1.8;
}

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --green:      #5a7a6a;
  --green-dark: #4a6a5a;
  --gold:       #b89a5e;
  --off-white:  #f5f4f0;
  --offwhite:   #F7F7F5;
  --charcoal:   #2c2c2c;
  --nav-text:   #3a3a3a;
  --logo-gap:   28px;
  --logo-w:     220px;
  --outer-pad:  48px;
  --light-green:#e8efe9;
}

/* ============================================================
   ANNOUNCEMENT BAR
============================================================ */
.announcement-bar {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 12px 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
  width: 100%;
}
.announcement-bar .bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.announcement-bar a {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.18em;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.announcement-bar a:hover { opacity: 0.8; }

/* ============================================================
   HEADER WRAP — sticky container for bar + nav together
============================================================ */
.header-wrap {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* ============================================================
   SITE HEADER
============================================================ */
.site-header {
  background: var(--off-white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  width: 100%;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-wrapper {
  display: grid;
  grid-template-columns: var(--logo-w) 1fr auto;
  align-items: center;
  padding: 0 var(--outer-pad);
  min-height: 110px;
  gap: 32px;
}

/* Logo — left column */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}
.nav-logo a { display: block; line-height: 0; }
.nav-logo img {
  width: var(--logo-w);
  height: auto;
  display: block;
}

/* Nav links — centre column */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* Right — payment button + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.nav-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold); }

.btn-outline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  background: transparent;
  padding: 11px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-filled {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: 1.5px solid var(--green);
  padding: 11px 22px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.btn-filled:hover { background: var(--green-dark); border-color: var(--green-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2c2c2c;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background: var(--off-white);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 28px 40px 36px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu .nav-link:last-of-type { border-bottom: none; }
.mobile-menu .btn-outline,
.mobile-menu .btn-filled {
  margin-top: 20px;
  width: 100%;
  text-align: center;
  padding: 15px 24px;
  font-size: 12px;
  font-weight: 400;
}
.mobile-menu .btn-filled { margin-top: 10px; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 88px 0 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo img {
  max-width: 220px;
  width: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-logo p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-top: 18px;
  line-height: 1.75;
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  text-decoration: none;
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address {
  font-style: normal;
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}
.footer-col address a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col address a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 14px; margin-top: 22px; }
.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.social-icon:hover { border-color: var(--gold); background: rgba(184,154,94,0.1); }
.social-icon svg { width: 17px; height: 17px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.5; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 36px;
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   SCROLL ANIMATIONS
============================================================ */
/* fade-up: hidden only when JS is active (js-ready on <body>)
   Without JS, content is always fully visible */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }
.js-ready .fade-up.delay-1 { transition-delay: 0.1s; }
.js-ready .fade-up.delay-2 { transition-delay: 0.2s; }
.js-ready .fade-up.delay-3 { transition-delay: 0.3s; }
.js-ready .fade-up.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1400px) {
  :root { --outer-pad: 28px; }
}

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-right .btn-outline { display: none; }
  /* Mobile layout: logo centered, hamburger right */
  .nav-wrapper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0 20px;
    min-height: 100px;
    gap: 0;
  }
  /* Empty left spacer so logo truly centers */
  .nav-logo {
    grid-column: 2;
    justify-content: center;
  }
  .nav-links { display: none; }
  .nav-right {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
  }
  .hamburger {
    display: flex;
  }
  :root { --logo-w: 180px; }
  .nav-logo img { width: 180px; }
}

@media (max-width: 900px) {
  .announcement-bar { font-size: 10px; letter-spacing: 0.12em; padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .announcement-bar { font-size: 10px; letter-spacing: 0.12em; padding: 10px 16px; }
  .nav-wrapper { padding: 0 16px; min-height: 76px; }
  :root { --logo-w: 150px; }
  .nav-logo img { width: 150px; }
  .mobile-menu { padding: 20px 24px 28px; }
}

@media (min-width: 1600px) {
  :root { --outer-pad: 80px; --logo-w: 240px; --logo-gap: 32px; }
  .nav-logo img { width: 240px; }
}
