:root{
  --brand: #f97316;
  --brand-700: #c2410c;
  --brand-600: #ea580c;
  --brand-500: #fb923c;
  --brand-100: #ffedd5;
  --brand-50: #fff7ed;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --ink: #1f2937;
  --ink-soft: #475569;
  --muted: #64748b;
  --surface: rgba(255,255,255,.92);
  --surface-solid: #ffffff;
  --bg: #fff7ed;
  --bg-accent: #ffedd5;
  --line: rgba(234,88,12,.12);
  --line-strong: rgba(234,88,12,.2);
  --ring: rgba(249,115,22,.18);
  --shadow-sm: 0 10px 24px rgba(154, 52, 18, .08);
  --shadow-md: 0 24px 60px rgba(154, 52, 18, .12);
  --radius-sm: 18px;
  --radius-md: 26px;
  --radius-lg: 34px;
}

html, body{height:100%;}
html{scroll-behavior:smooth;}
body{
  font-family: "Plus Jakarta Sans", "Segoe UI", "Trebuchet MS", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 36%),
    radial-gradient(circle at top right, rgba(251,146,60,.14), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 30%, #ffedd5 100%);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .hero-title, .section-title{
  font-family: "Fraunces", Georgia, serif;
}

img{max-width:100%;}
a{color:var(--brand-600);text-decoration:none;}
a:hover{color:var(--brand-700);}

.site-shell{
  min-height: 100%;
  position: relative;
}

.topbar{
  background: linear-gradient(90deg, var(--brand-700), #ea580c);
  color: rgba(255,255,255,.86);
  font-size: .92rem;
}

.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding-top:.65rem;
  padding-bottom:.65rem;
}

