:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --ink: #0f172a;
  --muted: #64748b;
  --paper: #f8fafc;
  --line: #e2e8f0;
  --white: #fff;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* ===== CSS Grid layout system ===== */
.grid {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
}
.grid-2 {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.event-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: grid;
  grid-template-columns: 40px auto;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: flex-end;
}
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--teal-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { background: #ecfdf5; color: var(--teal-dark); }
.btn-ghost:hover { background: #ccfbf1; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }

.hero {
  background:
    linear-gradient(105deg, rgba(15, 23, 42, 0.78) 0%, rgba(13, 148, 136, 0.55) 100%),
    url("assets/bg-hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: 88px 0 80px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin: 0 0 12px; line-height: 1.15; }
.hero p { max-width: 620px; font-size: 1.05rem; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

#work {
  background:
    linear-gradient(rgba(248, 250, 252, 0.94), rgba(248, 250, 252, 0.94)),
    url("assets/bg-work.jpg") center / cover no-repeat;
}
#events {
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    url("assets/bg-campus.jpg") center / cover no-repeat;
}

section { padding: 64px 0; }
.section-kicker {
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 8px;
}
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin: 0 0 12px; }
.lede { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.card,
.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card { padding: 24px; }
.card h3 { margin: 0 0 8px; }
.card:hover,
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #99f6e4;
}
.event-card { overflow: hidden; }
.event-card img { width: 100%; height: 180px; object-fit: cover; background: #e2e8f0; }
.event-card .body { padding: 14px; }
.event-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.event-meta { color: var(--muted); font-size: 0.85rem; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }

label { display: block; font-weight: 700; font-size: 0.85rem; margin: 0 0 6px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
  margin-bottom: 12px;
  background: #fff;
}
.note { color: var(--muted); font-size: 0.85rem; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.field-error { color: #b91c1c; }
input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: #b91c1c; }

.contact-strip { background: #0f172a; color: #fff; }
.contact-strip a { color: #5eead4; }
footer { padding: 28px 0 calc(40px + var(--safe-bottom)); color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { grid-template-columns: 1fr; min-height: auto; padding: 10px 0 12px; }
  .nav-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, form .row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 44px; }
  section { padding: 40px 0; }
  .card { padding: 18px; }
  .event-card img { height: 160px; }
  input, textarea, select { font-size: 16px; }
  .btn { min-height: 44px; }
}

@media (max-width: 480px) {
  .wrap { width: min(1120px, calc(100% - 20px)); }
  .hero h1 { font-size: 1.55rem; }
  .brand { font-size: 0.95rem; }
}

@media (hover: none) and (pointer: coarse) {
  .card:hover, .event-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
