/*
Theme Name: Malaysia Food Records
Theme URI: https://malaysiafoodrecords.com/
Author: Malaysia Food Records
Author URI: https://malaysiafoodrecords.com/
Description: A custom responsive WordPress theme for Malaysia Food Records, designed to showcase verified food achievements, culinary heritage, innovation and record holders across Malaysia.
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: malaysia-food-records
Tags: custom-logo, custom-menu, featured-images, responsive-layout, food-and-drink, one-column, two-columns
*/

:root {
  --mfr-red: #a82126;
  --mfr-red-dark: #741216;
  --mfr-gold: #c99b39;
  --mfr-cream: #f8f3e8;
  --mfr-ink: #171717;
  --mfr-muted: #6b6b6b;
  --mfr-white: #ffffff;
  --mfr-border: #e7dfcf;
  --mfr-shadow: 0 18px 60px rgba(55, 30, 12, .10);
  --mfr-radius: 22px;
  --mfr-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mfr-ink);
  background: #fffdf9;
  line-height: 1.65;
}
a { color: var(--mfr-red); text-decoration: none; }
a:hover { color: var(--mfr-red-dark); }
img { max-width: 100%; height: auto; }

.mfr-container { width: min(calc(100% - 40px), var(--mfr-max)); margin-inline: auto; }
.mfr-section { padding: 88px 0; }
.mfr-section--soft { background: var(--mfr-cream); }
.mfr-section--dark { color: var(--mfr-white); background: #1f1713; }
.mfr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mfr-gold);
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-size: .78rem;
}
.mfr-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.mfr-heading {
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.mfr-lead { max-width: 760px; color: var(--mfr-muted); font-size: 1.08rem; }
.mfr-section--dark .mfr-lead { color: #d8cec5; }

.mfr-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(168, 33, 38, .09);
}
.mfr-nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mfr-brand { display: flex; align-items: center; gap: 12px; color: var(--mfr-ink); }
.mfr-brand img, .custom-logo { max-height: 56px; width: auto; }
.mfr-brand-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: white; font-family: Georgia, serif; font-weight: 700;
  background: linear-gradient(145deg, var(--mfr-red), var(--mfr-red-dark));
  box-shadow: 0 8px 24px rgba(168, 33, 38, .24);
}
.mfr-brand-text strong { display: block; font-family: Georgia, serif; font-size: 1.06rem; }
.mfr-brand-text span { display: block; font-size: .69rem; letter-spacing: .11em; color: var(--mfr-gold); text-transform: uppercase; font-weight: 800; }
.mfr-menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.mfr-menu a { color: #312824; font-weight: 700; font-size: .92rem; }
.mfr-menu a:hover { color: var(--mfr-red); }
.mfr-header-cta, .mfr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.mfr-header-cta, .mfr-button--primary { color: white; background: var(--mfr-red); box-shadow: 0 10px 25px rgba(168, 33, 38, .18); }
.mfr-header-cta:hover, .mfr-button--primary:hover { color: white; background: var(--mfr-red-dark); transform: translateY(-2px); }
.mfr-button--ghost { color: var(--mfr-ink); background: rgba(255,255,255,.76); border-color: var(--mfr-border); }
.mfr-button--ghost:hover { background: white; transform: translateY(-2px); }
.mfr-mobile-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.mfr-hero {
  overflow: hidden;
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 83% 20%, rgba(201,155,57,.25), transparent 24%),
    radial-gradient(circle at 10% 90%, rgba(168,33,38,.14), transparent 30%),
    linear-gradient(135deg, #fffaf0 0%, #f8efe1 52%, #fffdf9 100%);
}
.mfr-hero::after {
  content: "MFR";
  position: absolute;
  right: -3vw;
  bottom: -15vh;
  color: rgba(168, 33, 38, .045);
  font-family: Georgia, serif;
  font-size: min(44vw, 580px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.mfr-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; gap: 68px; align-items: center; }
.mfr-hero h1 {
  margin: 14px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: .94;
  letter-spacing: -.045em;
}
.mfr-hero h1 span { color: var(--mfr-red); }
.mfr-hero p { max-width: 720px; font-size: 1.1rem; color: #665a52; }
.mfr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mfr-stat-panel {
  position: relative;
  background: rgba(255,255,255,.83);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--mfr-shadow);
  border-radius: 34px;
  padding: 30px;
}
.mfr-stat-panel::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201,155,57,.28); border-radius: 25px; pointer-events: none;
}
.mfr-medallion {
  position: relative;
  width: 150px; height: 150px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; text-align:center;
  color: white; background: radial-gradient(circle at 35% 30%, #cb343b, var(--mfr-red-dark) 70%);
  box-shadow: 0 20px 40px rgba(116,18,22,.25), inset 0 0 0 7px rgba(255,255,255,.12), inset 0 0 0 9px rgba(201,155,57,.6);
  font-family: Georgia, serif;
}
.mfr-medallion strong { display:block; font-size: 2.4rem; line-height: 1; }
.mfr-medallion span { display:block; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; }
.mfr-hero-checks { position: relative; display: grid; gap: 12px; }
.mfr-hero-checks div { display:flex; gap:10px; align-items:flex-start; padding: 13px 15px; background:#fffaf1; border-radius:14px; }
.mfr-check { color: var(--mfr-red); font-weight: 900; }

.mfr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.mfr-card {
  background: white;
  border: 1px solid var(--mfr-border);
  border-radius: var(--mfr-radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(64, 39, 18, .05);
}
.mfr-card h3 { margin: 10px 0 8px; font-family: Georgia, serif; font-size: 1.35rem; }
.mfr-card p { margin: 0; color: var(--mfr-muted); }
.mfr-card-icon { width: 46px; height: 46px; border-radius: 14px; display:grid; place-items:center; background:#fbefe9; color:var(--mfr-red); font-weight:900; }

.mfr-pill-grid { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.mfr-pill { padding: 10px 15px; border-radius:999px; background:white; border:1px solid var(--mfr-border); font-weight:700; color:#493e36; }

.mfr-steps { counter-reset: mfrstep; display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-top:40px; }
.mfr-step { counter-increment:mfrstep; background:white; border:1px solid var(--mfr-border); border-radius:20px; padding:23px; }
.mfr-step::before { content: "0" counter(mfrstep); display:block; color:var(--mfr-gold); font-weight:900; letter-spacing:.08em; margin-bottom:22px; }
.mfr-step h3 { margin:0 0 8px; font-size:1rem; }
.mfr-step p { margin:0; color:var(--mfr-muted); font-size:.92rem; }

.mfr-record-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:36px; }
.mfr-record-card { overflow:hidden; background:white; border:1px solid var(--mfr-border); border-radius:var(--mfr-radius); }
.mfr-record-card__image { aspect-ratio: 16/10; background:linear-gradient(145deg,#efe1cf,#fffaf1); overflow:hidden; }
.mfr-record-card__image img { width:100%; height:100%; object-fit:cover; }
.mfr-record-card__body { padding:24px; }
.mfr-record-card__meta { color:var(--mfr-gold); font-weight:800; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.mfr-record-card h3 { margin:8px 0 7px; font-family:Georgia,serif; font-size:1.35rem; }
.mfr-record-card p { margin:0; color:var(--mfr-muted); }

.mfr-cta {
  padding: 46px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--mfr-red), #7f151a 60%, #501013);
  color:white;
  box-shadow:0 24px 70px rgba(116,18,22,.25);
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:30px;
}
.mfr-cta h2 { margin:0 0 9px; font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.2rem); }
.mfr-cta p { margin:0; color:#f3dede; max-width:720px; }
.mfr-cta .mfr-button { background:white; color:var(--mfr-red); }

.mfr-site-footer { background:#160f0d; color:#d8cec5; padding:60px 0 24px; }
.mfr-footer-grid { display:grid; grid-template-columns:1.45fr .8fr .8fr; gap:48px; padding-bottom:40px; }
.mfr-site-footer h4 { color:white; margin-top:0; }
.mfr-site-footer a { color:#d8cec5; }
.mfr-site-footer a:hover { color:white; }
.mfr-footer-menu { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.mfr-footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:22px; display:flex; justify-content:space-between; gap:20px; font-size:.88rem; }
.mfr-footer-brand { color:white; font-family:Georgia,serif; font-size:1.4rem; margin-bottom:10px; }

.mfr-page-hero { padding:90px 0 70px; background:linear-gradient(135deg,#fff7ec,#f6ead7); }
.mfr-content { padding:65px 0; }
.mfr-content article { max-width:850px; }
.mfr-content h1,.mfr-content h2,.mfr-content h3 { font-family:Georgia,serif; }
.mfr-content h2 { margin-top:2em; }

.mfr-form { display:grid; gap:17px; max-width:760px; }
.mfr-field { display:grid; gap:7px; }
.mfr-field label { font-weight:800; }
.mfr-field input,.mfr-field textarea,.mfr-field select { width:100%; padding:14px 15px; border:1px solid #d9d0c4; border-radius:12px; font:inherit; background:white; }
.mfr-field textarea { min-height:150px; }

@media (max-width: 980px) {
  .mfr-menu, .mfr-header-cta { display:none; }
  .mfr-mobile-toggle { display:block; }
  .mfr-menu.is-open { display:flex; position:absolute; left:20px; right:20px; top:76px; flex-direction:column; align-items:stretch; background:white; padding:20px; border:1px solid var(--mfr-border); border-radius:18px; box-shadow:var(--mfr-shadow); }
  .mfr-hero-grid, .mfr-footer-grid { grid-template-columns:1fr; }
  .mfr-stat-panel { max-width:620px; }
  .mfr-cards, .mfr-record-grid { grid-template-columns:repeat(2,1fr); }
  .mfr-steps { grid-template-columns:repeat(2,1fr); }
  .mfr-cta { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
  .mfr-container { width:min(calc(100% - 28px), var(--mfr-max)); }
  .mfr-section { padding:64px 0; }
  .mfr-hero { min-height:auto; padding:72px 0; }
  .mfr-hero h1 { font-size:clamp(3rem,15vw,4.7rem); }
  .mfr-cards, .mfr-record-grid, .mfr-steps { grid-template-columns:1fr; }
  .mfr-cta { padding:30px; }
  .mfr-footer-bottom { flex-direction:column; }
  .mfr-brand-text span { display:none; }
}
