/*
Theme Name:        Kadence Clean Dream Service
Theme URI:         https://thecleandreamservice.com
Description:       Custom child theme for The Clean Dream Service (Ashburn, VA house cleaning). Built on Kadence by Humble Brand Marketing from the HBM WP Kit: kit-owned quality layer (assets/css/base.css + assets/js/base.js) + client-owned presentation (this file, header.php, footer.php, theme.json).
Author:            Humble Brand Marketing
Author URI:        https://humblebrandmarketing.com
Template:          kadence
Version:           1.0.5
Requires at least: 6.6
Tested up to:      7.0
Requires PHP:      7.4
Text Domain:       kadence-clean-dream
Tags:              business, custom-logo, custom-menu, custom-colors, featured-images, full-width-template, block-styles, wide-blocks, accessibility-ready
HBM WP Kit:        1.0.0
*/

/* ==========================================================================
   CLIENT-OWNED stylesheet. Everything visual lives here (and in theme.json).

   Rules of the road:
   - Brand tokens below drive base.css mechanics via the --hbm-* overrides and
     your own component CSS via the semantic tokens. Change values, keep names.
   - Never edit assets/css/base.css or assets/js/base.js in a client theme —
     fix upstream in website-starter-kit/wp-build/kadence-child-starter/.
   - Mirror palette changes into theme.json so the editor matches.
   - Mobile is Principle §0: write mobile styles first, enhance upward.
     Breakpoints: 480 / 820 / 1100 (820 is the nav/drawer switch in base.css).
   ========================================================================== */

/* ---- Design tokens (CLIENT-EDIT: swap values per brand kit) ------------- */
:root {
  /* Brand (Kadence global palette on the live site, July 2026) */
  --brand:        #2C3E7A;   /* Navy: primary buttons, nav CTA, headings accent */
  --brand-dark:   #3D56A6;   /* Navy Light: hover / pressed */
  --brand-light:  #EAF5FC;   /* Sky Light: pale section backgrounds */
  --sky:          #4BA8D8;   /* Sky Blue: links, accents */
  --green:        #4CAF50;   /* Green: quote / go actions */
  --green-light:  #EAF6EA;

  /* Canvas + neutrals */
  --canvas:       #12193A;   /* Dark Navy: footer, dark bands */
  --canvas-soft:  #1A2450;   /* layered dark surfaces */
  --ink:          #12193A;   /* body text on light bg */
  --ink-soft:     #6B7A99;   /* muted text */
  --line:         #E0E8F5;   /* borders / dividers */
  --bg:           #ffffff;   /* base surface */
  --bg-elevated:  #F5F8FC;   /* elevated surface */

  /* Type: Playfair Display display + DM Sans body (matches the page blocks) */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 40px; --space-6: 64px; --space-7: 96px;

  --radius: 12px;
  --container: 1200px;

  --shadow-sm: 0 1px 2px rgba(18,25,58,.06), 0 2px 8px rgba(18,25,58,.08);
  --shadow-md: 0 6px 16px rgba(18,25,58,.10), 0 12px 32px rgba(18,25,58,.12);

  --ease: cubic-bezier(.2,.7,.2,1);

  /* Kit mechanics (base.css): light header, so the scrolled state is white glass */
  --hbm-nav-bg-scrolled: rgba(255, 255, 255, 0.92);
  --hbm-nav-bg-scrolled-mobile: rgba(255, 255, 255, 0.96);
  --hbm-nav-border-scrolled: 1px solid rgba(18, 25, 58, 0.08);
  --hbm-nav-shadow-scrolled: 0 8px 24px rgba(18, 25, 58, 0.10);
  --hbm-drawer-bg: var(--canvas);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p  { margin: 0 0 var(--space-3); color: var(--ink-soft); }

/* ---- Layout helpers ------------------------------------------------------ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.section   { padding: var(--space-7) 0; }
.section--tint { background: var(--bg-elevated); }
@media (max-width: 820px) {
  .section { padding: var(--space-6) 0; }
}

/* ---- Header / nav visuals (CLIENT-OWNED — restyle freely) ---------------
   Mechanics (sticky state, blur, drawer motion) come from base.css via the
   data attributes in header.php. Everything below is pure appearance. */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px var(--space-4);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body { padding-top: 76px; } /* offset for the fixed nav; match its height */

.nav-logo { display: inline-flex; align-items: center; line-height: 0; }
.nav-logo img { height: 48px; width: auto; display: block; }

#nav .nav-links { display: flex; gap: var(--space-4); align-items: center; }
#nav .nav-links a {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
}
#nav .nav-links a:hover,
#nav .nav-links a[aria-current="page"] { color: var(--sky); }

