/*
Theme Name: CMMS Review
Theme URI: https://cmmsreview.com.au
Author: CMMS Review
Author URI: https://cmmsreview.com.au
Description: Custom theme for CMMS Review - Australia's #1 independent CMMS review platform. Includes homepage, platform directory, feature comparisons, and industry guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: cmmsreview
Tags: business, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ── CSS VARIABLES ── */
:root {
  --navy: #1B3A6B;
  --navy-dark: #122952;
  --navy-light: #2A4F8F;
  --teal: #2BBFA4;
  --teal-dark: #1FA08A;
  --teal-light: #3DD4B8;
  --teal-pale: #E8F9F6;
  --navy-pale: #EEF2F9;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --gold: #F59E0B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--gray-700);
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-dark); }

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

/* ── TOPBAR ── */
.site-topbar {
  background: var(--navy-dark);
  padding: 8px 0;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.site-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-links a { color: rgba(255,255,255,.7); margin-left: 18px; font-size: 12px; }
.topbar-links a:hover { color: var(--teal-light); }

/* ── NAVIGATION ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-wrapper { display: flex; align-items: center; height: 64px; gap: 4px; }
.site-logo img { height: 36px; width: auto; }
.site-logo-text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
}
.site-logo-text span { color: var(--teal); }
.main-navigation { flex: 1; }
.main-navigation ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-navigation ul li a {
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  display: block;
  transition: all .15s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: var(--navy-pale);
  color: var(--navy);
}
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: all .15s; border: 2px solid transparent;
  white-space: nowrap; font-family: 'Nunito Sans', sans-serif;
}
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43,191,164,.35); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--gray-100); color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 10px; }

/* ── HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 52px; background: var(--gray-50);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(43,191,164,.15); border: 1px solid rgba(43,191,164,.3);
  color: var(--teal-light); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900; color: #fff;
  line-height: 1.1; margin-bottom: 18px; letter-spacing: -.5px;
}
.hero-title span { color: var(--teal-light); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,.72); max-width: 640px; margin-bottom: 32px; line-height: 1.7; }
.hero-search {
  max-width: 580px; display: flex;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2); overflow: hidden;
  border: 2px solid transparent; transition: border-color .2s; margin-bottom: 36px;
}
.hero-search:focus-within { border-color: var(--teal); }
.hero-search input { flex: 1; border: none; outline: none; padding: 16px 20px; font-size: 15px; font-family: 'Nunito Sans', sans-serif; color: var(--gray-700); }
.hero-search button { background: var(--teal); border: none; cursor: pointer; padding: 16px 22px; color: #fff; font-weight: 700; font-family: 'Nunito Sans', sans-serif; transition: background .15s; }
.hero-search button:hover { background: var(--teal-dark); }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat-num { font-family: 'Nunito', sans-serif; font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.55); }

/* ── SECTIONS ── */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 10px; }
.section-title { font-family: 'Nunito', sans-serif; font-size: clamp(22px, 3vw, 34px); font-weight: 900; color: var(--gray-900); margin-bottom: 10px; letter-spacing: -.3px; }
.section-subtitle { color: var(--gray-500); font-size: 16px; max-width: 560px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── PLATFORM CARDS ── */
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1200px) { .platforms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .platforms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .platforms-grid { grid-template-columns: 1fr; } }

