/* ============================================
   BLACK PEARL CUSTOM STYLES - BLACK PEARL Design
   ============================================ */

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-gray);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Widescreen header adjustment */
@media (min-width: 1440px) {
  .header-container {
    max-width: 1400px;
  }
}

@media (min-width: 1920px) {
  .header-container {
    max-width: 1600px;
    padding: 1.25rem 3rem;
  }
}

.site-branding {
  z-index: 2;
}

/* Logo Container */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* Image Logo */
.site-logo-image {
  max-height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo-link:hover .site-logo-image {
  transform: scale(1.05);
}

/* Text Logo Styling */
.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  display: flex;
  gap: 0.4rem;
}

.logo-black {
  color: var(--dark-charcoal);
  transition: color 0.3s ease;
}

.logo-pearl {
  color: var(--primary-gold);
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-logo-link:hover .logo-black {
  color: var(--primary-gold);
}

.site-logo-link:hover .logo-pearl {
  color: var(--dark-charcoal);
}

/* Legacy Custom Logo Link (if used separately) */
.custom-logo-link {
  display: flex;
  align-items: center;
}

.custom-logo-link img {
  max-height: 50px;
  width: auto;
}

/* Fallback site title */
.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

.site-title a {
  color: var(--dark-charcoal);
  text-decoration: none;
  letter-spacing: 2px;
}

.site-title a:hover {
  color: var(--primary-gold);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark-charcoal);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.625rem;
}

/* Hamburger icon styling */
.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-charcoal);
  position: relative;
  transition: background 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--dark-charcoal);
  transition: transform 0.3s ease;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

/* Animate to X when menu is open */
.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.5rem 0;
  display: block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--dark-charcoal);
}

.nav-menu .current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-gold);
}

.nav-menu .menu-item-book a {
  background: var(--dark-charcoal);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.nav-menu .menu-item-book a:hover {
  background: transparent;
  color: var(--dark-charcoal);
  border: 2px solid var(--dark-charcoal);
  padding: calc(0.75rem - 2px) calc(1.5rem - 2px);
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .header-container {
    padding: 1rem;
    justify-content: flex-start;
    gap: 0;
  }

  /* Constrain logo width to prevent overlap */
  .site-branding {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 60px);
    order: 1;
  }

  .site-logo-text {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
    flex-shrink: 0;
  }

  /* Reposition navigation elements */
  .main-navigation {
    position: relative;
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Hide desktop language switcher on mobile */
  .header-container > .language-switcher {
    display: none;
  }

  /* Mobile menu wrapper (slide-in panel) */
  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 6rem 2.5rem 2.5rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-menu-wrapper.active {
    right: 0;
  }

  /* Mobile menu overlay backdrop */
  .nav-menu-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-menu-wrapper.active::before {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    flex: 1;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--neutral-gray);
  }

  .nav-menu a {
    padding: 1.25rem 0;
    color: var(--dark-charcoal);
  }

  .nav-menu .menu-item-book a {
    margin-top: 1.25rem;
    text-align: center;
  }

  /* Mobile language switcher at bottom of menu */
  .mobile-language-switcher {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-gray);
  }

  .mobile-language-switcher ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-language-switcher li {
    display: flex;
    align-items: center;
  }

  .mobile-language-switcher a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition-fast);
  }

  .mobile-language-switcher a:hover,
  .mobile-language-switcher .current-lang a {
    color: var(--dark-charcoal);
    background: var(--soft-cream);
  }

  .mobile-language-switcher img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
  }

  .mobile-language-switcher .pll-name {
    font-weight: 500;
  }

  /* Body scroll lock when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Hide mobile language switcher on desktop */
@media (min-width: 901px) {
  .mobile-language-switcher {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .site-logo-text {
    font-size: 1.1rem;
  }

  .logo-pearl {
    display: none;
  }
}

/* ============================================
   LANGUAGE SWITCHER (Polylang)
   ============================================ */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.language-switcher ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.language-switcher li {
  display: flex;
  align-items: center;
}

.language-switcher a {
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 3px;
  transition: var(--transition-fast);
  opacity: 0.6;
}

.language-switcher a:hover,
.language-switcher .current-lang a {
  opacity: 1;
}

.language-switcher img {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Mobile language switcher - handled in main mobile nav section above */

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
  background: var(--dark-charcoal);
  color: white;
}

.footer-top {
  padding: 5rem 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.footer-tagline {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-gold);
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-gold);
}

