/**
 * StayBrilliant v5.0.0
 * Premium Corporate Website Styles
 * 
 * Structure:
 *   1. Fonts & Variables
 *   2. Base & Reset
 *   3. Navigation (dual-state)
 *   4. Hero Sections
 *   5. Floating Decorations
 *   6. Background Patterns
 *   7. Cards & Components
 *   8. Buttons
 *   9. Typography Accents
 *  10. Image Components
 *  11. Parallax & Overlays
 *  12. Ticker
 *  13. Footer
 *  14. Mobile Drawer
 *  15. Animations
 *  16. Form Elements
 *  17. Utilities
 */

/* ═══════════════════════════════════════
   1. FONTS & VARIABLES
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  /* Brand palette */
  --violet:     #5F4B8B;
  --violet-d:   #4A3A6D;
  --violet-dd:  #382B54;
  --violet-l:   #8B7BB5;
  --violet-ll:  #B8AED4;
  --jacaranda:  #8690CB;
  --rhapsody:   #A78EB3;
  --gold:       #B49B57;
  --gold-l:     #D4BC7A;
  --green:      #778B4B;

  /* Neutrals */
  --cream:      #FDFCF9;
  --cream-2:    #F7F5F0;
  --cream-3:    #EFECE4;
  --slate:      #2D2A33;
  --slate-l:    #56515E;

  /* Layout */
  --nav-h:      4.5rem;
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
}


/* ═══════════════════════════════════════
   2. BASE & RESET
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--slate);
  background: var(--cream);
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display { font-family: 'Playfair Display', serif; }
img { display: block; max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }


/* ═══════════════════════════════════════
   3. NAVIGATION (dual-state system)
   ═══════════════════════════════════════ */

/* Base nav */
.sb-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-h);
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}

/* State: at top (dark hero behind) */
.sb-nav--top {
  background: transparent;
}
.sb-nav--top .sb-nav-logo { color: #fff; }
.sb-nav--top .sb-nav-link { color: rgba(255,255,255,.7); }
.sb-nav--top .sb-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sb-nav--top .sb-nav-link--active {
  color: #fff !important;
  font-weight: 700;
}
.sb-nav--top .sb-nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.sb-nav--top .sb-nav-cta {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.sb-nav--top .sb-nav-cta:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.sb-nav--top .sb-lang-btn { color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.15); }
.sb-nav--top .sb-lang-btn:hover { border-color: rgba(255,255,255,.3); }
.sb-nav--top .sb-menu-btn { color: #fff; }

/* State: scrolled (white background) */
.sb-nav--scrolled {
  background: rgba(253,252,249,.97);
  box-shadow: 0 2px 24px rgba(0,0,0,.04);
  border-bottom-color: rgba(0,0,0,.04);
  backdrop-filter: blur(12px);
}
.sb-nav--scrolled .sb-nav-logo { color: var(--violet); }
.sb-nav--scrolled .sb-nav-link { color: var(--slate-l); }
.sb-nav--scrolled .sb-nav-link:hover { color: var(--violet); background: rgba(95,75,139,.05); }
.sb-nav--scrolled .sb-nav-link--active {
  color: var(--violet) !important;
  font-weight: 700;
}
.sb-nav--scrolled .sb-nav-link--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--violet);
  border-radius: 1px;
}
.sb-nav--scrolled .sb-nav-cta {
  color: #fff;
  background: var(--violet);
  border-color: var(--violet);
}
.sb-nav--scrolled .sb-nav-cta:hover { background: var(--violet-d); }
.sb-nav--scrolled .sb-lang-btn { color: var(--slate-l); border-color: rgba(0,0,0,.1); }
.sb-nav--scrolled .sb-menu-btn { color: var(--slate); }

/* Nav link base */
.sb-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color .3s, background .3s;
  white-space: nowrap;
}


/* ═══════════════════════════════════════
   4. HERO SECTIONS
   ═══════════════════════════════════════ */
