/*
Theme Name: Food Profit Tools
Theme URI: https://foodprofittools.com/
Author: Food Profit Tools
Author URI: https://foodprofittools.com/
Description: A lightweight, SEO-friendly WordPress theme for restaurant calculator and guide websites. Built for Food Profit Tools with accessible layouts, fast CSS, calculator page templates, and AdSense-ready content spacing.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: food-profit-tools-theme
Tags: custom-logo, custom-menu, one-column, two-columns, right-sidebar, accessibility-ready, blog, education
*/

:root {
  --fpt-green: #18392b;
  --fpt-green-2: #24513e;
  --fpt-gold: #f4a340;
  --fpt-gold-2: #f8c06b;
  --fpt-cream: #faf7f0;
  --fpt-cream-2: #fffdf8;
  --fpt-text: #1f2933;
  --fpt-muted: #64748b;
  --fpt-border: #e5e1d8;
  --fpt-white: #ffffff;
  --fpt-red: #b42318;
  --fpt-blue: #1d4ed8;
  --fpt-shadow: 0 18px 50px rgba(24, 57, 43, 0.10);
  --fpt-radius: 18px;
  --fpt-radius-sm: 12px;
  --fpt-content: 1120px;
  --fpt-narrow: 820px;
  --fpt-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fpt-text);
  font-family: var(--fpt-font);
  font-size: 17px;
  line-height: 1.65;
  background: var(--fpt-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--fpt-green-2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: #0f241b;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text,
.sr-only {
  position: absolute !important;
  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,
.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 99999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--fpt-white);
  background: var(--fpt-green);
  border-radius: 8px;
}

.fpt-container {
  width: min(100% - 40px, var(--fpt-content));
  margin-inline: auto;
}

.fpt-narrow {
  width: min(100% - 40px, var(--fpt-narrow));
  margin-inline: auto;
}

.fpt-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fpt-border);
}

.fpt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.fpt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fpt-green);
  text-decoration: none;
}

.fpt-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--fpt-green);
  background: var(--fpt-gold);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(244, 163, 64, 0.25);
}

.fpt-brand-name {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fpt-brand-tagline {
  display: block;
  margin-top: 2px;
  color: var(--fpt-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.fpt-nav-toggle {
  display: none;
  padding: 9px 12px;
  color: var(--fpt-green);
  background: var(--fpt-white);
  border: 1px solid var(--fpt-border);
  border-radius: 10px;
}

.fpt-menu,
.fpt-footer-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fpt-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--fpt-text);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 10px;
}

.fpt-menu a:hover,
.fpt-menu a:focus,
.fpt-menu .current-menu-item > a,
.fpt-menu .current_page_item > a {
  color: var(--fpt-green);
  background: rgba(24, 57, 43, 0.08);
}

.fpt-main {
  min-height: 62vh;
}

.fpt-hero {
  position: relative;
  padding: clamp(54px, 7vw, 92px) 0;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(244, 163, 64, 0.24), transparent 34%), linear-gradient(135deg, var(--fpt-cream), var(--fpt-cream-2));
}

.fpt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.fpt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  color: var(--fpt-green);
  background: rgba(244, 163, 64, 0.22);
  border: 1px solid rgba(244, 163, 64, 0.5);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.fpt-hero h1,
