:root {
  /* Primary Colors */
  --primary-dark: #1B4332;      /* Deep forest green - trust, health */
  --primary-light: #2D6A4F;     /* Lighter forest green - secondary dark */
  --accent-warm: #D4654F;       /* Warm terracotta - warmth, heritage */
  --accent-gold: #D4A574;       /* Golden ochre - richness, comfort */
  
  /* Neutrals */
  --bg-cream: #F9F6F1;          /* Warm off-white background */
  --text-dark: #2C2C2C;         /* Charcoal - primary text */
  --text-light: #666666;        /* Gray - secondary text */
  --border-light: #E8E3D8;      /* Subtle borders */
  
  /* Utility */
  --white: #FFFFFF;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

html {
  scroll-behavior: smooth;
}

.dhh-footer-widget {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
  border-top: 3px solid #4299e1;
  padding: 24px 20px;
  margin-top: 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dhh-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dhh-footer-text {
  flex: 1;
  min-width: 250px;
}

.dhh-footer-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.dhh-footer-subtitle {
  color: #cbd5e0;
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.dhh-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #4299e1;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.dhh-footer-cta:hover {
  background-color: #3182ce;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
  color: #ffffff;
}

.dhh-footer-cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .dhh-footer-content {
      flex-direction: column;
      text-align: center;
  }
  
  .dhh-footer-cta {
      width: 100%;
      justify-content: center;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Lora', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.65;
  letter-spacing: -0.3px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2rem;
  letter-spacing: -0.8px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.6px;
}

p {
  margin: 1rem 0;
  color: var(--text-dark);
}

a {
  color: var(--accent-warm);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin: 0.5rem 0;
  color: var(--text-dark);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 1.5rem 1rem;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom-left-radius: 10px;  
  border-bottom-right-radius: 10px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.tagline {
  font-size: 0.95rem;
  opacity: 0.92;
  margin: 0.25rem 0 0;
  font-weight: 400;
  letter-spacing: 0.2px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
  transition: all 0.25s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

.recipe-jump {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

.recipe-jump:hover,
.recipe-jump:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.recipe-jump option {
  background: var(--primary-dark);
  color: var(--white);
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page h1 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  border-left: 5px solid var(--accent-warm);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.hero p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   AD SLOTS
   ========================================== */

.ad-slot {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.05) 0%, rgba(212, 101, 79, 0.05) 100%);
  border: 2px dashed var(--border-light);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==========================================
   RECIPE GRID & CARDS
   ========================================== */

.recipe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.recipe-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 8rem;
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-warm);
  animation: fadeInUp 0.6s ease-out both;
}

.recipe-card:nth-child(1) { animation-delay: 0.1s; }
.recipe-card:nth-child(2) { animation-delay: 0.2s; }
.recipe-card:nth-child(3) { animation-delay: 0.3s; }
.recipe-card:nth-child(4) { animation-delay: 0.4s; }
.recipe-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================
   RECIPE TAG
   ========================================== */

.recipe-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.45rem 0.85rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.1), rgba(212, 101, 79, 0.1));
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ==========================================
   RECIPE HEADER & META
   ========================================== */

.recipe-card h2 {
  margin: 0.75rem 0 1rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.7px;
  font-family: 'Playfair Display', serif;
}

.recipe-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.recipe-meta::before {
  content: '';
  display: block;
  width: 2px;
  height: 2px;
  background: var(--accent-warm);
  border-radius: 50%;
  margin: auto 0;
}

/* ==========================================
   RECIPE IMAGE - ENHANCED
   ========================================== */

.recipe-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: linear-gradient(135deg, #f0e6d8, #e8dcc8);
  transition: transform 0.3s ease;
}

.recipe-card img:hover {
  transform: scale(1.02);
}

/* Responsive image heights */
@media (min-width: 768px) {
  .recipe-card img {
    height: 380px;
  }
}

@media (min-width: 1024px) {
  .recipe-card img {
    height: 420px;
  }
}

/* ==========================================
   RECIPE DESCRIPTION
   ========================================== */

.recipe-card > p:first-of-type {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 1rem 0 1.75rem;
  font-weight: 500;
}

/* ==========================================
   RECIPE LAYOUT (2-Column on Desktop)
   ========================================== */

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .recipe-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.recipe-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-gold);
  display: inline-block;
}

.recipe-layout ul,
.recipe-layout ol {
  margin: 0;
  padding-left: 1.5rem;
}

.recipe-layout li {
  margin-bottom: 0.65rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.recipe-layout strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.recipe-layout p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(27, 67, 50, 0.04);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0.35rem;
}

/* ==========================================
   RECIPE ACTIONS (Back to Top + Links)
   ========================================== */

.recipe-actions {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.recipe-actions span {
  font-size: 0.95rem;
  color: var(--text-light);
}

.recipe-actions a {
  color: var(--accent-warm);
  font-weight: 500;
}

.recipe-actions a:hover {
  color: var(--primary-dark);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-outline {
  border-radius: 0.5rem;
  border: 2px solid var(--primary-dark);
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active {
  transform: translateY(0);
}

/* ==========================================
   BACK TO TOP BUTTON (Global Floating)
   ========================================== */

#backToTop {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  border: none;
  border-radius: 0.5rem;
  padding: 0.85rem 1.3rem;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: none;
  z-index: 50;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

#backToTop:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#backToTop:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  #backToTop {
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #d0d0d0;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  border-top-left-radius: 10px;  
  border-top-right-radius: 10px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner > div:first-child {
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #d0d0d0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

/* ==========================================
   CONTACT FORM STYLING
   ========================================== */

form {
  max-width: 500px;
  margin: 2rem 0;
}

form p {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--border-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: var(--white);
  color: var(--text-dark);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(212, 101, 79, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

form > p:last-of-type {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1.25rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  main {
    padding: 1.5rem 1rem 2.5rem;
  }

  .hero {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .recipe-card {
    padding: 1.5rem;
  }

  .recipe-grid {
    gap: 1.75rem;
  }

  .recipe-card img {
    height: 280px;
    margin-bottom: 1.25rem;
  }

  .recipe-meta {
    gap: 1rem;
  }

  .recipe-layout {
    gap: 1rem;
  }

  .recipe-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .recipe-actions span {
    order: -1;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .site-title {
    font-size: 1.3rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }

  .recipe-jump {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .recipe-card {
    padding: 1.25rem;
  }

  .recipe-card h2 {
    font-size: 1.3rem;
  }

  .recipe-tag {
    font-size: 0.65rem;
    padding: 0.35rem 0.65rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .btn-outline {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
}

/* ==========================================
   ACCESSIBILITY & PRINT
   ========================================== */

@media print {
  header,
  nav,
  footer,
  #backToTop,
  .ad-slot,
  .recipe-actions {
    display: none;
  }

  body {
    background: var(--white);
  }

  .recipe-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--border-light);
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  :root {
    --text-light: #555555;
    --border-light: #d0d0d0;
  }

  .recipe-tag {
    border: 1px solid var(--primary-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}