:root {
  --color-bg: #f9f8f6;
  --color-surface: #ffffff;
  --color-primary: #b6a16b;
  --color-primary-hover: #8b7355;
  --color-secondary: #6a8a82;
  --color-text: #2f2f2f;
  --color-text-muted: #666666;
  --font-body: system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --max-width: 1000px;
}

/* Minimal Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

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

h1,
h2,
h3 {
  color: var(--color-secondary);
  line-height: 1.2;
  margin-block: 0 1rem;
}

ul,
ol {
  padding-inline-start: 1.5rem;
}

/* Global Link Styles */
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

/* Layout Utilities */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 2rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.flex-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Navigation */
header {
  background: var(--color-surface);
  margin-block: 1rem 0;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

nav ul {
  list-style: none;
  padding: 1rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--color-primary);
  color: white;
}

/* Components */
.card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card > *:last-child {
  margin-top: auto;
}

.card > a:last-child {
  margin-top: auto;
}

.button {
  display: inline-block;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--color-primary);
  transition: 0.2s;
  text-align: center;
}

.button.primary {
  background: var(--color-primary);
  color: white;
}

.button.primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: white;
}

.button.secondary {
  background: var(--color-surface);
  color: var(--color-secondary);
}

.button.secondary:hover {
  background: #f0f0f0;
}

/* Footer */
footer {
  background: var(--color-surface);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--color-primary);
}

footer address {
  font-style: normal;
}

footer p {
  margin-block: 0.25rem;
}

/* Home (Hero & Gallery) */
.hero {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Gallery / Carousel */
.gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  border-radius: calc(var(--radius) - 4px);
  height: 100%;
  min-height: 300px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  padding-bottom: 4px;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-track {
  background: transparent;
}

.gallery::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.gallery img {
  scroll-snap-align: center;
  height: 100%;
  object-fit: cover;
  flex: 0 0 85%;
  width: 85%;
  border-radius: calc(var(--radius) - 4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Schedule Tables */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.schedule-table td:first-child {
  font-weight: bold;
  width: 35%;
  color: var(--color-primary);
}

/* Contact Map & PDF */
.map-frame,
.pdf-viewer {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
}

.map-frame {
  height: 100%;
  min-height: 250px;
}

.pdf-viewer {
  height: 80vh;
}
