/* ═══════════════════════════════════════════
   CARAGA TIMELINE — STYLE.CSS
   Modern Minimalist · Custom CSS Icons
═══════════════════════════════════════════ */

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

/* ── VARIABLES ── */
:root {
  --black: #000000;
  --prussian-blue: #14213d;
  --orange: #fca311;
  --alabaster: #e5e5e5;
  --white: #ffffff;

  --text: #14213d;
  --muted: #6b7280;
  --border: #e5e5e5;
  --bg: #fafafa;

  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(20,33,61,0.08);
  --shadow-hover: 0 8px 32px rgba(20,33,61,0.14);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   CUSTOM CSS ICONS
═══════════════════════════════════════════ */

/* Calendar icon */
.icon-cal {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  position: relative;
}
.icon-cal::before {
  content: '';
  position: absolute;
  top: -4px; left: 3px;
  width: 2px; height: 5px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}
.icon-cal::after {
  content: '';
  position: absolute;
  top: -4px; right: 3px;
  width: 2px; height: 5px;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}

/* Flag icon */
.icon-flag {
  width: 18px; height: 18px;
  position: relative;
}
.icon-flag::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.7);
  border-radius: 1px;
}
.icon-flag::after {
  content: '';
  position: absolute;
  left: 2px; top: 0;
  width: 13px; height: 9px;
  background: rgba(255,255,255,0.7);
  clip-path: polygon(0 0, 100% 30%, 0 100%);
}

