/**
 * EcoClean Home Care - Design System & Public Stylesheet
 *
 * Exact replica of the reference brand palette, typography, button styles,
 * header, footer, mobile drawer, and responsive article layouts.
 */

/* ---------------------------------------------------------------------
   CSS Variables & Design Tokens
   --------------------------------------------------------------------- */
:root {
  --ec-navy: #1A2948;
  --ec-navy-dark: #0f182c;
  --ec-blue: #4167B4;
  --ec-blue-hover: #3a5a99;
  --ec-gradient-navy: linear-gradient(135deg, #1A2948 0%, #4167B4 100%);
  --ec-gradient-hero: linear-gradient(135deg, #1A2948 0%, #2b457b 50%, #4167B4 100%);
  --ec-gold: #F5C24B;

  --ec-text: #42485f;
  --ec-text-dark: #1A2948;
  --ec-text-muted: #5a6079;
  --ec-text-light: #7b8095;
  --ec-text-extra-light: #8a90a5;

  --ec-border: #e7e9f0;
  --ec-border-light: #f0f1f5;
  --ec-border-focus: #4167B4;

  --ec-bg-light: #F8F9FB;
  --ec-bg-bar: #F4F5F8;
  --ec-white: #ffffff;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ec-radius-sm: 8px;
  --ec-radius-md: 12px;
  --ec-radius-lg: 16px;
  --ec-radius-pill: 99px;

  --ec-shadow-sm: 0 4px 12px rgba(26, 41, 72, 0.05);
  --ec-shadow-md: 0 10px 28px rgba(26, 41, 72, 0.08);
  --ec-shadow-lg: 0 18px 38px rgba(6, 12, 28, 0.16);
  --ec-shadow-dropdown: 0 12px 32px rgba(26, 41, 72, 0.12);
  --ec-shadow-modal: 0 24px 48px rgba(10, 18, 38, 0.28);

  --container-max: 1240px;
  --container-narrow: 860px;
}

/* ---------------------------------------------------------------------
   Base & Reset
   --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-body);
  color: var(--ec-text);
  background-color: var(--ec-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ec-text-dark);
  margin-top: 0;
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: var(--ec-navy);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--ec-blue-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--ec-radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--ec-gradient-navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(26, 41, 72, 0.18);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 41, 72, 0.26);
}

.btn-secondary {
  background: #fff;
  color: var(--ec-navy);
  border: 1px solid var(--ec-border);
}

.btn-secondary:hover {
  background: var(--ec-bg-light);
  border-color: #d8dbe6;
  color: var(--ec-navy);
}

.btn-outline {
  background: transparent;
  color: var(--ec-navy);
  border: 1px solid #d8dbe6;
}

.btn-outline:hover {
  border-color: var(--ec-navy);
  background: var(--ec-bg-light);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------------------------------------------------------------------
   Announcement Top Bar
   --------------------------------------------------------------------- */
.announcement-bar {
  background: var(--ec-bg-bar);
  color: var(--ec-text);
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid var(--ec-border);
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   Sticky Site Header & Navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ec-border);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.desktop-nav .nav-item {
  color: #2b3049;
  position: relative;
  padding: 6px 0;
}

.desktop-nav .nav-item:hover {
  color: var(--ec-blue-hover);
}

.desktop-nav .nav-item--active {
  color: var(--ec-navy);
  font-weight: 600;
}

.desktop-nav .nav-item--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ec-blue);
  border-radius: 2px;
}

