/* HYPSE - Institutional Knowledge Portal */
/* Color Palette: #2C3E50 (Primary), #E67E22 (Terracotta), #2ECC71 (Emerald), #95A5A6 (Silver) */

:root {
  --primary: #2C3E50;
  --accent-orange: #E67E22;
  --accent-green: #2ECC71;
  --neutral-light: #ECF0F1;
  --neutral-grey: #BDC3C7;
  --neutral-silver: #95A5A6;
  --text-dark: #2C3E50;
  --text-light: #ECF0F1;
  --base-unit: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', 'Lora', Georgia, serif;
  background-color: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--primary);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  font-weight: 800;
  text-transform: none;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 8rem 0;
  width: 100%;
}

.section-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 8rem 2rem;
}

.section.dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section.light {
  background-color: var(--neutral-light);
}

.section.accent-orange {
  background-color: var(--accent-orange);
  color: var(--text-light);
}

.section.accent-green {
  background-color: var(--accent-green);
  color: var(--text-light);
}

/* Grid System */
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Header & Navigation */
header {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-light);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.3rem;
}

nav a:hover {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

nav a.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.hero h1 {
  color: var(--text-light);
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero p {
  color: var(--text-light);
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border: 1px solid var(--neutral-grey);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--neutral-silver);
}

.card h3 {
  margin-bottom: 1rem;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Buttons */
button, .btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: white;
}

.btn-primary:hover {
  background-color: #d46a1a;
  box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

.btn-secondary {
  background-color: var(--accent-green);
  color: white;
}

.btn-secondary:hover {
  background-color: #26a65b;
  box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
}

.btn-outline:hover {
  background-color: var(--accent-orange);
  color: white;
}

/* Images */
.image-full {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.image-shadow {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Spacing */
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.pt-2 { padding-top: 2rem; }
.pt-4 { padding-top: 4rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-4 { padding-bottom: 4rem; }

/* Lists */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 3rem 0;
  border-top: 1px solid var(--neutral-grey);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section a {
  color: var(--neutral-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--neutral-silver);
}

/* Forms */
form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--neutral-grey);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

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

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .row {
    gap: 1.5rem;
  }

  .col-6 { grid-column: span 12; }
  .col-4 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }

  nav ul {
    gap: 1rem;
  }

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

  .header-container {
    gap: 1rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Links */
a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-green);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--text-light);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-buttons button {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}
