/* =========================================================
   Bahai Turkmenistan — Shared Stylesheet
   Design: "Celestial Unity"
   ========================================================= */

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

/* ---- Design Tokens ---- */
:root {
  --color-bg: #faf8f5;
  --color-bg-dark: #f3ede2;
  --color-bg-light: #ffffff;
  --color-gold: #a37d1d;
  --color-gold-light: #c9a227;
  --color-cream: #2b261f;
  --color-text: #3a352d;
  --color-text-dim: #6b6355;
  --color-white: #1c1813;
  --color-glass: rgba(255, 255, 255, 0.85);
  --color-glass-border: rgba(163, 125, 29, 0.25);
  --color-nav-bg: rgba(250, 248, 245, 0.92);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-gold: 0 4px 30px rgba(163, 125, 29, 0.15);
  --shadow-card: 0 10px 35px rgba(163, 125, 29, 0.08);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1180px;
  --max-width-nav: 1380px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 2rem;
}

.navbar.scrolled {
  background: var(--color-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(163, 125, 29, 0.08);
}

.navbar__inner {
  max-width: var(--max-width-nav);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar__logo-star {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(163, 125, 29, 0.3));
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-cream);
  letter-spacing: 0.03em;
  line-height: 1.2;
  font-weight: 600;
}

.navbar__logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--color-gold);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.lang-switcher a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.lang-switcher a:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.lang-switcher a.current {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(163, 125, 29, 0.1);
}

.lang-switcher span.sep {
  color: var(--color-text-dim);
  font-size: 0.7rem;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.open {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 10000;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.open span {
  background: var(--color-gold);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg-dark);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 5rem 2rem 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.navbar__mobile.open {
  display: flex;
}

.navbar__mobile-logo {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.navbar__mobile-logo .navbar__logo-star {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.navbar__mobile-logo .navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold);
  line-height: 1.2;
  text-transform: none;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0;
}

.navbar__mobile-logo .navbar__logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-light);
  opacity: 0.85;
  margin-top: 2px;
}

.navbar__mobile a:not(.navbar__mobile-logo) {
  font-size: 1.4rem;
  color: var(--color-cream);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition), transform var(--transition);
}

.navbar__mobile a:not(.navbar__mobile-logo):hover,
.navbar__mobile a:not(.navbar__mobile-logo).active {
  color: var(--color-gold);
  transform: translateY(-2px);
}

.navbar__mobile .lang-mobile {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-glass-border);
  margin-top: 1.5rem;
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.navbar__mobile .lang-mobile a {
  font-size: 1.1rem;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--color-glass-border);
}

.navbar__mobile .lang-mobile a.current {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(163, 125, 29, 0.15);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero:hover .hero__bg {
  transform: scale(1.06);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(250, 248, 245, 0.4) 0%,
      rgba(243, 237, 226, 0.65) 60%,
      rgba(250, 248, 245, 0.95) 100%);
}

/* Animated particles */
.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__particles::before,
.hero__particles::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow:
    120px 80px 0 rgba(163, 125, 29, 0.5),
    240px 200px 0 rgba(163, 125, 29, 0.3),
    400px 140px 0 rgba(163, 125, 29, 0.4),
    560px 300px 0 rgba(163, 125, 29, 0.4),
    700px 60px 0 rgba(163, 125, 29, 0.3),
    900px 250px 0 rgba(163, 125, 29, 0.3),
    1050px 180px 0 rgba(163, 125, 29, 0.4),
    80px 380px 0 rgba(163, 125, 29, 0.3),
    300px 420px 0 rgba(163, 125, 29, 0.4),
    650px 450px 0 rgba(163, 125, 29, 0.4),
    1100px 350px 0 rgba(163, 125, 29, 0.3),
    200px 550px 0 rgba(163, 125, 29, 0.3);
  animation: twinkle 4s ease-in-out infinite alternate;
}

