/*
Theme Name: Sabor de Casa RP
Theme URI: https://sabordecasarp.com
Author: Sabor de Casa RP
Description: Tema WordPress acolhedor para a Sabor de Casa RP, especialista em marmitas congeladas em Ribeirão Preto.
Version: 1.0.0
Text Domain: sabor-de-casa-rp
*/

:root {
  --cream: #f8f3e9;
  --paper: #fffaf1;
  --sand: #f1e9da;
  --terracotta: #c85e3d;
  --terracotta-dark: #a94a30;
  --green: #263a31;
  --muted-green: #687568;
  --gold: #e7b957;
  --line: #e4d8c8;
  --shadow: 0 18px 42px rgba(64, 55, 37, 0.12);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.site-shell { position: relative; z-index: 1; overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 500; }
.eyebrow { color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 17px; background: var(--terracotta); color: #fff6e8;
  box-shadow: 5px 5px 0 #e6bd73;
}
.brand-name { display: block; font-family: var(--display); font-size: 21px; line-height: 1; }
.brand-subtitle { display: block; margin-top: 5px; color: #bd7049; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.site-nav { display: flex; gap: 32px; color: var(--muted-green); font-size: 13px; font-weight: 800; }
.site-nav a, .footer-links a { transition: color .2s ease; }
.site-nav a:hover, .footer-links a:hover { color: var(--terracotta); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 20px;
  background: var(--green); color: var(--cream); font: inherit; font-size: 12px; font-weight: 800;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--accent { background: var(--terracotta); color: #fff8ee; box-shadow: 0 9px 20px rgba(200,94,61,.2); }
.button--accent:hover { background: var(--terracotta-dark); }
.button--gold { background: var(--gold); color: var(--green); }
.button--muted { background: #49604f; color: #aeb9a9; }
.button--outline { border: 1px solid #d8cdbb; background: transparent; color: var(--green); }
.menu-toggle { display: none; border: 1px solid #d8cdbb; border-radius: 999px; background: transparent; padding: 10px; color: var(--green); cursor: pointer; }
.mobile-menu { display: none; }

.hero {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 12%; align-items: center;
  padding: 74px 0 112px;
}
.hero-copy { animation: rise .75s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy h1 { max-width: 620px; margin: 22px 0 0; font-size: clamp(3.5rem, 7vw, 6.6rem); letter-spacing: -.055em; line-height: .91; }
.hero-copy h1 em { color: var(--terracotta); font-style: normal; }
.hero-copy p { max-width: 430px; margin: 28px 0 0; color: var(--muted-green); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 36px; }
.location { display: inline-flex; align-items: center; gap: 8px; color: #7b8878; font-size: 12px; font-weight: 800; }
.hero-visual { position: relative; animation: rise .75s .16s cubic-bezier(.2,.8,.2,1) both; }
.hero-image-wrap { position: relative; aspect-ratio: 1.08; overflow: hidden; border-radius: 36px 36px 110px 36px; background: #b9693e; box-shadow: 18px 18px 0 #e9c986; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.hero-image-wrap:hover img { transform: scale(1.05); }
.hero-note { position: absolute; bottom: 20px; left: 20px; padding: 12px 16px; border-radius: 16px; background: rgba(255,248,238,.9); backdrop-filter: blur(8px); }
.hero-note small { color: #a7663d; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-note strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 18px; font-weight: 500; }
.seal { position: absolute; top: -26px; right: -12px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 98px; height: 98px; border-radius: 50%; background: var(--gold); color: var(--green); text-align: center; box-shadow: 0 8px 18px rgba(60,48,22,.14); animation: float 5s ease-in-out infinite; }
.seal strong { font-family: var(--display); font-size: 23px; line-height: 1; font-weight: 500; }
.seal span { margin-top: 4px; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.benefits { border-block: 1px solid #e6d9c7; background: var(--sand); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { display: flex; align-items: flex-start; gap: 16px; padding: 26px 18px; border-right: 1px solid #dacebb; }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; border-right: 0; }
.benefit-icon { flex: 0 0 auto; color: var(--terracotta); }
.benefit h2 { margin: 0; font-size: 14px; }
.benefit p { margin: 4px 0 0; color: #778173; font-size: 12px; line-height: 1.7; }

.section { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(2.8rem, 5vw, 4.3rem); letter-spacing: -.04em; line-height: .98; }
.section-heading p { max-width: 300px; margin: 0; color: #778173; font-size: 14px; line-height: 1.7; }
.meal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.meal-card { overflow: hidden; border: 1px solid #e3d7c5; border-radius: 26px; background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; }
.meal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.meal-photo { position: relative; height: 192px; overflow: hidden; background: linear-gradient(135deg, #e0a14a, #f5c87a); }
.meal-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .8; transition: transform .5s ease; }
.meal-card:hover .meal-photo img { transform: scale(1.1); }
.meal-tag { position: absolute; top: 16px; left: 16px; border-radius: 999px; padding: 5px 11px; background: rgba(255,248,238,.9); color: #7b5b41; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.meal-content { padding: 20px; }
.meal-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.meal-card h3 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.1; }
.meal-price { flex: 0 0 auto; color: var(--terracotta); font-size: 14px; font-weight: 900; }
.meal-detail { margin: 5px 0 0; color: #778173; font-size: 12px; line-height: 1.65; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee3d3; }
.quantity-label { color: #9a9c8e; font-size: 12px; font-weight: 800; }
.quantity-controls { display: flex; align-items: center; gap: 8px; }
.quantity-controls button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d9ccba; border-radius: 50%; background: transparent; color: #6e796d; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.quantity-controls button:hover { background: var(--sand); transform: scale(1.05); }
.quantity-controls .quantity-add { border: 0; background: var(--green); color: #fff8ee; }
.order-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 28px; border-radius: 24px; background: var(--green); color: var(--cream); }
.order-summary { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.order-summary svg { color: var(--gold); }
.order-summary small { color: #b7c1ae; font-size: 12px; font-weight: 500; }
.order-notice { margin: 10px 0 0; color: var(--terracotta); font-size: 12px; font-weight: 800; text-align: center; }

.story { background: var(--terracotta); color: #fff6e8; }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12%; }
.story .eyebrow { color: #f5d699; }
.story h2 { max-width: 500px; margin: 15px 0 0; font-size: clamp(2.8rem, 5vw, 4.6rem); letter-spacing: -.04em; line-height: .98; }
.story-intro { max-width: 390px; margin: 24px 0 0; color: #ffe8c7; font-size: 14px; line-height: 2; }
.story-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.story-point { padding: 20px; border: 1px solid #df805d; border-radius: 18px; background: #d96b47; }
.point-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f5d699; color: #7d482f; font-size: 12px; font-weight: 900; }
.story-point p { margin: 20px 0 0; font-size: 14px; font-weight: 800; line-height: 1.7; }
.point-check { margin-top: 20px; color: #f5d699; }

.delivery-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 10%; }
.delivery-card { padding: 46px; border-radius: 30px; background: #e6bd73; }
.delivery-card h2 { max-width: 520px; margin: 24px 0 0; font-size: clamp(2.4rem, 4vw, 3.8rem); letter-spacing: -.04em; line-height: 1; }
.delivery-card p { max-width: 430px; margin: 18px 0 0; color: #5d624e; font-size: 14px; line-height: 1.7; }
.testimonial-stars { display: flex; gap: 4px; color: #e2a72f; }
.testimonial blockquote { margin: 20px 0 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.testimonial cite { display: block; margin-top: 22px; color: #9a7558; font-size: 11px; font-style: normal; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-name { font-family: var(--display); font-size: 25px; }
.footer-meta { margin: 3px 0 0; color: #7f897b; font-size: 12px; }
.footer-links { display: flex; align-items: center; gap: 20px; color: #687568; font-size: 12px; font-weight: 800; }
.footer-links .button { color: #fff6e8; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

@media (max-width: 800px) {
  .container { width: min(100% - 32px, 680px); }
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-menu { padding: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a { display: block; padding: 13px 14px; border-bottom: 1px solid #eee4d6; font-size: 13px; font-weight: 800; }
  .mobile-menu a:last-child { border-bottom: 0; }
  .hero, .story-grid, .delivery-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero { padding: 48px 0 82px; }
  .hero-copy h1 { font-size: clamp(3.35rem, 15vw, 5.6rem); }
  .hero-copy p { font-size: 16px; }
  .hero-image-wrap { box-shadow: 11px 11px 0 #e9c986; }
  .benefits-grid, .meal-grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0; border-bottom: 1px solid #dacebb; padding: 20px 0; }
  .benefit:last-child { border-bottom: 0; }
  .section { padding: 78px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .order-bar { align-items: stretch; flex-direction: column; }
  .order-bar .button { width: 100%; }
  .story-points { gap: 10px; }
  .delivery-card { padding: 32px 26px; }
  .footer-inner, .footer-links { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}