@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue: #1f4e79;
  --blue-deep: #173a5e;
  --orange: #ff8c42;
  --orange-deep: #e9741b;
  --yellow: #f6c23e;
  --white: #ffffff;
  --cream: #fff8e1;
  --cream-deep: #fdf0d6;
  --light-bg: #f8fbff;
  --text: #2f4358;
  --text-soft: #6b7a8f;
  --muted: #8a8a8a;
  --border: #e6e0d3;
  --shadow: 0 12px 30px rgba(31, 78, 121, 0.10);
  --shadow-hover: 0 16px 34px rgba(31, 78, 121, 0.15);
  --radius: 18px;
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 { font-family: 'Fraunces', serif; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); line-height: 1.2; }
h4 { font-size: 1.2rem; line-height: 1.25; }
h5 { font-size: 1.05rem; line-height: 1.3; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

img, video { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 60px 0; }
.section-center { text-align: center; }

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-sm { padding: 35px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--cream);
  border: 1px solid var(--yellow);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow {
  background: var(--cream);
  border-color: var(--yellow);
  color: var(--blue);
}
.section-head h2 { margin-top: 0.75rem; color: var(--blue-deep); }
.section-head p { color: var(--text-soft); margin-top: 0.75rem; font-size: 1.02rem; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: 'Nunito Sans', sans-serif;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-deep); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-pill { border-radius: 999px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-body { padding: 1.5rem; }
.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.photo-card img { width: 100%; height: 200px; object-fit: cover; }
.photo-card .card-body { padding: 1.25rem; }
.photo-card h4 { color: var(--blue-deep); margin-bottom: 0.5rem; }
.photo-card p { color: var(--text-soft); font-size: 0.9rem; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-primary { background: var(--blue); color: var(--white); }

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.nav-container {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-deep);
}
.navbar .brand .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--yellow), var(--orange) 70%);
  box-shadow: 0 0 0 3px rgba(246, 194, 62, 0.35);
}
.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.navbar ul { display: flex; gap: 28px; }
.navbar a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.navbar a:hover { color: var(--orange-deep); }
.navbar a.active { color: var(--orange); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: var(--text); }

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .navbar ul {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 80px 30px 40px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
  }
  .navbar ul.open { right: 0; }
  .navbar ul li { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .navbar ul li:last-child { border-bottom: none; }
}

.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-bg) 100%);
  border-bottom: 4px solid var(--yellow);
  padding: 70px 0 50px;
}
.hero h1 { color: var(--blue-deep); margin-bottom: 1rem; }
.hero p.lead { color: var(--text-soft); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 70px 0;
}
.hero-split .hero-content h1 { color: var(--blue-deep); }
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-split .hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-split .hero-image img { width: 100%; height: auto; display: block; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.highlight-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.highlight-list li:last-child { border-bottom: none; }
.highlight-list .icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-size: 0.8rem;
  margin-right: 10px;
  vertical-align: middle;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(from 210deg, var(--orange), var(--yellow), var(--blue), var(--orange));
  position: relative;
  overflow: hidden;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--white);
}
.avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar span {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--orange-deep), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
}

.head-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.head-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.head-card h3 { color: var(--blue-deep); margin-bottom: 0.4rem; }
.head-card .role { color: var(--orange); font-weight: 700; font-size: 0.92rem; }
.head-card .bio { color: var(--text-soft); font-size: 0.95rem; margin-top: 0.75rem; }

