/*
 * TENTWO - Shared CSS Styles
 *
 * This stylesheet contains shared CSS used across all pages of the TENTWO website.
 * It includes CSS variables, reset styles, header, footer, animations, and utility classes.
 *
 * Sections included:
 * 1. CSS Variables (Dark Theme)
 * 2. Reset Styles
 * 3. Header & Navigation
 * 4. Footer
 * 5. Floating WhatsApp Button
 * 6. Typography & Utility Classes
 * 7. Animations
 * 8. Responsive Styles (Header/Footer)
 */

/* ===== CSS VARIABLES - PRIME MARINA DARK THEME ===== */
:root {
  /* Backgrounds - Dark Maritime Palette */
  --bg-900: #05131f; /* deepest */
  --bg-850: #071a2f; /* primary dark */
  --bg-800: #0a2238;
  --bg-700: #0e2b4a; /* lifted */
  --surface: #16273a;
  --surface-2: #1c2c40;

  /* Legacy mappings for compatibility */
  --ivory: #0a2238; /* now dark */
  --paper: #071a2f; /* now dark */
  --ink: #f4f5f2; /* now light (inverted) */
  --ink-soft: #c8cdd3; /* now light */

  /* Text Colors */
  --text: #f4f5f2;
  --text-2: #c8cdd3;
  --text-3: #8d97a3;
  --text-4: #5e6b78;
  --white: #ffffff;

  /* Accent Colors - Gold Theme */
  --gold: #c3a269;
  --gold-bright: #e4ce9e;
  --gold-deep: #9c814f;
  --accent: #c3a269;
  --accent-bright: #e4ce9e;

  /* Additional accents */
  --teal: #2f8e6e;
  --platinum: #d8e3ea;
  --blue-glow: #04d9ff;

  /* Refined colors */
  --stone: #c8cdd3;
  --muted: #8d97a3;

  /* Lines and borders */
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);

  /* Typography */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", -apple-system, system-ui, sans-serif;
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Manrope", -apple-system, system-ui, sans-serif;

  /* Spacing */
  --page-pad: clamp(24px, 5vw, 88px);
  --content-max: 1380px;

  /* Easing functions */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-850);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--bg-900);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem var(--page-pad);
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 70%,
    transparent 100%
  );
  backdrop-filter: blur(8px);
  transition: all 500ms var(--ease);
}

header.scrolled {
  height: 76px;
  padding: 1.15rem var(--page-pad) 0.75rem;
  background: rgba(5, 19, 31, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 500ms var(--ease);
}

.logo-text {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  gap: 4px;
}

.logo-ten {
  color: var(--text);
}

.logo-two {
  color: var(--gold);
}

.logo-divider {
  width: 1px;
  height: 28px;
  background: var(--gold);
  opacity: 0.8;
}

.logo-tagline {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.logo-tagline span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}

.logo-tagline span:first-child {
  color: var(--text);
}

.logo-tagline span:last-child {
  color: var(--gold);
  font-size: 11px;
}

header.scrolled .logo-ten {
  color: var(--text);
}

header.scrolled .logo-two {
  color: var(--gold);
}

header.scrolled .logo-divider {
  background: var(--gold);
}

header.scrolled .logo-tagline span:first-child {
  color: var(--text);
}

header.scrolled .logo-tagline span:last-child {
  color: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: all 300ms var(--ease);
}

header.scrolled nav a {
  color: var(--text);
}

nav a:hover {
  color: var(--gold);
  opacity: 1;
}

nav a.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.cta-header {
  padding: 14px 28px;
  border: 1px solid var(--line-2);
  font-size: 10px;
  letter-spacing: 0.15em;
  background: transparent;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: all 500ms var(--ease);
}

.cta-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 500ms var(--ease);
  z-index: -1;
}

header.scrolled .cta-header {
  border-color: var(--line-2);
}

.cta-header:hover {
  color: var(--bg-900);
  border-color: var(--gold);
}

.cta-header:hover::after {
  transform: translateY(0);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 300ms var(--ease);
}

header.scrolled .mobile-toggle span {
  background: var(--text);
}

.mobile-toggle:hover span:nth-child(1) {
  transform: translateY(1px);
}

.mobile-toggle:hover span:nth-child(3) {
  transform: translateY(-1px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 88px;
  left: 0;
  width: 100%;
  height: calc(100vh - 88px);
  background: var(--bg-900);
  padding: 60px var(--page-pad);
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 32px;
}

.mobile-menu nav a {
  font-size: 20px;
  color: var(--text);
  transition: all 300ms var(--ease);
}

.mobile-menu nav a:hover {
  color: var(--gold);
}

.mobile-menu .mobile-cta-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--gold);
  color: rgba(10, 25, 45, 1);
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 300ms ease;
  text-align: center;
  margin-top: 12px;
}

.mobile-menu .mobile-cta-btn:hover {
  background: #e6c045;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.mobile-menu .mobile-whatsapp-link {
  font-size: 16px;
  color: var(--text);
  text-align: center;
  margin-top: 8px;
}

.mobile-menu .mobile-whatsapp-link:hover {
  color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-850);
  color: var(--text-2);
  padding: clamp(80px, 10vw, 120px) var(--page-pad) 60px;
}

.footer-booking-notice {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gold);
  max-width: 680px;
  margin: 32px auto 0;
  padding: 0;
  border: none;
}

.footer-content {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.footer-brand h3 .logo-ten {
  color: var(--text);
}

.footer-brand h3 .logo-two {
  color: var(--gold);
}

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tagline-separator {
  width: 1px;
  height: 80px;
  background: var(--gold);
}

.tagline-text {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.tagline-text span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.3;
}

.tagline-text span:first-child {
  color: var(--text);
}

.tagline-text span:last-child {
  color: var(--gold);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-nav h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 300ms;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 48px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #25d366;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 300ms ease;
}

.floating-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
}

.floating-whatsapp span {
  white-space: nowrap;
}

.floating-whatsapp.hidden-on-hero,
.floating-whatsapp.hidden-on-sheet {
  opacity: 0;
  pointer-events: none;
}

/* ===== TYPOGRAPHY & UTILITY CLASSES ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1000ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-image {
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-image.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== RESPONSIVE - HEADER & FOOTER ===== */

/* Hide logo tagline and divider on tablets */
@media (max-width: 1024px) {
  .logo-divider,
  .logo-tagline {
    display: none;
  }
}

/* Mobile navigation */
@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Footer adjustments */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-logo-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-brand h3 {
    font-size: 40px;
  }

  .footer-tagline {
    gap: 16px;
  }

  .tagline-separator {
    height: 60px;
  }

  .tagline-text span {
    font-size: 11px;
  }
}

/* Mobile WhatsApp button adjustments */
@media (max-width: 640px) {
  .floating-whatsapp {
    padding: 12px 16px;
    font-size: 13px;
    bottom: 16px;
    right: 16px;
  }

  .floating-whatsapp svg {
    width: 20px;
    height: 20px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
