/* ============================================================
   Base styles — colors are set as CSS variables at runtime by
   js/main.js, reading from config.js. Change colors there, not here.
   ============================================================ */

:root {
  --color-primary: #1F4B43;
  --color-primary-dark: #163832;
  --color-accent: #E07A5F;
  --color-background: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text: #1E1E1E;
  --color-text-muted: #5B5B5B;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --max-width: 1120px;
  --radius: 12px;
  --border-soft: 1px solid rgba(30, 30, 30, 0.08);
  --shadow: 0 4px 16px rgba(30, 30, 30, 0.06);
  --shadow-lg: 0 16px 40px rgba(30, 30, 30, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p { margin: 0 0 16px; }

.text-muted { color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 14px;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---- Buttons ---------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(31, 75, 67, 0.28);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 10px 24px rgba(224, 122, 95, 0.32);
}

.btn-outline {
  background: transparent;
  border-color: rgba(30, 30, 30, 0.18);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow);
}

/* ---- Header / Nav ------------------------------------------------- */

.site-header {
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  position: relative;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    box-shadow: var(--shadow);
    gap: 18px;
  }

  .main-nav.open { display: flex; }
}

/* ---- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  padding: 108px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(224, 122, 95, 0.14), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Section spacing ---------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: var(--border-soft);
  border-bottom: var(--border-soft);
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
}

/* ---- Cards / Grid --------------------------------------------------- */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-surface);
  border: var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31, 75, 67, 0.18);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(31, 75, 67, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

/* ---- Stats row (About page) ------------------------------------------ */

.stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: var(--border-soft);
}

.stat .number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat .label {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---- Contact page ------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

.contact-details p {
  margin-bottom: 14px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.hours-table td {
  padding: 9px 0;
  border-bottom: var(--border-soft);
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-surface);
  border: var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}

form.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(30, 30, 30, 0.16);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

form.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  font-size: 0.9rem;
  min-height: 20px;
}

.form-status.success { color: #1F7A3A; }
.form-status.error { color: #B3261E; }

/* ---- CTA band ------------------------------------------------------- */

.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 { color: #fff; }
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ----------------------------------------------------------- */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
  opacity: 0.9;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-grid > div > div {
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}
