/* ============================================
   DLK Welfare Foundation — Professional Design System
   ============================================ */

:root {
  /* Palette */
  --ink: #12283A;
  --navy-900: #0D2B45;
  --navy-800: #123B5E;
  --primary: #0F4C81;
  --primary-dark: #0B3A63;
  --primary-soft: #E3EEF6;
  --accent: #E9A13B;
  --accent-dark: #C9821D;
  --accent-soft: #FBF0DC;
  --green: #1E8E6E;
  --green-soft: #E2F2EC;
  --bg: #F7FAFC;
  --bg-soft: #EEF4F8;
  --surface: #FFFFFF;
  --text: #33475B;
  --muted: #5F7285;
  --line: #DDE7EF;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(13, 43, 69, 0.08), 0 1px 2px rgba(13, 43, 69, 0.04);
  --shadow-md: 0 6px 20px rgba(13, 43, 69, 0.09);
  --shadow-lg: 0 16px 40px rgba(13, 43, 69, 0.14);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1180px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

svg.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { color: var(--muted); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-header .section-label::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title { margin-bottom: 1.1rem; }

.section-subtitle {
  font-size: 1.06rem;
  max-width: 640px;
  margin-bottom: 3rem;
}

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

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section--alt { background: var(--bg-soft); }
.section--white { background: var(--surface); }

.section-header {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

/* Decorative background figures */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.decor-dots {
  width: 190px;
  height: 190px;
  background-image: radial-gradient(circle, rgba(15, 76, 129, 0.18) 2px, transparent 2px);
  background-size: 19px 19px;
}

.decor-dots--accent {
  background-image: radial-gradient(circle, rgba(233, 161, 59, 0.3) 2px, transparent 2px);
}

.decor-ring {
  width: 320px;
  height: 320px;
  border: 2px solid rgba(15, 76, 129, 0.08);
  border-radius: 50%;
}

.decor-ring::after {
  content: '';
  position: absolute;
  inset: 42px;
  border: 2px solid rgba(233, 161, 59, 0.12);
  border-radius: 50%;
}

.decor-blob {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, rgba(15, 76, 129, 0.07), transparent 65%);
  border-radius: 50%;
}

.section > .container { position: relative; z-index: 1; }

/* Wave divider */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: -1px;
}

/* ============================================
   Top Bar
   ============================================ */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.02em;
}

.topbar__note .icon { width: 15px; height: 15px; color: var(--accent); }

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}

.topbar__contacts a:hover { color: var(--accent); }
.topbar__contacts .icon { width: 15px; height: 15px; }

@media (max-width: 768px) {
  .topbar__note span { display: none; }
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar__logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--navy-900));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
}

.navbar__logo-sub {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.navbar__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.navbar__link:hover,
.navbar__link.active { color: var(--primary); }

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

.navbar__cta { margin-left: 0.4rem; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__toggle.active span:nth-child(2) { opacity: 0; }
.navbar__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 860px) {
  .navbar__toggle { display: flex; }

  .navbar__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 330px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.4rem;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .navbar__nav.open { right: 0; }
  .navbar__cta { margin: 1rem 0 0; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.32);
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 76, 129, 0.38);
}

.btn--accent {
  background: var(--accent);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(233, 161, 59, 0.4);
}

.btn--accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(233, 161, 59, 0.45);
}

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

.btn--outline:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--navy-900);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(13, 43, 69, 0) 0%, rgba(13, 43, 69, 0.02) 100%),
    linear-gradient(115deg, #F2F7FB 0%, #E8F0F7 55%, #FBF3E3 100%);
  padding: 5.5rem 0 0;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 5.5rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}

.hero__title { margin-bottom: 1.4rem; }
.hero__title em {
  font-style: normal;
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 10px;
  background: rgba(233, 161, 59, 0.35);
  z-index: -1;
  border-radius: 3px;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(18, 40, 58, 0.1);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.hero__trust-item .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

/* Parallax shapes in hero */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.15s ease-out;
}

.hero__shape--1 {
  width: 260px;
  height: 260px;
  border: 2px dashed rgba(15, 76, 129, 0.16);
  top: -60px;
  right: -60px;
}

.hero__shape--2 {
  width: 150px;
  height: 150px;
  background-image: radial-gradient(circle, rgba(233, 161, 59, 0.35) 2px, transparent 2px);
  background-size: 17px 17px;
  border-radius: 0;
  bottom: 60px;
  left: -40px;
}

.hero__shape--3 {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 35% 35%, rgba(30, 142, 110, 0.25), rgba(30, 142, 110, 0.05));
  top: 40%;
  left: 44%;
}

@media (max-width: 992px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 480px; margin: 0 auto; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--primary) 85%);
  color: #fff;
  padding: 4.5rem 0 0;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  top: -140px;
  right: -100px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  background-image: radial-gradient(circle, rgba(233, 161, 59, 0.4) 2px, transparent 2px);
  background-size: 18px 18px;
  bottom: 30px;
  left: 4%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 3.5rem;
}

.page-hero__title {
  color: #fff;
  margin-bottom: 0.8rem;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero__breadcrumb a:hover { color: var(--accent); }
.page-hero__breadcrumb .sep { color: var(--accent); }

.page-hero .wave { position: relative; z-index: 1; }

/* ============================================
   Stats
   ============================================ */
.stats {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--primary-dark) 100%);
  padding: 4.5rem 0;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -180px;
  left: -120px;
}

.stats::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 2px, transparent 2px);
  background-size: 20px 20px;
  bottom: -40px;
  right: 5%;
}

.stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  text-align: center;
  padding: 0.6rem 1.5rem;
}

.stat-card + .stat-card { border-left: 1px solid rgba(255, 255, 255, 0.12); }

.stat-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(233, 161, 59, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.stat-card__icon .icon { width: 22px; height: 22px; }

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-card__label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .stat-card:nth-child(3) { border-left: none; }
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.75rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

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

.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.card__icon .icon { width: 26px; height: 26px; }
.card__icon--blue { background: var(--primary-soft); color: var(--primary); }
.card__icon--gold { background: var(--accent-soft); color: var(--accent-dark); }
.card__icon--green { background: var(--green-soft); color: var(--green); }

.card__title { margin-bottom: 0.65rem; }
.card__text { font-size: 0.92rem; }

/* Course cards */
.course-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  display: flex;
  flex-direction: column;
}

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

.course-card.hidden { display: none; }
.course-card.fade-out { opacity: 0; transform: scale(0.96); }

.course-card__image {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.course-card__image::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  top: -90px;
  right: -60px;
}

.course-card__image::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  bottom: -30px;
  left: -14px;
}

.course-card__image .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.4;
  position: relative;
  z-index: 1;
}

.grad-blue { background: linear-gradient(135deg, var(--primary), var(--navy-900)); }
.grad-gold { background: linear-gradient(135deg, var(--accent), #B7791F); }
.grad-green { background: linear-gradient(135deg, var(--green), #14634C); }
.grad-teal { background: linear-gradient(135deg, #1B7F8E, #0F4C5C); }
.grad-plum { background: linear-gradient(135deg, #6D4E93, #45306B); }
.grad-slate { background: linear-gradient(135deg, #46617A, var(--navy-900)); }

.course-card__body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card__category {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.course-card__category--skill { background: var(--primary-soft); color: var(--primary); }
.course-card__category--vocational { background: var(--accent-soft); color: var(--accent-dark); }
.course-card__category--community { background: var(--green-soft); color: var(--green); }

.course-card__title { margin-bottom: 0.5rem; }
.course-card__text { font-size: 0.88rem; margin-bottom: 1.1rem; flex: 1; }

/* ============================================
   Filter Tabs
   ============================================ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.6rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}

/* ============================================
   About / Split content
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content__figure { position: relative; }
.about-content__figure svg { width: 100%; height: auto; }

.recognition-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.recognition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.recognition-badge .icon { width: 16px; height: 16px; color: var(--accent-dark); }

@media (max-width: 860px) {
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Checklist */
.checklist { margin-top: 1.4rem; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
}

.checklist .icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 3px;
}

/* ============================================
   Timeline
   ============================================ */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding: 0 0 2.6rem 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

.timeline__year {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.timeline__title { margin-bottom: 0.45rem; }
.timeline__item p { font-size: 0.94rem; }

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.6rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--surface);
  border: 1px solid var(--line);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item__art {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.gallery-item__art::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: -100px;
  right: -70px;
}

.gallery-item__art::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px);
  background-size: 15px 15px;
  bottom: -35px;
  left: -20px;
}

.gallery-item__art .icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.3;
  position: relative;
  z-index: 1;
}

.gallery-item__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.gallery-item__caption .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-item__caption .icon {
  color: var(--primary);
  transform: scale(1.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 43, 69, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

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

.lightbox__content {
  position: relative;
  width: min(640px, 90vw);
}

.lightbox__figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__figure .gallery-item__art {
  aspect-ratio: 4/3;
}

.lightbox__figure .gallery-item__art .icon {
  width: 90px;
  height: 90px;
}

.lightbox__caption {
  background: var(--surface);
  padding: 1rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -3.2rem;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition);
}

.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav--prev { left: -4rem; }
.lightbox__nav--next { right: -4rem; }

@media (max-width: 860px) {
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.2rem;
}

.contact-info__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon .icon { width: 22px; height: 22px; }

.contact-info__title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.contact-info__item p { font-size: 0.95rem; }
.contact-info__item a:hover { color: var(--primary); }
.contact-info__hint { font-size: 0.78rem !important; color: #93A5B5 !important; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.87rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.14);
  background: var(--surface);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.map-embed {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.map-embed iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--navy-900) 100%);
  padding: 4.5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -230px;
  right: -140px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  background-image: radial-gradient(circle, rgba(233, 161, 59, 0.28) 2px, transparent 2px);
  background-size: 19px 19px;
  bottom: -50px;
  left: 3%;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner__title {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner__text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2.2rem;
}

/* ============================================
   Quote block
   ============================================ */
.quote-block {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.quote-block__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.65;
  display: block;
  margin-bottom: -1rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}

.quote-block cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -200px;
  right: -140px;
}

.footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.footer__logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--navy-900);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.footer__desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.3rem;
  color: var(--accent);
}

.footer__links li { margin-bottom: 0.7rem; }

.footer__links a,
.footer__links li {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact-item .icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-top: 4px;
}

.footer__contact-item a:hover { color: var(--accent); }

.footer__bottom {
  position: relative;
  z-index: 1;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.footer__copyright {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}

.footer__legal {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.32);
  max-width: 720px;
  margin: 0 auto;
}

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

@media (max-width: 576px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   Utility & 404
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.lead { font-size: 1.05rem; line-height: 1.85; }

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(115deg, #F2F7FB 0%, #FBF3E3 100%);
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 9rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.error-page__title { margin: 1rem 0; }
.error-page__text { margin-bottom: 2rem; }
