/* ============================================================
   START TO FINISH EPOXY — BLOG STYLES
   Shared by /blog/index.html and all post pages.
   Imports the main site design tokens via the parent stylesheet.
   ============================================================ */

/* ---- Design tokens (mirrors index page) ---- */
:root {
  --color-amber:       #C4621D;
  --color-amber-dark:  #A34F16;
  --color-amber-light: #F2D9C4;
  --color-stone:       #3D2B1F;
  --color-stone-mid:   #6B4F3A;
  --color-stone-light: #9C7B65;
  --color-cream:       #FAF7F4;
  --color-white:       #FFFFFF;
  --color-surface:     #F2EDE8;
  --color-border:      #E0D5CC;
  --font-heading:      'Georgia', 'Times New Roman', serif;
  --font-body:         system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --max-width: 1100px;
  --radius:    8px;
  --radius-lg: 16px;
  --transition: 200ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--color-stone); background: var(--color-cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ============================================================
   HEADER — identical to main site
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-stone);
}

@media (max-width: 400px) { .logo-text { display: none; } }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-stone-mid);
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active { color: var(--color-amber); }

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1em;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--color-stone);
  background: var(--color-stone);
  color: #ffffff !important;
  transition: background var(--transition), border-color var(--transition);
  font-family: inherit;
  cursor: pointer;
}
.btn-small:hover { background: var(--color-stone-mid); border-color: var(--color-stone-mid); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-stone); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.6em 0; font-size: 1rem; border-bottom: 1px solid var(--color-border); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .btn-small { margin-top: var(--space-xs); text-align: center; justify-content: center; }
}

/* ============================================================
   FOOTER — identical to main site
   ============================================================ */
.site-footer {
  background: var(--color-stone);
  color: rgba(255,255,255,0.8);
  margin-top: var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
  align-items: start;
}

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-phone { align-items: center; }
}

.footer-logo-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; margin-bottom: 0.5rem; }
.footer-tagline { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }

.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.footer-contact a { color: rgba(255,255,255,0.75); transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }

.footer-phone { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; gap: 1px; }
.footer-phone-qualifier { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.6; }

.footer-area { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-sm) 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   BLOG INDEX PAGE
   ============================================================ */
.blog-hero {
  background: var(--color-surface);
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-stone);
  margin-bottom: 0.4rem;
}

.blog-hero p {
  font-size: 1rem;
  color: var(--color-stone-mid);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

/* Post card */
.post-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone-light);
  font-size: 0.85rem;
}

.post-card-body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }

.post-card-date { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--color-stone-light); font-weight: 600; }

.post-card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: bold; color: var(--color-stone); line-height: 1.3; }

.post-card-excerpt { font-size: 0.9rem; color: var(--color-stone-mid); flex: 1; }

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-amber);
  margin-top: auto;
  transition: color var(--transition);
}
.post-card-link:hover { color: var(--color-amber-dark); }
.post-card-link::after { content: '→'; }

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.post-wrap {
  max-width: 780px;
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-stone-light);
  margin-bottom: var(--space-md);
  transition: color var(--transition);
}
.post-back::before { content: '←'; }
.post-back:hover { color: var(--color-amber); }

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  color: var(--color-stone);
  margin-bottom: var(--space-sm);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-stone-light);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.post-meta-author { font-weight: 600; color: var(--color-stone-mid); }
.post-meta-dot { opacity: 0.4; }

/* Post body copy */
.post-body { font-size: 1.05rem; line-height: 1.8; color: var(--color-stone); }
.post-body p { margin-bottom: 1.4em; }
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; color: var(--color-stone-mid); }

/* In-post image */
.post-image {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image placeholder — swap out with <img> when real photos are ready */
.post-image-placeholder {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  color: var(--color-stone-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Post CTA block */
.post-cta {
  margin-top: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.post-cta p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.85em 1.75em;
  background: var(--color-amber);
  color: #fff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--color-amber-dark); }
