/* ==========================================
   IJEMI - GLOBAL STYLES
   ========================================== */

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

:root {
  --primary: #1a3a52;
  --primary-light: #2d5a7b;
  --accent: #d4a574;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f7f5;
  --white: #ffffff;
  --border: #e0ddd9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
}

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

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

/* ==========================================
   NAVIGATION
   ========================================== */

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-content {
  max-width: 800px;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Georgia', serif;
}

.btn:hover {
  /* background: var(--primary); */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

/* ==========================================
   SECTIONS
   ========================================== */

section {
  padding: 5rem 2rem;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

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

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

.card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

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

/* ==========================================
   CONTENT SECTIONS
   ========================================== */

.content-section {
  background: var(--white);
  padding: 3rem 0;
}

.content-section:nth-child(even) {
  background: var(--bg-light);
}

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

.content-text ul {
  list-style: none;
  margin: 1.5rem 0;
}

.content-text li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.content-text li:before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

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

footer {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 2rem;
  margin-top: 5rem;
}

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

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

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

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

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

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: var(--white);
  color: var(--primary);
}

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

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

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

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

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

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

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

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

input, textarea, select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

/* ==========================================
   TABLE STYLES
   ========================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
}

th {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background: var(--bg-light);
}

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 0;
    display: block;
  }

  .nav-links a:after {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 1.5rem;
    min-height: 400px;
  }

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

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

  .section-title {
    font-size: 1.8rem;
  }

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

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

  section {
    padding: 3rem 1.5rem;
  }

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

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.7rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }
}

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

  h2 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  body {
    font-size: 15px;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: 300px;
  }

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

  p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

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

.scroll-visible {
  opacity: 1;
}
