/* Custom Properties (Variables) */
:root {
  --primary: #81001c;
  --on-primary: #ffffff;
  --primary-container: #a6192e;
  --on-primary-container: #ffb7b7;
  --primary-fixed: #ffdad9;

  --secondary: #515f7a;

  --surface: #fcf9f6;
  --on-surface: #1c1c1a;
  --surface-container-low: #f6f3f0;
  --surface-container-lowest: #ffffff;
  --surface-dim: #dcdad7;
  --surface-variant: #e5e2df;
  --on-surface-variant: #594040;
  --outline-variant: #e1bebe;

  --font-headline: "Noto Serif", serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

::selection {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
.serif-heading {
  font-family: var(--font-headline);
}

.text-primary {
  color: var(--primary);
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* Layout Classes */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}

.section-margin {
  margin-bottom: 6rem;
}
.py-section {
  padding: 6rem 0;
}
.bg-surface-low {
  background-color: var(--surface-container-low);
}
.bg-surface-dim {
  background-color: var(--surface-dim);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background-color: var(--primary-container);
}

.btn-surface {
  background-color: var(--surface);
  color: var(--primary);
  font-weight: 700;
  padding: 1rem 2.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-surface:hover {
  transform: scale(1.05);
}

.btn-surface:active {
  transform: scale(0.95);
}

.btn-outline {
  border: 2px solid var(--surface);
  color: var(--surface);
  font-weight: 700;
  padding: 1rem 2.5rem;
}

.btn-outline:hover {
  background-color: rgba(252, 249, 246, 0.1);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(252, 249, 246, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  height: 9vh;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon-group {
  display: flex;
  gap: 1rem;
}

.icon-btn {
  color: var(--secondary);
  padding: 0.5rem;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: var(--primary);
}

.nav-btn {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-btn {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: block;
  color: var(--on-surface);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Hero Section */
.mt-hero {
  padding-top: calc(9vh + 2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-end;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--secondary);
  line-height: 1.625;
  max-width: 42rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
}

/* Departments Grid */
.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.header-line {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--primary);
}

.departments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .departments-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dept-card {
  background-color: var(--surface-container-lowest);
  padding: 2rem;
  border-radius: 0.75rem;
  transition: transform 0.3s;
}

.dept-card:hover {
  transform: translateY(-8px);
}

.dept-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.dept-card:hover .dept-icon-wrapper {
  background-color: var(--primary);
}

.dept-icon-wrapper .material-symbols-outlined {
  color: var(--primary);
  transition: color 0.3s;
}

.dept-card:hover .material-symbols-outlined {
  color: var(--on-primary);
}

.dept-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dept-card p {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.dept-list {
  list-style: none;
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.dept-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bullet {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resource-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.resource-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.resource-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.resource-quote-card {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--primary);
  margin-top: -2rem;
  margin-left: 1rem;
  margin-right: 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 768px) {
  .resource-quote-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    margin: 0;
    max-width: 20rem;
  }
}

.quote-text {
  font-style: italic;
  color: var(--secondary);
  line-height: 1.625;
}

.quote-author {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.resource-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.facility-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.facility-item {
  display: flex;
  gap: 1.5rem;
}

.icon-large {
  font-size: 2.25rem;
  color: var(--primary);
}

.facility-text h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  font-family: var(--font-body);
}

.facility-text p {
  color: var(--on-surface-variant);
  line-height: 1.625;
}

/* Performance Section */
.performance-header {
  text-align: center;
  margin-bottom: 4rem;
}

.performance-header h2 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.performance-header p {
  color: var(--secondary);
  max-width: 36rem;
  margin: 0 auto;
}

.table-card {
  background-color: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.table-header {
  padding: 2rem;
  background-color: var(--primary);
  color: var(--on-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

th,
td {
  padding: 1.5rem;
}

th {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--surface-variant);
}

tbody tr {
  border-bottom: 1px solid var(--surface-container-low);
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: var(--surface-container-low);
}

.col-bold {
  font-weight: 700;
}

.col-score {
  color: var(--primary);
  font-weight: 900;
}

.badge {
  background-color: var(--primary-fixed);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* CTA Section */
.cta-card {
  background-color: var(--primary-container);
  border-radius: 1.5rem;
  padding: 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-icon {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.1;
  transform: translate(25%, -25%);
}

.cta-bg-icon .material-symbols-outlined {
  font-size: 300px;
  color: var(--surface);
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--on-primary-container);
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: rgba(255, 183, 183, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background-color: var(--surface-low);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--on-background);
  margin-bottom: 1.5rem;
}

.footer-contact {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.footer-links h4 {
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--secondary);
  font-size: 0.875rem;
  transition:
    color 0.3s,
    text-decoration-color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(225, 190, 190, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-badges {
  display: flex;
  gap: 2rem;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 9vh;
    left: 0;
    right: 0;
    background-color: var(--surface);
    padding: 1rem 1.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 49;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .nav-links.nav-open a {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--surface-container-low);
  }

  .nav-links.nav-open a:last-child {
    border-bottom: none;
  }
}
