/*
Theme Name: Mealorra
Theme URI: https://www.mealorra.online
Author: Mealorra
Author URI: https://www.mealorra.online
Description: Premium recipe WordPress theme with Home, About, Service, and Contact. English language, Unsplash imagery.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
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: mealorra
Tags: one-page, custom-menu, featured-images, translation-ready, food-and-drink
*/

:root {
  --ink: #0f1f1a;
  --ink-soft: #1a332b;
  --forest: #1e4d3a;
  --leaf: #2d6a4f;
  --mint: #95d5b2;
  --coral: #ff6b4a;
  --coral-deep: #e85a3a;
  --sand: #e8f0ec;
  --mist: #f3faf6;
  --white: #ffffff;
  --text: #142820;
  --text-soft: #3d5a4c;
  --muted: #6b8a7a;
  --line: rgba(15, 31, 26, 0.1);
  --shadow: 0 28px 64px rgba(15, 31, 26, 0.18);
  --shadow-soft: 0 12px 32px rgba(15, 31, 26, 0.1);
  --radius: 4px;
  --radius-lg: 28px;
  --header-h: 80px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Syne", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--text);
  line-height: 1.65;
  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(1180px, calc(100% - 36px));
  margin: 0 auto;
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: none;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
}

.btn:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-ink {
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(15, 31, 26, 0.3);
}

.btn-ink:hover {
  background: var(--forest);
  color: #fff;
}

.btn-full {
  width: 100%;
}

/* Header — top strip + brand lockup */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 31, 26, 0.96);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo-mark {
  color: var(--coral);
}

.site-header:not(.is-scrolled) .logo {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle::before {
  top: 13px;
}

.nav-toggle::after {
  bottom: 13px;
}

.primary-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.header-cta {
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

/* Hero — full-bleed brand plane */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 31, 26, 0.88) 0%, rgba(15, 31, 26, 0.45) 48%, rgba(15, 31, 26, 0.55) 100%),
    linear-gradient(0deg, rgba(15, 31, 26, 0.75) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 0 88px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 112px);
  font-weight: 800;
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

.hero-brand span {
  color: var(--coral);
}

.hero-content h1 {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 500;
  font-family: var(--font-body);
  margin: 0 0 18px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0;
}

.hero-content > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Recipe runway */
.recipes {
  padding: 100px 0 80px;
  background: var(--mist);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 10px 0 0;
  color: var(--ink);
  max-width: 480px;
}

.section-head p {
  color: var(--muted);
  max-width: 340px;
  margin: 0;
  font-size: 15px;
}

.recipe-runway {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.recipe-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  min-height: 240px;
  transition: transform 0.35s ease;
}

.recipe-tile:hover {
  transform: translateY(-4px);
}

.recipe-tile.wide {
  grid-row: span 2;
  min-height: 520px;
}

.recipe-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.recipe-tile:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.recipe-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 31, 26, 0.92) 0%, transparent 55%);
}

.recipe-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
  color: #fff;
}

.recipe-copy .chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.recipe-copy h3 {
  font-size: 22px;
  margin: 0 0 6px;
}

.recipe-tile.wide .recipe-copy h3 {
  font-size: 32px;
}

.recipe-copy p {
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
}

.recipe-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mint);
}

/* About — editorial stack */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.about-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-stack img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-stack img:first-child {
  height: 320px;
  grid-row: span 2;
  align-self: center;
}

.about-copy .eyebrow {
  margin-bottom: 8px;
}

.about-copy h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 0 0 18px;
  color: var(--ink);
}

.about-copy > p {
  color: var(--text-soft);
  margin: 0 0 28px;
  font-size: 15px;
}

.about-points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: var(--mist);
  border-left: 3px solid var(--coral);
}

.about-points strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.about-points span {
  font-size: 13px;
  color: var(--muted);
}

.about-points .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--leaf);
  line-height: 1;
}

/* Services */
.services {
  padding: 100px 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.45) 0%, transparent 70%);
  top: -120px;
  left: -100px;
  pointer-events: none;
}

.services .section-head h2 {
  color: #fff;
}

.services .section-head p {
  color: rgba(255, 255, 255, 0.6);
}

.service-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.service-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-panel:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.service-panel img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.service-panel-body {
  padding: 22px 20px 26px;
}

.service-panel-body h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--mint);
}

.service-panel-body p {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.service-panel-body .detail {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}

/* Contact */
.contact {
  padding: 100px 0;
  background: var(--sand);
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 36px;
  align-items: stretch;
}

.contact-side {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}

.contact-side h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 10px 0 14px;
}

.contact-side > p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 28px;
  font-size: 14px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-row .ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 107, 74, 0.2);
  color: var(--coral);
  border-radius: var(--radius);
  font-size: 16px;
}

.contact-row small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.contact-row strong,
.contact-row a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.contact-row a:hover {
  color: var(--mint);
}

.contact-map {
  margin-top: auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  display: block;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.contact-form h3 {
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--ink);
}

.form-lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--coral-deep);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: #fff;
  font-size: 30px;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 15px;
  transition: background 0.2s ease;
}

.footer-social a:hover {
  background: var(--coral);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #fff;
  margin: 0 0 18px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact-item span:first-child {
  color: var(--coral);
  flex-shrink: 0;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bar a {
  color: var(--mint);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  z-index: 60;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--coral);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.toast.is-visible {
  transform: translateY(0);
}

.section {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.entry-content {
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .recipe-runway {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-tile.wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 360px;
  }

  .about-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .service-flow {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px;
    display: none;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .header-cta {
    display: none;
  }

  .recipe-runway {
    grid-template-columns: 1fr;
  }

  .recipe-tile.wide {
    grid-column: span 1;
    min-height: 320px;
  }

  .about-stack {
    grid-template-columns: 1fr;
  }

  .about-stack img,
  .about-stack img:first-child {
    height: 220px;
    grid-row: auto;
  }

  .service-flow {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }
}
