/* ============================================================
   EPOXOFF — Shared Stylesheet
   Cached by browser, reduces page weight by ~72KB across 9 pages
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #F5F1EB;
  color: #1C1410;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* ── TOKENS ── */
:root {
  --terra: #C4622D;
  --terra-dark: #A64E22;
  --terra-light: #F7E6DC;
  --stone-50: #FAFAF8;
  --stone-100: #F5F1EB;
  --stone-200: #E0D9CE;
  --stone-400: #AA9D8E;
  --stone-600: #6B5E50;
  --stone-800: #352D24;
  --stone-900: #1C1410;
  --border: #E0D9CE;
}

/* ── GRID BACKGROUND UTIL ── */
.grid-bg {
  background-color: var(--stone-900);
  background-image:
    linear-gradient(var(--stone-800) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone-800) 1px, transparent 1px);
  background-size: 48px 48px;
}
.grid-bg-light {
  background-color: var(--stone-100);
  background-image:
    linear-gradient(var(--stone-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone-200) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: rgba(28,20,16,0.97);
  border-bottom: 1px solid #352D24;
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark {
  width: 26px; height: 26px;
  background: var(--terra);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px;
}
.nav-mark span { background: white; display: block; }
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 300;
  color: #FAFAF8; letter-spacing: 0.04em;
}
.btn-call {
  background: var(--terra); color: white; border: none;
  padding: 8px 18px; font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; cursor: pointer;
  border-radius: 2px; text-decoration: none;
  transition: background 0.15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-call:hover { background: var(--terra-dark); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terra); color: white; border: none;
  padding: 14px 28px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: 0.03em;
  cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--terra-dark); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #C8BFB1;
  border: 1.5px solid #4F4438;
  padding: 13px 26px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 400; letter-spacing: 0.03em;
  cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: #8A7B6B; color: white; }

.btn-tg {
  display: inline-flex; align-items: center; gap: 8px;
  background: #229ED9; color: white; border: none;
  padding: 14px 22px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: background 0.15s;
}
.btn-tg:hover { background: #1a8abf; }

/* ── SECTION LABEL ── */
.section-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.section-label::before { content: ''; width: 28px; height: 2px; background: var(--terra); flex-shrink: 0; }
.section-label span {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #8A7B6B;
}

/* ── SEO LINK BANNER ── */
.seo-banner {
  background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 40px;
}
.seo-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.seo-banner p { font-size: 14px; color: var(--stone-600); line-height: 1.6; max-width: 600px; }
.seo-banner p strong { color: var(--stone-900); font-weight: 600; }
.seo-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--terra);
  text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.seo-link:hover { border-color: var(--terra); }

/* ── ARTICLE SHARED ── */
.article-header {
  background: var(--stone-900);
  background-image: linear-gradient(#352D24 1px, transparent 1px), linear-gradient(90deg, #352D24 1px, transparent 1px);
  background-size: 48px 48px;
  padding: 64px 40px 56px;
}
.article-header-inner { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 12px; color: #6B5E50; }
.breadcrumb a { color: #6B5E50; text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: #AA9D8E; }
.breadcrumb span { color: #4F4438; }
.article-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 300;
  color: #FAFAF8; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.article-header h1 em { color: var(--terra); font-style: normal; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.meta-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: #6B5E50; letter-spacing: 0.06em;
}

.contact-strip {
  background: white; border-bottom: 1px solid var(--border);
  padding: 24px 40px;
}
.contact-strip-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--stone-900);
  background-image: linear-gradient(#352D24 1px, transparent 1px), linear-gradient(90deg, #352D24 1px, transparent 1px);
  background-size: 48px 48px;
  padding: 32px 40px;
  border-top: 1px solid #352D24;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-text { font-size: 12px; color: #4F4438; }
.footer-text a { color: #4F4438; text-decoration: none; transition: color 0.15s; }
.footer-text a:hover { color: #8A7B6B; }

/* ── SCROLL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── SHARED RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 14px; }
  .seo-banner { padding: 24px 20px; }
  footer { padding: 24px 20px; }
  .contact-strip { padding: 24px 20px; }
  .article-header { padding: 48px 20px 40px; }
  .comp-table th, .comp-table td, .example-table th, .example-table td { padding: 8px 6px; font-size: 12px; }
}
