/* ===== GLOBAL CSS — Ski-Lockers CF Pages ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== TOKENS ===== */
:root {
  --snow:        #F8F9FB;
  --frost:       #E8EDF5;
  --mist:        #D0D9EC;
  --slate-light: #6B7A99;
  --slate:       #3D4E6B;
  --navy:        #1C2333;
  --alpine:      #2B5EA7;
  --alpine-dark: #1E4480;
  --alpine-pale: #EBF0FA;
  --cedar:       #A0704A;
  --cedar-pale:  #F5EDE5;
  --white:       #FFFFFF;

  --ff: 'Plus Jakarta Sans', system-ui, sans-serif;

  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-md:  1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(28,35,51,.08);
  --shadow:    0 4px 16px rgba(28,35,51,.10);
  --shadow-lg: 0 12px 40px rgba(28,35,51,.14);

  --nav-h: 72px;
  --transition: 0.22s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); font-size: 16px; }
body { font-family: var(--ff); background: var(--snow); color: var(--navy); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--ff); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--ff); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { line-height: 1.15; font-weight: 800; color: var(--navy); }
h2 + p, h3 + p { margin-top: .75rem; }
h2 + p { margin-top: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); font-weight: 700; }
h4 { font-size: var(--text-lg); font-weight: 700; }
p { font-size: var(--text-md); color: var(--slate); line-height: 1.75; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--alpine); margin-bottom: .5rem; display: block; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.5rem; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 700; transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition); cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--alpine); color: var(--white); border-color: var(--alpine); }
.btn-primary:hover { background: var(--alpine-dark); border-color: var(--alpine-dark); box-shadow: 0 4px 16px rgba(43,94,167,.3); }
.btn-outline { background: transparent; color: var(--alpine); border-color: var(--alpine); }
.btn-outline:hover { background: var(--alpine-pale); }
.btn-cedar { background: var(--cedar); color: var(--white); border-color: var(--cedar); }
.btn-cedar:hover { background: #8a5f3c; box-shadow: 0 4px 16px rgba(160,112,74,.3); }
.btn-lg { padding: 1rem 2rem; font-size: var(--text-md); border-radius: var(--radius-sm); }
.btn-sm { padding: .5rem 1rem; font-size: var(--text-xs); }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ===== HEADER ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248,249,251,.92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition); }
.site-header.scrolled { border-color: var(--mist); box-shadow: var(--shadow-sm); }
.header-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem; height: var(--nav-h); }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: var(--text-xl); color: var(--navy); flex-shrink: 0; }
.logo-mark { font-size: 1.4rem; }
.logo-dot { color: var(--alpine); }
.main-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.main-nav a { font-size: var(--text-sm); font-weight: 600; color: var(--slate); padding: .4rem .7rem; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.main-nav a:hover, .main-nav a.active { color: var(--alpine); background: var(--alpine-pale); }
.header-cta { margin-left: .75rem; flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: .25rem; background: var(--white); border-top: 1px solid var(--frost); }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: var(--text-md); font-weight: 600; color: var(--slate); padding: .6rem .75rem; border-radius: var(--radius-sm); }
.mobile-nav a:hover { color: var(--alpine); background: var(--alpine-pale); }
.mobile-nav .btn-primary, .mobile-nav .btn-primary:hover { color: #fff !important; background: var(--alpine); }
.mobile-reserve-btn { margin-top: .75rem; }
body.nav-open { overflow: hidden; }

/* ===== MOBILE STICKY BAR ===== */
.mobile-sticky-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: .75rem 1rem; background: var(--white); border-top: 1px solid var(--mist); gap: .75rem; box-shadow: 0 -4px 16px rgba(28,35,51,.10); }
.mobile-sticky-bar .btn { flex: 1; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: var(--white); padding: 4rem 0 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem 3rem; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand .logo-dot { color: var(--alpine); }
.footer-tagline { font-size: var(--text-sm); color: var(--slate-light); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--mist); margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--slate-light); padding: .2rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-address { font-size: var(--text-sm); color: var(--slate-light); margin-top: .5rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 1.5rem; max-width: 1160px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: var(--text-xs); color: var(--slate-light); }
.footer-legal { display: flex; gap: 1rem; margin-left: auto; }
.footer-legal a { color: var(--slate-light); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }
.footer-credit { color: var(--slate-light); }
.footer-credit a { color: var(--alpine); }

/* ===== WHATSAPP FAB ===== */
.fab-container { position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.fab-btn { width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: transform var(--transition); cursor: pointer; border: none; }
.fab-btn:hover { transform: scale(1.08); }
.fab-btn svg { width: 26px; height: 26px; fill: currentColor; }
.fab-bubble { position: absolute; right: 60px; bottom: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; width: 220px; display: none; flex-direction: column; gap: .5rem; }
.fab-container.open .fab-bubble { display: flex; }
.fab-bubble p { font-size: var(--text-sm); font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.fab-bubble a { font-size: var(--text-sm); color: var(--slate); padding: .5rem .75rem; background: var(--frost); border-radius: var(--radius-sm); transition: background var(--transition); }
.fab-bubble a:hover { background: var(--mist); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-alpine { color: var(--alpine); }
.text-cedar { color: var(--cedar); }
.badge { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: .25rem .75rem; border-radius: 100px; }
.badge-alpine { background: var(--alpine-pale); color: var(--alpine); }
.badge-cedar { background: var(--cedar-pale); color: var(--cedar); }
.badge-snow { background: var(--frost); color: var(--slate); }
.divider { height: 1px; background: var(--frost); border: none; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== FORM ELEMENTS ===== */
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-label { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.form-label span { font-weight: 400; color: var(--slate-light); }
.form-input, .form-select, .form-textarea { width: 100%; padding: .75rem 1rem; border: 2px solid var(--mist); border-radius: var(--radius-sm); font-size: var(--text-md); color: var(--navy); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--alpine); box-shadow: 0 0 0 3px rgba(43,94,167,.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: var(--text-xs); color: var(--slate-light); }

/* ===== CARD ===== */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--mist); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .mobile-sticky-bar { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .fab-container { bottom: 6.5rem; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== LOGO IMAGE ===== */
.logo-img { height: 40px; width: auto; display: block; }
.logo-img-footer { height: 34px; filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 640px) { .logo-img { height: 32px; } }

/* ===== MOBILE STICKY BAR — force correct text colors ===== */
.mobile-sticky-bar .btn-primary { color: #fff !important; }
.mobile-sticky-bar .btn-outline { color: var(--alpine) !important; background: transparent; border-color: var(--alpine); }

/* ===== BODY OVERFLOW GUARD ===== */
body { overflow-x: hidden; }

/* Date input placeholder on mobile */
input[type="date"]:not(.has-value):not(:focus) { color: var(--slate-light); }
input[type="date"].has-value, input[type="date"]:focus { color: var(--navy); }
input[type="date"]::-webkit-datetime-edit { color: inherit; }
input[type="date"]::-webkit-input-placeholder { color: var(--slate-light); }