.platform-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: all .2s; position: relative;
}
.platform-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gray-300); }
.platform-card.featured { border-color: var(--teal); border-width: 2px; }
.platform-card.new-listing { border-top: 3px solid var(--gold); }
.platform-card .editors-badge { position: absolute; top: 10px; right: 10px; background: var(--teal); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 20px; }
.platform-card .new-badge { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 20px; }
.card-top { padding: 18px 18px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-logo { width: 54px; height: 54px; border-radius: 11px; border: 1px solid var(--gray-200); background: var(--gray-50); overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.card-score { text-align: right; }
.score-num { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900; line-height: 1; color: var(--navy); }
.platform-card.featured .score-num { color: var(--teal-dark); }
.platform-card.new-listing .score-num { color: var(--gold); }
.score-label { font-size: 10px; color: var(--gray-400); font-weight: 600; }
.card-body { padding: 12px 18px 14px; flex: 1; display: flex; flex-direction: column; }
.card-name { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 900; color: var(--gray-900); margin-bottom: 2px; }
.card-type { font-size: 11px; color: var(--gray-500); margin-bottom: 8px; }
.card-stars { display: flex; gap: 2px; align-items: center; margin-bottom: 9px; }
.star { color: var(--gold); font-size: 12px; }
.star-dim { color: var(--gray-200); font-size: 12px; }
.review-count { font-size: 11px; color: var(--gray-400); margin-left: 4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.tag-teal { background: var(--teal-pale); color: var(--teal-dark); }
.tag-navy { background: var(--navy-pale); color: var(--navy); }
.tag-green { background: #D1FAE5; color: #065F46; }
.tag-purple { background: #F5F3FF; color: #6D28D9; }
.tag-gold { background: #FEF3C7; color: #92400E; }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }
.card-desc { font-size: 12px; color: var(--gray-600); line-height: 1.65; margin-bottom: 10px; flex: 1; }
.card-pricing { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 7px; padding: 7px 10px; font-size: 11px; color: var(--gray-600); margin-bottom: 10px; }
.card-pricing strong { color: var(--gray-900); }
.card-footer { padding: 10px 18px 13px; border-top: 1px solid var(--gray-100); background: var(--gray-50); display: flex; align-items: center; gap: 6px; }
.industry-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 3px; }
.industry-chip { background: var(--gray-100); color: var(--gray-500); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }

/* ── CATEGORY LABEL ── */
.cat-label { display: flex; align-items: center; gap: 14px; margin: 40px 0 20px; }
.cat-label-text { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 900; color: var(--gray-800); white-space: nowrap; }
.cat-label-line { flex: 1; height: 2px; background: var(--gray-200); }

/* ── FILTER BAR ── */
.filter-bar { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 64px; z-index: 90; box-shadow: var(--shadow-sm); }
.filter-inner { display: flex; align-items: center; gap: 10px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.filter-inner::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600); transition: all .15s; white-space: nowrap; flex-shrink: 0; }
.filter-chip:hover, .filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box { display: flex; flex: 1; min-width: 200px; max-width: 300px; background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: 9px; overflow: hidden; }
.search-box input { flex: 1; border: none; outline: none; padding: 9px 14px; font-size: 13px; font-family: 'Nunito Sans', sans-serif; background: transparent; }
.search-box button { background: var(--teal); border: none; padding: 9px 13px; cursor: pointer; color: #fff; }

/* ── INDUSTRY GRID ── */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1000px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
.industry-card { background: #fff; border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 20px 16px; text-align: center; display: block; transition: all .2s; text-decoration: none; }
.industry-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.industry-icon { font-size: 28px; margin-bottom: 8px; }
.industry-name { font-size: 13px; font-weight: 700; color: var(--gray-700); line-height: 1.3; }
.industry-count { font-size: 11px; color: var(--teal-dark); font-weight: 600; margin-top: 4px; }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(43,191,164,.08); }
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { font-family: 'Nunito', sans-serif; font-size: clamp(24px,4vw,40px); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.7); font-size: 17px; margin-bottom: 32px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── COMPARISON TABLE ── */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
.compare-table th { background: var(--navy); color: #fff; padding: 14px 16px; text-align: left; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px; }
.compare-table th.highlight { background: var(--teal-dark); }
.compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); vertical-align: middle; }
.compare-table td.highlight { background: var(--teal-pale); }
.compare-table tr:hover td { background: var(--gray-50); }
.compare-table tr:hover td.highlight { background: #D4F5EF; }
.check-yes { color: var(--teal-dark); font-weight: 700; }
.check-no { color: var(--gray-300); }
.check-partial { color: var(--gold); font-size: 13px; font-weight: 600; }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); padding: 56px 0 28px; color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 14px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 14px; cursor: pointer; transition: all .15s; text-decoration: none; }
.social-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-col h4 { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none; }
.footer-links a:hover { color: var(--teal-light); }

/* ── WORDPRESS SPECIFIC ── */
.wp-block-image { margin: 24px 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption-text { font-size: 13px; color: var(--gray-500); margin-top: 6px; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-wrapper { padding: 0 16px; }
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-title { font-size: 28px; }
}


/* ── LOGO IMAGE OVERRIDE ── */
.site-logo,
.nav-logo {
    display: flex;
    align-items: center;
}
.site-logo-text,
.nav-logo-fallback {
    display: none !important;
}
.site-logo::before,
.nav-logo::before {
    content: '';
    display: block;
    width: 160px;
    height: 38px;
    background: url('https://cmmsreview.com/wp-content/uploads/2026/05/CMMS_Review-2.jpg') no-repeat left center;
    background-size: contain;
    flex-shrink: 0;
}
.site-logo img,
.nav-logo img {
    height: 38px;
    width: auto;
    display: block;
}