.entry-title {
  margin: 0 0 18px;
  color: var(--fpt-green);
  font-size: clamp(2.2rem, 5.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.fpt-hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #334155;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.fpt-button-row,
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.fpt-button,
.wp-block-button__link,
.fpt-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--fpt-white) !important;
  background: var(--fpt-green);
  border: 1px solid var(--fpt-green);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(24, 57, 43, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fpt-button:hover,
.fpt-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.fpt-card-button:hover,
.fpt-card-button:focus {
  color: var(--fpt-white) !important;
  background: #0f241b;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(24, 57, 43, 0.22);
}

.fpt-button-secondary,
.is-style-outline .wp-block-button__link {
  color: var(--fpt-green) !important;
  background: var(--fpt-white);
  border-color: rgba(24, 57, 43, 0.25);
  box-shadow: none;
}

.fpt-button-secondary:hover,
.fpt-button-secondary:focus,
.is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:focus {
  color: var(--fpt-green) !important;
  background: rgba(24, 57, 43, 0.08);
  box-shadow: none;
}

.fpt-hero-panel {
  padding: 26px;
  background: var(--fpt-white);
  border: 1px solid var(--fpt-border);
  border-radius: var(--fpt-radius);
  box-shadow: var(--fpt-shadow);
}

.fpt-mini-result {
  display: grid;
  gap: 14px;
}

.fpt-mini-result div {
  padding: 16px;
  background: var(--fpt-cream-2);
  border: 1px solid var(--fpt-border);
  border-radius: 14px;
}

.fpt-mini-result strong {
  display: block;
  color: var(--fpt-green);
  font-size: 1.45rem;
  line-height: 1.1;
}

.fpt-section {
  padding: clamp(44px, 6vw, 78px) 0;
}

.fpt-section-alt {
  background: var(--fpt-white);
  border-block: 1px solid var(--fpt-border);
}

.fpt-section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.fpt-section-header h2,
.entry-content h2 {
  margin: 0 0 12px;
  color: var(--fpt-green);
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.entry-content h3 {
  margin-top: 32px;
  color: var(--fpt-green);
  font-size: 1.35rem;
  line-height: 1.2;
}

.entry-content p,
.entry-content li {
  color: #334155;
}

.fpt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fpt-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fpt-card,
.wp-block-group.fpt-card {
  padding: 22px;
  background: var(--fpt-white);
  border: 1px solid var(--fpt-border);
  border-radius: var(--fpt-radius-sm);
  box-shadow: 0 10px 30px rgba(24, 57, 43, 0.06);
}

.fpt-card h3,
.fpt-card h2 {
  margin-top: 0;
  color: var(--fpt-green);
  font-size: 1.22rem;
  line-height: 1.25;
}

.fpt-card p {
  margin-bottom: 16px;
}

.fpt-card-button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.92rem;
  box-shadow: none;
}

.fpt-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.fpt-trust-item {
  padding: 16px;
  color: var(--fpt-green);
  background: rgba(244, 163, 64, 0.18);
  border: 1px solid rgba(244, 163, 64, 0.45);
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
}

.fpt-page-header {
  padding: clamp(40px, 6vw, 72px) 0 28px;
  background: linear-gradient(135deg, rgba(244, 163, 64, 0.18), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--fpt-border);
}

.fpt-page-header .entry-title {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.fpt-page-description {
  max-width: 780px;
  margin: 0;
  color: #334155;
  font-size: 1.12rem;
}

.fpt-content-wrap {
  padding: 42px 0 72px;
}

.fpt-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.fpt-calculator-layout .fpt-content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.fpt-entry-card {
  padding: clamp(22px, 4vw, 38px);
  background: var(--fpt-white);
  border: 1px solid var(--fpt-border);
  border-radius: var(--fpt-radius);
  box-shadow: var(--fpt-shadow);
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.96rem;
  background: var(--fpt-white);
  border: 1px solid var(--fpt-border);
  border-radius: 12px;
  overflow: hidden;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--fpt-border);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  color: var(--fpt-green);
  background: var(--fpt-cream);
}

.entry-content tr:last-child td {
  border-bottom: 0;
}

.entry-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  color: var(--fpt-green);
  background: rgba(244, 163, 64, 0.16);
  border-left: 5px solid var(--fpt-gold);
  border-radius: 0 12px 12px 0;
}

.fpt-callout,
.fpt-disclaimer-box,
.fpt-seo-note {
  padding: 18px 20px;
  margin: 24px 0;
  background: var(--fpt-cream);
  border: 1px solid var(--fpt-border);
  border-radius: var(--fpt-radius-sm);
}

.fpt-disclaimer-box {
  color: #475569;
  font-size: 0.95rem;
}

.fpt-faq {
  margin-top: 26px;
}

.fpt-faq details {
  padding: 16px 18px;
  margin: 10px 0;
  background: var(--fpt-cream-2);
  border: 1px solid var(--fpt-border);
  border-radius: 12px;
}

.fpt-faq summary {
  color: var(--fpt-green);
  font-weight: 800;
  cursor: pointer;
}

.fpt-faq details p {
  margin-bottom: 0;
}

.fpt-related {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--fpt-border);
}

