/* Schulich-themed styling for the MMAI 2024-2025 project showcase */
:root {
  --schulich-blue: #0164a7;
  --schulich-green: #78be20;
  --schulich-dark: #002b48;
  --schulich-light: #f4f8fb;
  --text-dark: #1f2933;
  --text-muted: #5f6b7a;
  --card-shadow: 0 12px 24px rgba(0, 43, 72, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--schulich-light);
  line-height: 1.6;
}

a {
  color: var(--schulich-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--schulich-green);
}

header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 43, 72, 0.08);
}

.nav-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--schulich-dark);
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: rgba(1, 100, 167, 0.12);
}

nav a.active {
  background: var(--schulich-blue);
  color: #ffffff;
}

nav a.active:hover,
nav a.active:focus {
  color: #ffffff;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--schulich-blue), var(--schulich-green));
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.cta-button {
  border: none;
  cursor: pointer;
}

.cta-button:hover,
.cta-button:focus {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  margin: 2rem 0 3rem;
}

.hero-text h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  color: var(--schulich-dark);
  line-height: 1.2;
}

.hero-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.hero-card ul,
.hero-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.hero-card li {
  margin-bottom: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(120, 190, 32, 0.1);
  color: var(--schulich-green);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.section-heading {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  color: var(--schulich-dark);
}

.section-subtitle {
  max-width: 720px;
  color: var(--text-muted);
  margin: 0.4rem 0 2.2rem;
}

.values-grid,
.project-grid,
.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0, 43, 72, 0.16);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--schulich-dark);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.timeline {
  border-left: 4px solid rgba(1, 100, 167, 0.2);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--schulich-blue);
  box-shadow: 0 0 0 6px rgba(1, 100, 167, 0.15);
}

.timeline-item h4 {
  margin: 0 0 0.35rem;
  color: var(--schulich-dark);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.35rem 0.65rem;
  background: rgba(1, 100, 167, 0.08);
  color: var(--schulich-blue);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

form {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--schulich-dark);
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(1, 100, 167, 0.2);
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--schulich-blue);
  box-shadow: 0 0 0 4px rgba(1, 100, 167, 0.15);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.info-card {
  background: linear-gradient(160deg, rgba(1, 100, 167, 0.92), rgba(0, 43, 72, 0.96));
  color: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.info-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.info-card p,
.info-card a {
  color: rgba(255, 255, 255, 0.92);
}

.info-card .links {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

footer {
  background: var(--schulich-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 1.25rem;
  margin-top: 4rem;
}

.footer-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

@media (max-width: 720px) {
  nav ul {
    gap: 0.7rem;
  }

  .nav-wrapper {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .brand {
    flex-direction: column;
  }

  header {
    position: static;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }
}
