/* ==========================================================================
   THE INVITATION PALACE - TERMS OF SERVICE STYLESHEET
   Clean, simple, elegant editorial luxury aesthetic
   ========================================================================== */

@font-face {
  font-family: 'Absans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/absans.woff2') format('woff2'),
       url('../assets/fonts/absans.ttf') format('truetype'),
       url('https://static.wixstatic.com/ufonts/8c3f0e_59fb57afe89a464494e49a7d8036fb75/woff2/file.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Header & Glassy Sticky Navbar (Matching Collections, Story, Process, Blog & Contact)
   Top state: Navlink text is Black over light background
   Scrolled state: Navbar takes #3B0301 and Navlink text becomes White
   -------------------------------------------------------------------------- */
.site-header {
  background: #FAF8F5 !important;
  background-color: #FAF8F5 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03) !important;
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

/* Nav links when at the top: Black */
.site-header .nav-link {
  color: #000000 !important;
  text-shadow: none !important;
  transition: color 0.3s ease, opacity 0.25s ease !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #b58d3d !important;
}

/* Mobile hamburger bars when at the top: Black */
.mobile-menu-toggle span {
  background-color: #000000 !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease !important;
}

/* Scrolled State: Navbar takes #3B0301 background and Nav links turn White */
.site-header.is-scrolled {
  background: #3B0301 !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.site-header.is-scrolled .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.active {
  color: #D4AF37 !important;
}

/* Mobile hamburger bars when scrolled: White */
.site-header.is-scrolled .mobile-menu-toggle span {
  background-color: #FFFFFF !important;
}

/* Mobile Nav Drawer opens right below navbar */
@media (max-width: 768px) {
  .mobile-nav-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    top: 64px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    padding: 0 !important;
  }
}

/* Mobile Menu Open Header State (Matches Collections, Story, Process & Contact) */
body.menu-open .marquee-bar {
  display: none !important;
}

body.menu-open .site-header {
  background: #3B0301 !important;
  background-color: #3B0301 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 1000000 !important;
}

body.menu-open .site-header .logo-img {
  height: 44px !important;
  max-height: 46px !important;
}

body.menu-open .site-header .mobile-menu-toggle span {
  background-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Page Background & Canvas Container (Matching Collections, Story & Process)
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-light);
  color: #2b2725;
}

/* Main Container & Page Layout */
.terms-main {
  background-color: #ffffff;
  min-height: 100vh;
  color: #2b2b2b;
}

.terms-hero-section {
  background-color: #ffffff;
}

.terms-content-section {
  padding: 20px 24px 90px 24px;
  background-color: #ffffff;
}

.terms-container {
    max-width: 860px;
    margin: 0 auto;
}

/* ==========================================================================
   WELCOME PREAMBLE
   ========================================================================== */
.terms-preamble-card {
    background: #ffffff;
    border: 1px solid rgba(181, 141, 61, 0.25);
    border-radius: 4px;
    padding: 40px 44px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.terms-preamble-title {
    font-family: 'Cinzel', 'Libre Caslon Display', 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 500;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    line-height: 1.35;
}

.terms-preamble-text {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.8;
    color: #3f3f3f;
    font-weight: 400;
    max-width: 760px;
    margin: 0 auto 16px auto;
}

.terms-preamble-note {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: 13.5px;
    line-height: 1.8;
    color: #5f5f5f;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}

/* ==========================================================================
   TERMS CONTENT CARD (ALL CLAUSES IN ONE SEAMLESS CARD)
   ========================================================================== */
.terms-document-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 48px 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.terms-section-block {
    padding: 30px 0;
    border-bottom: 1px solid #f0eae1;
}

.terms-section-block:first-child {
    padding-top: 0;
}

.terms-section-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Section Title */
.terms-section-title {
    font-family: 'Cinzel', 'Libre Caslon Display', Georgia, serif;
    font-size: clamp(17px, 2.2vw, 20px);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    line-height: 1.35;
}

/* Section Body & Paragraphs */
.terms-section-body p {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: 14.5px;
    line-height: 1.85;
    color: #4a4a4a;
    font-weight: 400;
    margin: 0 0 14px 0;
}

.terms-section-body p:last-child {
    margin-bottom: 0;
}

.terms-section-body strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Clean Styled Bullet Lists */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terms-list-item {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #444444;
    position: relative;
    padding-left: 20px;
}

.terms-list-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: #b58d3d;
    transform: rotate(45deg);
}

/* Section 12: Contact Box */
.terms-contact-highlight {
    margin-top: 18px;
    padding: 20px 24px;
    background: #faf8f5;
    border-left: 3px solid #b58d3d;
    border-radius: 2px;
}

.terms-contact-highlight-brand {
    font-family: 'Cinzel', serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.terms-contact-highlight-desc {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: 13.5px;
    line-height: 1.75;
    color: #555555;
    margin: 0;
}

.terms-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.terms-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.terms-btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.terms-btn-whatsapp:hover {
    background-color: #20bd5a;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.terms-btn-call {
    background-color: #f7f7f7;
    color: #1a1a1a;
    border: 1px solid #e0d8cc;
}

.terms-btn-call:hover {
    background-color: #222222;
    color: #ffffff;
    border-color: #222222;
}

.terms-btn-contact {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
}

.terms-btn-contact:hover {
    background-color: #b58d3d;
    border-color: #b58d3d;
    color: #ffffff;
}

/* ==========================================================================
   CLOSING SIGNATURE BOX
   ========================================================================== */
.terms-closing-box {
    margin-top: 50px;
    text-align: center;
    padding: 30px 20px 10px 20px;
}

.terms-closing-quote {
    font-family: 'Absans', 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.8vw, 24px);
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.terms-closing-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 140px;
    margin: 0 auto;
}

.terms-closing-divider::before,
.terms-closing-divider::after {
    content: '';
    flex: 1 1 0%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b58d3d);
}

.terms-closing-divider::after {
    background: linear-gradient(90deg, #b58d3d, transparent);
}

.terms-closing-divider-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #b58d3d;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .terms-content-section {
        padding: 10px 16px 60px 16px;
    }

    .terms-preamble-card {
        padding: 28px 20px;
        margin-bottom: 25px;
    }

    .terms-document-card {
        padding: 30px 20px;
    }

    .terms-section-block {
        padding: 24px 0;
    }

    .terms-contact-actions {
        flex-direction: column;
    }

    .terms-contact-btn {
        width: 100%;
        box-sizing: border-box;
    }
}
