/* =============================================
   OPEN ROAD STAYS — SHARED STYLES
   =============================================
   Shared CSS extracted from page templates.
   Page-specific styles remain inline in each .njk file.
   ============================================= */

/* ─── DESIGN TOKENS ─── */
:root {
  --blue: #0078b5;
  --blue-light: #008ad4;
  --blue-dark: #00517a;
  --blue-deep: #003d5c;
  --gold: #e8a735;
  --orange: #ff8000;
  --orange-hover: #e67300;
  --orange-glow: rgba(255,128,0,0.15);
  --cream: #faf8f5;
  --white: #fff;
  --gray-50: #f8f8f8;
  --gray-100: #eee;
  --gray-200: #d4d4d4;
  --gray-300: #a3a3a3;
  --gray-400: #737373;
  --gray-500: #525252;
  --gray-900: #171717;
  --green: #16a34a;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  font-family: var(--sans);
  color: var(--gray-500);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button { font-family: inherit; cursor: pointer }

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px }
@media(min-width:768px) { .container { padding: 0 48px } }
@media(min-width:1200px) { .container { padding: 0 24px } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  padding: 16px 32px; border-radius: 60px; border: none; cursor: pointer;
  transition: all .3s var(--ease); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .5s;
}
.btn:hover::after { transform: translateX(100%) }
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 14px rgba(255,128,0,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,128,0,.4) }
.btn-secondary {
  background: transparent; color: var(--gray-900);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--gray-900) }
.btn-white {
  background: var(--white); color: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px) }
.btn svg { transition: transform .3s var(--ease) }
.btn:hover svg { transform: translateX(3px) }

/* ─── NAV (hero variant) ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .4s ease }
.nav--hero { background: transparent }
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
@media(min-width:768px) { .nav-inner { padding: 0 48px } }
@media(min-width:1200px) { .nav-inner { padding: 0 24px } }
.nav-logo img { height: 38px; width: auto; transition: filter .3s }
.nav--hero .nav-logo img { filter: brightness(0) invert(1) }
.nav.scrolled .nav-logo img { filter: none }
.nav-links { display: none; list-style: none; gap: 32px; align-items: center }
@media(min-width:768px) { .nav-links { display: flex } }
.nav-links a { font-size: 14px; font-weight: 600; transition: all .2s; position: relative }
.nav--hero .nav-links a { color: rgba(255,255,255,.75) }
.nav--hero .nav-links a:hover { color: #fff }
.nav.scrolled .nav-links a { color: var(--gray-400) }
.nav.scrolled .nav-links a:hover { color: var(--gray-900) }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; border-radius: 1px; transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav--hero .nav-links a::after { background: var(--white) }
.nav.scrolled .nav-links a::after { background: var(--orange) }
.nav-links a:hover::after { transform: scaleX(1) }
.nav-cta .btn { padding: 10px 22px; font-size: 14px }
.nav--hero .nav-cta .btn-primary {
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); box-shadow: none;
}
.nav--hero .nav-cta .btn-primary:hover { background: rgba(255,255,255,.25) }
.nav.scrolled .nav-cta .btn-primary {
  background: var(--orange); border: none;
  box-shadow: 0 4px 20px var(--orange-glow);
}
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none;
}
@media(min-width:768px) { .mobile-toggle { display: none } }
.mobile-toggle span {
  display: block; width: 20px; height: 2px;
  position: relative; transition: .3s;
}
.nav--hero .mobile-toggle span,
.nav--hero .mobile-toggle span::before,
.nav--hero .mobile-toggle span::after { background: #fff }
.nav.scrolled .mobile-toggle span,
.nav.scrolled .mobile-toggle span::before,
.nav.scrolled .mobile-toggle span::after { background: var(--gray-900) }
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 20px; height: 2px; transition: .3s;
}
.mobile-toggle span::before { top: -6px }
.mobile-toggle span::after { top: 6px }
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 200;
  padding: 24px; flex-direction: column;
}
.mobile-nav.open { display: flex }
.mobile-nav-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 48px;
}
.mobile-nav-close { width: 44px; height: 44px; background: none; border: none; font-size: 24px }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0 }
.mobile-nav-links a {
  display: block; padding: 20px 0; font-size: 20px; font-weight: 600;
  color: var(--gray-900); border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-cta { margin-top: auto; padding-top: 32px }

/* ─── PAGE HERO ─── */
.page-hero {
  min-height: 60vh; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 35%, var(--blue-light) 70%, var(--gold) 100%);
  display: flex; align-items: center;
  padding: 160px 0 80px; text-align: center;
}
@media(min-width:768px) { .page-hero { padding: 180px 0 100px } }
.page-hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,138,212,.25) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,176,31,.15) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
  animation: drift 25s ease-in-out 3s infinite alternate-reverse;
}
@keyframes drift { 0% { transform: translate(0,0) } 100% { transform: translate(40px,-30px) } }
.hero-stars {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-sparkle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  pointer-events: none;
  animation: sparkle 4s ease-in-out infinite;
}
@keyframes sparkle { 0%,100% { opacity: .2; transform: scale(.8) } 50% { opacity: .6; transform: scale(1.2) } }
.page-hero .container { position: relative; z-index: 2 }
.page-hero-overline {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.6); margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--serif); font-size: 36px; font-weight: 700;
  color: var(--white); line-height: 1.2; letter-spacing: -.02em;
  max-width: 680px; margin: 0 auto 20px;
}
@media(min-width:768px) { .page-hero h1 { font-size: 50px } }
.page-hero p {
  font-size: 18px; color: rgba(255,255,255,.7);
  max-width: 560px; margin: 0 auto; line-height: 1.6;
}

