/*
Theme Name: Amanda Elizabel Recipes
Theme URI: https://amandaelizabel.com
Author: LUMIA Web Development
Description: Custom landing page theme for Amanda Elizabel Recipes.
Version: 1.0
License: GPLv2 or later
Text Domain: amanda-recipes
*/

:root {
    --clay:    #C4714A;
    --terracotta: #A85C3A;
    --sand:    #E8D5B0;
    --cream:   #F5EDD8;
    --moss:    #5C6B3A;
    --sage:    #8A9E6F;
    --bark:    #6B4C2A;
    --linen:   #FAF3E4;
    --warm-gray: #7A6B58;
    --dark:    #2E231A;
  }

  * { margin:0; padding:0; box-sizing:border-box; }

  body {
    font-family: 'Lato', sans-serif;
    background: var(--linen);
    color: var(--dark);
    line-height: 1.7;
  }

  /* ── HEADER ── */
  header {
    background: var(--bark);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .logo-text {
    font-family: 'Playfair Display', serif;
    color: var(--sand);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  .logo-text span {
    display: block;
    font-size: 0.7rem;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--sand);
    opacity: 0.75;
    text-transform: uppercase;
  }

  nav {
    display: flex;
    gap: 2rem;
  }

  nav a {
    color: var(--sand);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s;
  }

  nav a:hover { opacity: 1; }

  /* ── HERO ── */
  .hero {
    background: linear-gradient(135deg, #3d2810 0%, #6B4C2A 40%, #8A9E6F 100%);
    padding: 80px 2rem 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }

  .hero-badge {
    display: inline-block;
    background: rgba(196,113,74,0.3);
    border: 1px solid rgba(196,113,74,0.6);
    color: var(--sand);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 700;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    color: var(--cream);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 18px;
    position: relative;
  }

  .hero h1 em {
    color: var(--clay);
    font-style: italic;
  }

  .hero p {
    color: var(--sand);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 36px;
    opacity: 0.9;
    font-weight: 300;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
  }

  .hero-stat {
    text-align: center;
  }

  .hero-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--clay);
    line-height: 1;
  }

  .hero-stat span {
    font-size: 0.75rem;
    color: var(--sand);
    opacity: 0.7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  /* ── CATEGORY NAV ── */
  .cat-nav {
    background: var(--cream);
    border-bottom: 1px solid rgba(107,76,42,0.15);
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
  }

  .cat-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 28px;
    color: var(--warm-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .cat-nav a:hover,
  .cat-nav a.active {
    color: var(--clay);
    border-bottom-color: var(--clay);
  }

  .cat-nav .cat-count {
    background: var(--clay);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── SECTIONS ── */
  .section {
    padding: 70px 2rem;
  }

  .section:nth-child(even) {
    background: var(--cream);
  }

  .section-header {
    text-align: center;
    margin-bottom: 52px;
  }

  .section-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .section-eyebrow::before,
  .section-eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--clay);
    opacity: 0.5;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--bark);
    font-weight: 600;
    margin-bottom: 12px;
  }

  .section-desc {
    color: var(--warm-gray);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    font-weight: 300;
  }

  /* ── RECIPE GRID ── */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .card {
    background: var(--linen);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(107,76,42,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(107,76,42,0.15);
  }

  .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  .card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
  }

  .card-body {
    padding: 20px 22px 24px;
  }

  .card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
  }

  .tag-veg { background: #e8f0dd; color: #4a6429; }
  .tag-protein { background: #f0e4d8; color: #8a4a20; }
  .tag-seafood { background: #d8eaf0; color: #20608a; }
  .tag-sweet { background: #f0dde8; color: #8a2060; }

  .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--bark);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .card-desc {
    font-size: 0.88rem;
    color: var(--warm-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 300;
  }

  .card-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(107,76,42,0.1);
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--warm-gray);
  }

  .meta-icon { font-size: 0.9rem; }

  .difficulty {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
  }

  .diff-easy { background: #e8f0dd; color: #4a6429; }
  .diff-medium { background: #f5ead8; color: #8a5020; }
  .diff-hard { background: #f0ddd8; color: #8a2820; }

  /* ── FEATURED RECIPE ── */
  .featured-wrap {
    max-width: 1200px;
    margin: 0 auto 52px;
  }

  .featured {
    background: var(--bark);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }

  .featured-img {
    background: #4a3020;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    position: relative;
    overflow: hidden;
  }

  .featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, var(--bark));
  }

  .featured-body {
    padding: 44px 44px 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .featured-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 12px;
  }

  .featured-title {
    font-family: 'Playfair Display', serif;
    color: var(--sand);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .featured-desc {
    color: var(--sand);
    opacity: 0.8;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clay);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
  }

  .btn:hover { background: var(--terracotta); }

  /* ── FOOTER ── */
  footer {
    background: var(--dark);
    padding: 60px 2rem 36px;
    text-align: center;
  }

  .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--sand);
    margin-bottom: 14px;
  }

  .footer-tagline {
    color: var(--sand);
    opacity: 0.5;
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 32px;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

  .footer-links a {
    color: var(--sand);
    opacity: 0.55;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    transition: opacity 0.2s;
  }

  .footer-links a:hover { opacity: 1; }

  .footer-copy {
    color: var(--sand);
    opacity: 0.3;
    font-size: 0.78rem;
  }

  /* ── OLIVE DIVIDER ── */
  .olive-divider {
    text-align: center;
    font-size: 1.4rem;
    color: var(--sage);
    opacity: 0.6;
    margin: 0;
    padding: 8px;
  }

  @media (max-width: 700px) {
    .featured { grid-template-columns: 1fr; }
    .featured-img { height: 200px; }
    nav { display: none; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat strong { font-size: 1.5rem; }
  }