/* ============================================================
   HIKMAT BALIRAM UDHAN — CORPORATE LEADERSHIP WEBSITE
   Design System & Global Styles
   ============================================================ */

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

/* --- Custom Properties --- */
:root {
  /* Colors */
  --midnight:       #0B1D3A;
  --midnight-light: #122C54;
  --midnight-dark:  #060F1F;
  --charcoal:       #2C2C2C;
  --charcoal-light: #3D3D3D;
  --ivory:          #F5F0E8;
  --ivory-dark:     #E8E0D4;
  --saffron:        #E07B2E;
  --saffron-light:  #F09A55;
  --saffron-dark:   #C4641E;
  --white:          #FFFFFF;
  --grey-100:       #F7F7F7;
  --grey-200:       #EBEBEB;
  --grey-300:       #D4D4D4;
  --grey-400:       #A3A3A3;
  --grey-500:       #737373;
  --grey-600:       #525252;
  --text-primary:   #1A1A1A;
  --text-secondary: #525252;
  --text-light:     #A3A3A3;
  --text-on-dark:   #E8E0D4;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --nav-height: 80px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md:   0 4px 12px rgba(11, 29, 58, 0.08);
  --shadow-lg:   0 8px 30px rgba(11, 29, 58, 0.12);
  --shadow-xl:   0 16px 50px rgba(11, 29, 58, 0.16);
  --shadow-card: 0 2px 8px rgba(11, 29, 58, 0.05), 0 8px 24px rgba(11, 29, 58, 0.08);

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   0.2s;
  --duration-medium: 0.4s;
  --duration-slow:   0.8s;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--midnight);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.25rem); }

.text-saffron { color: var(--saffron); }
.text-ivory   { color: var(--ivory); }
.text-midnight { color: var(--midnight); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section {
  padding: var(--space-5xl) 0;
}

.section--dark {
  background-color: var(--midnight);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--ivory);
}

.section--grey {
  background-color: var(--grey-100);
}

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-lg);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--saffron);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.section--dark .section-header p {
  color: var(--grey-400);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background var(--duration-medium) var(--ease-out),
              box-shadow var(--duration-medium) var(--ease-out);
}

.nav--scrolled {
  background: rgba(11, 29, 58, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav--solid {
  background: var(--midnight);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-wide);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--saffron);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.5px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.7);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width var(--duration-medium) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--ivory);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 29, 58, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-2xl) 0;
    gap: var(--space-lg);
    transform: translateY(-120%);
    transition: transform var(--duration-medium) var(--ease-out);
  }
  .nav__links.open {
    transform: translateY(0);
  }
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--midnight);
  overflow: hidden;
}

.hero--page {
  min-height: 50vh;
  padding-top: var(--nav-height);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(30deg, var(--saffron) 1px, transparent 1px),
    linear-gradient(-30deg, var(--saffron) 1px, transparent 1px);
  background-size: 60px 100px;
  animation: patternDrift 30s linear infinite;
}

@keyframes patternDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 100px); }
}

.hero__geometric {
  position: absolute;
  border: 1px solid rgba(224, 123, 46, 0.08);
  border-radius: 50%;
  animation: geometricFloat 20s ease-in-out infinite;
}

.hero__geometric:nth-child(1) {
  width: 300px; height: 300px;
  top: 10%; right: -5%;
  animation-delay: 0s;
}

.hero__geometric:nth-child(2) {
  width: 200px; height: 200px;
  bottom: 15%; left: 5%;
  animation-delay: -7s;
}

.hero__geometric:nth-child(3) {
  width: 150px; height: 150px;
  top: 40%; right: 30%;
  animation-delay: -14s;
}

@keyframes geometricFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -20px) rotate(5deg); }
  50% { transform: translate(-10px, 15px) rotate(-3deg); }
  75% { transform: translate(20px, 10px) rotate(4deg); }
}

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

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: var(--space-xl);
}

.hero__label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--saffron);
  animation: lineGrow 1s var(--ease-out) forwards;
}

.hero__title {
  color: var(--ivory);
  margin-bottom: var(--space-lg);
  max-width: 650px;
}

.hero__title span {
  color: var(--saffron);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--grey-400);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--duration-medium) var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.btn--primary:hover {
  background: var(--saffron-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 123, 46, 0.3);
}

.btn--outline {
  border: 1.5px solid rgba(245, 240, 232, 0.3);
  color: var(--ivory);
}

.btn--outline:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--midnight);
  color: var(--ivory);
}

.btn--dark:hover {
  background: var(--midnight-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

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

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-medium) var(--ease-out);
}

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

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-xl);
}

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--saffron);
  background: rgba(224, 123, 46, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--grey-200);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Dashboard Stat Cards --- */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--duration-medium) var(--ease-out);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--saffron-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}

