/* Import elegant Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  /* Color Palette - Sage / Nordic / Warm-Neutral */
  --bg-primary: #FCFBF7;
  --bg-secondary: #F4F1EA;
  --color-sage: #5F7161;
  --color-sage-light: #85A389;
  --color-sage-bg: #EAECE6;
  --color-accent: #C2A383; /* ochre/terracotta */
  --color-accent-light: #EADBC8;
  --text-main: #2E3A33; /* graphite dark green */
  --text-muted: #5F6B63;
  --text-light: #FCFBF7;
  --border-color: rgba(95, 113, 97, 0.15);
  --shadow-soft: 0 8px 30px rgba(95, 113, 97, 0.05);
  --shadow-medium: 0 16px 40px rgba(95, 113, 97, 0.08);
  --radius-lg: 24px;
  --radius-md: 12px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --sidebar-width: 290px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sticky Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
  overflow-y: auto;
}

.logo-container {
  margin-bottom: 3rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-sage);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-item a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-item a:hover,
.nav-item.active a {
  background-color: var(--bg-primary);
  color: var(--color-sage);
  transform: translateX(5px);
  box-shadow: var(--shadow-soft);
}

.nav-item.active a {
  font-weight: 600;
  border-left: 3px solid var(--color-accent);
}

.sidebar-footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.sidebar-footer p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.sidebar-footer a {
  color: var(--color-sage);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-footer a:hover {
  text-decoration: underline;
}

/* Main Content Area */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 4rem 5% 5rem 5%;
  max-width: 1200px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
  color: var(--text-main);
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
  color: var(--color-sage);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-main);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-main);
}

/* Hero Section */
.hero-card {
  background-color: var(--color-sage-bg);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  box-shadow: var(--shadow-soft);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  z-index: 1;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
}

.hero-tag {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--text-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero-description {
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--color-sage);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(95, 113, 97, 0.2);
}

.btn:hover {
  background-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 58, 51, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-sage);
  border: 1px solid var(--color-sage);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--color-sage);
  color: var(--text-light);
  border-color: var(--color-sage);
}

/* Asymmetric Grid Layout */
.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.grid-articles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.article-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid transparent;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--border-color);
}

/* Grid sizes for asymmetry */
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }

.article-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

.article-title {
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.card-accent-sage {
  background-color: var(--color-sage);
  color: var(--text-light);
}

.card-accent-sage .article-title,
.card-accent-sage .article-text,
.card-accent-sage .article-meta {
  color: var(--text-light);
}

.card-accent-sage .article-tag {
  color: var(--color-accent-light);
}

.card-accent-sage .article-meta {
  border-color: rgba(252, 251, 247, 0.2);
}

.card-accent-ochre {
  background-color: #ECE0D1;
}

.card-accent-ochre .article-title {
  color: #5D4037;
}

.card-accent-ochre .article-tag {
  color: #8D6E63;
}

/* Standard Content Layout (for subpages) */
.page-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.meta-subtitle {
  font-size: 1rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.text-section {
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.text-section h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.text-section h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.text-section p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-section ul, .text-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.text-section li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.disclaimer-box {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Form CSS */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
}

.info-item-value {
  font-size: 1.2rem;
  color: var(--text-main);
  font-family: var(--font-serif);
}

.contact-form-card {
  background-color: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-main);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 4px rgba(95, 113, 97, 0.1);
}

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

/* Footer Section for Subpages (when sidebar isn't enough) */
.page-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-sage);
}

.footer-bottom {
  grid-column: span 3;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-disclaimer {
  width: 100%;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Mobile Responsive Navigation Drawer and Styles */
.mobile-header {
  display: none;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 101;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 58, 51, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--bg-secondary);
  z-index: 1001;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-medium);
}

.mobile-drawer.open {
  left: 0;
}

.mobile-drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.mobile-drawer-close svg {
  width: 24px;
  height: 24px;
}

/* Media Queries */
@media (max-width: 992px) {
  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 2.5rem 1.5rem 4rem 1.5rem;
  }

  .hero-card {
    padding: 2.5rem;
    min-height: auto;
    flex-direction: column-reverse;
  }

  .hero-bg {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 2rem;
    border-radius: var(--radius-md);
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 1;
  }

  .hero-content {
    width: 100%;
  }

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

  .grid-articles {
    gap: 1.5rem;
  }

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

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .footer-bottom {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .page-header h1 {
    font-size: 2.5rem;
  }

  .hero-card {
    padding: 2rem 1.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .article-card {
    padding: 1.75rem;
  }

  .contact-form-card {
    padding: 1.75rem;
  }
}