/* Section bar icon */
.icon-bar {
  width: 4px; height: 22px;
  background: var(--orange);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Checkmark icon */
.icon-check {
  width: 16px; height: 16px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.icon-check::after {
  content: '';
  position: absolute;
  left: 2px; top: -1px;
  width: 6px; height: 9px;
  border: 2px solid var(--orange);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Diamond icon */
.icon-diamond {
  width: 10px; height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Star for final node */
.icon-star-node {
  width: 14px; height: 14px;
  background: var(--white);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Final flag */
.icon-flag-final {
  width: 22px; height: 22px;
  position: relative;
}
.icon-flag-final::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--white);
  border-radius: 1px;
}
.icon-flag-final::after {
  content: '';
  position: absolute;
  left: 2px; top: 0;
  width: 16px; height: 11px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 30%, 0 100%);
}

/* Dot */
.dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Arrow between dates */
.date-arrow {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.4);
  position: relative;
  align-self: center;
}
.date-arrow::after {
  content: '';
  position: absolute;
  right: -1px; top: -4px;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  background: var(--prussian-blue);
  padding: 72px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-grid-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.header-inner { position: relative; z-index: 1; }

.header-tag {
  display: inline-block;
  border: 1px solid rgba(252,163,17,0.5);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.title-region {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.title-name {
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
}

.header-sub {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.header-dates {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 12px 24px;
}
.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.date-item strong { color: var(--white); }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; }

.section { padding: 56px 0 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--prussian-blue);
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════════
   RUBRICS
═══════════════════════════════════════════ */
.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.rubric-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.rubric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.rubric-score {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.rubric-name { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.rubric-bar-outer { height: 3px; background: var(--alabaster); border-radius: 2px; overflow: hidden; }
.rubric-bar-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }

.r-high .rubric-score { color: var(--orange); }
.r-high .rubric-bar-fill { background: var(--orange); }
.r-mid .rubric-score { color: var(--prussian-blue); }
.r-mid .rubric-bar-fill { background: var(--prussian-blue); }
.r-low .rubric-score { color: var(--muted); }
.r-low .rubric-bar-fill { background: var(--alabaster); border: 1px solid #ccc; }
.r-total { border-color: var(--prussian-blue); }
.r-total .rubric-score { color: var(--black); }
.r-total .rubric-bar-fill { background: var(--black); }

/* ═══════════════════════════════════════════
   TEAM
═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.member-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mc-lead { border-color: var(--orange); }

.member-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.member-avatar {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.av-orange { background: var(--orange); }
.av-blue { background: var(--prussian-blue); }
.av-grey { background: #4b5563; }
.av-doc { background: #374151; }

.member-top h3 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.member-role { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.5px; }

.member-tasks { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.member-tasks li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #374151; }

/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }

.tl-line {
  position: absolute;
  left: 50%;
  top: 24px; bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  padding-bottom: 40px;
  position: relative;
}
.tl-item.tl-right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
}
.tl-item.tl-final {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.tl-node {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: var(--white);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg);
}
.n-orange { background: var(--orange); }
.n-yellow { background: #d97706; }
.n-blue { background: var(--prussian-blue); }
.n-final { background: var(--black); }

.tl-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.tl-card:hover { box-shadow: var(--shadow-hover); }
.card-final {
  border-color: var(--black);
  max-width: 560px;
}

.tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tl-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  padding: 4px 12px;
  border-radius: 100px;
}
.tl-date { font-size: 12px; color: var(--muted); font-weight: 600; }
.tl-phase { font-size: 17px; font-weight: 800; margin-bottom: 16px; }

.tl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.task-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}

.task-col ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.task-col li { font-size: 12.5px; color: #374151; padding-left: 10px; border-left: 2px solid var(--alabaster); }
.out-list li { border-color: var(--orange); color: var(--prussian-blue); font-weight: 500; }

code {
  font-family: 'Courier New', monospace;
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--prussian-blue);
}

.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}
.c-l { background: #fff7ed; color: #c2410c; }
.c-j { background: #eff6ff; color: #1d4ed8; }
.c-z { background: #f5f3ff; color: #6d28d9; }
.c-k { background: #fdf4ff; color: #86198f; }
.c-a { background: #f0fdf4; color: #166534; }

.deadline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.deadline-banner strong { color: var(--orange); }

/* ═══════════════════════════════════════════
   SITEMAP
═══════════════════════════════════════════ */
.sitemap { text-align: center; }

.sm-root {
  display: inline-block;
  background: var(--prussian-blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
  position: relative;
}
.sm-root::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -24px;
  transform: translateX(-50%);
  width: 2px; height: 24px;
  background: var(--border);
}

.sm-branches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  position: relative;
}

.sm-branch { position: relative; }
.sm-node {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--transition), transform var(--transition);
}
.sm-node:hover { border-color: var(--orange); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   DESIGN CONCEPT
═══════════════════════════════════════════ */
.design-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.design-theme-name {
  font-size: 18px; font-weight: 800;
  color: var(--prussian-blue);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.swatch {
  flex: 1; min-width: 80px;
  padding: 20px 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.sw-light { color: var(--black); }
.sw-dark { color: #374151; }
.swatch-hex { font-family: monospace; font-size: 10px; opacity: 0.7; margin-bottom: 4px; }

.design-notes { display: flex; flex-direction: column; gap: 12px; }
.design-note { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: #374151; }

/* ═══════════════════════════════════════════
   STATEMENT
═══════════════════════════════════════════ */
.statement-box {
  background: var(--prussian-blue);
  border-radius: var(--radius);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.quote-mark {
  font-size: 120px;
  font-weight: 900;
  color: rgba(252,163,17,0.15);
  position: absolute;
  top: -20px; left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.statement-box p {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.9;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.statement-box strong { color: var(--orange); font-weight: 700; }

.sigs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sig {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .tl-line { left: 20px; }
  .tl-item, .tl-item.tl-right, .tl-item.tl-final {
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 0;
  }
  .tl-node { left: 20px; width: 36px; height: 36px; font-size: 14px; }
  .tl-card, .card-final { max-width: 100%; }
  .tl-body { grid-template-columns: 1fr; }

  .header-dates { flex-direction: column; gap: 8px; border-radius: var(--radius); }
  .date-arrow { display: none; }

  .team-grid { grid-template-columns: 1fr; }
  .rubric-grid { grid-template-columns: repeat(2, 1fr); }

  .statement-box { padding: 36px 24px; }
  .swatches { gap: 8px; }
  .swatch { min-width: 60px; }
}

@media (max-width: 480px) {
  .rubric-grid { grid-template-columns: 1fr 1fr; }
  .title-name { letter-spacing: -0.5px; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS (triggered by JS)
═══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}