.stat-card.animate::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  background: rgba(224, 123, 46, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--saffron);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--midnight);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-card__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dark variant stat card */
.stat-card--dark {
  background: var(--midnight-light);
  box-shadow: none;
  border: 1px solid rgba(245, 240, 232, 0.06);
}

.stat-card--dark .stat-card__number {
  color: var(--ivory);
}

.stat-card--dark .stat-card__label {
  color: var(--grey-400);
}

.stat-card--dark .stat-card__icon {
  background: rgba(224, 123, 46, 0.12);
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Portfolio Grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.filter-btn {
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.filter-btn.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: var(--white);
}

/* --- Progress Bars --- */
.progress {
  margin-bottom: var(--space-xl);
}

.progress__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.progress__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.progress__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--saffron);
}

.progress__bar {
  width: 100%;
  height: 6px;
  background: var(--grey-200);
  border-radius: 100px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--saffron-light));
  border-radius: 100px;
  width: 0;
  transition: width 1.5s var(--ease-out);
}

.progress__fill.animate {
  width: var(--progress-width);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--grey-200);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
}

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--saffron);
}

.timeline__year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--saffron);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--midnight-dark);
  color: var(--text-on-dark);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__brand-icon {
  width: 32px;
  height: 32px;
  background: var(--saffron);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--grey-400);
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: var(--grey-400);
  margin-bottom: var(--space-sm);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--saffron);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--grey-400);
  margin-bottom: var(--space-md);
}

.footer__contact-icon {
  color: var(--saffron);
  font-size: 1rem;
  margin-top: 2px;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--grey-500);
}

.footer__credit a {
  color: var(--saffron);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.footer__credit a:hover {
  color: var(--saffron-light);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* --- Animations --- */
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 32px; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInPanel {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Intersection Observer Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Line Growth Animation */
.line-grow {
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width 1s var(--ease-out);
}

.line-grow.animate {
  width: 60px;
}

/* --- Masonry Grid --- */
.masonry {
  columns: 3;
  column-gap: var(--space-lg);
}

.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.masonry__item img {
  width: 100%;
  transition: transform var(--duration-slow) var(--ease-out);
}

.masonry__item:hover img {
  transform: scale(1.05);
}

.masonry__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 29, 58, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
}

.masonry__item:hover .masonry__overlay {
  opacity: 1;
}

@media (max-width: 900px) {
  .masonry { columns: 2; }
}

@media (max-width: 600px) {
  .masonry { columns: 1; }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 15, 31, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-medium) var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--ivory);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--duration-fast);
}

.lightbox__close:hover {
  background: rgba(245, 240, 232, 0.1);
}

/* --- Access Code Page --- */
.access-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}

.access-card {
  background: rgba(18, 44, 84, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-3xl);
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.access-card__logo {
  width: 56px;
  height: 56px;
  background: var(--saffron);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 auto var(--space-xl);
}

.access-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: var(--space-sm);
}

.access-card__subtitle {
  font-size: 0.9rem;
  color: var(--grey-400);
  margin-bottom: var(--space-2xl);
}

.access-card__input-wrap {
  position: relative;
  margin-bottom: var(--space-lg);
}

.access-card__input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(245, 240, 232, 0.06);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: var(--radius-md);
  color: var(--ivory);
  font-size: 1rem;
  letter-spacing: 8px;
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
}

.access-card__input:focus {
  border-color: var(--saffron);
}

.access-card__input::placeholder {
  letter-spacing: 2px;
  color: var(--grey-500);
}

.access-card__btn {
  width: 100%;
  padding: 16px;
  background: var(--saffron);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-out);
}

.access-card__btn:hover {
  background: var(--saffron-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 123, 46, 0.3);
}

.access-card__error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: var(--space-md);
  display: none;
}

.access-card__error.show {
  display: block;
  animation: fadeInUp 0.3s var(--ease-out);
}

/* --- Interactive Map --- */
.map-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.map-svg {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

.map-svg path {
  fill: var(--midnight-light);
  stroke: var(--ivory);
  stroke-width: 1;
  transition: fill var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.map-svg path:hover {
  fill: var(--saffron);
}

.map-tooltip {
  position: absolute;
  background: var(--midnight);
  color: var(--ivory);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  z-index: 10;
}

.map-tooltip.show {
  opacity: 1;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(224, 123, 46, 0.1);
}

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

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.two-col--3-2 {
  grid-template-columns: 3fr 2fr;
}

.two-col--2-3 {
  grid-template-columns: 2fr 3fr;
}

@media (max-width: 900px) {
  .two-col,
  .two-col--3-2,
  .two-col--2-3 {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* --- Page Content Padding --- */
.page-content {
  padding-top: var(--nav-height);
}

/* --- Responsive base --- */
@media (max-width: 600px) {
  :root {
    --space-xl: 1.25rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;
    --space-5xl: 5rem;
  }
  .section { padding: var(--space-4xl) 0; }
  .hero { min-height: 85vh; }
  .hero--page { min-height: 40vh; }
}