.hero__particles::after {
  animation-delay: 2s;
  animation-duration: 6s;
  box-shadow:
    50px 150px 0 rgba(163, 125, 29, 0.4),
    350px 80px 0 rgba(163, 125, 29, 0.3),
    500px 350px 0 rgba(163, 125, 29, 0.3),
    750px 120px 0 rgba(163, 125, 29, 0.4),
    950px 400px 0 rgba(163, 125, 29, 0.3),
    1150px 200px 0 rgba(163, 125, 29, 0.3);
}

@keyframes twinkle {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 0.85;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(163, 125, 29, 0.4);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 6px 18px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.8s ease forwards;
}

.hero__star {
  font-size: 3rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 16px rgba(163, 125, 29, 0.4));
  margin-bottom: 1rem;
  animation: fadeUp 0.9s 0.1s ease both;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #1a1612;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s 0.2s ease both;
}

.hero__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #2c261e;
  line-height: 1.8;
  margin-bottom: 1rem;
  animation: fadeUp 1s 0.35s ease both;
}

.hero__quote-author {
  font-size: 0.875rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  animation: fadeUp 1s 0.45s ease both;
}

.hero__icon-divider {
  margin: 1.2rem auto;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  animation: fadeUp 1s 0.5s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounce 2s ease infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  position: relative;
  padding: 9rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(250, 248, 245, 0.45) 0%,
      rgba(243, 237, 226, 0.70) 60%,
      rgba(250, 248, 245, 0.95) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.3;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__label {
  font-size: 0.75rem;
  color: var(--color-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #1a1612;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.page-hero__divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  margin: 0 auto;
}


/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--dark {
  background: var(--color-bg-dark);
}

.section--alt {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.main-content-wrapper {
  position: relative;
}

.main-content-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 220px;
  background-image: url('../assets/uzor-clean-tile-1.jpeg');
  background-repeat: repeat-y;
  background-position: right top;
  background-size: 220px auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: #1a1612;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

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

.section__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--color-gold), var(--color-gold-light));
  margin-bottom: 2rem;
  border-radius: 2px;
}

.section__divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   GRID LAYOUTS
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* =========================================================
   GLASSMORPHISM CARDS (Light Theme)
   ========================================================= */
.glass-card {
  background: #ffffff;
  border: 1px solid rgba(163, 125, 29, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(163, 125, 29, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(163, 125, 29, 0.15);
  border-color: rgba(163, 125, 29, 0.4);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card__icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.glass-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #1a1612;
  margin-bottom: 0.75rem;
}

.glass-card__text {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.glass-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.glass-card__link::after {
  content: '→';
  transition: transform var(--transition);
}

.glass-card:hover .glass-card__link::after {
  transform: translateX(4px);
}

/* =========================================================
   TEXT & CONTENT BLOCKS
   ========================================================= */
.content-block {
  max-width: 820px;
}

.content-block p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.image-block {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(163, 125, 29, 0.12);
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-block:hover img {
  transform: scale(1.04);
}

.image-block::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  pointer-events: none;
}

/* =========================================================
   PULL QUOTE
   ========================================================= */
.pull-quote {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(163, 125, 29, 0.2);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(163, 125, 29, 0.06);
}

.pull-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--color-gold);
  opacity: 0.18;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: #1a1612;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.pull-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
}

.timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -3.4rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(163, 125, 29, 0.4);
}

.timeline__year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.timeline__text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.75;
}

/* =========================================================
   HISTORY IMAGES
   ========================================================= */
.history-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.history-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.history-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.history-img-wrap:hover img {
  transform: scale(1.05);
}

.history-img-wrap figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  padding: 0.75rem 1rem 0.6rem;
  font-size: 0.8rem;
  color: #ffffff;
  font-style: italic;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid rgba(163, 125, 29, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(163, 125, 29, 0.06);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  font-size: 1.4rem;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: #1a1612;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-control {
  background: #ffffff;
  border: 1px solid rgba(163, 125, 29, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  color: #1a1612;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(163, 125, 29, 0.15);
}

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

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

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(163, 125, 29, 0.25);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(163, 125, 29, 0.35);
  color: #ffffff;
}