.topbar-note,
.topbar-meta{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.navbar{
  background: #fffaf5 !important;
  border-bottom: 1px solid rgba(234,88,12,.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.navbar .container{
  padding-top: .95rem;
  padding-bottom: .95rem;
}

.navbar-brand{
  font-weight: 800;
  letter-spacing: .15px;
  color: var(--ink);
}

.brand-lockup{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}

.brand-lockup small{
  color: var(--muted);
  font-weight: 600;
}

.brand-mark{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border: 1px solid rgba(251,146,60,.35);
  box-shadow: var(--shadow-sm);
}

.nav-link{
  color: var(--ink);
  opacity: .92;
  border-radius: 999px;
  padding: .7rem 1rem !important;
  font-weight: 600;
}

.nav-link:hover{
  color: var(--brand-700);
  background: rgba(249,115,22,.08);
}

.nav-link.active{
  color: var(--brand-700) !important;
  font-weight: 700;
  background: rgba(249,115,22,.11);
}

.btn-brand,
.btn-soft,
.btn-outline-soft{
  border-radius: 999px;
  font-weight: 700;
  padding: .78rem 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-brand{
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-brand:hover{
  color:#fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-soft{
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(234,88,12,.14);
  color: var(--ink);
}

.btn-soft:hover,
.btn-outline-soft:hover{
  background: #fff;
  color: var(--brand-700);
  transform: translateY(-1px);
}

.btn-outline-soft{
  background: transparent;
  border: 1px solid rgba(234,88,12,.18);
  color: var(--brand-700);
}

.section-space{
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.5rem .95rem;
  border-radius:999px;
  background: rgba(255,255,255,.76);
  border:1px solid rgba(234,88,12,.1);
  color: var(--brand-700);
  font-size:.9rem;
  font-weight:700;
  letter-spacing:.04em;
}

.hero{
  position:relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.95), transparent 28%),
    radial-gradient(circle at bottom right, rgba(251,146,60,.14), transparent 24%),
    linear-gradient(135deg, #fff 0%, #fff0e1 52%, #ffddb8 100%);
  border: 1px solid rgba(234,88,12,.08);
  box-shadow: var(--shadow-md);
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto -8% -22% auto;
  width:240px;
  height:240px;
  background: radial-gradient(circle, rgba(249,115,22,.12), transparent 68%);
  pointer-events:none;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  background:#fff;
  border:1px solid rgba(234,88,12,.1);
  border-radius:999px;
  padding:.45rem .85rem;
  color: var(--ink-soft);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero-title{
  font-weight: 900;
  line-height: 1.03;
  letter-spacing:-.02em;
}

.hero-title .accent{color:var(--brand-700);}

.hero-subtitle{
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.85rem;
}

.quick-panel,
.info-panel,
.stat-card,
.feature-card,
.timeline-card,
.contact-card,
.facility-card,
.program-card,
.card-soft{
  background: #ffffff;
  border: 1px solid rgba(234,88,12,.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.quick-panel,
.info-panel{
  padding: 1.35rem;
}

.quick-list,
.detail-list,
.check-list{
  display:grid;
  gap:.85rem;
  padding:0;
  margin:0;
  list-style:none;
}

.quick-list li,
.detail-list li,
.check-list li{
  display:flex;
  align-items:flex-start;
  gap:.8rem;
}

.icon-chip,
.metric-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(245,158,11,.2));
  color: var(--brand-700);
  flex: 0 0 auto;
}

.metric-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:1rem;
}

.stat-card{
  padding:1.35rem;
  position:relative;
  overflow:hidden;
}

.stat-card strong{
  display:block;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height:1;
  color: var(--brand-700);
  margin-bottom:.35rem;
}

.stat-card span{
  display:block;
  color: var(--muted);
  font-weight:600;
}

.stat-card small{
  color: var(--ink-soft);
}

.section-title{
  font-weight: 900;
  letter-spacing:-.02em;
  margin-bottom:.35rem;
}

.section-subtitle{
  color: var(--muted);
  max-width: 64ch;
}

.feature-card,
.timeline-card,
.contact-card,
.facility-card,
.program-card{
  height:100%;
  padding:1.4rem;
}

.feature-card h5,
.timeline-card h5,
.contact-card h5,
.facility-card h5,
.program-card h5{
  font-weight:800;
  margin-bottom:.55rem;
}

.feature-card p,
.timeline-card p,
.contact-card p,
.facility-card p,
.program-card p{
  color: var(--ink-soft);
  margin-bottom:0;
}

.feature-grid,
.timeline-grid,
.news-grid,
.facility-grid,
.program-grid,
.contact-grid{
  display:grid;
  gap:1rem;
}

.feature-grid{grid-template-columns:repeat(3, minmax(0, 1fr));}
.timeline-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
.news-grid{grid-template-columns:repeat(3, minmax(0, 1fr));}
.facility-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
.program-grid{grid-template-columns:repeat(3, minmax(0, 1fr));}
.contact-grid{grid-template-columns:1.1fr .9fr;}

.section-card{
  padding:1.65rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  border:1px solid rgba(234,88,12,.08);
  box-shadow: var(--shadow-sm);
}

.section-card-muted{
  background: linear-gradient(135deg, rgba(255,237,213,.85), rgba(255,255,255,.94));
}

.page-hero{
  padding:2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.18), transparent 22%),
    linear-gradient(135deg, #fff 0%, #fff1e4 100%);
  border: 1px solid rgba(234,88,12,.08);
  box-shadow: var(--shadow-sm);
}

.page-hero p{
  color: var(--ink-soft);
  max-width: 70ch;
}

.data-table-wrap{
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(234,88,12,.08);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}

.table{
  --bs-table-color: var(--ink);
  margin-bottom:0;
}

.table > :not(caption) > * > *{
  padding-top: .9rem;
  padding-bottom: .9rem;
  border-bottom-color: rgba(234,88,12,.08);
}

.table tbody tr:last-child td{
  border-bottom:0;
}

.table thead th{
  font-size: .88rem;
  letter-spacing: .02em;
}

.news-card{
  overflow:hidden;
  height:100%;
}

.news-card img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.news-card-body{
  padding:1.3rem;
}

.meta-text{
  color: var(--muted);
  font-size:.92rem;
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:.48rem .85rem;
  background: rgba(249,115,22,.08);
  color: var(--brand-700);
  font-size:.86rem;
  font-weight:700;
}

.rich-content{
  background:#fff;
  border-radius: var(--radius-md);
  padding:1.75rem;
  border:1px solid rgba(234,88,12,.08);
  box-shadow: var(--shadow-sm);
}

.rich-content h2,
.rich-content h3{
  color: var(--brand-700);
}

.principal-section{
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.principal-card{
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.principal-photo{
  width: 100%;
  max-width: 250px;
  height: 320px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 22px;
  border: 1px solid rgba(234,88,12,.1);
}

.principal-content{
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.form-label{
  font-weight: 700;
  color: #334155;
}

.form-control,
.form-select,
textarea.form-control{
  border-radius: 18px;
  border-color: #e5d9cc;
  padding: .8rem .95rem;
  background: rgba(255,255,255,.95);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus{
  border-color: rgba(249,115,22,.45);
  box-shadow: 0 0 0 .25rem var(--ring);
}

.alert{
  border-radius: 18px;
}

.site-footer{
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,.45);
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.18), transparent 22%),
    linear-gradient(180deg, #9a3412 0%, #7c2d12 100%);
  color:#f8ede6;
}

.site-footer .footer-brand{
  display:flex;
  align-items:center;
  gap:1rem;
}

.site-footer .footer-logo{
  width:62px;
  height:62px;
  border-radius:20px;
  object-fit:contain;
  background:rgba(255,255,255,.96);
  padding:.35rem;
  box-shadow: var(--shadow-sm);
}

.site-footer h5,
.site-footer h6{
  color: #fff7f1;
}

.site-footer p,
.site-footer .text-secondary{
  color: rgba(248,237,230,.75) !important;
}

.site-footer a{
  color: rgba(255,245,235,.9);
}

.site-footer a:hover{
  color: #ffd9a3;
}

.footer-link-list{
  display:grid;
  gap:.65rem;
  padding:0;
  margin:0;
  list-style:none;
}

.footer-note{
  border-top: 1px solid rgba(255,255,255,.12);
}

.footer-note .container{
  padding-top:1.1rem;
  padding-bottom:1.4rem;
}

.gallery-item{ cursor: zoom-in; }
.gallery-thumb{ cursor: zoom-in; transition: transform .18s ease; }
.gallery-item:hover .gallery-thumb{ transform: scale(1.02); }

.reveal-on-scroll{
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-on-scroll.is-visible{
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px){
  .topbar .container,
  .metric-grid,
  .feature-grid,
  .news-grid,
  .facility-grid,
  .program-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .timeline-grid{
    grid-template-columns:1fr;
  }

  .navbar .container{
    padding-top: .75rem;
    padding-bottom: .75rem;
  }

  .navbar-collapse{
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(234,88,12,.08);
  }

  .navbar-nav{
    width:100%;
  }

  .navbar-nav .btn{
    width: 100%;
  }

  .hero,
  .page-hero{
    border-radius: 24px;
  }
}

@media (max-width: 767.98px){
  .topbar .container{
    align-items:flex-start;
  }

  .hero-title{
    line-height:1.1;
  }

  .section-card,
  .hero,
  .page-hero,
  .rich-content{
    padding:1.25rem;
  }

  .news-card img{
    height:170px;
  }
}

@media (max-width: 575.98px){
  .container{
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title{
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