/* Services Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: #2b3049;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px 0;
}

.dropdown-trigger:hover {
  color: var(--ec-blue-hover);
}

.chevron-icon {
  font-size: 11px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  box-shadow: var(--ec-shadow-dropdown);
  padding: 8px;
  min-width: 230px;
  flex-direction: column;
  z-index: 70;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.dropdown-menu.is-active {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14.5px;
  color: #2b3049;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--ec-bg-light);
  color: var(--ec-navy);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-quote {
  background: var(--ec-gradient-navy);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--ec-radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-header-quote:hover {
  color: #fff;
  opacity: 0.94;
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: var(--ec-navy);
  border-radius: 2px;
}

/* ---------------------------------------------------------------------
   Mobile Fullscreen Drawer
   --------------------------------------------------------------------- */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #fff;
  z-index: 100;
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 16px) 20px calc(env(safe-area-inset-bottom) + 24px);
  flex-direction: column;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-drawer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--ec-navy);
}

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-sm);
  background: none;
  font-size: 20px;
  color: var(--ec-navy);
  cursor: pointer;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  color: var(--ec-navy);
  gap: 2px;
}

.mobile-drawer-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--ec-border-light);
  color: var(--ec-navy);
}

.mobile-drawer-nav a.active {
  color: var(--ec-blue);
}

.mobile-services-toggle {
  background: none;
  border: none;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  padding: 13px 4px;
  border-bottom: 1px solid var(--ec-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ec-navy);
  width: 100%;
  cursor: pointer;
}

.mobile-services-sub {
  display: none;
  flex-direction: column;
  padding-left: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ec-text);
  background: var(--ec-bg-light);
  border-radius: 8px;
  margin: 6px 0;
}

.mobile-services-sub.is-open {
  display: flex;
}

.mobile-services-sub a {
  padding: 10px 8px;
  border-bottom: 1px solid #edf0f6;
  color: var(--ec-text);
}

.mobile-drawer-footer {
  margin-top: 24px;
}

/* ---------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------- */
.blog-hero {
  background: var(--ec-gradient-hero);
  background-size: cover;
  background-position: center;
  padding: clamp(48px, 6vw, 80px) 20px clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.blog-hero--archive {
  padding: clamp(36px, 4vw, 56px) 20px clamp(44px, 5vw, 64px);
}

.blog-hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-hero-content {
  max-width: 820px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--ec-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #d8e2f8;
  margin-bottom: 18px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--ec-gold);
}

.blog-hero-title {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0;
}

.blog-hero-subtitle {
  color: #cfd7ec;
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
  margin: 16px 0 28px;
}

/* Hero Search Form */
.hero-search-form {
  max-width: 580px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--ec-radius-md);
  padding: 5px 6px 5px 14px;
  box-shadow: 0 12px 32px rgba(10, 18, 38, 0.24);
}

.search-icon {
  color: var(--ec-text-light);
  flex: none;
  margin-right: 8px;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ec-text-dark);
  background: transparent;
  padding: 8px 4px;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--ec-text-light);
  font-size: 14px;
  padding: 6px 8px;
  cursor: pointer;
}

.btn-search {
  background: var(--ec-gradient-navy);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--ec-radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  flex: none;
}

/* ---------------------------------------------------------------------
   Trust Bar
   --------------------------------------------------------------------- */
.blog-trust-bar {
  border-bottom: 1px solid var(--ec-border);
  background: #fff;
}

.trust-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ec-navy);
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--ec-blue);
  flex: none;
}

/* ---------------------------------------------------------------------
   Category Pills Navigation
   --------------------------------------------------------------------- */
.category-nav-bar {
  background: #fff;
  border-bottom: 1px solid var(--ec-border);
  padding: 14px 0;
}

.category-pills-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  white-space: nowrap;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-pill);
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ec-text);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  border-color: var(--ec-blue);
  color: var(--ec-navy);
}

.cat-pill--active {
  background: var(--ec-gradient-navy);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 41, 72, 0.15);
}

.cat-pill-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 99px;
}

.cat-pill--active .cat-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ---------------------------------------------------------------------
   Main Content & Post Grid
   --------------------------------------------------------------------- */
.blog-main-content {
  padding: 48px 0 80px;
  background: var(--ec-bg-light);
}

.filter-status-box {
  margin-bottom: 28px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
}

.filter-status-box h2 {
  font-size: 20px;
  margin: 0;
}

.filter-status-box p {
  margin: 4px 0 0;
  color: var(--ec-text-muted);
  font-size: 14px;
}

