@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --gold: #D4A017;
  --gold-light: #F5C842;
  --gold-dark: #A07810;
  --red: #CE1126;
  --green: #006B3F;
  --black: #0A0A0A;
  --white: #FAFAF7;
  --off-white: #F2EFE6;
  --gray: #6B6B6B;
  --light-gray: #E8E4D9;
  --dark-surface: #111108;
  --card-bg: #FFFFFF;
  --text-primary: #1A1A0E;
  --text-secondary: #4A4A3A;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,8,0.96);
  backdrop-filter: blur(12px);
  display: flex; align-items: center;
  padding: 0 5%;
  border-bottom: 1px solid rgba(212,160,23,0.25);
  transition: background 0.3s;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-brand .flag-strip {
  display: flex; flex-direction: column;
  width: 32px; height: 22px; border-radius: 3px; overflow: hidden;
}
.nav-brand .flag-strip span {
  flex: 1;
}
.nav-brand .flag-strip .f-red { background: var(--red); }
.nav-brand .flag-strip .f-gold { background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 8px; }
.nav-brand .flag-strip .f-green { background: var(--green); }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto;
}

.nav-links a {
  color: #C8C4B0;
  font-size: 0.875rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(212,160,23,0.10);
}

.nav-cta {
  margin-left: 12px;
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--gold);
  border-radius: 2px; transition: 0.3s;
}

.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(10,10,8,0.98);
  padding: 20px 5%; z-index: 999;
  flex-direction: column; gap: 4px;
  border-bottom: 1px solid rgba(212,160,23,0.2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #C8C4B0; padding: 12px 16px;
  border-radius: 8px; font-size: 1rem;
  transition: 0.2s;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(212,160,23,0.08); }

/* ===================== PAGE WRAPPER ===================== */
.page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ===================== PAGE HERO ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--black) 0%, #1a1208 100%);
  color: var(--white);
  padding: 90px 5% 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A017' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.page-hero .hero-content { position: relative; max-width: 700px; }
.page-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--gold); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 1.5px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.1rem; color: #B0AC9C; max-width: 550px;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 80px 5%;
}
.section-alt { background: var(--off-white); }

.section-header {
  max-width: 600px; margin-bottom: 52px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary);
}
.section-header p {
  color: var(--text-secondary); margin-top: 14px; font-size: 1rem;
}

/* ===================== CARDS ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  width: 100%; height: 200px; object-fit: cover;
}
.card-body { padding: 24px; }
.card-tag {
  display: inline-block;
  background: rgba(212,160,23,0.12);
  color: var(--gold-dark);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 8px; color: var(--text-primary);
}
.card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===================== STAT CARDS ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; margin-bottom: 60px;
}
.stat-card {
  background: var(--black);
  color: var(--white); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
  border: 1px solid rgba(212,160,23,0.2);
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 900;
  color: var(--gold); line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.82rem; color: #A0A090; margin-top: 6px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: 0.25s;
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--gold); color: var(--black);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: rgba(212,160,23,0.1); transform: translateY(-1px); }
.btn-dark {
  background: var(--black); color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-dark:hover { background: #222; }

/* ===================== ACCORDION ===================== */
.accordion { border: 1px solid var(--light-gray); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--light-gray); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; background: var(--white);
  transition: background 0.2s;
}
.accordion-header:hover { background: var(--off-white); }
.accordion-header h4 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
}
.accordion-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(212,160,23,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; font-weight: 300;
  transition: transform 0.3s, background 0.2s;
  flex-shrink: 0;
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--gold); color: var(--black);
}
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 24px 20px;
  font-size: 0.93rem; color: var(--text-secondary); line-height: 1.7;
}

