/* public/css/style.css */

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

:root {
  --base:        #E1E5E6;
  --base-light:  #EEF1F2;
  --base-dark:   #C8CDD0;
  --dark:        #1C1F21;
  --dark-2:      #2E3437;
  --terracotta:  #B85C38;
  --gold:        #C8973A;
  --forest:      #2A4240;
  --warm-gray:   #6B7478;
  --white:       #FFFFFF;
  --error:       #C0392B;
  --success:     #27AE60;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 3px;
  --radius:    6px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px rgba(28,31,33,0.08);
  --shadow:    0 6px 24px rgba(28,31,33,0.10);
  --shadow-lg: 0 16px 48px rgba(28,31,33,0.14);

  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--base);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

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

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--dark);
}

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 1.5px;
  background: var(--terracotta);
}

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 3.5rem;
  height: 68px;
  background: rgba(225, 229, 230, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,31,33,0.07);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.navbar-brand span { color: var(--terracotta); }

.navbar-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.navbar-links a {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dark);
  position: relative; padding-bottom: 3px;
  transition: color var(--transition);
}
.navbar-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--terracotta); }
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--terracotta); color: white;
}
.btn-primary:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-dark {
  background: var(--dark); color: white;
}
.btn-dark:hover {
  background: var(--forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(28,31,33,0.25);
}
.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.btn-ghost {
  background: transparent; color: var(--terracotta);
  padding-left: 0; padding-right: 0;
  letter-spacing: 0.06em;
}
.btn-ghost:hover { gap: 0.7rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.72rem; }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #a93226; }

/* ─── PAGE WRAPPER ───────────────────────────── */
.page-wrap { padding-top: 68px; min-height: 100vh; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 68px);
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 3.5rem;
  position: relative;
}
.hero-left::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(28,31,33,0.12), transparent);
}
.hero-title {
  font-size: clamp(3.5rem, 5.5vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--dark);
  margin-bottom: 1.6rem;
}
.hero-title em { font-style: italic; color: var(--terracotta); }
.hero-title .hero-sub {
  display: block;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400; font-style: italic;
  color: var(--warm-gray);
  margin-top: 0.8rem;
  font-family: var(--font-display);
}
.hero-desc {
  font-size: 1rem; line-height: 1.8;
  color: var(--warm-gray); font-weight: 300;
  max-width: 440px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; }

