/*
Theme Name: Retail Refrigerator
Theme URI: https://retailrefrigerator.com
Author: Retail Refrigerator
Description: A fast, editorial WordPress theme for retail refrigeration, merchandisers, buying guides, and industry insights.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: retail-refrigerator
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, custom-logo, featured-images, accessibility-ready, translation-ready
*/

:root {
  --navy: #0b2137;
  --navy-2: #133652;
  --ice: #eef8fb;
  --blue: #0c78a5;
  --cyan: #21b7c8;
  --green: #85bd3f;
  --ink: #142432;
  --muted: #607482;
  --line: #d8e4e9;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 33, 55, .1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: var(--navy); }

.top-strip { background: var(--navy); color: #c9dae5; font-size: .8rem; letter-spacing: .045em; text-transform: uppercase; }
.top-strip .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; }
.top-strip a { color: #fff; text-decoration: none; }
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--blue), var(--cyan)); border-radius: 12px; box-shadow: 0 8px 20px rgba(12,120,165,.2); }
.brand-mark svg { width: 24px; }
.custom-logo { max-height: 52px; width: auto; }
.site-title { color: var(--navy); font-size: 1.08rem; font-weight: 850; line-height: 1.05; text-decoration: none; letter-spacing: -.02em; }
.site-title span { display: block; color: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-top: 4px; }
.menu-toggle { display: none; border: 0; padding: 10px; background: transparent; color: var(--navy); cursor: pointer; }
.primary-menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--ink); font-size: .94rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--blue); }
.header-search { width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); background: var(--ice); border-radius: 50%; text-decoration: none; }

