/* ============================================
   HYPTOS - Institutional Knowledge Portal
   Color System & Design System
   ============================================ */

:root {
  --primary: #2C3E50;
  --accent-orange: #F39C12;
  --accent-green: #27AE60;
  --neutral-light: #BDC3C7;
  --neutral-bg: #ECF0F1;
  --text-dark: #4A4A4A;
  --white: #FFFFFF;
  --spacing-base: 16px;
  --radius: 4px;
}

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

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

body {
  background-color: var(--neutral-bg);
}

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

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

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 2rem;
}

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

h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

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

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

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

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

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

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

header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}

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

nav a {
  color: var(--white);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* ============================================
   SECTIONS & SPACING
   ============================================ */

.section {
  padding: 100px 0;
}

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

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

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

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

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

/* Hero Section */
.hero {
  padding: 120px 0;
  background-color: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ============================================
   GRID & COMPOSITION
   ============================================ */

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

.row.reverse {
  grid-template-columns: 1fr 1fr;
}

.row.reverse > *:first-child {
  order: 2;
}

.row.reverse > *:last-child {
  order: 1;
}

.row.single {
  grid-template-columns: 1fr;
}

.col {
  display: flex;
  flex-direction: column;
}

.col-text {
  padding: 2rem;
}

.col-image {
  overflow: hidden;
  border-radius: var(--radius);
}

.col-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

.card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card h3 {
  margin-top: 0;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background-color: #E67E22;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--neutral-light);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background-color: var(--neutral-bg);
}

.btn-text {
  background: transparent;
  color: var(--accent-green);
  padding: 0;
  text-decoration: none;
}

.btn-text:hover {
  text-decoration: underline;
}

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

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

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

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.footer-section li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

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

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

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

/* ============================================
   DISCLAIMER BLOCK
   ============================================ */

.disclaimer-block {
  background-color: var(--neutral-bg);
  border-left: 4px solid var(--accent-orange);
  padding: 2rem;
  margin: 3rem 0;
  border-radius: var(--radius);
}

.disclaimer-block h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.disclaimer-block p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

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

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

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius);
  font-family: 'Georgia', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding: 0 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

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

  .row {
    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;
  }

  .hero {
    padding: 60px 0;
  }
}

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

  h2 {
    font-size: 1.25rem;
  }

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

  .section {
    padding: 40px 0;
  }

  .container,
  .container-narrow {
    padding: 0 15px;
  }

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