/* Featured Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-md);
  margin-bottom: 40px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ec-shadow-lg);
}

.featured-cover-link {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: block;
}

.featured-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-post-card:hover .featured-cover-img {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(26, 41, 72, 0.88);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--ec-radius-pill);
  letter-spacing: 0.03em;
  z-index: 2;
}

.featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ec-text-light);
  font-weight: 500;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-dot {
  opacity: 0.6;
}

.featured-tag-label {
  background: rgba(65, 103, 180, 0.12);
  color: var(--ec-blue);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin: 0 0 14px;
}

.featured-title a {
  color: var(--ec-text-dark);
}

.featured-title a:hover {
  color: var(--ec-blue);
}

.featured-excerpt {
  color: var(--ec-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ec-border-light);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: var(--ec-gradient-navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.author-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ec-text-dark);
}

.btn-featured-read {
  background: var(--ec-gradient-navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--ec-radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-featured-read:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Standard Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.posts-grid--3col {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: var(--ec-shadow-sm);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ec-shadow-md);
}

.post-card-thumb-link {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: block;
  background: #eef1f6;
}

.post-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb-img {
  transform: scale(1.05);
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.post-card-title a {
  color: var(--ec-text-dark);
}

.post-card-title a:hover {
  color: var(--ec-blue);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--ec-text-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--ec-border-light);
  font-size: 13px;
}

.author-mini-name {
  color: var(--ec-text-light);
  font-weight: 500;
}

.card-read-more {
  font-weight: 600;
  color: var(--ec-blue);
}

.card-read-more:hover {
  color: var(--ec-navy);
}

/* ---------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------- */
.pagination-nav {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--ec-radius-sm);
  border: 1px solid var(--ec-border);
  background: #fff;
  color: var(--ec-text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.page-link:hover {
  border-color: var(--ec-blue);
  color: var(--ec-navy);
}

.page-link--active {
  background: var(--ec-gradient-navy);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 41, 72, 0.2);
}

/* ---------------------------------------------------------------------
   Empty State
   --------------------------------------------------------------------- */
.empty-state-box {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 56px 24px;
  text-align: center;
  max-width: 580px;
  margin: 40px auto;
}

.empty-state-icon {
  margin-bottom: 16px;
}

.empty-state-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.empty-state-box p {
  color: var(--ec-text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ---------------------------------------------------------------------
   Embedded Blog CTA Banner
   --------------------------------------------------------------------- */
.blog-cta-banner {
  margin-top: 64px;
  background: var(--ec-gradient-navy);
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-md);
  color: #fff;
}

.cta-banner-inner {
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ec-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cta-text-block h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.cta-text-block p {
  color: #cdd6ed;
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.cta-actions-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-cta-white {
  background: #fff;
  color: var(--ec-navy);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(6, 12, 28, 0.22);
}

.btn-cta-white:hover {
  background: #f7f8fc;
  color: var(--ec-navy);
  transform: translateY(-2px);
}

.btn-cta-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------------------------------------------------------------------
   Single Post Layout & Typography
   --------------------------------------------------------------------- */
.single-post-wrapper {
  background: #fff;
}

.single-post-header {
  padding: 40px 0 24px;
  background: var(--ec-bg-light);
  border-bottom: 1px solid var(--ec-border);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ec-text-light);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb-trail a {
  color: var(--ec-text-light);
}

.breadcrumb-trail a:hover {
  color: var(--ec-navy);
}

.breadcrumb-trail .sep {
  opacity: 0.5;
}

.breadcrumb-trail .current {
  color: var(--ec-navy);
  font-weight: 600;
}

.breadcrumb-trail--hero {
  margin-bottom: 14px;
}

.breadcrumb-trail--hero a {
  color: #b7c0dc;
}

.breadcrumb-trail--hero .current {
  color: #fff;
}

.post-header-badge {
  margin-bottom: 14px;
}

.badge-link {
  display: inline-block;
  background: var(--ec-gradient-navy);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--ec-radius-pill);
  letter-spacing: 0.04em;
}

.single-post-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  margin: 0 0 16px;
}

.single-post-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ec-text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--ec-border);
  gap: 16px;
  flex-wrap: wrap;
}

