/* Abe's Recipe & Restaurant Guide - Main Styles */
:root {
  --color-cream: #faf6f0;
  --color-warm-white: #fffef9;
  --color-umber: #5c4033;
  --color-mocha: #3e2723;
  --color-sage: #7d8c6b;
  --color-terracotta: #c47b5b;
  --color-gold: #c9a227;
  --color-gold-light: #e8d48b;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-soft: 0 4px 20px rgba(92, 64, 51, 0.08);
  --shadow-card: 0 8px 32px rgba(92, 64, 51, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-mocha);
  background: var(--color-cream);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-umber);
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; }

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-umber); }

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.site-header {
  background: var(--color-warm-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-umber);
}
.logo span { color: var(--color-terracotta); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.nav-list a {
  font-weight: 600;
  color: var(--color-umber);
}
.nav-list a:hover { color: var(--color-terracotta); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-mocha) 0%, var(--color-umber) 50%, #2d1f1a 100%);
  color: var(--color-warm-white);
  padding: 4rem 0;
  text-align: center;
}
.hero h1 {
  color: inherit;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero .btn {
  display: inline-block;
  background: var(--color-terracotta);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.hero .btn:hover {
  background: #b86a4a;
  transform: translateY(-2px);
}

.btn {
  display: inline-block;
  background: var(--color-terracotta);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover {
  background: #b86a4a;
  color: white;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}
.section--alt { background: var(--color-warm-white); }
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-top: 0; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}
.card-body { padding: 1.5rem; }
.card-body h3 { margin-top: 0; font-size: 1.25rem; }
.card-meta {
  font-size: 0.9rem;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
}

/* Content prose */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p { margin: 1rem 0; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose li { margin: 0.35rem 0; }

/* Subscribe / Consent form */
.subscribe-section {
  background: linear-gradient(180deg, var(--color-umber) 0%, var(--color-mocha) 100%);
  color: var(--color-warm-white);
  padding: 4rem 0;
}
.subscribe-section h2 { color: inherit; margin-top: 0; }
.subscribe-section .container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.subscribe-section p {
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: white;
}
.form-group input::placeholder { color: rgba(255,255,255,0.6); }
.form-group input:focus {
  outline: none;
  border-color: var(--color-gold-light);
  background: rgba(255,255,255,0.15);
}

.consent-group {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  text-align: left;
}
.consent-group legend {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-gold-light);
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.consent-item input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--color-gold);
}
.consent-item label {
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0;
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 1rem;
}
.subscribe-section .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: var(--color-terracotta);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.subscribe-section .btn:hover { background: #d4896a; }
.subscribe-section .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  background: var(--color-mocha);
  color: var(--color-cream);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--color-gold-light); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { opacity: 0.85; }

/* Recipe detail blocks */
.recipe-block {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}
.recipe-block h3 { margin-top: 0; border-bottom: 2px solid var(--color-gold-light); padding-bottom: 0.5rem; }
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--color-sage);
}

/* Restaurant list */
.restaurant-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 640px) {
  .restaurant-item { grid-template-columns: 1fr; }
}
.restaurant-item h3 { margin-top: 0; }
.restaurant-category { color: var(--color-sage); font-size: 0.9rem; margin-bottom: 0.25rem; }
.restaurant-address { font-size: 0.95rem; color: var(--color-umber); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Form success/error */
.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
}
.form-message.success { background: rgba(125, 140, 107, 0.3); display: block; }
.form-message.error { background: rgba(180, 50, 50, 0.2); display: block; }
