/* ============================================================
   TCS Link Hub — Session 1 (static structure, no animations)
   ============================================================ */

:root {
  /* Brand colors — exact, never approximate */
  --deep-jungle-green: #005E61; /* Primary */
  --vivid-lime-green:  #ADF802; /* Accent / highlights */
  --mint-leaf:         #11B87A; /* Secondary green */
  --cayenne-red:       #F15E00; /* Accent / CTAs */
  --ocean-field:       #2F8C8F; /* Supporting teal */
  --deep-teal-shadow:  #0B4C50; /* Dark backgrounds */
  --lime-mist:         #F3FFD1; /* Light tinted backgrounds */
  --electric-bloom:    #D6FF66; /* Softer lime accent */

  --text-muted: #666;
  --text-footer: #999;

  --card-radius: 20px;
  --btn-radius: 12px;
  --card-max-width: 480px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em; /* DM Sans tracking -10 */
  color: #1a1a1a;
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  background-color: var(--deep-jungle-green);
  background-image: url("public/background-waves.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Card ---------- */
.card {
  width: 100%;
  max-width: var(--card-max-width);
  background: #fff;
  border-radius: var(--card-radius);
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

/* ---------- Header ---------- */
.card-header {
  margin-bottom: 28px;
}

.logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.55s ease, transform 0.2s ease;
}

.logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
}

.logo-link:hover .logo,
.logo-link:focus-visible .logo {
  transform: scale(1.03);
}

.school-name {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.03em; /* Cinzel tracking -30 */
  color: var(--deep-jungle-green);
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.tagline {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: center;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 15px 18px;
  border-radius: var(--btn-radius);
  border-left: 3px solid transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.4s ease;
}

.link-btn .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor; /* white on active, #999 on coming-soon */
}

.link-btn .label {
  flex: 1 1 auto;
}

/* Active buttons */
.link-btn.active {
  background: var(--deep-jungle-green);
  color: #fff;
  border: 1px solid #0B7A7D;
  box-shadow: 0 4px 14px rgba(0, 94, 97, 0.22);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.4s ease;
}

.link-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--vivid-lime-green);
  opacity: 0;
  transform: scaleY(0.8);
}

.link-btn.active:hover,
.link-btn.active:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 94, 97, 0.32);
}

.link-btn.active:hover::before,
.link-btn.active:focus-visible::before {
  animation: border-flash 0.2s ease-out;
}

.link-btn.active:focus-visible {
  outline: 3px solid var(--ocean-field);
  outline-offset: 2px;
}

@keyframes border-flash {
  0% {
    opacity: 0;
    transform: scaleY(0.3);
  }
  25% {
    opacity: 1;
    transform: scaleY(1);
  }
  75% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0;
    transform: scaleY(1);
  }
}

.link-btn.active:hover::before,
.link-btn.active:focus-visible::before {
  animation: border-flash 0.6s ease-out;
}

/* Coming soon / disabled buttons */
.link-btn.coming-soon {
  background: #eee;
  color: #999;
  cursor: not-allowed;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.link-btn.coming-soon .badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ddd;
  color: #888;
}

/* ---------- Contact ---------- */
.carousel-track-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.carousel-track {
  display: flex;
  gap: 12px;
  width: fit-content;
  animation: carousel-scroll 20s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-card {
  width: 160px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
}

.carousel-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.contact {
  background: var(--lime-mist);
  border-radius: var(--btn-radius);
  padding: 20px;
  margin-bottom: 24px;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.contact-title {
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--deep-jungle-green);
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
}

.contact-item {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: left;
  display: flex;
  gap: 8px;
  padding: 4px 0;
}

.contact-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  color: var(--deep-jungle-green);
}

.contact-label {
  flex: 0 0 68px;
  font-weight: 500;
  color: var(--deep-jungle-green);
}

.contact-item a {
  color: var(--deep-jungle-green);
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.footer p {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-footer);
}

/* ============================================================
   Responsive breakpoints
   ============================================================ */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --card-max-width: 520px;
  }

  .school-name {
    font-size: 28px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --card-max-width: 560px;
  }

  body {
    padding: 56px 16px;
  }
}