.sb-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.sb-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.sb-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg,
    rgba(42,30,70,.88) 0%,
    rgba(74,58,109,.76) 35%,
    rgba(95,75,139,.62) 65%,
    rgba(134,144,203,.5) 100%
  );
}

.sb-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .04;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Sub-page hero (shorter) */
.sb-hero-sub {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-top: 10rem;
  padding-bottom: 7rem;
}
.sb-hero-sub .sb-hero-img::after {
  background: linear-gradient(155deg,
    rgba(42,30,70,.9) 0%,
    rgba(95,75,139,.75) 60%,
    rgba(134,144,203,.55) 100%
  );
}


/* ═══════════════════════════════════════
   5. FLOATING DECORATIONS
   ═══════════════════════════════════════ */
.sb-shape { position: absolute; pointer-events: none; z-index: 2; }
.sb-sh1 { width: 200px; height: 200px; top: 8%; right: 6%; animation: drift 14s ease-in-out infinite; opacity: .12; }
.sb-sh2 { width: 140px; height: 140px; bottom: 15%; left: 4%; animation: drift 18s ease-in-out infinite reverse; opacity: .1; }
.sb-sh3 { width: 90px; height: 90px; top: 50%; right: 20%; animation: spin 25s linear infinite; opacity: .07; }

.sb-deco { position: absolute; pointer-events: none; z-index: 0; }
.sb-deco-ring { width: 220px; height: 220px; border: 2px solid rgba(95,75,139,.05); border-radius: 50%; animation: drift 22s ease-in-out infinite; }
.sb-deco-sq { width: 110px; height: 110px; border: 2px solid rgba(134,144,203,.05); border-radius: 24px; transform: rotate(15deg); animation: spin 35s linear infinite; }
.sb-deco-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(180,155,87,.12); animation: drift 8s ease-in-out infinite; }
.sb-deco-blob { width: 300px; height: 300px; border-radius: 50%; filter: blur(80px); opacity: .06; animation: drift 20s ease-in-out infinite; }


/* ═══════════════════════════════════════
   6. BACKGROUND PATTERNS
   ═══════════════════════════════════════ */
.sb-pat-dot {
  background-image: radial-gradient(circle, rgba(95,75,139,.03) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.sb-pat-grid {
  background-image:
    linear-gradient(rgba(95,75,139,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,75,139,.02) 1px, transparent 1px);
  background-size: 44px 44px;
}
.sb-pat-diag {
  background-image: repeating-linear-gradient(135deg,
    transparent, transparent 24px,
    rgba(95,75,139,.015) 24px, rgba(95,75,139,.015) 25px
  );
}


/* ═══════════════════════════════════════
   7. CARDS & COMPONENTS
   ═══════════════════════════════════════ */
.sb-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94),
              box-shadow .4s cubic-bezier(.25,.46,.45,.94);
}
.sb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--violet), var(--jacaranda), var(--gold));
  opacity: 0;
  transition: opacity .35s;
}
.sb-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(95,75,139,.1), 0 8px 20px rgba(0,0,0,.03);
}
.sb-card:hover::before { opacity: 1; }

/* Glass card */
.sb-glass {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  transition: all .35s;
}
.sb-glass:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-4px);
}

/* Icon box */
.sb-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .3s;
}

/* Number (animated counters) */
.sb-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge */
.sb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: .03em;
}

/* Feature accent bar */
.sb-feat {
  position: relative;
  padding-left: 28px;
}
.sb-feat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: .7;
}


/* ═══════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════ */
.sb-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  font-weight: 600; font-size: 15px;
  color: #fff;
  background: var(--violet);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: all .35s;
}
.sb-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--violet-d), var(--jacaranda));
  opacity: 0;
  transition: opacity .35s;
  border-radius: var(--radius-md);
}
.sb-btn:hover::before { opacity: 1; }
.sb-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(95,75,139,.25); }
.sb-btn span { position: relative; z-index: 1; }

