/* ============================================
   QUIJAN - Institutional Knowledge Portal
   Design System & Typography
   ============================================ */

:root {
  --primary: #2F3C7E;
  --secondary: #FBE7C6;
  --accent-1: #A8DADC;
  --accent-2: #FBB1BD;
  --white: #FFFFFF;
  --light-gray: #F8F8F8;
  --dark-gray: #333333;
  --border-gray: #E8E8E8;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  line-height: 1.8;
  font-size: 16px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3.5rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--dark-gray);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ============================================
   Layout & Container
   ============================================ */

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

.section {
  padding: 100px 0;
}

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

/* ============================================
   Header & Navigation
   ============================================ */

header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 40px;
  height: 40px;
}

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

nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

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

nav a.active {
  color: var(--primary);
  font-weight: 600;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-1);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background-color: var(--light-gray);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(47, 60, 126, 0.15);
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: 0 8px 16px rgba(47, 60, 126, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

/* ============================================
   Two-Column Layout (Text + Image)
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.two-col.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

.two-col-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(47, 60, 126, 0.1);
}

.two-col-image img {
  width: 100%;
  height: auto;
  display: block;
}

.two-col-text h2 {
  margin-bottom: 1.5rem;
}

.two-col-text p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* ============================================
   Cards Grid
   ============================================ */

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

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(47, 60, 126, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

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

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ============================================
   Background Sections
   ============================================ */

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

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

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

/* ============================================
   Featured Section
   ============================================ */

.featured-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2750 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.featured-section h2 {
  color: var(--white);
}

.featured-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

/* ============================================
   Disclaimer Section
   ============================================ */

.disclaimer {
  background-color: #f5f5f5;
  padding: 2rem;
  border-left: 4px solid var(--accent-1);
  margin: 3rem 0;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.disclaimer strong {
  color: var(--primary);
}

/* ============================================
   List Styles
   ============================================ */

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(168, 218, 220, 0.1);
}

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

/* ============================================
   Responsive Design
   ============================================ */

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

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-content,
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
  }

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

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .section {
    padding: 60px 0;
  }

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

@media (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  nav {
    display: none;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 40px 0;
  }

  .two-col-text h2,
  .card h3 {
    margin-top: 0;
  }
}

/* ============================================
   Smooth Transitions & Animations
   ============================================ */

body {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section {
  animation: slideUp 0.8s ease-out;
}

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

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-3 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.hidden {
  display: none;
}