.author-meta-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-details {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.author-label {
  font-size: 11.5px;
  color: var(--ec-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.author-full-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ec-text-dark);
}

.meta-stats-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ec-text-light);
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Full Cover Image */
.cover-media-container {
  margin-top: 32px;
  margin-bottom: 32px;
}

.cover-image-frame {
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--ec-shadow-md);
  border: 1px solid var(--ec-border);
}

.post-full-cover {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Single Layout Grid (Content + Sidebar) */
.single-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-bottom: 64px;
}

.article-body-col {
  min-width: 0;
}

/* Table of Contents Card */
.toc-card {
  background: var(--ec-bg-light);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.toc-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--ec-navy);
}

.toc-toggle-icon {
  font-size: 14px;
  color: var(--ec-text-light);
  transition: transform 0.2s ease;
}

.toc-list {
  margin: 14px 0 0;
  padding-left: 20px;
  list-style: none;
}

.toc-item {
  margin-bottom: 8px;
  line-height: 1.4;
}

.toc-item a {
  color: var(--ec-text);
  font-size: 14.5px;
  font-weight: 500;
}

.toc-item a:hover {
  color: var(--ec-blue);
}

.toc-item--lvl3 {
  padding-left: 18px;
  font-size: 13.5px;
}

/* Rich Article Content Typography */
.rich-article-content {
  font-size: 17px;
  line-height: 1.75;
  color: #383e54;
}

.rich-article-content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--ec-border-light);
  scroll-margin-top: 90px;
}

.rich-article-content h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-top: 28px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}

.rich-article-content p {
  margin-top: 0;
  margin-bottom: 22px;
}

.rich-article-content ul,
.rich-article-content ol {
  margin: 0 0 24px 20px;
  padding-left: 12px;
}

.rich-article-content li {
  margin-bottom: 10px;
}

.rich-article-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--ec-bg-light);
  border-left: 4px solid var(--ec-blue);
  border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0;
  font-style: italic;
  color: var(--ec-navy);
}

.rich-article-content a {
  color: var(--ec-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-article-content a:hover {
  color: var(--ec-navy);
}

.rich-article-content img {
  border-radius: var(--ec-radius-md);
  margin: 28px 0;
  box-shadow: var(--ec-shadow-sm);
}

/* In-Content CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, #f4f6fb 0%, #ebf0f9 100%);
  border: 1px solid #d4def1;
  border-radius: var(--ec-radius-md);
  padding: 32px;
  margin: 44px 0;
}

.article-cta-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--ec-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.article-cta-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.article-cta-box p {
  color: var(--ec-text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.article-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Post Tags */
.post-tags-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0;
  padding-top: 24px;
  border-top: 1px solid var(--ec-border);
  flex-wrap: wrap;
}

.tags-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ec-navy);
}

.tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  background: var(--ec-bg-light);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-pill);
  padding: 5px 14px;
  font-size: 13px;
  color: var(--ec-text);
  font-weight: 500;
}

.tag-pill:hover {
  background: #fff;
  border-color: var(--ec-blue);
  color: var(--ec-navy);
}

/* Social Share Row */
.social-share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ec-bg-light);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 16px 22px;
  margin: 32px 0;
  flex-wrap: wrap;
  gap: 14px;
}