/* ─── SECTIONS ─── */
section { padding: 80px 0 }
@media(min-width:768px) { section { padding: 100px 0 } }
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--blue); margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: var(--gray-900); line-height: 1.3; letter-spacing: -.02em;
  margin-bottom: 20px;
}
@media(min-width:768px) { .section-title { font-size: 36px } }

/* ─── FINAL CTA ─── */
.final-cta {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-deep));
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.12);
}
.final-cta::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,138,212,.15) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.final-cta h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 700;
  color: var(--white); margin-bottom: 12px; letter-spacing: -.02em;
  position: relative; z-index: 2;
}
@media(min-width:768px) { .final-cta h2 { font-size: 42px } }
.final-cta p {
  font-size: 17px; color: rgba(255,255,255,.6);
  max-width: 520px; margin: 0 auto 32px;
  position: relative; z-index: 2;
}
.final-cta .btn { position: relative; z-index: 2 }

/* ─── FOOTER ─── */
.footer { padding: 56px 0 24px; border-top: 1px solid var(--gray-100) }
.footer-grid {
  display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 40px;
}
@media(min-width:768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr } }
.footer-logo img { height: 32px; width: auto; margin-bottom: 12px }
.footer-tagline { font-size: 14px; color: var(--gray-300); max-width: 240px }
.footer-col h4 {
  font-size: 12px; font-weight: 800; color: var(--gray-900);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px }
.footer-col a { font-size: 14px; color: var(--gray-400); transition: color .2s }
.footer-col a:hover { color: var(--gray-900) }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--gray-100);
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--gray-300) }
@media(max-width:767px) { .footer-bottom { flex-direction: column; text-align: center } }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 4px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  z-index: 90; opacity: 0; transform: translateY(16px);
  transition: all .4s var(--ease); cursor: pointer;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) }
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 8px rgba(0,120,181,.15), 0 12px 32px rgba(0,120,181,.2);
  background: var(--blue); border-color: var(--blue);
}
.back-to-top:hover svg { color: var(--white) }
.back-to-top svg { width: 20px; height: 20px; color: var(--gray-500); transition: color .2s }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0; transform: translateY(32px) scale(.98);
  transition: opacity .7s var(--ease), transform .8s cubic-bezier(.34,1.56,.64,1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1) }
.reveal-d1 { transition-delay: .08s }
.reveal-d2 { transition-delay: .16s }
.reveal-d3 { transition-delay: .24s }

/* ─── 3D CURSOR GLOW ─── */
.hero-cursor-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%),
    rgba(255,176,31,.1) 0%, rgba(0,138,212,.05) 25%, transparent 60%);
  transition: opacity .3s; opacity: 0;
}
.page-hero:hover .hero-cursor-glow { opacity: 1 }

.final-cta-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%),
    rgba(255,255,255,.06) 0%, transparent 60%);
  transition: opacity .3s; opacity: 0;
}
.final-cta:hover .final-cta-glow { opacity: 1 }

@media(hover:none),(pointer:coarse) {
  .hero-cursor-glow, .final-cta-glow { display: none }
}

/* ─── COOKIE CONSENT ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.cookie-banner.show { transform: translateY(0); pointer-events: all }
.cookie-inner {
  max-width: 520px; margin: 0 auto 20px; padding: 20px 24px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: 20px; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 14px;
}
@media(min-width:600px) {
  .cookie-inner { margin: 0 20px 20px auto; flex-direction: row; align-items: center; max-width: 620px }
}
.cookie-text { flex: 1; font-size: 13px; line-height: 1.5; color: #525252 }
.cookie-text a { color: #0078b5; text-decoration: underline; font-weight: 600 }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0 }
.cookie-btn {
  padding: 9px 18px; border-radius: 60px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s; font-family: inherit;
}
.cookie-accept { background: #0078b5; color: #fff; box-shadow: 0 2px 8px rgba(0,120,181,.2) }
.cookie-accept:hover { background: #008ad4; transform: translateY(-1px) }
.cookie-decline { background: transparent; color: #a3a3a3; border: 1.5px solid #ececec }
.cookie-decline:hover { border-color: #d4d4d4; color: #525252 }