/* ===================== TIMELINE ===================== */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--gold), var(--green));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-size: 0.75rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 4px;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 6px; color: var(--text-primary);
}
.timeline-item p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===================== PROGRESS BARS ===================== */
.progress-item { margin-bottom: 24px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-primary); margin-bottom: 8px;
}
.progress-track {
  background: var(--light-gray); border-radius: 999px;
  height: 8px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  width: 0; transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== TABS ===================== */
.tab-bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: 36px;
}
.tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  padding: 10px 18px; color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: 0.2s;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===================== QUIZ ===================== */
.quiz-card {
  background: var(--black); color: var(--white);
  border-radius: var(--radius-lg); padding: 40px;
  border: 1px solid rgba(212,160,23,0.2);
}
.quiz-question {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 24px;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  background: #1A1A0E; border: 1.5px solid rgba(212,160,23,0.25);
  color: #C8C4B0; padding: 14px 20px; border-radius: 10px;
  cursor: pointer; font-family: var(--font-body); font-size: 0.95rem;
  text-align: left; transition: 0.2s;
}
.quiz-opt:hover { border-color: var(--gold); color: var(--white); }
.quiz-opt.correct { background: rgba(0,107,63,0.3); border-color: var(--green); color: #7FFFA8; }
.quiz-opt.wrong { background: rgba(206,17,38,0.2); border-color: var(--red); color: #FF9090; }
.quiz-opt.reveal { background: rgba(0,107,63,0.2); border-color: var(--green); color: #7FFFA8; }
.quiz-feedback {
  margin-top: 20px; padding: 16px 20px; border-radius: 10px;
  font-size: 0.95rem; display: none;
}
.quiz-feedback.correct { background: rgba(0,107,63,0.25); color: #7FFFA8; }
.quiz-feedback.wrong { background: rgba(206,17,38,0.15); color: #FF9090; }
.quiz-nav {
  display: flex; gap: 12px; align-items: center;
  margin-top: 28px; justify-content: space-between;
}
.quiz-counter { font-size: 0.85rem; color: #888; }

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white); font-size: 0.85rem; font-weight: 500;
  transform: translateY(100%); transition: transform 0.3s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ===================== CONTACT FORM ===================== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px; background: var(--white);
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text-primary); transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--black);
  color: #A0A090;
  padding: 60px 5% 0;
  border-top: 1px solid rgba(212,160,23,0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--gold); font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--white); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.88rem; color: #8A8A78;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-colors {
  display: flex; gap: 6px;
}
.color-dot {
  width: 10px; height: 10px; border-radius: 50%;
}

/* ===================== SEARCH BAR ===================== */
.search-bar {
  display: flex; gap: 0; margin-bottom: 32px;
  border: 1.5px solid var(--light-gray); border-radius: 10px;
  overflow: hidden; max-width: 520px;
}
.search-bar input {
  flex: 1; padding: 12px 16px;
  border: none; font-family: var(--font-body);
  font-size: 0.95rem; background: var(--white);
  color: var(--text-primary); outline: none;
}
.search-bar button {
  padding: 12px 20px; background: var(--gold);
  border: none; cursor: pointer; font-size: 0.9rem;
  font-weight: 600; color: var(--black);
  transition: 0.2s;
}
.search-bar button:hover { background: var(--gold-light); }

/* ===================== BADGE ===================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
}
.badge-red { background: rgba(206,17,38,0.12); color: var(--red); }
.badge-gold { background: rgba(212,160,23,0.15); color: var(--gold-dark); }
.badge-green { background: rgba(0,107,63,0.12); color: var(--green); }

/* ===================== TWO COL LAYOUT ===================== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }
.two-col img {
  border-radius: var(--radius-lg);
  width: 100%; height: 400px; object-fit: cover;
}

/* ===================== SCROLL FADE ===================== */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ===================== COLOR STRIPE ===================== */
.flag-stripe {
  height: 5px; width: 100%;
  background: linear-gradient(90deg, var(--red) 33.33%, var(--gold) 33.33%, var(--gold) 66.66%, var(--green) 66.66%);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .quiz-card { padding: 24px; }
}
