:root {
    --home-ink: #3a210d;
    --home-muted: #74695f;
    --home-orange: #f7930a;
    --home-orange-dark: #df7600;
    --home-cream: #fffaf2;
    --home-line: #f0dcc0;
    --home-green: #4f8d2f;
}

.is-home { background: #fffdf9; color: var(--home-ink); }
.is-home .site-header > section { display: none; }
.is-home .navbar { margin: 0 !important; border-bottom: 1px solid var(--home-orange); background: rgba(255,253,249,.97) !important; }
.is-home .navbar .container { max-width: 1380px; min-height: 72px; }
.is-home .brand-text { color: var(--home-orange); text-shadow: none; font-family: "DM Sans", sans-serif; font-weight: 700; }
.is-home .brand-name { font-size: 1.9rem; }
.is-home .brand-domain { font-size: 1.9rem; }
.is-home .nav-link { color: var(--home-ink); font-family: "DM Sans", sans-serif; font-weight: 600; }
.is-home .search-wrapper { border: 1px solid var(--home-line); box-shadow: none; max-width: 290px; }
.is-home .search-wrapper .btn { background: var(--home-orange); border-color: var(--home-orange); font-size: 0; width: 42px; padding: 0 !important; }
.is-home .search-wrapper .btn::before { content: "\f52a"; font-family: bootstrap-icons; font-size: 1rem; }
.is-home .navbar .btn-outline-secondary { display: none; }
.is-home footer { background: var(--home-cream); }

.home-page, .home-page button, .home-page input, .home-page select { font-family: "DM Sans", sans-serif; }
.home-page h1, .home-page h2, .home-page h3 { color: var(--home-ink); }
.home-shell { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }
.home-hero { background: var(--home-cream); padding: 34px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: 48px; }
.hero-photo { height: 330px; margin-left: calc((100vw - min(1360px, calc(100vw - 48px))) / -2); border-radius: 0 50% 50% 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-content h1 { font: 700 clamp(2.6rem, 5vw, 5rem)/1 "Lora", serif; margin: 0 0 12px; letter-spacing: -.04em; }
.hero-content > p { color: var(--home-muted); font-size: 1.15rem; margin-bottom: 24px; }

.dinner-finder { background: #fff; border: 1px solid var(--home-line); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) auto; gap: 14px; align-items: end; box-shadow: 0 10px 35px rgba(105,62,10,.04); }
.dinner-finder label { display: grid; gap: 7px; color: var(--home-ink); font-weight: 600; }
.dinner-finder label span { padding-inline: 4px; }
.dinner-finder select { width: 100%; border: 1px solid #d9c7af; border-radius: 10px; padding: 11px 36px 11px 13px; background-color: #fff; color: #4c423a; }
.home-primary { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--home-orange); color: #fff; font-weight: 700; padding: 13px 22px; text-decoration: none; transition: background .2s, transform .2s; }
.home-primary:hover { background: var(--home-orange-dark); color: #fff; transform: translateY(-1px); }
.home-primary.compact { padding: 10px 18px; font-size: .9rem; }
.quick-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.quick-filters button { border: 1px solid var(--home-line); background: rgba(255,255,255,.75); color: var(--home-ink); border-radius: 999px; padding: 9px 20px; }
.quick-filters button:hover, .quick-filters button:focus-visible { border-color: var(--home-orange); background: #fff6e7; }

.planning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 28px; }
.home-panel { border: 1px solid var(--home-line); border-radius: 18px; padding: 18px; background: #fff; }
.panel-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.panel-heading > i { font-size: 1.45rem; }
.panel-heading h2 { font: 700 1.45rem/1.2 "Lora", serif; margin: 0; }
.panel-heading p { color: var(--home-muted); margin: 2px 0 0; font-size: .9rem; }
.weekly-row { display: grid; grid-template-columns: 34px 66px minmax(0,1fr) auto auto 14px; align-items: center; gap: 12px; min-height: 70px; border-top: 1px solid #f0e5d6; color: var(--home-ink); text-decoration: none; }
.weekly-row:hover { background: #fffaf2; }
.weekly-row img { width: 66px; height: 52px; object-fit: cover; border-radius: 10px; }
.weekly-name { font-weight: 600; }
.weekly-meta { color: var(--home-muted); font-size: .88rem; white-space: nowrap; }
.price { color: var(--home-green); font-weight: 700; }
.home-secondary { float: right; color: var(--home-orange-dark); border: 1px solid var(--home-orange); border-radius: 999px; padding: 8px 14px; text-decoration: none; margin-top: 12px; font-weight: 600; }
.featured-image { display: block; height: 285px; overflow: hidden; border-radius: 14px; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-panel h3 { font: 700 1.55rem/1.25 "Lora", serif; margin: 15px 0 7px; }
.featured-copy { color: var(--home-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.recipe-facts { display: flex; gap: 20px; flex-wrap: wrap; font-size: .9rem; }

.benefit-strip { margin-top: 28px; border: 1px solid var(--home-line); border-radius: 18px; display: grid; grid-template-columns: repeat(4,1fr); background: var(--home-cream); }
.benefit-strip > div { display: flex; align-items: center; gap: 13px; padding: 20px; }
.benefit-strip > div + div { border-left: 1px solid var(--home-line); }
.benefit-strip i { font-size: 1.6rem; }
.benefit-strip span { display: grid; }
.benefit-strip small { color: var(--home-muted); }

.content-section { padding-top: 34px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { font: 700 1.8rem/1.2 "Lora", serif; margin: 0; }
.section-heading a { color: var(--home-orange-dark); text-decoration: none; font-weight: 600; }
.content-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.content-card { min-width: 0; }
.content-image { display: block; height: 220px; overflow: hidden; border-radius: 14px; }
.content-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.content-card:hover .content-image img { transform: scale(1.02); }
.content-card h3 { font: 700 1.15rem/1.35 "Lora", serif; margin: 13px 0 7px; }
.content-card h3 a { color: inherit; text-decoration: none; }
.content-card p { color: var(--home-muted); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-card small { color: #9a8977; }

.home-page :focus-visible { outline: 3px solid rgba(247,147,10,.45); outline-offset: 3px; }

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 280px 1fr; gap: 28px; }
    .dinner-finder { grid-template-columns: repeat(3,1fr); }
    .dinner-finder .home-primary { grid-column: 1 / -1; }
    .weekly-row { grid-template-columns: 30px 56px minmax(0,1fr) auto 12px; }
    .weekly-row img { width: 56px; }
    .weekly-row .price { display: none; }
    .benefit-strip { grid-template-columns: repeat(2,1fr); }
    .benefit-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--home-line); }
    .benefit-strip > div:nth-child(4) { border-top: 1px solid var(--home-line); }
}

@media (max-width: 767px) {
    .home-shell { width: min(100% - 28px, 680px); }
    .is-home .navbar .container { min-height: 62px; }
    .is-home .brand-name, .is-home .brand-domain { font-size: 1.45rem; }
    .is-home .navbar-collapse { padding: 14px 0 18px; }
    .is-home .search-wrapper { max-width: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { height: 220px; margin: -34px -14px 0; border-radius: 0 0 36px 36px; order: 0; }
    .hero-content { order: 1; }
    .hero-content h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
    .dinner-finder { grid-template-columns: 1fr; }
    .dinner-finder .home-primary { grid-column: auto; }
    .quick-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
    .quick-filters button { flex: 0 0 auto; }
    .planning-grid { grid-template-columns: 1fr; }
    .featured-panel { grid-row: 1; }
    .weekly-row { grid-template-columns: 28px 52px minmax(0,1fr) 12px; gap: 9px; }
    .weekly-row img { width: 52px; height: 48px; }
    .weekly-row .weekly-meta, .weekly-row .price { display: none; }
    .featured-image { height: 220px; }
    .featured-footer { align-items: stretch; flex-direction: column; }
    .benefit-strip { grid-template-columns: 1fr; }
    .benefit-strip > div + div { border-left: 0; border-top: 1px solid var(--home-line); }
    .content-grid { grid-template-columns: 1fr; }
    .content-image { height: 230px; }
}

@media (max-width: 420px) {
    .section-heading { align-items: flex-start; gap: 8px; }
    .section-heading h2 { font-size: 1.45rem; }
    .section-heading a { font-size: .85rem; text-align: right; }
}