.footer-contact strong {
  color: white;
  font-weight: 500;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    padding: 3rem 0;
  }
}

/* ============================================
   FORMS - BLACK PEARL Design
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark-charcoal);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark-charcoal);
  background: white;
  border: 1px solid var(--neutral-gray);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ============================================
   UTILITY ADDITIONS
   ============================================ */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.py-7 { padding-top: 5rem; padding-bottom: 5rem; }

/* ============================================
   AGE GATE STYLING - BLACK PEARL Design
   ============================================ */

.age-gate-wrapper {
  background: rgba(26, 26, 26, 0.97) !important;
  font-family: 'Montserrat', sans-serif !important;
}

.age-gate-form {
  background: #1A1A1A !important;
  border: 1px solid rgba(201, 169, 97, 0.3) !important;
  padding: 3rem !important;
  max-width: 500px !important;
}

.age-gate-heading {
  font-family: 'Cormorant Garamond', serif !important;
  color: #C9A961 !important;
  font-size: 2.5rem !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
}

.age-gate-subheadline {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1rem !important;
}

.age-gate-submit,
.age-gate-submit-yes {
  background: #C9A961 !important;
  color: #1A1A1A !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 1rem 2.5rem !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.age-gate-submit:hover,
.age-gate-submit-yes:hover {
  background: #FAF8F3 !important;
  color: #1A1A1A !important;
}

.age-gate-submit-no {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 1rem 2.5rem !important;
}

.age-gate-submit-no:hover {
  border-color: #C9A961 !important;
  color: #C9A961 !important;
}

.age-gate-form a {
  color: #C9A961 !important;
  text-decoration: none !important;
}

.age-gate-form a:hover {
  text-decoration: underline !important;
}

/* ============================================
   COMPLIANZ COOKIE BANNER - BLACK PEARL Design
   ============================================ */

.cmplz-cookiebanner {
  background: #1A1A1A !important;
  border-top: 1px solid rgba(201, 169, 97, 0.3) !important;
  font-family: 'Montserrat', sans-serif !important;
}

.cmplz-cookiebanner .cmplz-message {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem !important;
}

.cmplz-cookiebanner .cmplz-btn {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 0.8rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0 !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
  background: #C9A961 !important;
  color: #1A1A1A !important;
  border: none !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover {
  background: #FAF8F3 !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover {
  border-color: #C9A961 !important;
  color: #C9A961 !important;
}

.cmplz-cookiebanner a {
  color: #C9A961 !important;
}

/* ============================================
   PAGE TEMPLATE STYLES
   ============================================ */

.page .site-main {
  padding-top: 120px;
  padding-bottom: 80px;
}

.page .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page .entry-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page .entry-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.page .entry-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--primary-gold);
  margin: 1rem auto 0;
}

.page .entry-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.page .entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--neutral-gray);
}

.page .entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-charcoal);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page .entry-content p {
  margin-bottom: 1.25rem;
}

.page .entry-content ul,
.page .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.page .entry-content a {
  color: var(--primary-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.page .entry-content a:hover {
  border-bottom-color: var(--primary-gold);
}

.page .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.page .entry-content th {
  background: var(--soft-cream);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-gray);
}

.page .entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-gray);
  vertical-align: top;
}

.page .entry-content tr:nth-child(even) {
  background: rgba(250, 248, 243, 0.5);
}

/* Last Updated Notice */
.legal-last-updated {
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Legal Document Intro */
.legal-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Legal Warning Box */
.legal-warning {
  background: var(--soft-cream);
  border-left: 4px solid var(--primary-gold);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Legal Footer */
.legal-footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--neutral-gray);
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Rates Disclaimer */
.rates-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin: 1.5rem 0 2rem;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .page .site-main {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .page .entry-title {
    font-size: 2rem;
  }

  .page .container {
    padding: 0 1rem;
  }
}