/* ============================================
   PLOZYLIC - Institutional Knowledge Portal
   Design System & Main Stylesheet
   ============================================ */

/* Color Palette */
:root {
  --primary: #2C5F6F;
  --accent-gold: #D4B26C;
  --accent-lavender: #9E8C9F;
  --accent-grey: #D1CCC7;
  --accent-slate: #4A6F7B;
  --text-dark: #4A4A4A;
  --text-secondary: #8C8C8C;
  --bg-neutral: #F7F5F0;
  --bg-light: #FEFDFB;
  --white: #FFFFFF;
  --border-light: #E5E1DC;
}

/* Typography System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Heading System */
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 2rem;
  text-balance: true;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin: 3rem 0 1.5rem 0;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem 0;
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

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

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

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

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.1em;
}

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

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0;
  margin-top: 8rem;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

footer h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.7rem;
}

footer a {
  color: var(--bg-neutral);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

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

/* Sections */
section {
  padding: 5rem 0;
}

.section-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-slate) 100%);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-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="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.section-hero .content-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.section-hero h1 {
  color: var(--white);
  font-size: 3.8rem;
}

.section-hero p {
  color: var(--bg-neutral);
  font-size: 1.15rem;
  line-height: 1.8;
}

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

.section-full-width-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-full-width-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 95, 111, 0.4);
}

.section-full-width-image h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  font-size: 3rem;
}

/* Two-Column Layouts */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 3rem 0;
}

.two-column-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

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

.two-column-text h3 {
  margin-top: 0;
}

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

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

/* Cards */
.card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 2px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-gold);
}

.card h3 {
  color: var(--primary);
  margin-top: 0;
}

.card-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: var(--white);
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-slate);
  box-shadow: 0 4px 12px rgba(44, 95, 111, 0.2);
}

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

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

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

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

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

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

/* Blockquote */
blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background-color: var(--bg-neutral);
  font-style: italic;
  color: var(--text-secondary);
}

/* Highlight Box */
.highlight-box {
  background-color: var(--accent-grey);
  padding: 2rem;
  border-radius: 2px;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
}

.highlight-box h4 {
  color: var(--primary);
  margin-top: 0;
}

/* Spacers */
.spacing-lg {
  margin: 5rem 0;
}

.spacing-md {
  margin: 3rem 0;
}

.spacing-sm {
  margin: 1.5rem 0;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  h2 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

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

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  section {
    padding: 3rem 0;
  }
}

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

  h2 {
    font-size: 1.4rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

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