/*
Theme Name: Ruth Cooks
Theme URI: https://example.com/ruth-cooks
Author: OpenAI
Description: A warm, modern WordPress theme for Ruth Cooks, designed for catering, private chefs, and food businesses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruth-cooks
Tags: food-and-drink, blog, custom-logo, custom-menu, featured-images, translation-ready, responsive-layout
*/

:root {
  --cream: #fff9f1;
  --paper: #ffffff;
  --orange: #df5a12;
  --orange-deep: #b43a0f;
  --gold: #e7a127;
  --espresso: #2b1a10;
  --ink: #432a1d;
  --sage: #596c20;
  --sage-light: #edf1df;
  --sand: #f8ead5;
  --muted: #765f50;
  --line: #eddcc7;
  --shadow: 0 16px 42px rgba(67, 42, 29, .12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--orange-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus { clip: auto!important; clip-path: none; display: block; height: auto; left: 5px; padding: 12px 16px; top: 5px; width: auto; z-index: 100000; background: var(--espresso); color: #fff; }
.site { overflow: hidden; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 90px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--paper); }
.section--sage { background: var(--sage-light); }
.section-label { display: inline-flex; align-items: center; gap: 9px; color: var(--orange-deep); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-label::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
h1,h2,h3,h4,h5,h6 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; color: var(--espresso); margin: 0 0 .7em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.55rem); letter-spacing: -.035em; }
h3 { font-size: 1.48rem; }
p { margin: 0 0 1.15em; }
.button, .wp-block-button__link, input[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 14px 23px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .92rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .wp-block-button__link:hover, input[type=submit]:hover { color: #fff; background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(180, 58, 15, .25); }
.button--ghost { background: transparent; color: var(--espresso); border: 1px solid var(--espresso); }
.button--ghost:hover { background: var(--espresso); }
.button--gold { background: var(--gold); color: var(--espresso); }
.button--gold:hover { background: #ca8610; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 99; background: rgba(255,249,241,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(67,42,29,.08); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--espresso); }
.brand:hover { color: var(--espresso); }
.brand-logo { width: 52px; height: 52px; object-fit: contain; object-position: left center; border-radius: 50%; }
.brand-title { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.brand-title span { display: block; margin-top: -4px; color: var(--orange); font-family: Georgia, serif; font-size: .95rem; font-style: italic; }
.primary-menu { display: flex; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: var(--espresso); text-decoration: none; font-size: .94rem; font-weight: 700; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--orange); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; color: var(--espresso); font-size: 1.6rem; }

/* Hero */
.hero { position: relative; isolation: isolate; padding: 78px 0 72px; background: linear-gradient(115deg, var(--cream) 0%, #fff6e8 62%, #f9ead1 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 510px; height: 510px; right: -170px; top: -150px; border: 2px solid rgba(231,161,39,.65); border-radius: 50%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; }
.hero-copy { max-width: 650px; }
.hero-copy h1 em { color: var(--orange); font-weight: inherit; }
.hero-copy p { max-width: 560px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: .93rem; color: var(--ink); }
.hero-note strong { color: var(--orange-deep); }
.hero-note::before { content: "♥"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--orange); box-shadow: 0 4px 12px rgba(67,42,29,.11); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 430px; }
.hero-art::before { content:""; position:absolute; width: 390px; height:390px; border-radius: 50%; background: var(--gold); opacity: .18; transform: translate(18px, 16px); }
.hero-art img { position: relative; width: min(100%, 490px); filter: drop-shadow(0 20px 26px rgba(67,42,29,.16)); }

/* Home modules */
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.intro-card { padding: 36px; background: var(--espresso); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-card h2 { color: #fff; font-size: clamp(2rem,4vw,3rem); }
.intro-card p { color: #f6e6d2; }
.intro-mark { color: var(--gold); font-family: Georgia,serif; font-size: 3.5rem; line-height: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.feature-card { min-height: 235px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 25px rgba(67,42,29,.05); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 50%; background: var(--sand); color: var(--orange); font-size: 1.45rem; }
.feature-card p { color: var(--muted); font-size: .98rem; }
.signature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; margin-top: 40px; }
.signature-card { overflow: hidden; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.signature-visual { display: grid; min-height: 165px; place-items: center; padding: 25px; background: linear-gradient(135deg,#f5d58d,#ec8432); color: #fff; font-size: 4.4rem; }
.signature-card:nth-child(2) .signature-visual { background: linear-gradient(135deg,#cedd9a,#738237); }
.signature-card:nth-child(3) .signature-visual { background: linear-gradient(135deg,#f8cdc0,#d95f29); }
.signature-content { padding: 26px; }
.signature-content p { color: var(--muted); font-size: .96rem; }
.testimonial { position: relative; margin-top: 44px; padding: 42px 48px; background: var(--espresso); color: #fff; border-radius: var(--radius); overflow: hidden; }
.testimonial::after { content: "“"; position: absolute; right: 25px; bottom: -58px; color: rgba(231,161,39,.24); font-family: Georgia,serif; font-size: 16rem; line-height: 1; }
.testimonial blockquote { position: relative; max-width: 860px; margin: 0; font-family: Georgia,serif; font-size: clamp(1.5rem,3vw,2.3rem); line-height: 1.25; }
.testimonial cite { position: relative; display: block; margin-top: 18px; color: #f2d18c; font-style: normal; font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cta { border-radius: var(--radius); background: linear-gradient(118deg,var(--orange-deep),var(--orange)); color: #fff; padding: 58px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin-inline: auto; max-width: 620px; color: #fff1df; font-size: 1.1rem; }
.cta .button { margin-top: 10px; background: #fff; color: var(--orange-deep); }
.cta .button:hover { background: var(--gold); color: var(--espresso); }

/* Blog and page */
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 58px; padding: 72px 0; }
.main-content > * + * { margin-top: 26px; }
.entry-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-card + .entry-card { margin-top: 24px; }
.entry-card .entry-meta { color: var(--muted); font-size: .85rem; }
.entry-title a { color: var(--espresso); text-decoration: none; }
.entry-title a:hover { color: var(--orange); }
.post-thumbnail { overflow: hidden; margin: -32px -32px 28px; border-radius: var(--radius) var(--radius) 0 0; }
.post-thumbnail img { width: 100%; display: block; }
.page-header { padding: 72px 0 14px; background: linear-gradient(135deg, #fff5e5, var(--sand)); }
.page-header .container { max-width: 870px; text-align: center; }
.page-header p { color: var(--muted); }
.widget { margin-bottom: 28px; padding: 25px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.widget-title { font-size: 1.25rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: 10px; }
.widget a { text-decoration: none; }
.navigation.pagination { margin-top: 35px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 50%; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Form */
input[type=text], input[type=email], input[type=url], input[type=password], textarea, select { width: 100%; padding: 13px 14px; background: #fff; border: 1px solid #d9c4aa; border-radius: 12px; color: var(--ink); font: inherit; }
textarea { min-height: 145px; }
label { font-weight: 700; }

/* Footer */
.site-footer { padding: 56px 0 25px; background: var(--espresso); color: #f7eadc; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1.25rem; }
.site-footer p, .site-footer li { color: #e6cdb3; }
.site-footer a { color: #f4d595; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li + li { margin-top: 8px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img { width: 58px; height: 58px; object-fit: contain; object-position: left; border-radius: 50%; background: #fff9f1; }
.copyright { margin-top: 45px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.15); color: #c9aa8f; font-size: .86rem; }

/* WordPress alignment */
.alignwide { width: min(100%, 1180px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: .88rem; }

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; }
  .primary-menu { position: absolute; right: 20px; top: 72px; width: min(330px, calc(100vw - 40px)); padding: 20px; display: none; flex-direction: column; align-items: stretch; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { display: block; padding: 8px 0; }
  .header-cta { display: none; }
  .hero-grid, .intro, .content-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-art { min-height: 310px; order: -1; }
  .hero-art::before { width: 290px; height: 290px; }
  .hero-art img { max-width: 320px; }
  .feature-grid, .signature-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .intro { gap: 30px; }
  .content-wrap { padding: 44px 0; gap: 35px; }
  .cta { padding: 42px 22px; }
}
@media (max-width: 480px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 2.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .intro-card, .entry-card, .testimonial { padding: 28px; }
  .post-thumbnail { margin: -28px -28px 24px; }
}