.timeline {
  position: relative;
  margin: 2rem 0 0;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 1rem;
}
.timeline-item:last-child { padding-bottom: 0; margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-item .year {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 1.25rem;
}
.timeline-item p { color: var(--text-soft); margin-top: 0.4rem; }

.history-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.gallery-frame {
  position: relative;
  background: var(--white);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  border-bottom: 6px solid var(--yellow);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-frame:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-frame .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.contact-info-panel {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  box-shadow: var(--shadow);
}
.contact-details-large {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-detail-item .label {
  color: var(--yellow);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.contact-detail-item .value {
  color: #e3f0ff;
  font-size: 1.05rem;
}
.social-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}
footer .social-links a[data-social]::before,
.contact-info-panel .social-links a[data-social]::before {
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 1.1rem;
}
footer .social-links a[data-social="facebook"]::before,
.contact-info-panel .social-links a[data-social="facebook"]::before { content: "\1F428"; }
footer .social-links a[data-social="twitter"]::before,
.contact-info-panel .social-links a[data-social="twitter"]::before { content: "\1F424"; }
footer .social-links a[data-social="instagram"]::before,
.contact-info-panel .social-links a[data-social="instagram"]::before { content: "\1F4F7"; }
footer .social-links a[data-social="linkedin"]::before,
.contact-info-panel .social-links a[data-social="linkedin"]::before { content: "\1F4D6"; }
footer .social-links a[data-social="youtube"]::before,
.contact-info-panel .social-links a[data-social="youtube"]::before { content: "\1F4F6"; }
footer {
  background: var(--blue-deep);
  color: var(--text-soft);
  margin-top: auto;
}
footer .footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}
footer .footer-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-family: 'Fraunces', serif;
}
footer .footer-col ul { list-style: none; }
footer .footer-col ul li { margin-bottom: 0.65rem; }
footer .footer-col a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}
footer .footer-col a:hover { color: var(--yellow); }
footer .social-links {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
}
footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}
footer .social-links a:hover {
  background: var(--orange);
  transform: translateY(-3px);
}
footer .map-wrapper {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
}
footer .map-wrapper iframe {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.1);
}
footer .bottom { text-align: center; padding: 1.5rem 0 1rem; font-size: 0.85rem; opacity: 0.7; border-top: 1px solid rgba(255,255,255,0.08); }

@media (max-width: 768px) {
  footer .footer-top { grid-template-columns: 1fr; }
}

.sub { color: var(--text-soft); font-size: 0.95rem; }
.section-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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

.text-muted { color: var(--text-soft); }
.lead { font-size: 1.08rem; line-height: 1.6; }
.d-flex { display: flex !important; }
.flex-fill { flex: 1 1 auto !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.img-fluid { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.d-none { display: none !important; }
.d-block { display: block !important; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

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

@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

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

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}
.animate-slide-up {
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(31, 78, 121, 0.18);
}
.head-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 78, 121, 0.18);
}
.gallery-frame:hover {
  transform: scale(1.03) rotate(0.5deg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}
.btn-outline:hover {
  transform: translateY(-3px);
  background: var(--orange);
  color: var(--white);
}
.hero-image img {
  animation: wave 6s ease-in-out infinite;
}

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

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}
.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-logos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 3rem;
  z-index: 10;
}
.preloader-logos img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  animation: logoEntrance 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.08));
}
.preloader-logos img:first-child { animation-delay: 0.2s; }
.preloader-logos img:last-child { animation-delay: 0.5s; }

@keyframes logoEntrance {
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.spinner {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 2.5rem;
  z-index: 10;
}
.spinner::before,
.spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--blue);
  border-top-color: var(--orange);
  border-right-color: var(--orange);
  animation: spin 1.2s linear infinite;
}
.spinner::after {
  inset: 6px;
  border-width: 3px;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-bottom-color: var(--orange);
  border-left-color: var(--orange);
  animation-duration: 0.8s;
  animation-direction: reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.sound-wave {
  position: absolute;
  border: 2px solid var(--orange);
  border-radius: 50%;
  animation: soundPulse 2.5s ease-in-out infinite;
  opacity: 0.15;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
}
.sound-wave.wave-1 { width: 120px; height: 120px; animation-delay: 0s; }
.sound-wave.wave-2 { width: 180px; height: 180px; animation-delay: 0.5s; }
.sound-wave.wave-3 { width: 240px; height: 240px; animation-delay: 1s; }

@keyframes soundPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.preloader-text {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--blue-deep);
  font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  border-right: 3px solid var(--orange);
  white-space: nowrap;
  width: 0;
  opacity: 0;
  padding-top: 1rem;
}
.preloader-text.animated {
  animation: typewriter 2.5s steps(50) 2s 1 normal both,
             textFade 0.3s ease 4.5s forwards;
}
@keyframes typewriter {
  from { width: 0; opacity: 0; }
  to { width: 100%; opacity: 1; }
}
@keyframes textFade {
  to { border-right-color: transparent; }
}

@media (max-width: 768px) {
  .preloader-text { font-size: 1.1rem; letter-spacing: 1px; }
  .preloader-logos img { width: 60px; height: 60px; }
  .preloader-logos { gap: 20px; }
  .spinner { width: 40px; height: 40px; }
  .sound-wave.wave-3 { width: 180px; height: 180px; }
  .preloader-logos { margin-bottom: 1.5rem; }
}

.gallery-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.gallery-filter button {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-filter button:hover,
.gallery-filter button.active {
  border-color: var(--orange);
  color: var(--orange);
}