.share-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ec-navy);
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--ec-radius-sm);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.share-btn--fb { background: #1877F2; }
.share-btn--x  { background: #000000; }
.share-btn--li { background: #0A66C2; }
.share-btn--wa { background: #25D366; }

.share-btn--copy {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  background: var(--ec-navy);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 24px;
  margin-top: 36px;
  align-items: flex-start;
}

.author-bio-text h4 {
  font-size: 17px;
  margin: 0 0 6px;
}

.author-bio-text p {
  color: var(--ec-text-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------
   Sidebar Widgets
   --------------------------------------------------------------------- */
.article-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-md);
  padding: 24px;
}

.sidebar-widget-title {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ec-border-light);
}

/* Quote Widget */
.quote-widget {
  background: linear-gradient(135deg, #1A2948 0%, #2e4a82 100%);
  color: #fff;
  border: none;
  box-shadow: var(--ec-shadow-md);
}

.quote-widget .widget-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: var(--ec-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--ec-radius-pill);
  margin-bottom: 10px;
}

.quote-widget h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 8px;
}

.quote-widget p {
  color: #cfd8ec;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.quote-widget .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.quote-widget .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.widget-perks-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: #dbe3f5;
}

/* Category Widget */
.sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--ec-radius-sm);
  color: var(--ec-text);
  font-size: 14.5px;
  font-weight: 500;
}

.sidebar-cat-list li a:hover,
.sidebar-cat-list li a.active {
  background: var(--ec-bg-light);
  color: var(--ec-blue);
}

.count-badge {
  background: #edf0f6;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 600;
  color: var(--ec-text-light);
}

/* Service Areas Cloud */
.service-area-sub {
  font-size: 13px;
  color: var(--ec-text-light);
  margin: -10px 0 14px;
}

.towns-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.towns-cloud span {
  background: var(--ec-bg-light);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ec-text);
  font-weight: 500;
}

.widget-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ec-blue);
}

/* Related Posts Section */
.related-posts-section {
  padding-top: 48px;
  border-top: 1px solid var(--ec-border);
  margin-top: 32px;
}

.related-heading {
  font-size: 24px;
  margin-bottom: 28px;
}

/* ---------------------------------------------------------------------
   404 Page
   --------------------------------------------------------------------- */
.page-404-wrapper {
  padding: 80px 20px;
  background: var(--ec-bg-light);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.card-404 {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 56px 32px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--ec-shadow-md);
}

.badge-404 {
  display: inline-block;
  background: rgba(65, 103, 180, 0.12);
  color: var(--ec-blue);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: var(--ec-radius-pill);
  margin-bottom: 16px;
}

.title-404 {
  font-size: 32px;
  margin-bottom: 12px;
}

.subtitle-404 {
  color: var(--ec-text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.search-form-404 {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 32px;
}

.search-form-404 input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-sm);
  font-size: 14.5px;
  outline: none;
}

.actions-404 {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--ec-border);
  padding: 64px 20px 40px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-blurb {
  font-size: 14px;
  color: var(--ec-text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 280px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 99px;
  border: 1px solid var(--ec-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ec-navy);
  transition: all 0.2s ease;
}

.footer-social-links a:hover {
  background: var(--ec-navy);
  color: #fff;
}

.footer-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--ec-navy);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--ec-text-muted);
  font-size: 14px;
}

.footer-links-list a:hover {
  color: var(--ec-blue);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ec-text-muted);
}

.contact-line a {
  color: var(--ec-text-muted);
}

.contact-line a:hover {
  color: var(--ec-blue);
}

.contact-hours {
  font-size: 13px;
  color: var(--ec-text-light);
  margin-top: 6px;
}

.footer-bottom-bar {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ec-border);
  text-align: center;
}

.copyright-text {
  font-size: 13px;
  color: var(--ec-text-extra-light);
  margin: 0;
}

/* ---------------------------------------------------------------------
   Mobile Sticky Bottom Quick-Call Bar
   --------------------------------------------------------------------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--ec-gradient-navy);
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.mobile-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.mobile-action-btn:last-child {
  border-right: none;
}

.mobile-action-btn--primary {
  background: #fff;
  color: var(--ec-navy) !important;
  border-radius: var(--ec-radius-sm);
  margin-left: 6px;
  border: none;
}

/* ---------------------------------------------------------------------
   Responsive Media Queries
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .featured-post-card {
    grid-template-columns: 1fr;
  }

  .single-layout-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-actions-block {
    flex-direction: row;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .btn-header-quote {
    display: none;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-actions-block {
    flex-direction: column;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}
