/* Theme Name: FlavorFlow
Theme URI: https://flavorflow.ai
Author: FlavorFlow
Author URI: https://flavorflow.ai
Description: Custom theme for FlavorFlow — Financial Strategy & Operations for Independent Restaurants.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavorflow
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --dark: #1B2A3D;
  --teal: #0D7377;
  --teal-light: #14A3A8;
  --gold: #D4952A;
  --gold-light: #E8B04A;
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --charcoal: #2D3436;
  --gray: #6B7280;
  --light-gray: #E5E7EB;
  --bg: #FAFBFD;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--teal); color: white; }

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.2s; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 56px); color: var(--white); }
h2 { font-size: clamp(24px, 3.5vw, 40px); color: var(--dark); }
h3 { font-size: 20px; color: var(--dark); }
p { margin-bottom: 16px; }

.section-label {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--teal-light); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 17px; color: var(--gray); max-width: 600px;
  margin: 0 auto 48px; line-height: 1.6; text-align: center;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-blog { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 24px; }
.section--dark { background: var(--dark); }
.section--bg { background: var(--bg); }
.section--white { background: var(--white); }
.section--teal { background: linear-gradient(135deg, var(--teal), var(--teal-light)); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.text-center { text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s ease; padding: 16px 0;
}
.site-nav.scrolled {
  background: rgba(27,42,61,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13,115,119,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
}
.nav-brand-text {
  font-weight: 700; font-size: 16px; color: white; letter-spacing: 2px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--teal-light); border-bottom-color: var(--teal-light);
}
.nav-cta {
  background: var(--teal); border: none; border-radius: 6px; padding: 8px 20px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  color: white; cursor: pointer; transition: all 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(27,42,61,0.98);
    padding: 24px; gap: 16px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0f1f2e 50%, var(--dark) 100%);
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,115,119,0.15) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -50px; left: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,149,42,0.1) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: rgba(13,115,119,0.15); border: 1px solid rgba(13,115,119,0.3);
  font-size: 13px; font-weight: 600; color: var(--teal-light); margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--teal-light); }
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.7;
  margin-bottom: 40px; max-width: 540px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; margin-top: 80px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stats .stat-num {
  font-family: 'Libre Baskerville', serif; font-size: 28px;
  font-weight: 700; color: var(--gold); margin-bottom: 4px;
}
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block; border: none; border-radius: 8px; padding: 14px 32px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: white; }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: white; }
.btn--white { background: white; color: var(--teal); font-weight: 700; }
.btn--full { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white; border-radius: 12px; padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease;
}
.card:hover { box-shadow: 0 12px 40px rgba(13,115,119,0.12); transform: translateY(-4px); }
.card-icon { font-size: 28px; margin-bottom: 16px; display: block; }
.card h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 0; }

/* Service tier cards */
.tier-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eee;
}
.tier-card.featured {
  box-shadow: 0 8px 32px rgba(13,115,119,0.15);
  border: 2px solid var(--teal); transform: scale(1.02);
}
.tier-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.tier-header h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; color: white; }
.tier-badge {
  background: rgba(255,255,255,0.2); border-radius: 12px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: white;
}
.tier-body { padding: 24px; }
.tier-body p { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 20px; }
.tier-item { display: flex; gap: 10px; margin-bottom: 12px; }
.tier-item .check { color: var(--teal); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.tier-item span { font-size: 14px; color: var(--charcoal); }

/* Credential cards (dark bg) */
.cred-card {
  padding: 28px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.cred-card-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.cred-card h3 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: white; margin-bottom: 8px; }
.cred-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 0; }

/* Credential list (about page) */
.cred-list-item {
  padding: 24px; border-radius: 10px; background: white;
  border: 1px solid #eee; border-left: 4px solid var(--teal); margin-bottom: 16px;
}
.cred-list-item h4 {
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--dark); margin-bottom: 6px;
}
.cred-list-item p { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 0; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 16px; font-weight: 700; color: white;
}
.step h4 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray); line-height: 1.6; margin-bottom: 0; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
  background: white; border-radius: 12px; padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s;
  margin-bottom: 24px;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.blog-card a { display: block; }
.blog-meta { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.blog-category {
  background: rgba(13,115,119,0.08); color: var(--teal); padding: 4px 12px;
  border-radius: 12px; font-size: 12px; font-weight: 600;
}
.blog-date { font-size: 13px; color: var(--gray); }
.blog-card h2 {
  font-family: 'Libre Baskerville', serif; font-size: 22px; font-weight: 700;
  color: var(--dark); margin-bottom: 8px; line-height: 1.3;
}
.blog-card h2 a:hover { color: var(--teal); }
.blog-excerpt { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 12px; }
.blog-read-more { font-size: 14px; font-weight: 600; color: var(--teal); }

/* Single blog post */
.blog-post-content {
  background: white; border-radius: 12px; padding: 48px 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.blog-post-content h2 {
  font-family: 'Libre Baskerville', serif; font-size: 22px;
  color: var(--dark); margin: 32px 0 12px; line-height: 1.3;
}
.blog-post-content p {
  font-size: 16px; color: var(--charcoal); line-height: 1.8; margin-bottom: 16px;
}
.blog-post-content strong { font-weight: 700; color: var(--dark); }

@media (max-width: 768px) {
  .blog-post-content { padding: 32px 20px; }
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #0f1f2e 100%);
  padding: 140px 24px 80px; text-align: center;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 18px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--light-gray); font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--charcoal); outline: none;
  transition: border-color 0.2s; margin-bottom: 16px;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--teal);
}
.contact-form textarea { resize: vertical; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 64px 24px; text-align: center; }
.cta-band h2 { font-family: 'Libre Baskerville', serif; font-size: 28px; color: white; margin-bottom: 12px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark); padding: 64px 24px 32px;
  border-top: 1px solid rgba(13,115,119,0.2);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}
.footer-heading {
  font-size: 13px; font-weight: 600; color: var(--teal-light);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.footer-link {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6);
  padding: 3px 0; transition: color 0.2s;
}
.footer-link:hover { color: var(--teal-light); }
.footer-text { font-size: 14px; color: rgba(255,255,255,0.6); margin: 4px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--gray); margin: 0; }

/* ============================================================
   ECOSYSTEM CARDS (About)
   ============================================================ */
.eco-card { border-radius: 12px; padding: 32px; background: white; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.eco-card--teal { border-top: 4px solid var(--teal); }
.eco-card--gold { border-top: 4px solid var(--gold); }
.eco-card h3 { font-family: 'DM Sans', sans-serif; margin-bottom: 8px; }

/* ============================================================
   WHAT TO EXPECT (Contact)
   ============================================================ */
.expect-item { display: flex; gap: 10px; margin-bottom: 8px; }
.expect-item .check { color: var(--teal); font-weight: 700; font-size: 14px; }
.expect-item span { font-size: 14px; color: var(--gray); }

/* ============================================================
   WP OVERRIDES
   ============================================================ */
.wp-block-post-content p { margin-bottom: 16px; }
.entry-content p { font-size: 16px; line-height: 1.8; color: var(--charcoal); }
.entry-content h2 { margin: 32px 0 12px; }
.entry-content h3 { margin: 24px 0 8px; }