.sb-btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  font-weight: 600; font-size: 15px;
  color: var(--violet);
  background: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all .35s;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.sb-btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }

.sb-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.85);
  background: transparent;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all .35s;
  backdrop-filter: blur(8px);
}
.sb-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }

.sb-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  font-weight: 600; font-size: 15px;
  color: var(--violet);
  background: transparent;
  border: 2px solid rgba(95,75,139,.18);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all .35s;
}
.sb-btn-outline:hover { border-color: var(--violet); background: rgba(95,75,139,.04); transform: translateY(-2px); }


/* ═══════════════════════════════════════
   9. TYPOGRAPHY ACCENTS
   ═══════════════════════════════════════ */
.sb-gold-line::after {
  content: ''; display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  margin-top: 20px; border-radius: 2px;
}
.sb-gold-center::after {
  content: ''; display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  margin: 20px auto 0; border-radius: 2px;
}


/* ═══════════════════════════════════════
   10. IMAGE COMPONENTS
   ═══════════════════════════════════════ */
.sb-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.sb-img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.sb-img-card:hover img { transform: scale(1.05); }
.sb-img-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(42,30,70,.7) 100%);
  z-index: 1;
}
.sb-img-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px; z-index: 2; color: #fff;
}

/* Image with rounded mask */
.sb-img-rounded {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sb-img-rounded img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.sb-img-rounded:hover img { transform: scale(1.03); }


/* ═══════════════════════════════════════
   11. PARALLAX & OVERLAYS
   ═══════════════════════════════════════ */
.sb-parallax { position: relative; overflow: hidden; }
.sb-parallax-img {
  position: absolute; inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.sb-parallax-overlay {
  position: absolute; inset: 0; z-index: 1;
}


/* ═══════════════════════════════════════
   12. TICKER
   ═══════════════════════════════════════ */
.sb-ticker { overflow: hidden; white-space: nowrap; }
.sb-ticker-inner {
  display: inline-block;
  animation: tick 40s linear infinite;
}
@keyframes tick {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ═══════════════════════════════════════
   13. FOOTER
   ═══════════════════════════════════════ */
.sb-footer {
  background: var(--slate);
  color: #fff;
  position: relative;
}
.sb-footer::before {
  content: ''; display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-l), var(--gold), var(--violet-l), transparent);
  opacity: .3;
}


/* ═══════════════════════════════════════
   14. MOBILE DRAWER
   ═══════════════════════════════════════ */
.sb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.sb-overlay.open { opacity: 1; pointer-events: auto; }

.sb-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 310px; height: 100%;
  background: #fff;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.sb-drawer.open { transform: translateX(0); }


/* ═══════════════════════════════════════
   15. ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(15px, -20px) rotate(3deg); }
  66%      { transform: translate(-10px, -30px) rotate(-3deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.5); }
}
@keyframes sbIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sb-pulse { animation: pulse 2s ease-in-out infinite; }

/* Scroll reveal */
.sb-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
              transform .7s cubic-bezier(.25,.46,.45,.94);
}
.sb-up.sb-in { opacity: 1; transform: translateY(0); }
.sb-d1 { transition-delay: .1s; }
.sb-d2 { transition-delay: .2s; }
.sb-d3 { transition-delay: .3s; }
.sb-d4 { transition-delay: .48s; }

/* Page entrance */
.sb-fade { animation: sbIn .7s cubic-bezier(.25,.46,.45,.94) both; }
.sb-fade-d1 { animation-delay: .15s; }
.sb-fade-d2 { animation-delay: .3s; }
.sb-fade-d3 { animation-delay: .5s; }


/* ═══════════════════════════════════════
   16. FORM ELEMENTS
   ═══════════════════════════════════════ */
input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(95,75,139,.08);
}


/* ═══════════════════════════════════════
   17. UTILITIES
   ═══════════════════════════════════════ */
.sb-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95,75,139,.12), transparent);
}
