/*
Theme Name: Mi Fá Sol Cake
Theme URI: https://mifasolcake.com.br/
Author: Michelle Karen
Description: Tema personalizado da Mi Fá Sol Cake para WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mi-fa-sol-cake
*/

:root {
  --wine: #8f2410;
  --wine-dark: #641608;
  --cream: #fff9f1;
  --peach: #f4dfcf;
  --gold: #d69a41;
  --green: #4f7d3a;
  --green-dark: #365d29;
  --ink: #30231f;
  --muted: #75635b;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(84, 37, 21, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(22px, 5vw, 78px); background: rgba(255, 249, 241, .93); border-bottom: 1px solid rgba(143, 36, 16, .1); backdrop-filter: blur(14px); }
.brand img { width: 104px; height: 66px; object-fit: contain; }
nav { display: flex; gap: clamp(18px, 3vw, 42px); font-size: 15px; font-weight: 600; }
nav a:hover { color: var(--wine); }

.hero { position: relative; min-height: calc(100vh - 95px); display: flex; align-items: center; padding: 80px clamp(22px, 7vw, 110px) 110px; background-image: linear-gradient(90deg, rgba(31, 20, 14, .82) 0%, rgba(31, 20, 14, .55) 40%, rgba(31, 20, 14, .08) 72%), url("assets/michelle-hero.jpg"); background-size: cover; background-position: center 38%; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, rgba(24, 14, 9, .28)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 690px; color: #fff; }
.eyebrow { display: block; margin-bottom: 18px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.12; }
h1 { margin: 0 0 24px; font-size: clamp(44px, 6vw, 78px); letter-spacing: -.035em; }
.hero-copy > p { max-width: 600px; color: rgba(255,255,255,.9); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 23px; border-radius: 999px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: var(--white); background: var(--green); box-shadow: 0 12px 24px rgba(79, 125, 58, .24); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--wine); border: 1px solid rgba(143, 36, 16, .26); background: rgba(255,255,255,.82); }
.hero .secondary { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.hero .secondary:hover { background: rgba(255,255,255,.22); }

.intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: -34px auto 0; width: min(1120px, calc(100% - 44px)); position: relative; z-index: 5; overflow: hidden; border-radius: 20px; background: #ead8ca; box-shadow: var(--shadow); }
.intro div { padding: 27px; background: #fff; }
.intro strong, .intro span { display: block; }
.intro strong { margin-bottom: 5px; color: var(--wine); }
.intro span { color: var(--muted); font-size: 14px; }

.menu-section { padding: 120px clamp(22px, 7vw, 110px); }
.section-heading { max-width: 720px; margin: 0 auto 54px; text-align: center; }
h2 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.025em; }
.section-heading p { color: var(--muted); }
.menu-section .section-heading h2 { color: var(--wine); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1120px; margin: auto; }
.menu-card { position: relative; padding: 38px; background: #fff; border: 1px solid rgba(143,36,16,.1); border-radius: 24px; box-shadow: 0 12px 35px rgba(84,37,21,.07); }
.menu-card.featured { background: linear-gradient(145deg, #fff, #fff4e8); }
.menu-card h3 { margin: 8px 0 20px; color: var(--wine-dark); font-size: 29px; }
.menu-icon { color: var(--green); font-size: 28px; }
.menu-card ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.menu-card li { margin-bottom: 8px; break-inside: avoid; }
.menu-card .detail { margin: 18px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid #eadfd7; font-size: 14px; }

.products { padding: 110px clamp(22px, 7vw, 110px); background: #fff; }
.products .section-heading h2 { color: var(--wine); }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: auto; }
.product-item { position: relative; min-height: 360px; margin: 0; overflow: hidden; border-radius: 24px; background: #eee2d7; box-shadow: 0 14px 35px rgba(84,37,21,.12); }
.product-item img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; transition: transform .45s ease, filter .45s ease; filter: saturate(.93) contrast(1.03) brightness(1.02); }
.product-item:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.04) brightness(1.04); }
.product-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(35,20,13,.82)); pointer-events: none; }
.product-item figcaption { position: absolute; z-index: 2; right: 22px; bottom: 19px; left: 22px; color: #fff; font-family: "Playfair Display", serif; font-size: 25px; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.28); }

.about { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(48px, 8vw, 115px); padding: 110px clamp(22px, 8vw, 130px); background: #f2e2d5; }
.about-photo img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 32px 180px 32px 32px; box-shadow: var(--shadow); }
.about-copy { max-width: 620px; }
.about-copy p { color: var(--muted); font-size: 17px; }

.blog { padding: 110px clamp(22px, 7vw, 110px); background: #fffaf4; }
.blog .section-heading h2 { color: var(--wine); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: auto; }
.blog-card { padding: 38px; border: 1px solid rgba(143,36,16,.1); border-radius: 24px; background: #fff; box-shadow: 0 14px 35px rgba(84,37,21,.08); }
.blog-card:nth-child(2) { background: linear-gradient(145deg, #fff, #f3eadf); }
.blog-card h3 { margin: 12px 0 16px; color: var(--wine-dark); font-size: 29px; }
.blog-card p { margin: 0; color: var(--muted); }
.blog-note { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.order { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 90px clamp(22px, 8vw, 130px); color: #fff; background: linear-gradient(120deg, var(--wine-dark), var(--wine)); }
.order > div { max-width: 780px; }
.order h2 { max-width: 700px; }
.order p { color: rgba(255,255,255,.78); }
.light { color: #f8c680; }
.light-button { flex-shrink: 0; color: #fff; background: var(--green); }
.light-button:hover { background: var(--green-dark); }
.contact-actions { display: grid; flex-shrink: 0; justify-items: center; gap: 10px; }
.contact-actions span { color: rgba(255,255,255,.78); font-size: 13px; text-align: center; }

footer { display: grid; justify-items: center; padding: 48px 22px; text-align: center; background: #fffaf4; }
footer img { width: 130px; height: 88px; object-fit: contain; }
footer p { margin: 6px 0; color: var(--muted); }
.footer-tagline { color: var(--wine); font-weight: 700; }
.instagram-link { color: var(--wine); font-weight: 700; }

.footer-socials { display: flex; gap: 14px; margin-top: 14px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--wine); background: var(--peach); transition: .2s ease; }
.social-icon:hover { background: var(--wine); color: #fff; transform: translateY(-2px); }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 999; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--green); box-shadow: 0 14px 30px rgba(0,0,0,.22); transition: .2s ease; }
.whatsapp-float:hover { background: var(--green-dark); transform: translateY(-2px); }
.whatsapp-float-label { color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) {
  .whatsapp-float { width: 58px; height: 58px; padding: 0; justify-content: center; }
  .whatsapp-float-label { display: none; }
}

.single-recipe { max-width: 780px; margin: 0 auto; padding: 60px 22px 100px; }
.single-recipe-hero { margin: 0 -22px 34px; }
.single-recipe-hero img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; }
.single-recipe-content .eyebrow { display:block; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.single-recipe-content h1 { color: var(--wine); font-size: clamp(32px, 5vw, 46px); margin: 0 0 8px; }
.single-recipe-date { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.single-recipe-body { color: var(--ink); font-size: 17px; line-height: 1.8; }
.single-recipe-body h2 { color: var(--wine-dark); font-size: 26px; margin: 40px 0 14px; }
.single-recipe-body ul, .single-recipe-body ol { padding-left: 22px; }
.single-recipe-body li { margin-bottom: 8px; }
.single-recipe-body p { margin: 0 0 18px; }
.single-recipe-content .button { margin-top: 46px; }

@media (max-width: 850px) {
  .site-header { position: static; }
  nav a:not(:last-child) { display: none; }
  .hero { min-height: 760px; align-items: flex-end; padding-top: 90px; background-image: linear-gradient(0deg, rgba(25,16,11,.92) 0%, rgba(25,16,11,.52) 48%, rgba(25,16,11,.05) 78%), url("assets/michelle-hero.jpg"); background-position: 56% center; }
  .hero-copy { max-width: 620px; }
  .intro { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 560px; }
  .order { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .brand img { width: 86px; height: 54px; }
  .hero { min-height: 730px; padding: 80px 22px 62px; background-position: 56% center; }
  h1 { font-size: 42px; }
  .hero-copy > p { font-size: 16px; }
  .menu-section, .about, .blog { padding-top: 82px; padding-bottom: 82px; }
  .menu-card { padding: 28px; }
  .menu-card ul { columns: 1; }
  .products { padding-top: 82px; padding-bottom: 82px; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-item, .product-item img { min-height: 330px; }
}
