/* ============================================================
   STYLE.CSS — Global variables, reset, typography, utilities
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --navy:         #0B1D35;
  --navy-mid:     #12294A;
  --navy-light:   #1A3660;
  --blue:         #2E6DA4;
  --blue-light:   #4A8FCC;
  --blue-pale:    #EBF3FA;
  --gold:         #C9A96E;
  --gold-light:   #E8C98A;
  --white:        #FFFFFF;
  --off-white:    #F6F8FA;
  --text-dark:    #0B1D35;
  --text-muted:   #5A6A7E;
  --border:       rgba(11,29,53,0.10);

  /* Border Radius */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;

  /* Shadows */
  --shadow-sm:    0 2px 10px rgba(11,29,53,0.06);
  --shadow-md:    0 6px 26px rgba(11,29,53,0.10);
  --shadow-lg:    0 16px 48px rgba(11,29,53,0.15);

  /* Transition */
  --transition:   0.32s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout offsets (updated by JS) */
  --bar-height:   40px;
  --nav-height:   70px;
  --bar-offset:   40px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.72;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--navy);
}

.section-overline {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin-top: 10px;
}

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

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 560px;
}

.section-subtitle-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.58s var(--transition), transform 0.58s var(--transition);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.section-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* Alternating section backgrounds */
.bg-white    { background: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-blue-pale { background: var(--blue-pale); }
.bg-navy     { background: var(--navy); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  padding: 13px 32px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(201,169,110,0.35);
}

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.75);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-light);
}

.btn-lg {
  font-size: 16px;
  padding: 15px 36px;
}

.btn-sm {
  font-size: 13px;
  padding: 10px 22px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold    { color: var(--gold); }
.text-blue    { color: var(--blue); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--text-muted); }
.text-white   { color: var(--white); }

.font-playfair { font-family: 'Playfair Display', serif; }
.font-inter    { font-family: 'Inter', sans-serif; }

.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

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

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  z-index: 10000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 9000;
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--gold-light);
  transform: scale(1.08);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--navy);
}

/* ============================================================
   SCROLL MARGIN for anchor links
   ============================================================ */
section[id],
#hero {
  scroll-margin-top: calc(var(--nav-height) + var(--bar-height, 0px) + 10px);
}

/* ============================================================
   ANNOUNCEMENT BAR SHIMMER
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   FADE IN KEYFRAME
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ============================================================
   MOBILE RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .btn-lg {
    font-size: 15px;
    padding: 13px 28px;
  }

  section[id],
  #hero {
    scroll-margin-top: calc(var(--nav-height) + var(--bar-height, 0px) + 8px);
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: clamp(48px, 8vw, 80px) 0;
  }

  .section-title {
    font-size: clamp(20px, 8.5vw, 28px);
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: clamp(24px, 7vw, 36px);
  }
}

@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  .btn {
    padding: 11px 24px;
    font-size: 14px;
  }

  .section-title {
    font-size: clamp(22px, 8vw, 32px);
  }
}

/* Touch targets — minimum 44×44px */
@media (pointer: coarse) {
  .btn, .nav-cta-btn, .carousel-btn, .lightbox-close,
  .lightbox-prev, .lightbox-next, .announcement-dismiss,
  .hamburger, .carousel-dot, .back-to-top,
  .rekviziti-toggle, .pricing-tab {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Prevent horizontal overflow on media */
img, video, iframe {
  max-width: 100%;
}
