/* ==========================================
   Wyrdas - Structured Research Layout
   Color Palette:
   - Deep Teal: #004D40
   - Muted Gold: #B8860B
   - Soft Grey-Blue: #708090
   - Off-White: #F5F5DC
   - Dark Grey: #333333
   - Light Grey: #CCCCCC
   ========================================== */

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

/* ==================== RESET & DEFAULTS ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', serif;
  line-height: 1.6;
  color: #333333;
  background-color: #F5F5DC;
  font-size: 16px;
}

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

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

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

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

p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

a {
  color: #004D40;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #B8860B;
}

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

/* ==================== LAYOUT STRUCTURE ==================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Container System */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.full-width {
  width: 100%;
}

/* Grid System - 12 columns */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

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

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

.col {
  display: grid;
}

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

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

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

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

/* ==================== HEADER & NAVIGATION ==================== */
header {
  background-color: #F5F5DC;
  border-bottom: 1px solid #CCCCCC;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 77, 64, 0.05);
}

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

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #004D40;
  letter-spacing: 2px;
}

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

nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333333;
  position: relative;
  padding-bottom: 0.5rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #B8860B;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: #004D40;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #004D40;
  cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, rgba(0, 77, 64, 0.7) 0%, rgba(112, 128, 144, 0.5) 100%), 
              url('../images/hero.jpg') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #F5F5DC;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 77, 64, 0.8) 0%, rgba(112, 128, 144, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

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

.hero p {
  color: #F5F5DC;
  font-size: 1.25rem;
  line-height: 1.8;
}

/* ==================== SECTIONS & SPACING ==================== */
section {
  padding: 6rem 0;
}

section.bg-teal {
  background-color: #004D40;
  color: #F5F5DC;
}

section.bg-teal h2,
section.bg-teal h3 {
  color: #F5F5DC;
}

section.bg-teal p {
  color: #F5F5DC;
}

section.bg-grey-blue {
  background-color: #708090;
  color: #F5F5DC;
}

section.bg-grey-blue h2,
section.bg-grey-blue h3 {
  color: #F5F5DC;
}

section.bg-off-white {
  background-color: #F5F5DC;
}

/* Section Spacing & Breathing */
section + section {
  margin-top: 0;
}

/* ==================== CONTENT BLOCKS ==================== */
.content-block {
  margin-bottom: 4rem;
}

.content-block h2 {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #B8860B;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 3rem;
  max-width: 900px;
}

.content-box {
  background: #F5F5DC;
  padding: 2.5rem;
  border-left: 4px solid #B8860B;
  margin-bottom: 2rem;
}

section.bg-teal .content-box {
  background: rgba(245, 245, 220, 0.1);
  border-left-color: #B8860B;
}

/* ==================== CARD SYSTEMS ==================== */
.card {
  background: white;
  border: 1px solid #CCCCCC;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 77, 64, 0.08);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 77, 64, 0.12);
  border-color: #B8860B;
}

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

.card h3 {
  color: #004D40;
  margin-bottom: 1rem;
}

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

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* ==================== BUTTONS ==================== */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: 2px solid #004D40;
  background: transparent;
  color: #004D40;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: #004D40;
  color: #F5F5DC;
}

.btn.btn-primary {
  background-color: #004D40;
  color: #F5F5DC;
}

.btn.btn-primary:hover {
  background-color: #003835;
  border-color: #003835;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ==================== IMAGES & MEDIA ==================== */
.image-section {
  margin: 3rem 0;
}

.image-section img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 77, 64, 0.15);
}

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

.image-item {
  position: relative;
  overflow: hidden;
}

.image-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-item:hover img {
  transform: scale(1.02);
}

/* ==================== FOOTER ==================== */
footer {
  background-color: #333333;
  color: #F5F5DC;
  padding: 4rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #004D40;
}

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

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

.footer-section h3 {
  color: #B8860B;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: #CCCCCC;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: #B8860B;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  color: #999999;
  font-size: 0.85rem;
}

.contact-info {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

/* ==================== FORM STYLES ==================== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #004D40;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid #CCCCCC;
  border-radius: 2px;
  font-family: 'Merriweather', serif;
  font-size: 0.95rem;
  color: #333333;
  background-color: white;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #004D40;
  box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

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

/* ==================== TYPOGRAPHY UTILITIES ==================== */
.text-center {
  text-align: center;
}

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

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

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.text-muted {
  color: #666666;
  font-size: 0.9rem;
}

.text-highlight {
  color: #B8860B;
  font-weight: 600;
}

.text-secondary {
  color: #708090;
}

/* ==================== SPACING UTILITIES ==================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4rem; }

.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

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

/* ==================== LISTS & LISTS STYLING ==================== */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

li {
  margin-bottom: 0.75rem;
}

ul.clean {
  list-style: none;
  margin-left: 0;
}

ul.clean li {
  padding-left: 1.75rem;
  position: relative;
}

ul.clean li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: #B8860B;
  font-size: 1rem;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #004D40;
}

.breadcrumb span {
  color: #999999;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==================== QUOTES & HIGHLIGHTS ==================== */
blockquote {
  border-left: 4px solid #B8860B;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666666;
  font-size: 1.1rem;
}

.highlight-box {
  background: linear-gradient(90deg, rgba(184, 134, 11, 0.1) 0%, rgba(0, 77, 64, 0.1) 100%);
  border-left: 3px solid #B8860B;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 2px;
}

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

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 1.5rem;
  }

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

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 400px;
  }

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

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

  section {
    padding: 4rem 0;
  }

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

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

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

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  input,
  textarea,
  select {
    padding: 0.75rem;
  }
}

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

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

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

  .logo {
    font-size: 1.25rem;
  }

  nav ul {
    gap: 1rem;
  }

  nav a {
    font-size: 0.75rem;
  }

  .hero {
    height: 300px;
  }

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

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

  section {
    padding: 2.5rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  .image-item img {
    height: 200px;
  }
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  header,
  footer,
  nav {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }
}
