/* San Clemente Power Wash Co. — shared styles for the Blog section.
   Mirrors the design tokens and components used on the homepage. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --olive: #4a5a1e;
  --olive-mid: #5a6b2a;
  --olive-light: #7a8f3a;
  --cream: #f5efe6;
  --cream-dark: #e8ddd0;
  --charcoal: #1a1a18;
  --dark: #0f0f0d;
  --white: #ffffff;
  --accent: #c8a96e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--cream);
  overflow-x: hidden;
}

address { font-style: normal; }

/* SKIP LINK (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: var(--olive);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* SITE LOGO */
.site-logo {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-logo img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.site-logo.shrink { top: 6px; left: 16px; }
.site-logo.shrink img { width: 40px; height: 40px; }

/* TOP NAV (shared with homepage) */
.top-nav {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 22px;
}
.top-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(245,239,230,0.75);
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.top-nav a:hover { color: var(--cream); border-color: var(--olive-light); }
.top-nav { transition: opacity 0.25s ease, transform 0.25s ease; }
/* yields to the sticky bar, which carries its own nav once you scroll */
.top-nav.tucked { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.top-nav a[aria-current="page"],
.top-nav a.nav-active { color: var(--accent); border-color: var(--accent); }

/* STICKY CTA BAR */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px 10px 76px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar .brand { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; color: var(--cream); }
.sticky-bar .bar-right { display: flex; align-items: center; gap: 18px; }
.sticky-bar .bar-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,239,230,0.85);
  text-decoration: none;
}
.sticky-bar .bar-link:hover { color: var(--white); }
.sticky-bar .cta-btn { background: var(--cream); color: var(--olive); font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px; padding: 8px 20px; border-radius: 3px; text-decoration: none; border: none; cursor: pointer; white-space: nowrap; }

/* PHONE CTA FLOAT */
.phone-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  background: var(--olive-mid);
  color: var(--cream);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 14px 22px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-float:hover { background: var(--olive); }
.phone-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* SHARED SECTION BITS */
section { padding: 60px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 16px;
}
.title-geo {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--olive-light);
  line-height: 1.6;
  margin-top: 12px;
}

.section-body {
  font-size: 17px;
  color: rgba(245,239,230,0.65);
  line-height: 1.7;
  font-weight: 300;
  max-width: 600px;
}
.olive-line {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--olive-light), transparent);
}

.btn-primary {
  display: inline-block;
  background: var(--olive-mid);
  color: var(--cream);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 16px 36px;
  border: none;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--olive); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 16px 36px;
  border: 1px solid rgba(245,239,230,0.35);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--cream); transform: translateY(-2px); }

/* BLOG HEADER */
.blog-head {
  padding: 150px 24px 50px;
  background: var(--dark);
  position: relative;
}
.blog-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(122,143,58,0.14), transparent 55%);
  pointer-events: none;
}
.blog-head .container { position: relative; z-index: 1; }
.blog-head .section-body { max-width: 680px; }

/* BLOG INDEX GRID */
.blog-list-section { background: var(--charcoal); padding: 60px 24px 80px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #222220;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, transform 0.25s ease;
}
.blog-card:hover { background: #2a2a27; transform: translateY(-3px); }
.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); filter: brightness(1); }
.blog-card-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card-kicker {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--olive-light);
  margin-bottom: 12px;
}
.blog-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(245,239,230,0.62);
  margin-bottom: 20px;
}
.blog-card-more {
  margin-top: auto;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card-more::after { content: ' →'; }

/* ARTICLE */
.article-hero { padding: 132px 24px 0; background: var(--dark); }
.article-hero .container { max-width: 820px; }
.breadcrumb {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,239,230,0.45);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--olive-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--cream); }
.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 18px;
}
.article-standfirst {
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(245,239,230,0.7);
  margin-bottom: 30px;
}
.article-figure {
  margin: 0 0 8px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.95) contrast(1.02);
}

.article-body { padding: 44px 24px 70px; background: var(--dark); }
.article-body .container { max-width: 820px; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(245,239,230,0.78);
  margin-bottom: 22px;
}
.article-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: var(--white);
  margin: 44px 0 16px;
}
.article-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(21px, 2.6vw, 26px);
  letter-spacing: 1px;
  color: var(--cream);
  margin: 32px 0 12px;
}
.article-body h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  margin: 26px 0 10px;
}
.article-body ul,
.article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--cream); font-weight: 500; }
.article-body a { color: var(--olive-light); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--olive-light);
  padding-left: 20px;
  font-style: italic;
  color: rgba(245,239,230,0.7);
}

/* ARTICLE CTA */
.article-cta { background: var(--olive); padding: 56px 24px; }
.article-cta .container { max-width: 820px; }
.article-cta .section-title { margin-bottom: 12px; }
.article-cta .section-body { color: rgba(245,239,230,0.8); max-width: 640px; }
.article-cta-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.article-cta .btn-primary { background: var(--cream); color: var(--olive); }
.article-cta .btn-primary:hover { background: var(--white); }

/* MORE POSTS */
.more-posts { background: var(--charcoal); padding: 60px 24px 80px; }
.more-list { margin-top: 30px; border-top: 1px solid rgba(245,239,230,0.12); }
.more-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(245,239,230,0.12);
  text-decoration: none;
  color: var(--cream);
  font-size: 17px;
  font-weight: 400;
  transition: color 0.2s ease;
}
.more-list a:hover { color: var(--olive-light); }
.more-list .more-idx {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--olive-light);
  flex-shrink: 0;
}

/* FOOTER */
footer {
  background: var(--charcoal);
  padding: 50px 24px 40px;
  text-align: center;
  border-top: 1px solid rgba(122,143,58,0.2);
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--olive-light);
  margin-bottom: 8px;
}
.footer-contact {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(245,239,230,0.5);
  margin-bottom: 4px;
}
.footer-contact a { color: var(--accent); text-decoration: none; }
.footer-legal {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(245,239,230,0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-logo { top: 12px; left: 12px; }
  .site-logo img { width: 48px; height: 48px; }
  .site-logo.shrink { top: 5px; left: 10px; }
  .site-logo.shrink img { width: 34px; height: 34px; }
  .sticky-bar { padding-left: 56px; }
  .sticky-bar .brand { font-size: 14px; }
  .sticky-bar .bar-right { gap: 12px; }
  .top-nav { top: 18px; right: 14px; gap: 14px; }
  .top-nav a { font-size: 10px; letter-spacing: 2px; }
  .blog-head { padding-top: 120px; }
  .article-hero { padding-top: 106px; }
  .phone-float { font-size: 14px; padding: 12px 16px; bottom: 16px; right: 16px; }
}

@media (max-width: 560px) {
  .sticky-bar .brand { display: none; }
  .sticky-bar { justify-content: flex-end; }
}
