:root {
  /* Palette: Light theme - sand base, terracotta accents, charcoal text */
  --color-sand: #f3e9d8;
  --color-sand-light: #fdfaf6;
  --color-terracotta: #c2410c;
  --color-terracotta-dark: #9a340a;
  --color-charcoal: #262626;
  --color-charcoal-light: #404040;
  --color-white: #ffffff;
  
  /* Typography */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 1100px;
  --shadow-soft: 0 4px 12px rgba(38, 38, 38, 0.05);
  --shadow-hover: 0 12px 32px rgba(38, 38, 38, 0.15);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-sand);
  color: var(--color-charcoal);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: normal;
  color: var(--color-charcoal);
  line-height: 1.2;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
}

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

/* Typography specifics */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Focus styles avoiding blue */
*:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 4px;
}

/* Header & Nav */
.header-wrapper {
  background-color: var(--color-sand);
  padding: 1rem;
}

.site-header {
  position: static;
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: var(--shadow-soft);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-desktop {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--color-charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-terracotta);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Dropdown */
.nav-mobile-overlay {
  display: none;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-soft);
}

.nav-mobile-overlay.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }
  .site-header { padding: 1rem; border-radius: 25px; }
}

/* Layout Bands */
.band {
  width: 100%;
  padding: 5rem 1rem;
}

.band-sand { background-color: var(--color-sand); }
.band-light { background-color: var(--color-sand-light); }
.band-white { background-color: var(--color-white); }
.band-accent {
  background-color: var(--color-terracotta);
  color: var(--color-white);
}

.band-accent h1, .band-accent h2, .band-accent h3, .band-accent p {
  color: var(--color-white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Section (No Image) */
.hero-band {
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-sand-light) 100%);
  padding: 8rem 1rem 6rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-charcoal-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--color-terracotta);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0; /* Square corners per brief */
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  transform: translateY(-2px);
  color: var(--color-white);
}

.link-underline {
  color: var(--color-terracotta);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-terracotta);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 0; /* Square corners */
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Imagery */
.img-square {
  border-radius: 0;
  width: 100%;
  object-fit: cover;
}

.img-round {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.media-wrapper {
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.media-wrapper img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.7s var(--ease);
}

.card:hover .media-wrapper img {
  transform: scale(1.05);
}

/* Forms & Tools */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0;
  font-family: var(--font-sans);
  background-color: var(--color-white);
  font-size: 1rem;
}

.form-control:focus {
  outline: 2px solid var(--color-terracotta);
  border-color: transparent;
}

.tool-box {
  background: var(--color-sand-light);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  margin-top: 3rem;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-sand);
}

th {
  font-family: var(--font-serif);
  background: var(--color-sand-light);
}

/* Footer */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-sand);
  padding: 4rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-charcoal-light);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-col p, .footer-col a {
  color: #a3a3a3;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-col a:hover {
  color: var(--color-terracotta);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: #737373;
}

.disclaimer {
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-charcoal-light);
  padding-top: 1rem;
}

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