/* Artisan Pie Makers — shared styles */

:root {
  --crust: #fffdf9;
  --crust-dark: #fbf0dc;
  --cherry: #d9622c;
  --cherry-dark: #b6491d;
  --cinnamon: #8a5a2b;
  --ink: #3a2420;
  --gold: #f4c84a;
  --gold-light: #fce7a9;
  --cream-card: #ffffff;
  --border: #f0e2c2;
  --shadow: 0 4px 16px rgba(58, 36, 32, 0.08);
  --shadow-hover: 0 10px 28px rgba(58, 36, 32, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--crust);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #ffffff;
  color: var(--ink);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .brand {
  display: flex;
  align-items: center;
}

.site-header .brand .logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-header .brand:hover {
  text-decoration: none;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

nav.main-nav a.active {
  border-bottom: 2px solid var(--gold);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.hero {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  color: var(--ink);
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink);
}

.btn {
  display: inline-block;
  background: var(--cherry);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-right: 0.5rem;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--cherry-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--ink);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card h3 {
  margin-top: 0;
  color: var(--cherry-dark);
}

section {
  margin-bottom: 2.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

th {
  background: var(--crust-dark);
  color: var(--cinnamon);
  font-weight: 700;
}

.tag {
  display: inline-block;
  background: var(--crust-dark);
  color: var(--cinnamon);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.4rem;
}

form.contact-form {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

form.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--crust);
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.event-item, .news-item {
  background: var(--cream-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.event-item .date, .news-item .date {
  color: var(--cherry-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--crust-dark);
  color: var(--cinnamon);
  text-align: center;
  padding: 1.75rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--cherry-dark);
  font-weight: 600;
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--crust-dark);
  cursor: pointer;
}

.lang-switch:hover,
.lang-switch:focus {
  border-color: var(--cherry);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
