/*
Theme Name: YummyWorks
Theme URI: https://YummyWorks.online
Author: YummyWorks
Author URI: https://YummyWorks.online
Description: A one-page cooking-education WordPress theme with Home, About, Service, and Contact sections. Built for YummyWorks, a recipe literacy nonprofit in West Palm Beach, Florida.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yummyworks
Tags: one-column, custom-menu, featured-images, translation-ready, food-and-drink
*/

:root {
  --cream: #f4eee4;
  --ivory: #fbf7f1;
  --tomato: #c4452d;
  --tomato-deep: #9e331f;
  --herb: #3d6b4f;
  --sage: #dce8df;
  --wood: #6b4a32;
  --ink: #1c1612;
  --muted: #6a6158;
  --linen: #eadfd0;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(28, 22, 18, 0.12);
  --radius: 18px;
  --header-h: 88px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Nunito Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--tomato-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--tomato);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

.section {
  padding: 110px 0;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin-bottom: 18px;
}

.section-lead {
  max-width: 560px;
  color: var(--muted);
  margin: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.42) 0%, rgba(28, 22, 18, 0) 100%);
}

.site-header.is-scrolled {
  height: 72px;
  background: var(--ivory);
  box-shadow: 0 8px 24px rgba(28, 22, 18, 0.08);
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

#home,
#about,
#service,
#contact,
#recipes {
  scroll-margin-top: 72px;
}

.header-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.site-header.is-scrolled .site-logo {
  color: var(--ink);
}

.site-logo img,
.footer-logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--ivory);
}

.site-header.is-scrolled .site-logo img {
  height: 44px;
}

.site-logo span {
  color: var(--tomato);
}

.primary-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header.is-scrolled .primary-nav a {
  color: var(--ink);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--tomato);
  transition: width 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 22, 18, 0.28);
  cursor: pointer;
  padding: 0;
}

.site-header.is-scrolled .menu-toggle {
  background: rgba(28, 22, 18, 0.06);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  position: relative;
  transition: 0.25s ease;
}

.site-header.is-scrolled .menu-toggle span,
.site-header.is-scrolled .menu-toggle span::before,
.site-header.is-scrolled .menu-toggle span::after {
  background: var(--ink);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #1c1612 center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.28) 0%, rgba(28, 22, 18, 0.18) 38%, rgba(28, 22, 18, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 96px;
}

.hero .eyebrow {
  color: #f3d2c8;
}

.hero .eyebrow::before {
  background: #f3d2c8;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7.4vw, 5.8rem);
  margin-bottom: 18px;
}

.hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 28px;
  font-size: 1.08rem;
}

.mission-chip {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(61, 107, 79, 0.85);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-gold,
.btn-tomato {
  background: var(--tomato);
  color: var(--white);
}

.btn-tomato:hover,
.btn-gold:hover {
  background: var(--tomato-deep);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

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

.btn-herb {
  background: var(--herb);
  color: var(--white);
}

.btn-herb:hover {
  background: #2f5440;
}

/* About */
.about {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  border: 1px solid var(--tomato);
  border-radius: 28px;
  z-index: -1;
}

.about-copy .section-title {
  margin-bottom: 22px;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 18px;
}

.mission-box {
  margin: 22px 0 8px;
  padding: 20px 22px;
  background: var(--sage);
  border-left: 4px solid var(--herb);
  border-radius: 12px;
}

.mission-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--herb);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-box p {
  margin: 0;
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.stat {
  padding: 18px 0 0;
  border-top: 1px solid var(--linen);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ein-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Services */
.services {
  background: var(--cream);
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 22, 18, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card-body {
  padding: 22px 22px 26px;
}

.service-card h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Recipes */
.recipes {
  background: var(--ivory);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--linen);
}

.recipe-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.recipe-card-body {
  padding: 22px;
}

.recipe-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.recipe-card p,
.recipe-card li {
  color: var(--muted);
  font-size: 0.95rem;
}

.recipe-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.recipe-skill {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--herb);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Contact */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 42px 36px;
  min-height: 100%;
}

.contact-card .eyebrow {
  color: #f3d2c8;
}

.contact-card .eyebrow::before {
  background: var(--tomato);
}

.contact-card h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.contact-list li {
  display: grid;
  gap: 4px;
}

.contact-list span {
  color: #f3d2c8;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-list a,
.contact-list p {
  margin: 0;
  color: var(--white);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid #e5d8cc;
  background: var(--ivory);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--tomato);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-notice.success {
  background: #eef6ea;
  color: #335c2a;
}

.form-notice.error {
  background: #f8ecec;
  color: #7a2e2e;
}

/* Legal / inner pages */
.page-main {
  padding: 140px 0 90px;
}

.page-main h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 18px;
}

.page-main .entry-content {
  max-width: 760px;
  color: var(--muted);
}

.page-main .entry-content h2 {
  margin: 28px 0 12px;
  font-size: 1.6rem;
  color: var(--ink);
}

.page-main .entry-content p,
.page-main .entry-content li {
  margin: 0 0 14px;
}

/* Footer */
.site-footer {
  background: #120e0c;
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
}

.footer-logo img {
  height: 40px;
}

.footer-logo span {
  color: var(--tomato);
}

.footer-meta {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-meta a {
  color: #f3d2c8;
}

/* Mobile */
@media (max-width: 980px) {
  .about-grid,
  .contact-grid,
  .service-grid,
  .recipe-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 480px;
  }

  .services-head {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--ivory);
    padding: 92px 32px 32px;
    box-shadow: var(--shadow);
    transition: right 0.3s ease;
  }

  .primary-nav.is-open {
    right: 0;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 22px;
  }

  .primary-nav a,
  .site-header.is-scrolled .primary-nav a {
    color: var(--ink);
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 380px;
  }

  .contact-card,
  .contact-form {
    padding: 26px 20px;
  }
}
