/* ========================================
   KONIRA - Institutional Knowledge Portal
   Color Palette:
   - Deep Slate Gray: #2C3E50
   - Warm Ivory: #F5F1E8
   - Subtle Teal: #4A8B8C
   - Muted Gold: #C9A875
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2C3E50;
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-balance: true;
}

h2 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 1.2rem;
  letter-spacing: -0.3px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #4A8B8C;
  margin-top: 0.8rem;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 0.8rem;
}

p {
  font-size: 1.1rem;
  color: #2C3E50;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

a {
  color: #4A8B8C;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #C9A875;
}

/* ========================================
   LAYOUT & SPACING
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 20px;
  margin: 0;
}

.section-light {
  background-color: #FFFFFF;
}

.section-ivory {
  background-color: #F5F1E8;
}

.section-dark {
  background-color: #2C3E50;
  color: #FFFFFF;
}

.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}

.section-dark h2::after {
  background-color: #C9A875;
}

.section-dark p,
.section-dark a {
  color: #F5F1E8;
}

.section-dark a:hover {
  color: #C9A875;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
  z-index: 1000;
  padding: 1rem 20px;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 1px;
}

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

nav a {
  color: #2C3E50;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #C9A875;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #4A8B8C;
}

nav a.active::after {
  width: 100%;
}

/* ========================================
   MAIN CONTENT OFFSET (for fixed header)
   ======================================== */

main {
  margin-top: 70px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: #2C3E50;
  color: #F5F1E8;
  padding: 60px 20px 40px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #C9A875;
}

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

.footer-section li {
  margin-bottom: 0.6rem;
}

.footer-section a {
  color: #F5F1E8;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #C9A875;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(245, 241, 232, 0.7);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(74, 139, 140, 0.7) 100%);
  color: #FFFFFF;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="4" height="4"><circle cx="2" cy="2" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="1200" height="600" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 3.6rem;
}

.hero p {
  color: #F5F1E8;
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #4A8B8C;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #2C3E50;
  box-shadow: 0 8px 16px rgba(44, 62, 80, 0.2);
}

.btn-secondary {
  background-color: #C9A875;
}

.btn-secondary:hover {
  background-color: #B89460;
}

.btn-text {
  background-color: transparent;
  color: #4A8B8C;
  border: 2px solid #4A8B8C;
}

.btn-text:hover {
  background-color: #4A8B8C;
  color: #FFFFFF;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background-color: #FFFFFF;
  border: 1px solid #E8E4DB;
  border-radius: 6px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.12);
  border-color: #4A8B8C;
}

.card h3 {
  color: #2C3E50;
  margin-bottom: 1rem;
}

.card p {
  color: #555;
  font-size: 1rem;
}

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

/* ========================================
   IMAGES
   ======================================== */

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

.image-container {
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================================
   TWO-COLUMN LAYOUT
   ======================================== */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 2rem 0;
}

.two-column-text {
  flex-direction: column;
}

.two-column-image {
  flex-direction: column;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ========================================
   FORMS
   ======================================== */

form {
  max-width: 600px;
  margin: 2rem 0;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2C3E50;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #D5D0C8;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #4A8B8C;
  box-shadow: 0 0 0 3px rgba(74, 139, 140, 0.1);
}

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

/* ========================================
   COMPLIANCE SECTION
   ======================================== */

.compliance-block {
  background-color: #F5F1E8;
  border-left: 4px solid #4A8B8C;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.compliance-block h4 {
  color: #2C3E50;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.compliance-block p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }

  .section {
    padding: 80px 20px;
  }

  nav ul {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }

  p { font-size: 1rem; }

  .section {
    padding: 60px 20px;
  }

  .hero {
    padding: 80px 20px;
    min-height: 400px;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  p { font-size: 0.95rem; }

  .section {
    padding: 40px 15px;
  }

  .hero {
    padding: 60px 15px;
    min-height: 300px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  nav ul {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.75rem;
  }

  .two-column {
    gap: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ========================================
   SCROLL BEHAVIOR
   ======================================== */

.section {
  opacity: 1;
}

/* ========================================
   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: 0;
}

/* ========================================
   SKIP LINK
   ======================================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #4A8B8C;
  color: #FFFFFF;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
