/* styles.css - Kletos Enterprises Rustic Industrial Design System */
@import url('https://googleapis.com');

:root {
  --bg-parchment: #F5F1E8;
  --bg-card: rgba(234, 227, 210, 0.92);
  --bg-dark-timber: #231F1B;
  --text-iron: #2C2621;
  --text-muted: #5C5349;
  --accent-rust: #8B3A2B;
  --accent-harvest: #B47B2B;
  --border-weathered: #C8BDA8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-parchment);
  color: var(--text-iron);
  font-family: 'Work Sans', sans-serif;
  line-height: 1.7;
  /* Parchment wash over your rustic background image for high text contrast */
  background-image: 
    linear-gradient(rgba(245, 241, 232, 0.84), rgba(245, 241, 232, 0.88)),
    url('images/rustic-bg.jpeg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, .serif {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--text-iron);
  line-height: 1.25;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-rust);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  border-bottom: 2px solid var(--border-weathered);
  padding: 1.5rem 0;
  background-color: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-iron);
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-iron);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--accent-rust);
  border-bottom-color: var(--accent-rust);
}

.btn-outline {
  border: 1.5px solid var(--text-iron);
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--text-iron);
  color: var(--bg-parchment);
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-rust);
  color: #FAF7F2;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent-rust);
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #6E2B1E;
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 4.5rem;
  border-bottom: 1px solid var(--border-weathered);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.85rem;
  margin: 0.75rem 0 1.5rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.almanac-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-weathered);
  border-left: 4px solid var(--accent-harvest);
  padding: 2rem;
}

.almanac-box h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-weathered);
}

.almanac-list {
  list-style: none;
}

.almanac-list li {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-weathered);
  padding-bottom: 0.5rem;
}

/* Sections & Cards */
section {
  padding: 4.5rem 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-weathered);
  padding: 2rem;
}

.card h3 {
  font-size: 1.3rem;
  margin: 0.5rem 0 1rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Dark Timber Banner */
.timber-band {
  background-color: var(--bg-dark-timber);
  color: var(--bg-parchment);
  padding: 4.5rem 0;
}

.timber-band h2, .timber-band h3 {
  color: var(--bg-parchment);
}

.timber-band p {
  color: #D2C9BA;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.85rem;
  background-color: #FAF7F2;
  border: 1px solid var(--border-weathered);
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-iron);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-rust);
}

/* Footer */
footer {
  background-color: var(--bg-dark-timber);
  color: #B8AEA0;
  padding: 3.5rem 0 2rem;
  border-top: 4px solid var(--accent-harvest);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #3D362F;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  body {
    /* Prevents mobile scroll jitter with fixed backgrounds */
    background-attachment: scroll;
  }
}