.btn--outline {
  background: #ffffff;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn--outline:hover {
  background: rgba(163, 125, 29, 0.08);
  transform: translateY(-2px);
  color: var(--color-gold);
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
  position: relative;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-glass-border);
  padding: 4rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-image: url('../assets/footer.png');
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
  opacity: 0.75;
  filter: drop-shadow(0 0 8px rgba(163, 125, 29, 0.3));
}

.footer__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer__star {
  font-size: 2.2rem;
  color: var(--color-gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(163, 125, 29, 0.3));
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
}

.footer__copy a {
  color: var(--color-gold-light);
}

/* Decorative Section Dividers with uzor.png pattern */
.ornamental-divider {
  width: 100%;
  height: 40px;
  background-image: url('../assets/uzor.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.45;
  margin: 2.5rem 0;
  filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.3));
}

/* Enhancing sections with background ornamental accents */
.section--dark {
  position: relative;
  background: var(--color-bg-dark);
}

.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url('../assets/uzor.png');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
}

.section--alt {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.section--alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background-image: url('../assets/uzor.png');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--color-gold);
  color: var(--color-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.6);
  color: var(--color-bg-dark);
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}

/* Fade in keyframe */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .history-image-pair {
    grid-template-columns: 1fr;
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.2rem;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .page-hero {
    padding: 7rem 1.5rem 4rem;
  }

}

/* =========================================================
   PAGE PRELOADER
   ========================================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-star-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  animation: loaderPulse 1.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(163, 125, 29, 0.4));
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(163, 125, 29, 0.15);
  border-top-color: var(--color-gold);
  border-right-color: var(--color-gold-light);
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

.loader-bar {
  width: 140px;
  height: 3px;
  background: rgba(163, 125, 29, 0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-gold-light), transparent);
  animation: loaderShimmer 1.5s ease-in-out infinite;
}

@keyframes loaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(163, 125, 29, 0.6));
  }
}

@keyframes loaderShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* =========================================================
   TEXT SHOW & MOVE ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal--left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal--right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal--zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal--zoom.visible {
  opacity: 1;
  transform: scale(1);
}

/* Section title animated accent line */
.section__divider {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Quote glow on scroll reveal */
.pull-quote.visible {
  box-shadow: 0 12px 35px rgba(163, 125, 29, 0.12);
  border-left-color: var(--color-gold);
  animation: quoteGlow 2.5s ease-in-out infinite alternate;
}

@keyframes quoteGlow {
  0% {
    border-left-color: var(--color-gold);
  }

  100% {
    border-left-color: var(--color-gold-light);
  }
}

/* =========================================================
   MEASURES & EVENTS STYLES
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--color-glass-border);
  color: var(--color-text);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(163, 125, 29, 0.25);
}

.measures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.measure-card {
  background: #ffffff;
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.measure-card:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 125, 29, 0.45);
  box-shadow: 0 16px 40px rgba(163, 125, 29, 0.15);
}

.measure-card__img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.measure-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.measure-card:hover .measure-card__img {
  transform: scale(1.06);
}

.measure-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid var(--color-glass-border);
}

.measure-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.measure-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-bottom: 0.75rem;
}

.measure-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.measure-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.measure-card:hover .measure-card__title {
  color: var(--color-gold);
}

.measure-card__desc {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.measure-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.measure-card:hover .measure-card__link {
  gap: 0.7rem;
}

/* Single Measure Detail Styles */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-hero-img {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(163, 125, 29, 0.12);
  border: 1px solid var(--color-glass-border);
}

.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-info-card {
  background: #ffffff;
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.detail-info-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-glass-border);
}

.detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.detail-meta-icon {
  font-size: 1.2rem;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  font-weight: 600;
}

.detail-meta-val {
  font-size: 0.95rem;
  color: var(--color-white);
  font-weight: 500;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.detail-gallery-item {
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-glass-border);
}

.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-gallery-item:hover img {
  transform: scale(1.05);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-gold);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span.sep {
  opacity: 0.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  transition: transform var(--transition);
}

.back-link:hover {
  transform: translateX(-4px);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.related-item:hover {
  background: rgba(163, 125, 29, 0.08);
}

.related-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.related-item-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.related-item-date {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

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

  .detail-sidebar {
    position: static;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }
}