.nav-cta {
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* Hamburger (mechanics: shown ≤820px by base.css hiding rules) */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--brand);
}
.nav-hamburger svg { display: block; width: 28px; height: 28px; }
.nav-hamburger .icon-close { display: none; }
.nav-hamburger.is-open .icon-open { display: none; }
.nav-hamburger.is-open .icon-close { display: block; }

@media (max-width: 820px) {
  #nav .nav-links, #nav .nav-cta { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* Mobile CTA bar visuals */
[data-hbm-cta-bar] { background: var(--canvas); border-bottom: 1px solid var(--brand); }
[data-hbm-cta-bar] a {
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
[data-hbm-cta-bar] .cta-phone { background: var(--canvas-soft); border-right: 1px solid rgba(255,255,255,0.1); }
[data-hbm-cta-bar] .cta-quote { background: var(--brand); }
[data-hbm-cta-bar] svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Drawer visuals */
[data-hbm-drawer] { padding: 96px 28px 40px; }
[data-hbm-drawer] > a,
[data-hbm-drawer] [data-hbm-submenu-toggle] {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  padding: 18px 4px;
  cursor: pointer;
}
[data-hbm-drawer] .caret {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
  transition: transform .25s ease;
}
[data-hbm-drawer] [data-hbm-submenu-toggle].is-open .caret { transform: rotate(225deg); }
[data-hbm-submenu] a {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,0.7);
  padding: 14px 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
[data-hbm-drawer] .mobile-cta {
  margin-top: 36px;
  background: var(--green);
  color: #fff;
  text-align: center;
  border: 0;
  border-radius: 4px;
  padding: 18px;
  justify-content: center;
}
[data-hbm-drawer] .mobile-phone {
  margin-top: 14px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 18px;
  justify-content: center;
}

/* Mega panel visuals (mechanics from base.css) */
.mega-panel {
  width: 640px;
  background: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px 36px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 2px; }
.mega-grid a {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-weight: 500;
  display: block;
}
.mega-grid a:hover { color: var(--brand); }
@media (max-width: 1100px) { .mega-panel { width: 560px; } }

.caret-down {
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .7;
  margin-left: 7px;
}

/* ---- Buttons — every state defined; only animate transform/opacity ------ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 16px 28px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: currentColor; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: currentColor; }

/* ---- Footer visuals (CLIENT-OWNED — restyle freely) ---------------------- */
.footer {
  background: var(--canvas);
  color: rgba(255,255,255,0.65);
  padding: 80px var(--space-4) 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--sky); }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; font-weight: 600; margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-brand-text { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-bottom {
  max-width: var(--container);
  margin: 24px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.45);
}
@media (max-width: 820px) {
  .footer { padding: 56px var(--space-4) 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---- Clean Dream additions (2026-09-25) ---------------------------------- */
/* Header phone link + logo size (logo is the transparent PNG, 360x212) */
.nav-logo img { height: 56px; width: auto; }
.nav-phone { font-weight: 700; color: var(--brand) !important; }
.nav-phone:hover { color: var(--sky) !important; }

/* Footer brand logo */
.footer-logo { max-width: 180px; height: auto; margin-bottom: 12px; }
.footer-legal .sep { opacity: .35; margin: 0 8px; }

/* Bottom mobile call bar (moved from the Footer 1 widget, same look) */
.cds-mobile-callbar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .cds-mobile-callbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 99999;
    display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(26,35,64,.25);
  }
  .cds-mobile-callbar a {
    display: flex; align-items: center; justify-content: center; min-height: 46px;
    border-radius: 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700;
    text-decoration: none;
  }
  .cds-mobile-call { flex: 1; background: var(--brand); color: #fff; }
  .cds-mobile-quote { flex: 1.35; background: var(--green); color: #fff; }
  .cds-mobile-callbar a:hover { color: #fff; }
}

/* ---- Plain text pages + blog posts: readable column (1.0.2) -------------- */
.cds-prose { max-width: 780px; margin: 0 auto; padding: 48px 24px 72px; }
.cds-prose-title,
.single .entry-title {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(32px, 4.2vw, 44px); line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.cds-prose h2, .single .entry-content h2 {
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: 0;
  margin: 36px 0 10px;
}
.cds-prose h3, .single .entry-content h3 {
  font-family: var(--font-body); font-weight: 700; color: var(--ink);
  font-size: 19px; line-height: 1.3; margin: 26px 0 8px;
}
.cds-prose p, .cds-prose li,
.single .entry-content p, .single .entry-content li {
  font-size: 17px; line-height: 1.75; color: #3E4A63;
}
.cds-prose ul, .cds-prose ol { padding-left: 22px; margin: 0 0 16px; }
.cds-prose a, .single .entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) {
  .cds-prose { padding: 32px 20px 56px; }
}

/* ---- Single posts: featured image as a contained banner (1.0.3) --------- */
/* Kadence renders the featured image full size above the title (portrait
   phone photos pushed the H1 ~1,100px down). Contain it as a 2:1 banner in
   the reading column; on phones align it with the text column. */
.single .article-post-thumbnail { max-width: 780px; width: auto !important; margin: 32px auto 0 !important; padding: 0 24px; box-sizing: border-box; }
.single .article-post-thumbnail .post-thumbnail-inner { position: relative; padding-bottom: 50% !important; overflow: hidden; border-radius: 12px; }
.single .article-post-thumbnail .post-thumbnail-inner img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
@media (max-width: 767px) {
  .single .article-post-thumbnail { padding: 0; margin: 20px 0 0 !important; }
  .single .article-post-thumbnail .post-thumbnail-inner { padding-bottom: 62% !important; }
}

/* ---- Blog: branded index, cards, single-post polish, quote box (1.0.4) -- */
/* Index hero */
.blog .post-archive-hero-section { background: linear-gradient(135deg, #12193A 0%, #2C3E7A 100%); }
.blog .post-archive-hero-section .hero-section-overlay { display: none; }
.blog .post-archive-hero-section .entry-hero-container-inner { background: linear-gradient(135deg, #12193A 0%, #2C3E7A 100%) !important; }
.blog .post-archive-hero-section .entry-header { padding: 64px 0 56px; text-align: center; }
.blog .post-archive-hero-section .archive-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 4.6vw, 50px); letter-spacing: -0.01em; margin: 0; }
.blog .post-archive-hero-section .entry-header::after {
  content: "Practical cleaning tips and guides from Norma and The Clean Dream team, for homes across Ashburn and Loudoun County.";
  display: block; max-width: 640px; margin: 14px auto 0; color: rgba(255,255,255,.86);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
/* Index cards */
.blog .kadence-posts-list { gap: 28px; padding-top: 48px; padding-bottom: 24px; }
@media (min-width: 768px) { .blog .kadence-posts-list.grid-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.blog .loop-entry { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.blog .loop-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog .loop-entry .post-thumbnail { margin: 0; }
/* Kadence leaves archive images in normal flow (static), so crop them ourselves:
   zero-height box + ratio padding + absolutely positioned cover image. */
.blog .loop-entry .post-thumbnail-inner { position: relative; overflow: hidden; height: 0; padding-bottom: 62% !important; }
.blog .loop-entry .post-thumbnail-inner img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.blog .loop-entry .entry-content-wrap { padding: 22px 24px 26px; }
.blog .loop-entry .entry-title { font-family: var(--font-head); font-size: 23px; line-height: 1.3; margin: 12px 0 8px; }
.blog .loop-entry .entry-title a { color: var(--ink); text-decoration: none; }
.blog .loop-entry .entry-title a:hover { color: var(--brand); }
.blog .loop-entry .entry-meta { font-size: 13px; color: var(--ink-soft); }
.blog .loop-entry .entry-summary p { font-size: 15.5px; line-height: 1.65; color: #4B5570; }
.blog .loop-entry .post-more-link { font-weight: 700; color: var(--brand); text-decoration: none; }
/* Category chips (index + single) */
.blog .loop-entry .entry-taxonomies a,
.single .entry-taxonomies a {
  display: inline-block; background: var(--green-light); color: #2E7D32; border-radius: 999px;
  padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
/* Single post images + captions */
.single .entry-content .wp-block-image img { border-radius: 12px; }
.single .entry-content .wp-element-caption { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
/* Quote box inserted before the FAQ (functions.php) */
.cds-post-cta { margin: 40px 0 36px; padding: 28px 28px 26px; border-radius: 16px; background: linear-gradient(135deg, #12193A 0%, #2C3E7A 100%); color: #fff; }
.cds-post-cta h2 { color: #fff !important; font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 28px) !important; margin: 0 0 8px !important; }
.cds-post-cta p { color: rgba(255,255,255,.86) !important; font-size: 16px !important; margin: 0 0 18px !important; }
.cds-post-cta .cds-post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cds-post-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.cds-post-cta .cds-cta-quote { background: var(--green); color: #fff !important; }
.cds-post-cta .cds-cta-call { border: 1.5px solid rgba(255,255,255,.55); color: #fff !important; }
.cds-post-cta a:hover { filter: brightness(1.08); }

