/* ============================================
   LOMELIA - CSS MAIN
   Museum-Inspired Content Structure
   ============================================ */

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

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
  --primary-bg: #F8F8F8;
  --secondary-bg: #E0E8F0;
  --accent-primary: #5D7A94;
  --accent-secondary: #B3C4D4;
  --accent-tertiary: #AFBCC7;
  --text-primary: #333333;
  --text-secondary: #666666;
  --white: #FFFFFF;
  --border-radius: 4px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Montserrat:wght@400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-primary);
}

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

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

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

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

/* ============================================
   HEADER
   ============================================ */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--accent-tertiary);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

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

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

nav a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

nav a.active {
  color: var(--accent-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.25rem;
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--accent-primary);
  margin: 5px 0;
  transition: 0.3s;
}

body {
  padding-top: 70px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(93, 122, 148, 0.08);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  z-index: 1;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 100px 0;
  position: relative;
}

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

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

section h2 {
  margin-top: 0;
  margin-bottom: 3rem;
  text-align: center;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.grid-col-6 {
  grid-column: span 6;
}

.grid-col-8 {
  grid-column: span 8;
}

.grid-col-4 {
  grid-column: span 4;
}

.grid-col-12 {
  grid-column: span 12;
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card {
  background-color: var(--white);
  border: 1px solid var(--accent-tertiary);
  border-radius: var(--border-radius);
  padding: 2rem;
  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);
  transform: translateY(-2px);
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent-primary);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: var(--accent-secondary);
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(93, 122, 148, 0.25);
}

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

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

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--accent-primary);
  color: var(--white);
  padding: 4rem 2rem;
  margin-top: 5rem;
}

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

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

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--secondary-bg);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    padding: 1rem 1.5rem;
  }

  nav ul {
    display: none;
  }

  nav.active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--accent-tertiary);
    gap: 0;
    padding: 1rem 0;
  }

  nav.active a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
  }

  .burger-menu {
    display: flex;
  }

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

  .grid-col-6,
  .grid-col-8,
  .grid-col-4 {
    grid-column: span 12;
  }

  section {
    padding: 50px 0;
  }

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

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

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

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

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

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

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

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

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

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

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

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

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

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

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.text-secondary {
  color: var(--text-secondary);
}

.highlight {
  color: var(--accent-primary);
  font-weight: 600;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-tertiary), transparent);
  margin: 3rem 0;
}

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

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