:root {
  --primary: #8B1A32;
  --primary-dark: #6B1426;
  --secondary: #C8963E;
  --secondary-light: #E8C876;
  --bg-dark: #1A1A2E;
  --bg-light: #FDF8F0;
  --bg-white: #FFFFFF;
  --text-dark: #2D2D2D;
  --text-light: #F5F0EB;
  --text-muted: #6B7280;
  --accent: #D4A853;
  --border: #E5DDD3;
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.12);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 4rem 0; }
.alt { background: linear-gradient(180deg, #fffaf4, #f8efe2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(26,26,46,0.15); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--bg-dark); font-family: 'Playfair Display', serif; font-weight: 700; }
.brand span { font-size: clamp(0.95rem, 1.9vw, 1.2rem); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
}
.primary-nav a {
  padding: 0.48rem 0.62rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.primary-nav a.active,
.primary-nav a:hover { color: #fff; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.menu-toggle { display: none; background: none; border: 0; padding: 0.25rem; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--bg-dark); }

.hero {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  background-position: center;
  background-size: cover;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(26,26,46,0.8), rgba(139,26,50,0.65), rgba(200,150,62,0.5));
}
.hero .container { position: relative; z-index: 1; }
.hero-panel { max-width: 760px; margin: 0 auto; padding: 2rem; background: rgba(255,255,255,0.11); border-radius: 12px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }

.btn-group { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: var(--bg-dark); }
.btn:hover { transform: translateY(-2px); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(26, 26, 46, 0.2); }
.card-body { padding: 1rem 1.1rem 1.2rem; }

.mission {
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}
.mission .card { padding: 1.25rem; border-left: 5px solid var(--secondary); }

.timeline { position: relative; padding-left: 1.25rem; }
.timeline::before { content: ''; position: absolute; left: 0.35rem; top: 0; bottom: 0; width: 2px; background: var(--secondary); }
.timeline-item { position: relative; margin-bottom: 1rem; padding: 0.9rem 1rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.timeline-item::before { content: ''; position: absolute; left: -1.1rem; top: 1.2rem; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }

.quote { border-left: 4px solid var(--secondary); padding: 1rem 1rem 1rem 1.2rem; background: #fffaf2; border-radius: 8px; font-style: italic; }

.form-wrap, .newsletter-form { display: flex; gap: 0.65rem; flex-wrap: wrap; }
input, textarea, select {
  width: 100%;
  padding: 0.72rem;
  border-radius: 8px;
  border: 1px solid #cfc2b1;
  font-family: inherit;
}
textarea { min-height: 130px; resize: vertical; }
button {
  padding: 0.72rem 1.1rem;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--primary-dark); }

.newsletter-band {
  background: linear-gradient(90deg, var(--primary), #a42845, var(--secondary));
  color: #fff;
  padding: 2rem 0;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.newsletter-form input { width: 250px; }

.site-footer { background: var(--bg-dark); color: var(--text-light); padding-top: 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; }
.site-footer h3 { margin-bottom: 0.45rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--secondary-light); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.2); padding: 0.85rem 0; margin-top: 1.5rem; }

.map-frame { border: 0; width: 100%; min-height: 280px; border-radius: var(--radius); }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 1024px) {
  .brand span { font-size: 1rem; }
  .primary-nav a { padding: 0.44rem 0.5rem; font-size: 0.86rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 72px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.55rem;
    display: none;
    white-space: normal;
    overflow: visible;
  }
  .primary-nav.open { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
