/* ============================================================
   BUSINESS BRANDS SRL — Global Design System
   Premium Presentation Website 2026
   ============================================================ */

/* Google Fonts loaded via <link> in HTML <head> for faster rendering */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --color-bg:            #0A1118;
  --color-bg-alt:        #0D1620;
  --color-bg-subtle:     #111C29;

  /* Surfaces */
  --color-surface:       #0A1118;
  --color-surface-2:     #111C29;
  --color-surface-3:     #172638;

  /* Text */
  --color-text:          #F0F4F8;
  --color-text-secondary:#A0AEC0;
  --color-text-muted:    #718096;

  /* Accent — Gold / Deep Blue */
  --color-accent:        #D4AF37;
  --color-accent-light:  #F3E5AB;
  --color-accent-dark:   #AA8C2C;
  --color-accent-glow:   rgba(212, 175, 55, 0.15);
  --color-accent-pale:   rgba(212, 175, 55, 0.05);

  /* Borders */
  --color-border:        rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);

  /* Gradients */
  --gradient-accent:     linear-gradient(135deg, #AA8C2C 0%, #D4AF37 50%, #F3E5AB 100%);
  --gradient-accent-text:linear-gradient(90deg, #D4AF37, #F3E5AB, #D4AF37);
  --gradient-surface:    linear-gradient(180deg, #0A1118 0%, #111C29 100%);

  /* Transition panels stay dark for dramatic effect */
  --color-transition:    #0D1B2A;

  /* Legacy aliases for compatibility */
  --color-black:         #0D1B2A;
  --color-black-rich:    #0D1B2A;
  --color-gray-dark:     #F0F4F8;
  --color-gray-mid:      #F0F4F8;
  --color-gray-soft:     #E8EEF5;
  --color-gray-border:   rgba(30, 64, 175, 0.08);
  --color-gray-muted:    #8A9BB0;
  --color-white:         #0D1B2A;
  --color-white-off:     #4A5568;
  --color-white-pure:    #FFFFFF;
  --color-gold:          #1E40AF;
  --color-gold-light:    #3B82F6;
  --color-gold-pale:     #DBEAFE;
  --color-gold-dark:     #1A3A5C;
  --color-gold-glow:     rgba(30, 64, 175, 0.12);
  --color-champagne:     #DBEAFE;
  --color-chrome:        #1E40AF;
  --color-bronze:        #1A3A5C;
  --gradient-gold:       linear-gradient(135deg, #1A3A5C 0%, #1E40AF 50%, #3B82F6 100%);
  --gradient-gold-text:  linear-gradient(90deg, #1E40AF, #3B82F6, #1E40AF);
  --gradient-dark:       linear-gradient(180deg, #FFFFFF 0%, #F0F4F8 100%);
  --gradient-chrome:     linear-gradient(135deg, #1A3A5C 0%, #1E40AF 50%, #3B82F6 100%);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;
  --space-4xl:  12rem;

  /* Layout */
  --nav-height:  90px;
  --container:   1320px;
  --container-narrow: 900px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Border radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
.text-display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.text-body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
}

.text-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.text-gold {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: var(--gradient-accent);
  color: #FFFFFF;
  border: none;
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 64, 175, 0.15);
}

.btn--shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn--shimmer:hover::after {
  left: 100%;
}

.btn .btn-arrow {
  transition: transform 0.4s var(--ease-out);
  font-size: 1.1em;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Section Spacing ---------- */
.section {
  padding: clamp(5rem, 12vh, 10rem) 0;
  position: relative;
}

.section--dark {
  background: linear-gradient(135deg, #0D1620 0%, #0A1118 50%, #111C29 100%);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* ---------- Divider ---------- */
.divider-gold {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border: none;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-accent);
  z-index: 10001;
  pointer-events: none;
  transition: none;
}

/* ---------- Page Transition Overlay ---------- */
#page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transition-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--color-transition);
}

.transition-panel--left {
  left: 0;
  transform: translateX(-100%);
}

.transition-panel--right {
  right: 0;
  transform: translateX(100%);
}

/* When arriving from another page, panels cover screen immediately */
html.bb-entering .transition-panel--left {
  transform: translateX(0);
}

html.bb-entering .transition-panel--right {
  transform: translateX(0);
}

html.bb-entering .transition-logo {
  opacity: 1;
}

.transition-logo {
  position: relative;
  z-index: 2;
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(30, 64, 175, 0.15);
  color: var(--color-text);
}

::-moz-selection {
  background: rgba(30, 64, 175, 0.15);
  color: var(--color-text);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: clamp(3rem, 8vh, 5rem) 0;
  }

  .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.15;
  }

  .section-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    max-width: 100%;
  }

  .section-label {
    font-size: 0.65rem;
    margin-bottom: var(--space-sm);
  }

  .btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.78rem;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
  }

  .container {
    padding: 0 clamp(1rem, 4vw, 1.5rem);
  }
}
