/* ============================================================
   assets/style.css — Grand Hotel shared design system
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --brand: #1f3a5f;
  --accent: #c9a227;
  --accent-dark: #b18e1e;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #222222;
  --muted: #666666;
  --success: #1e7b34;
  --danger: #b3261e;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.10);
  --radius-card: 12px;
  --radius-btn: 8px;
  --section-pad-desktop: 80px;
  --section-pad-mobile: 48px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad-desktop) 0; }
.section--alt { background: var(--surface); }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__title { margin-bottom: 12px; }
.section__subtitle { color: var(--muted); font-size: 1.05rem; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  line-height: 1.2; border: 2px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn--primary { background: var(--accent); color: #222; border-color: var(--accent); }
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--brand); color: #fff; transform: translateY(-2px);
}
.btn--sm { padding: 8px 18px; font-size: 0.875rem; }
.btn--lg { padding: 16px 40px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled { background: var(--surface); box-shadow: var(--shadow-sm); }
.header__inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo {
  font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
  letter-spacing: 1px; color: var(--brand);
  display: flex; align-items: center;
}
.header__logo span { color: var(--accent); }
.header__nav { display: flex; align-items: center; gap: 8px; }
.header__nav-link {
  padding: 8px 16px; font-weight: 500; font-size: 0.95rem;
  color: var(--brand); border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}
.header__nav-link:hover, .header__nav-link:focus-visible {
  background: rgba(31, 58, 95, 0.06);
}
.header__nav-link--active { color: var(--accent); font-weight: 600; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius-btn);
  transition: background var(--transition);
}
.header__hamburger:hover, .header__hamburger:focus-visible {
  background: rgba(0, 0, 0, 0.05);
}
.header__hamburger-icon { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.header__hamburger-icon span {
  display: block; height: 2px; background: var(--brand);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 2000; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }
.mobile-overlay__close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 2rem; line-height: 1;
  color: var(--brand); cursor: pointer; padding: 8px; border-radius: var(--radius-btn);
}
.mobile-overlay__close:hover, .mobile-overlay__close:focus-visible {
  background: rgba(0, 0, 0, 0.05);
}
.mobile-overlay__nav { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mobile-overlay__link {
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--brand);
  padding: 8px 24px; border-radius: var(--radius-btn);
  transition: background var(--transition), color var(--transition);
}
.mobile-overlay__link:hover, .mobile-overlay__link:focus-visible {
  background: rgba(201, 162, 39, 0.12); color: var(--accent-dark);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--brand); color: rgba(255, 255, 255, 0.85);
  padding: 64px 24px 0; margin-top: auto;
}
.footer__grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.footer__heading {
  font-family: var(--font-heading); font-size: 1.15rem;
  font-weight: 600; color: #fff; margin-bottom: 16px;
}
.footer__text { font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.7); }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer__link:hover, .footer__link:focus-visible { color: var(--accent); }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 10px;
}
.footer__newsletter { display: flex; gap: 8px; margin-top: 8px; }
.footer__newsletter input {
  flex: 1; min-width: 0; padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-family: var(--font-body); font-size: 0.9rem; outline: none;
  transition: border-color var(--transition);
}
.footer__newsletter input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer__newsletter input:focus { border-color: var(--accent); }
.footer__bottom {
  max-width: 1280px; margin: 48px auto 0; padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
}
.footer__socials { display: flex; gap: 12px; }
.footer__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.footer__social-link:hover, .footer__social-link:focus-visible {
  background: var(--accent); color: #222;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* ===== REVEAL ===== */
.reveal, .fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible, .fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header__nav, .header__actions .btn { display: none; }
  .header__hamburger { display: block; }
  .section { padding: var(--section-pad-mobile) 0; }
  .section__header { margin-bottom: 32px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 16px; }
}
@media (min-width: 769px) {
  .mobile-overlay { display: none !important; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}