/* ============================================================
   КЪЩА ЗА ГОСТИ „ТЕДИ" — Global Stylesheet
   style.css  |  v2.0
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --sea:        #1a6e8a;
  --sea-light:  #2d9cbe;
  --sea-dark:   #0d4f65;
  --sand:       #f5e9d3;
  --sand-dark:  #e8d3b0;
  --sunset:     #e07b39;
  --sunset-dk:  #c45e1e;
  --white:      #ffffff;
  --off-white:  #faf8f5;
  --text:       #1c2b33;
  --text-muted: #5a7080;
  --radius:     12px;
  --shadow:     0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.16);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
* { -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea-light);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--sea);
}
.section-lead {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 640px;
}

/* ── 4. NAVIGATION ────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 72px;
  background: rgba(13, 79, 101, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(13, 79, 101, 0.98); }
.nav-logo img { height: 54px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sand); }
.nav-cta {
  background: var(--sunset);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--sunset-dk); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 5. PAGE HERO (внутрешни страници) ───────────────────── */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 56px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}
.page-hero-bg.loaded { transform: scale(1); }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,79,101,0.35) 0%,
    rgba(13,79,101,0.78) 100%
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-hero-content .section-eyebrow { color: var(--sand); }
.page-hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
}
.page-hero-content h1 em { font-style: italic; color: var(--sand); }

/* ── 6. WAVE DIVIDER ──────────────────────────────────────── */
.wave { line-height: 0; overflow: hidden; }
.wave svg { display: block; width: 100%; }

/* ── 7. SECTION SPACING ───────────────────────────────────── */
section { padding: 96px 5%; }

/* ── 8. BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--sunset);
  color: var(--white);
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(224,123,57,0.4);
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--sunset-dk); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.75);
  color: var(--white);
  padding: 13px 36px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-sea {
  display: inline-block;
  background: var(--sea);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(26,110,138,0.35);
}
.btn-sea:hover { background: var(--sea-dark); transform: translateY(-2px); }

/* ── 9. CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── 10. FEATURE PILL ─────────────────────────────────────── */
.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
}
.feature-pill .icon { font-size: 1.1rem; }

/* ── 11. AMENITY TAG ──────────────────────────────────────── */
.amenity {
  background: var(--off-white);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── 12. SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── 13. FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--sea-dark);
  color: rgba(255,255,255,0.65);
  padding: 48px 5% 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo img { height: 52px; }
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sand); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--sunset); color: var(--white); }
.footer-copy {
  max-width: 1200px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ── 14. LIGHTBOX ─────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  color: var(--white); font-size: 2.5rem; cursor: pointer; line-height: 1;
  background: none; border: none; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: var(--white);
  font-size: 2rem; padding: 16px; cursor: pointer; border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* ── 15. INFO BANNER ──────────────────────────────────────── */
.info-banner {
  max-width: 1200px;
  margin: 32px auto 0;
  background: var(--sea);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}
.info-banner .icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── 16. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 80px 5%; }
  .page-hero { height: 340px; padding-bottom: 40px; }
}

@media (max-width: 768px) {
  nav { padding: 0 4%; height: 64px; }
  .nav-logo img { height: 48px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none !important;
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10,58,76,0.98);
    padding: 24px 0;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open li a {
    display: block;
    padding: 16px 6%;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
  }
  .nav-cta { display: none; }
  .page-hero { height: 300px; }
  .page-hero-content h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  section { padding: 64px 5%; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 16px; }
  .info-banner { flex-direction: column; gap: 10px; font-size: 0.83rem; }
}

@media (max-width: 520px) {
  nav { padding: 0 4%; }
  .nav-logo img { height: 42px; }
  section { padding: 56px 4%; }
  .btn-primary, .btn-outline, .btn-sea {
    padding: 13px 24px;
    font-size: 0.83rem;
  }
  .feature-pill { padding: 10px 14px; font-size: 0.82rem; }
}
/* Профилактично изчистване на стари конфликти в style.css */
@media (max-width: 768px) {
  #navbar .nav-links:not(.open) {
    right: -100% !important;
  }
}