.fpt-related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-left: 20px;
}

.fpt-sidebar {
  position: sticky;
  top: 100px;
}

.fpt-sidebar-card {
  padding: 20px;
  margin-bottom: 18px;
  background: var(--fpt-white);
  border: 1px solid var(--fpt-border);
  border-radius: var(--fpt-radius-sm);
  box-shadow: 0 8px 28px rgba(24, 57, 43, 0.06);
}

.fpt-sidebar-card h2,
.fpt-sidebar-card h3 {
  margin-top: 0;
  color: var(--fpt-green);
  font-size: 1.05rem;
}

.fpt-sidebar-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.fpt-toc a {
  color: var(--fpt-text);
  text-decoration: none;
}

.fpt-toc a:hover,
.fpt-toc a:focus {
  color: var(--fpt-green);
  text-decoration: underline;
}

.fpt-ad-zone {
  display: block;
  min-height: 120px;
  margin: 28px 0;
  padding: 14px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-size: 0.88rem;
}

.fpt-ad-zone[aria-hidden="true"] {
  display: none;
}

.fpt-breadcrumbs {
  margin-bottom: 16px;
  color: var(--fpt-muted);
  font-size: 0.9rem;
}

.fpt-breadcrumbs a {
  color: var(--fpt-muted);
  text-decoration: none;
}

.fpt-breadcrumbs a:hover,
.fpt-breadcrumbs a:focus {
  color: var(--fpt-green);
  text-decoration: underline;
}

.fpt-site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--fpt-green);
}

.fpt-footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 46px 0;
}

.fpt-site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.fpt-site-footer a:hover,
.fpt-site-footer a:focus {
  color: var(--fpt-gold-2);
}

.fpt-footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.fpt-footer-menu {
  display: block;
}

.fpt-footer-menu li {
  margin: 5px 0;
}

.fpt-footer-menu a {
  text-decoration: none;
}

.fpt-footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.fpt-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.alignwide {
  width: min(100%, var(--fpt-content));
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (max-width: 920px) {
  .fpt-nav-toggle {
    display: inline-flex;
  }

  .fpt-primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 14px 20px 22px;
    background: var(--fpt-cream);
    border-bottom: 1px solid var(--fpt-border);
  }

  .fpt-primary-nav.is-open {
    display: block;
  }

  .fpt-menu {
    display: grid;
    gap: 4px;
  }

  .fpt-menu a {
    width: 100%;
  }

  .fpt-hero-grid,
  .fpt-content-grid,
  .fpt-calculator-layout .fpt-content-grid,
  .fpt-footer-main {
    grid-template-columns: 1fr;
  }

  .fpt-sidebar {
    position: static;
  }

  .fpt-grid,
  .fpt-grid-two,
  .fpt-trust-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .fpt-container,
  .fpt-narrow {
    width: min(100% - 28px, var(--fpt-content));
  }

  .fpt-header-inner {
    min-height: 66px;
  }

  .fpt-brand-mark {
    width: 38px;
    height: 38px;
  }

  .fpt-brand-tagline {
    display: none;
  }

  .fpt-grid,
  .fpt-grid-two,
  .fpt-trust-strip,
  .fpt-related ul {
    grid-template-columns: 1fr;
  }

  .fpt-entry-card {
    padding: 18px;
    border-radius: 14px;
  }

  .fpt-footer-bottom-inner {
    display: block;
  }
}

@media print {
  .fpt-site-header,
  .fpt-site-footer,
  .fpt-sidebar,
  .fpt-button-row,
  .fpt-ad-zone {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .fpt-entry-card,
  .fpt-card {
    box-shadow: none !important;
    border-color: #ccc;
  }
}
