/*
Theme Name:   Kadence Child – Canadian Cloud Accounting
Theme URI:    https://canadiancloudaccounting.ca
Description:  Child theme for Kadence – Canadian Cloud Accounting brand
Author:       Canadian Cloud Accounting
Template:     kadence
Version:      1.0.0
*/

/* ─────────────────────────────────────────
   BRAND TOKENS
   ───────────────────────────────────────── */
:root {
  --brand-red:       #CC0000;
  --brand-red-dark:  #a80000;
  --brand-charcoal:  #2c2c2c;
  --brand-black:     #1a1a1a;
  --brand-grey:      #f5f5f5;
  --brand-grey2:     #eaeaea;
  --brand-muted:     #6b7280;
  --brand-border:    #e2e2e2;
  --brand-white:     #ffffff;
}

/* ─────────────────────────────────────────
   GLOBAL TYPOGRAPHY
   ───────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--brand-black);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.wp-block-kadence-heading {
  font-family: 'Playfair Display', serif;
}

/* ─────────────────────────────────────────
   UTILITY: TOP BAR (dark contact strip)
   ───────────────────────────────────────── */
.site-top-bar {
  background: var(--brand-charcoal);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5%;
  gap: 24px;
}

.site-top-bar a {
  font-size: 0.73rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.18s;
}

.site-top-bar a:hover {
  color: #fff;
}

.site-top-bar .sep {
  color: rgba(255, 255, 255, 0.18);
}

/* ─────────────────────────────────────────
   HEADER / NAV
   ───────────────────────────────────────── */
.site-header,
#masthead {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid var(--brand-border);
}

/* Logo tagline beside logo */
.header-logo-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--brand-border);
  white-space: nowrap;
}

/* Nav links */
.main-navigation a,
.kadence-navigation a {
  color: rgba(26, 26, 26, 0.55) !important;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-navigation a:hover,
.kadence-navigation a:hover {
  color: var(--brand-red) !important;
}

/* "Book a Call" CTA nav button */
.nav-cta > a,
.menu-item.nav-cta > a {
  background: var(--brand-red) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
}

.nav-cta > a:hover,
.menu-item.nav-cta > a:hover {
  background: var(--brand-red-dark) !important;
}

/* ─────────────────────────────────────────
   TRUST / CREDENTIAL BAR
   ───────────────────────────────────────── */
.trust-bar {
  background: var(--brand-grey);
  border-bottom: 1px solid var(--brand-border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 11px 5%;
}

.trust-item {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.trust-item::before {
  content: '✓';
  color: var(--brand-red);
}

/* ─────────────────────────────────────────
   EYEBROW LABELS  (-- Section Title)
   ───────────────────────────────────────── */
.eyebrow {
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--brand-red);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   RED LEFT-BORDER HERO / SECTION ACCENT
   ───────────────────────────────────────── */
.has-red-left-border {
  border-left: 4px solid var(--brand-red);
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.wp-block-button__link,
.kb-btn,
.kadence-button {
  border-radius: 3px !important;
  font-weight: 600 !important;
}

/* Primary red button */
.btn-primary .wp-block-button__link,
.kb-btn-primary {
  background: var(--brand-red) !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary .wp-block-button__link:hover,
.kb-btn-primary:hover {
  background: var(--brand-red-dark) !important;
}

/* Ghost button */
.btn-ghost .wp-block-button__link {
  background: transparent !important;
  color: var(--brand-black) !important;
  border: 1px solid var(--brand-border) !important;
}

/* ─────────────────────────────────────────
   SERVICE / FEATURE CARDS
   ───────────────────────────────────────── */
.service-card {
  background: #fff;
  padding: 30px 26px;
  border-top: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-top-color: var(--brand-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--brand-muted);
  line-height: 1.75;
}

/* Problem cards (grey bg) */
.problem-card {
  background: var(--brand-grey);
  padding: 30px 26px;
  border-top: 3px solid transparent;
  transition: border-color 0.2s;
}

.problem-card:hover {
  border-top-color: var(--brand-red);
}

/* Industry cards (white with left red border) */
.industry-card {
  background: #fff;
  padding: 28px;
  border-left: 4px solid var(--brand-red);
}

/* ─────────────────────────────────────────
   DARK STAT PANEL  (#2c2c2c box)
   ───────────────────────────────────────── */
.stat-panel {
  background: var(--brand-charcoal);
  padding: 36px;
}

.stat-panel .stat-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-panel .stat-item:last-child {
  border-bottom: none;
}

.stat-panel .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--brand-red);
}

.stat-panel .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   TESTIMONIALS
   ───────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-top: 3px solid var(--brand-red);
}

.testimonial-card .quote {
  font-size: 0.92rem;
  color: var(--brand-muted);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-card .attribution {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-black);
  margin-top: 16px;
}

.testimonial-card .attribution small {
  color: var(--brand-muted);
  font-weight: 400;
  display: block;
}

/* ─────────────────────────────────────────
   CTA BAND (dark charcoal + red left border)
   ───────────────────────────────────────── */
.cta-band {
  background: var(--brand-charcoal);
  border-left: 4px solid var(--brand-red);
  padding: 60px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: #fff;
  line-height: 1.3;
}

.cta-band p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  line-height: 1.72;
}

.cta-band a:not(.wp-block-button__link) {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* ─────────────────────────────────────────
   CONTACT FORM
   ───────────────────────────────────────── */
.contact-form-wrap {
  background: var(--brand-grey);
  padding: 34px;
  border-top: 3px solid var(--brand-red);
}

.contact-form-wrap input,
.contact-form-wrap select,
.contact-form-wrap textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--brand-black);
  background: #fff;
  margin-bottom: 14px;
}

.contact-form-wrap input:focus,
.contact-form-wrap select:focus,
.contact-form-wrap textarea:focus {
  outline: none;
  border-color: var(--brand-red);
}

.contact-form-wrap label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--brand-black);
}

.contact-form-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.site-footer,
#colophon {
  background: #111111;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--brand-red);
}

.footer-brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ─────────────────────────────────────────
   BLOG CARDS
   ───────────────────────────────────────── */
.blog-card {
  background: #fff;
  border-top: 3px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  border-top-color: var(--brand-red);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-card .category-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-red);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   TOOL TAGS (software chips)
   ───────────────────────────────────────── */
.tool-tag {
  background: #fff;
  border: 1px solid var(--brand-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.tool-tag.highlight {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* ─────────────────────────────────────────
   COMPARISON TABLE  (full-time vs fractional)
   ───────────────────────────────────────── */
.comparison-panel {
  background: var(--brand-charcoal);
  padding: 34px;
}

.comparison-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row .role-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 5px;
}

.comparison-row .role-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.comparison-row.muted .role-label {
  color: rgba(255, 255, 255, 0.3);
}

/* ─────────────────────────────────────────
   CHECKLIST  (contact page)
   ───────────────────────────────────────── */
.chklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.chklist li {
  font-size: 0.9rem;
  color: var(--brand-black);
  padding: 7px 0;
  border-bottom: 1px solid var(--brand-border);
  padding-left: 22px;
  position: relative;
}

.chklist li::before {
  content: '✓';
  color: var(--brand-red);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  .cta-band {
    flex-direction: column;
    text-align: center;
  }

  .stat-panel {
    padding: 24px;
  }

  .site-top-bar {
    justify-content: center;
    flex-wrap: wrap;
    height: auto;
    padding: 8px 5%;
  }

  .trust-bar {
    gap: 14px;
  }
}
