/* BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #FAFAFA;
  color: #111111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Only to prevent OS scrollbar shift, all content handles overflow */
}

/* TYPOGRAPHY - Editorial Aesthetic */
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 24px;
  color: #111111;
  overflow-wrap: anywhere;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  line-height: 1.2;
  border-bottom: 1px solid #111111;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

p {
  margin-top: 0;
  margin-bottom: 24px;
}

a {
  color: #8B0000;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration: none;
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid #8B0000;
  outline-offset: 4px;
}

/* LAYOUT & SPACING (4, 8, 16, 24, 40, 64) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-width: 0;
}

section {
  margin-bottom: 64px;
}

.brand-name {
  overflow-wrap: anywhere;
}

.multi-column {
  column-count: 1;
  column-gap: 40px;
}

@media (min-width: 768px) {
  .multi-column {
    column-count: 2;
  }
}

/* HEADER & NAV */
.site-header {
  height: 48px;
  border-bottom: 2px solid #111111;
  display: flex;
  align-items: center;
  background-color: #FAFAFA;
}

@media (min-width: 768px) {
  .site-header {
    height: 64px;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: bold;
  font-size: 1.25rem;
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-container {
  display: flex;
  align-items: center;
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 24px;
  }
  .hamburger {
    display: none;
  }
}

.main-nav a {
  color: #111111;
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav a:hover {
  color: #8B0000;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  background-color: #FAFAFA;
  border-bottom: 1px solid #111111;
  padding: 24px;
  z-index: 50;
}

.mobile-nav-overlay.is-visible {
  display: block;
}

.mobile-nav-overlay a {
  display: block;
  margin-bottom: 16px;
  color: #111111;
  text-decoration: none;
  font-size: 1.125rem;
  text-transform: uppercase;
  border-bottom: 1px solid #EEEEEE;
  padding-bottom: 8px;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #111111;
}

.header-cta {
  background-color: #111111;
  color: #FFFFFF;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-block;
  }
}

/* HERO SECTION */
.hero {
  padding: 64px 0;
  border-bottom: 1px solid #111111;
  margin-bottom: 64px;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #666666;
  margin-bottom: 16px;
  display: block;
}

/* CARDS - Horizontal Split */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card-horizontal {
  display: flex;
  flex-direction: column;
  border: 1px solid #111111;
  background-color: #FFFFFF;
  color: #111111;
  min-width: 0;
}

@media (min-width: 768px) {
  .card-horizontal {
    flex-direction: row;
    height: 300px;
  }
}

.card-media {
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid #111111;
}

@media (min-width: 768px) {
  .card-media {
    border-bottom: none;
    border-right: 1px solid #111111;
    max-width: 40%;
  }
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  flex: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.card-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  border-bottom: none;
  padding-bottom: 0;
}

.card-title a {
  color: #111111;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.card-excerpt {
  margin-bottom: 24px;
  color: #444444;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid #EEEEEE;
  padding-top: 16px;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-tag {
  background-color: #F0F0F0;
  color: #333333;
  padding: 4px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.card-cta {
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #8B0000;
  text-decoration: none;
}

.card-cta:after {
  content: " →";
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 64px;
  border-top: 2px solid #111111;
  padding-top: 40px;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 3rem;
  color: #8B0000;
  line-height: 1;
  margin-bottom: 12px; /* 12px between stat and label as per rules */
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
  border-top: 1px solid #EEEEEE;
  padding-top: 8px;
}

/* ARTICLE CONTENT */
.article-header {
  text-align: center;
  padding: 64px 0;
  border-bottom: 1px solid #111111;
  margin-bottom: 64px;
}

.article-meta {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666666;
  margin-bottom: 24px;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 64px;
  border: 1px solid #111111;
}

.content-body {
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.content-body h2 {
  margin-top: 64px;
}

.content-body h3 {
  margin-top: 40px;
}

.content-body ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.content-body li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

th, td {
  border: 1px solid #111111;
  padding: 16px;
  text-align: left;
}

th {
  background-color: #F0F0F0;
  color: #111111;
}

/* FORMS */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #111111;
  background-color: #FFFFFF;
  color: #111111;
  font-family: inherit;
  font-size: 1rem;
}

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

input.is-invalid, textarea.is-invalid {
  border-color: #8B0000;
  background-color: #FFF0F0;
}

.error-message {
  color: #8B0000;
  font-size: 0.75rem;
  margin-top: 8px;
  display: none;
}

.error-message.is-visible {
  display: block;
}

button[type="submit"] {
  background-color: #111111;
  color: #FFFFFF;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
}

button[type="submit"]:hover {
  background-color: #8B0000;
}

/* STATIC MAP BLOCK */
.static-map {
  width: 100%;
  height: 300px;
  background: #EAEAEA;
  border: 1px solid #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.static-map::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(#ccc 1px, transparent 1px), linear-gradient(90deg, #ccc 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

.map-pin {
  width: 24px;
  height: 24px;
  background-color: #8B0000;
  border-radius: 50% 50% 0 50%;
  transform: rotate(45deg);
  position: relative;
  z-index: 2;
}

/* FOOTER */
.site-footer {
  background-color: #111111;
  color: #FAFAFA;
  padding: 64px 0;
  border-top: 4px solid #8B0000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: #FAFAFA;
  font-size: 1.125rem;
  margin-bottom: 24px;
  border-bottom: 1px solid #333333;
  padding-bottom: 8px;
}

.site-footer a {
  color: #CCCCCC;
  text-decoration: none;
}

.site-footer a:hover {
  color: #FAFAFA;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #333333;
  font-size: 0.875rem;
  color: #888888;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FAFAFA;
  border-top: 2px solid #111111;
  padding: 24px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
  text-transform: uppercase;
  border: 1px solid #111111;
  background-color: #FAFAFA;
  color: #111111;
  cursor: pointer;
}

.cookie-btn.primary {
  background-color: #111111;
  color: #FFFFFF;
}

.cookie-btn:hover {
  background-color: #8B0000;
  color: #FFFFFF;
  border-color: #8B0000;
}

/* RESPONSIVE & UTILITIES */
@media (max-width: 399px) {
  .card-content {
    padding: 16px;
  }
  .hero {
    padding: 40px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}