.hero-right {
  background: var(--forest);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-right svg.bg-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-wordmark {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(7rem, 14vw, 16rem);
  font-weight: 900; font-style: italic;
  color: rgba(255,255,255,0.055);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.hero-stats {
  position: absolute; bottom: 2.5rem; left: 2.5rem; right: 2.5rem;
  display: flex; gap: 1.5rem; z-index: 3;
}
.stat {
  border-left: 2px solid var(--gold);
  padding-left: 0.9rem;
}
.stat-n {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  color: white; line-height: 1;
}
.stat-l {
  font-size: 0.68rem; font-weight: 400;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* ─── MARQUEE ────────────────────────────────── */
.marquee-strip {
  background: var(--dark);
  height: 42px; overflow: hidden;
  display: flex; align-items: center;
}
.marquee-track {
  display: inline-flex; align-items: center;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
.m-item {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); padding: 0 2rem;
}
.m-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── SECTIONS ───────────────────────────────── */
.section { padding: 6rem 3.5rem; }
.section-sm { padding: 4rem 3.5rem; }
.section-dark { background: var(--dark); }
.section-light { background: var(--base-light); }
.section-white { background: var(--white); }

.section-header { margin-bottom: 3rem; }
.section-header.split {
  display: flex; justify-content: space-between; align-items: flex-end;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--terracotta); }
.section-title.light { color: var(--base-light); }

/* ─── CARDS - PROGRAM ────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(28,31,33,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.program-card-img {
  height: 200px; background: var(--forest);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.program-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.program-card:hover .program-card-img img { transform: scale(1.05); }
.program-card-img-placeholder {
  font-family: var(--font-display);
  font-size: 3.5rem; font-style: italic;
  color: rgba(255,255,255,0.1);
  font-weight: 900;
}
.program-card-body { padding: 1.6rem; }
.program-card-date {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 0.5rem;
}
.program-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0.7rem;
}
.program-card-desc {
  font-size: 0.86rem; line-height: 1.7;
  color: var(--warm-gray); font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── CARDS - REKAP ──────────────────────────── */
.rekap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.rekap-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(28,31,33,0.07);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.rekap-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.rekap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.rekap-card:hover::before { transform: scaleX(1); }

.rekap-card-thumb {
  height: 180px; background: var(--forest);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.rekap-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.rekap-card:hover .rekap-card-thumb img { transform: scale(1.06); }
.rekap-thumb-placeholder {
  font-family: var(--font-display);
  font-size: 3rem; font-style: italic;
  color: rgba(255,255,255,0.1); font-weight: 900;
}

.rekap-pdf-badge {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  background: var(--terracotta); color: white;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 2px;
  display: flex; align-items: center; gap: 0.3rem;
}

.rekap-card-body { padding: 1.4rem 1.5rem; }
.rekap-card-date {
  font-size: 0.67rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.rekap-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0.6rem;
}
.rekap-card-desc {
  font-size: 0.83rem; line-height: 1.65;
  color: var(--warm-gray); font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rekap-card-footer {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(28,31,33,0.06);
  display: flex; justify-content: flex-end;
  background: var(--base-light);
}

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(28,31,33,0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  max-width: 460px; width: 90%;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(184,92,56,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 1.6rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.6rem;
}
.modal-desc {
  font-size: 0.9rem; color: var(--warm-gray);
  line-height: 1.7; margin-bottom: 1.8rem;
}
.modal-actions {
  display: flex; gap: 0.8rem; justify-content: center;
}

/* ─── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  background: var(--dark);
  padding: 4rem 3.5rem 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: attr(data-title);
  position: absolute; right: 3rem; bottom: -1rem;
  font-family: var(--font-display);
  font-size: 10rem; font-weight: 900; font-style: italic;
  color: rgba(255,255,255,0.03);
  line-height: 1; pointer-events: none;
}
.page-hero .section-eyebrow { color: var(--gold); }
.page-hero .section-eyebrow::before { background: var(--gold); }
.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: var(--white); font-weight: 900;
}
.page-hero h1 em { color: var(--gold); }
.page-hero p {
  font-size: 1rem; color: rgba(255,255,255,0.45);
  font-weight: 300; margin-top: 0.8rem;
  max-width: 520px;
}

/* ─── BREADCRUMB ─────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
  margin-bottom: 1.2rem; text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.2); }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 5rem 3.5rem 2rem;
  position: relative; overflow: hidden;
}
.footer::after {
  content: 'SERAH';
  position: absolute; right: 2rem; bottom: -1rem;
  font-family: var(--font-display);
  font-size: 14rem; font-weight: 900; font-style: italic;
  color: rgba(255,255,255,0.025);
  line-height: 1; pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
  position: relative; z-index: 1;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 900;
  color: white; margin-bottom: 0.8rem;
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline {
  font-size: 0.82rem; font-style: italic;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-display);
  margin-bottom: 1rem;
}
.footer-about {
  font-size: 0.85rem; line-height: 1.75;
  color: rgba(255,255,255,0.3); font-weight: 300;
}
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.4);
  transition: all var(--transition);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.footer-col h4 {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a {
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
  font-weight: 300; transition: color var(--transition);
}
.footer-col ul a:hover { color: white; }
.footer-col address {
  font-style: normal; font-size: 0.85rem;
  line-height: 1.75; color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.footer-col address a { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.18); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.75rem; color: rgba(255,255,255,0.18); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

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

/* ─── EMPTY STATE ────────────────────────────── */
.empty-state {
  text-align: center; padding: 5rem 2rem;
  color: var(--warm-gray);
}
.empty-state .empty-icon {
  font-size: 3rem; margin-bottom: 1rem; opacity: 0.4;
}
.empty-state p { font-size: 0.95rem; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 960px) {
  .navbar { padding: 0 1.5rem; }
  .navbar-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { height: 320px; }
  .hero-left { padding: 4rem 1.5rem 3rem; }
  .section, .section-sm { padding: 4rem 1.5rem; }
  .page-hero { padding: 3rem 1.5rem; }
  .footer { padding: 4rem 1.5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-header.split { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
