/* =============================================================
   Thirteen Houses NC — styles
   Palette pulled from the brochure: maroon red, navy blue, warm cream.
   ============================================================= */

:root {
  --color-maroon: #8B1A1A;
  --color-maroon-dark: #6B1212;
  --color-navy: #1E3A5F;
  --color-navy-dark: #142844;
  --color-cream: #FAF7F2;
  --color-cream-dim: #F0EBE0;
  --color-ink: #1A1A1A;
  --color-muted: #5A5A5A;
  --color-line: #E2DCD0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-maroon);
}
.brand-logo { height: 38px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--color-maroon); }
.site-nav a:hover::after { transform: scaleX(1); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--color-maroon);
  background: transparent;
  color: var(--color-maroon);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle:hover { background: var(--color-maroon); color: var(--color-cream); }
.lang-toggle-current { font-weight: 700; }
.lang-toggle-divider { opacity: 0.5; }
.lang-toggle-other { opacity: 0.6; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(139, 26, 26, 0.4), transparent 60%),
    linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-cream);
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero::before {
  /* subtle decorative wash */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  padding: 18px 28px;
  border-radius: 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-logo {
  height: 84px;
  width: auto;
  display: block;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 500;
  max-width: 640px;
  margin: 0 0 36px;
  opacity: 0.95;
  line-height: 1.5;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-maroon);
  color: var(--color-cream);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-maroon-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(250, 247, 242, 0.6);
}
.btn-secondary:hover {
  background: rgba(250, 247, 242, 0.12);
  border-color: var(--color-cream);
}
.btn.inline { margin-top: 24px; }

/* ---------- Sections (shared) ---------- */
.section {
  padding: 96px 0;
  position: relative;
}
.section-grid {
  max-width: 760px;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-maroon);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-left: 36px;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 2px;
  background: var(--color-maroon);
  transform: translateY(-50%);
}
.section-label.centered {
  display: block;
  text-align: center;
  padding-left: 0;
  margin-bottom: 14px;
}
.section-label.centered::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--color-navy);
  letter-spacing: -0.3px;
}
.section-title.centered { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-title.large { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-top: 0; }
.section-body {
  font-size: 1.1rem;
  color: var(--color-ink);
  line-height: 1.75;
  margin: 0;
}

/* ---------- Mission ---------- */
.section-mission { background: var(--color-cream); }

/* ---------- Vision (deep navy) ---------- */
.section-vision {
  background: var(--color-navy);
  color: var(--color-cream);
}
.section-vision .section-title { color: var(--color-cream); }
.section-vision .section-label { color: #E8A4A4; }
.section-vision .section-label::before { background: #E8A4A4; }
.section-vision .section-body { color: rgba(250, 247, 242, 0.92); }

/* ---------- Offer ---------- */
.section-offer { background: var(--color-cream-dim); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.offer-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.offer-card--featured {
  background: linear-gradient(180deg, var(--color-cream) 0%, #FFF 100%);
  border-color: rgba(139, 26, 26, 0.25);
}
.offer-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.offer-heading-row .offer-title { margin: 0; }
.offer-price {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-maroon);
  background: rgba(139, 26, 26, 0.10);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.offer-sublist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-sublist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--color-ink);
}
.offer-subicon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 95, 0.08);
  color: var(--color-navy);
  border-radius: 8px;
  margin-top: 1px;
}
.offer-subicon svg { width: 18px; height: 18px; }
.offer-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 26, 26, 0.3);
}
.offer-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 26, 26, 0.08);
  color: var(--color-maroon);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.offer-icon svg { width: 28px; height: 28px; }
.offer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-navy);
}
.offer-body {
  margin: 0;
  font-size: 0.97rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---------- Contribute ---------- */
.section-contribute {
  background: var(--color-maroon);
  color: var(--color-cream);
}
.section-contribute .section-title { color: var(--color-cream); }
.section-contribute .section-label { color: #FFD9D9; }
.section-contribute .section-label::before { background: #FFD9D9; }
.section-contribute .section-body { color: rgba(250, 247, 242, 0.94); }
.section-contribute .btn-primary {
  background: var(--color-cream);
  color: var(--color-maroon);
}
.section-contribute .btn-primary:hover {
  background: #FFFFFF;
  color: var(--color-maroon-dark);
}

/* ---------- Contact ---------- */
.section-contact { background: var(--color-cream); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-cream);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-maroon);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-maroon);
  background: rgba(139, 26, 26, 0.08);
  border-radius: 50%;
  margin-bottom: 16px;
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-value {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: var(--color-cream);
  padding: 48px 0 36px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  padding: 8px 12px;
  border-radius: 10px;
}
.footer-logo { height: 36px; width: auto; display: block; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-tag {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}
.footer-meta {
  font-size: 0.88rem;
  opacity: 0.85;
  text-align: right;
}
.footer-links { margin-top: 6px; }
.footer-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .hero { padding: 72px 0 88px; }
  .section { padding: 72px 0; }
  .header-inner { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

@media (max-width: 420px) {
  .hero-cta { width: 100%; flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