.hero { overflow: hidden; position: relative; padding: 78px 0 72px; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(33,183,200,.3), transparent 30%), linear-gradient(130deg, #071b2c 0%, #0d3854 62%, #0b5c72 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to left, #000, transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: .77rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #86e8f1; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero h1 { max-width: 720px; margin: 18px 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.04; letter-spacing: -.055em; }
.hero h1 em { color: #8ee5ed; font-style: normal; }
.hero-copy { max-width: 660px; color: #d1e1e9; font-size: 1.12rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 9px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button:hover { color: #fff; transform: translateY(-2px); background: #08698f; }
.button-light { color: var(--navy); background: #fff; border-color: #fff; }
.button-light:hover { color: var(--navy); background: #e9f8fb; }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.hero-panel { padding: 26px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 800; }
.live-dot { width: 9px; height: 9px; display: inline-block; margin-right: 7px; background: #9bd756; border-radius: 50%; box-shadow: 0 0 0 6px rgba(155,215,86,.13); }
.topic-list { display: grid; gap: 10px; }
.topic-item { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; padding: 14px; color: #fff; background: rgba(5,24,39,.4); border-radius: 13px; text-decoration: none; }
.topic-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #8ee5ed; background: rgba(255,255,255,.08); border-radius: 10px; font-size: 1.3rem; }
.topic-item strong { display: block; }
.topic-item small { color: #aac5d2; }

.section { padding-block: 72px; }
.section-soft { background: var(--ice); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head h2 { margin: 6px 0 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; }
.section-head p { max-width: 550px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 230px; padding: 25px; overflow: hidden; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: .2s ease; }
.category-card:hover { color: var(--navy); transform: translateY(-5px); box-shadow: var(--shadow); border-color: #b9dce7; }
.category-card::after { content: ""; position: absolute; right: -38px; bottom: -55px; width: 140px; height: 140px; background: var(--ice); border-radius: 50%; }
.category-number { color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.category-card h3 { margin: 42px 0 8px; font-size: 1.25rem; line-height: 1.2; }
.category-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.category-arrow { position: absolute; z-index: 1; right: 24px; bottom: 22px; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16/10; display: block; overflow: hidden; background: linear-gradient(145deg, #c8e8ef, #eff8fa); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.035); }
.placeholder-thumb { height: 100%; display: grid; place-items: center; color: rgba(11,33,55,.35); }
.placeholder-thumb svg { width: 70px; }
.post-card-content { padding: 23px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post-meta a { color: var(--blue); text-decoration: none; }
.post-card h2, .post-card h3 { margin: 10px 0; color: var(--navy); font-size: 1.27rem; line-height: 1.3; letter-spacing: -.02em; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-excerpt { color: var(--muted); font-size: .93rem; }
.read-more { display: inline-flex; gap: 7px; align-items: center; margin-top: 9px; font-size: .88rem; font-weight: 800; text-decoration: none; }

.newsletter { padding: 46px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2)); border-radius: 24px; }
.newsletter h2 { margin: 0 0 8px; font-size: 2rem; line-height: 1.15; }
.newsletter p { margin: 0; color: #bfd1dc; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { width: 280px; min-height: 48px; padding: 0 15px; color: var(--ink); background: #fff; border: 0; border-radius: 8px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 52px; padding-block: 58px 80px; }
.page-header { padding: 56px 0; background: var(--ice); border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 8px 0 0; color: var(--navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.04em; }
.archive-description { max-width: 720px; color: var(--muted); }
.archive-posts { display: grid; gap: 25px; }
.content-layout .archive-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.single-article h1 { margin: 13px 0 18px; color: var(--navy); font-size: clamp(2.25rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.single-article .featured-image { margin: 32px 0; overflow: hidden; border-radius: 22px; }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.entry-content > * { max-width: 760px; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy); font-family: system-ui, sans-serif; line-height: 1.25; letter-spacing: -.025em; }
.entry-content h2 { margin-top: 2.1em; font-size: 1.8rem; }
.entry-content blockquote { margin: 32px 0; padding: 20px 25px; color: var(--navy); background: var(--ice); border-left: 4px solid var(--cyan); font-size: 1.2rem; }
.entry-content img { border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: .92rem; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--ice); }
.tag-links { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-links a { display: inline-block; margin: 4px; padding: 5px 10px; color: var(--navy); background: var(--ice); border-radius: 6px; font-size: .78rem; text-decoration: none; }

.sidebar { display: grid; align-content: start; gap: 24px; }
.widget { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.widget-title { margin: 0 0 15px; color: var(--navy); font-size: 1rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }
.widget a { color: var(--ink); text-decoration: none; }
.search-form { display: flex; }
.search-field { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.search-submit { padding: 0 15px; color: #fff; background: var(--blue); border: 0; border-radius: 0 8px 8px 0; cursor: pointer; }
.pagination { margin-top: 35px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; color: var(--navy); background: var(--ice); border-radius: 7px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--blue); }

.site-footer { color: #b9ccd7; background: #071a2a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; padding-block: 60px; }
.footer-brand { color: #fff; font-size: 1.2rem; font-weight: 850; }
.footer-about { max-width: 350px; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: .9rem; letter-spacing: .07em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #b9ccd7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; }

.error-404 { padding: 110px 0; text-align: center; }
.error-code { color: var(--blue); font-size: 7rem; font-weight: 900; line-height: 1; }
.no-results { padding: 30px; background: var(--ice); border-radius: var(--radius); }

@media (max-width: 960px) {
  .hero-grid, .content-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 650px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; }
  .main-navigation { margin-left: auto; }
  .menu-toggle { display: block; }
  .primary-menu { position: absolute; top: 100%; right: 20px; width: min(330px, calc(100% - 40px)); display: none; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .primary-menu.is-open { display: grid; gap: 4px; }
  .primary-menu a { display: block; padding: 9px; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .top-strip .wrap span:last-child, .header-search { display: none; }
  .site-branding { min-width: 0; }
  .hero { padding-block: 58px; }
  .hero-grid { gap: 35px; }
  .hero h1 { font-size: 2.65rem; }
  .section { padding-block: 52px; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .posts-grid, .footer-grid { grid-template-columns: 1fr; }
  .content-layout .archive-posts { grid-template-columns: 1fr; }
  .newsletter { padding: 28px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
  .footer-grid { gap: 30px; }
  .footer-bottom .wrap { flex-direction: column; }
  .admin-bar .site-header { top: 46px; }
}

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