/* ==========================================================
   Bear Building Services — shared base stylesheet
   Loaded by all blog pages via <link rel="stylesheet">
   ========================================================== */

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── CSS variables ─────────────────────────────────────────── */
:root {
  --cream:     #F7F2EA;
  --parchment: #EEE7D9;
  --linen:     #E5DDD0;
  --sand:      #D4C9B4;
  --sienna:    #8B5E3C;
  --sienna-d:  #6E4A2D;
  --sienna-l:  #A67248;
  --umber:     #3D2B1F;
  --umber-mid: #5C3D28;
  --bark:      #7A5440;
  --taupe:     #9E8E7E;
  --taupe-l:   #C4B8A8;
  --snow:      #FDFAF5;
  --gold:      #D4A96A;
  --border:    #DDD3C4;
  --border-l:  #EAE3D6;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Outfit', sans-serif;
  --font-mono:  'DM Mono', monospace;
  --r:    4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow:    0 2px 20px rgba(61,43,31,0.08);
  --shadow-lg: 0 12px 56px rgba(61,43,31,0.14);
}

/* ─── Base ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--bark);
  line-height: 1.72;
  font-size: 16px;
  padding-bottom: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
}

/* ─── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ─── Section label ─────────────────────────────────────────── */
.s-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--taupe);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.s-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--taupe-l);
}

/* ─── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.15s; }
.reveal.d3 { transition-delay: 0.25s; }
.reveal.d4 { transition-delay: 0.35s; }

/* ─── Keyframes ─────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.3); }
}
@keyframes fu {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--umber);
  padding: 64px 9% 36px;
}
.f-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 52px;
}
.f-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.f-brand-logo img {
  height: 68px; width: 68px; object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(0.2) brightness(1.05);
}
.f-brand-nm {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--cream);
}
.f-brand p { font-size: 13px; line-height: 1.7; color: rgba(212,201,180,0.4); margin-bottom: 18px; }
.f-creds { display: flex; flex-wrap: wrap; gap: 6px; }
.f-cred {
  font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(247,242,234,0.05); border: 1px solid rgba(247,242,234,0.08);
  padding: 3px 10px; border-radius: 100px;
  color: rgba(212,201,180,0.45); letter-spacing: 0.04em;
}
.f-col h4 {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(212,201,180,0.35); margin-bottom: 16px;
}
.f-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-links a { font-size: 14px; color: rgba(212,201,180,0.5); transition: color 0.2s; }
.f-links a:hover { color: var(--cream); }
.f-ci { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.f-ci svg { color: var(--gold); flex-shrink: 0; }
.f-ci a, .f-ci span { font-size: 14px; color: rgba(212,201,180,0.55); transition: color 0.2s; }
.f-ci a:hover { color: var(--cream); }
.f-bottom {
  border-top: 1px solid rgba(247,242,234,0.07);
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.f-bottom-l {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(212,201,180,0.25); letter-spacing: 0.04em;
}
.f-bottom-r { display: flex; gap: 14px; flex-wrap: wrap; }
.f-bottom-r span { font-family: var(--font-mono); font-size: 10.5px; color: rgba(212,201,180,0.22); }

@media (max-width: 900px) {
  .f-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .f-grid { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 48px 6% 28px; }
}

/* ─── WhatsApp float ────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 900;
  background: var(--bark); color: var(--cream);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(122,84,64,0.45);
  transition: all 0.25s;
  text-decoration: none;
  animation: fu 1s 0.8s ease both;
}
.wa-float:hover { transform: scale(1.1); }
.wa-lbl {
  position: absolute; right: 66px;
  background: var(--umber); color: var(--cream);
  padding: 6px 12px; border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 11px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s; letter-spacing: 0.04em;
}
.wa-float:hover .wa-lbl { opacity: 1; }

/* ─── Shared button styles ──────────────────────────────────── */
.btn-s {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sienna); color: var(--snow);
  padding: 14px 24px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  transition: background 0.2s; text-decoration: none;
}
.btn-s:hover { background: var(--sienna-d); }
.btn-o {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--cream);
  padding: 13px 22px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 500; font-size: 15px;
  border: 1.5px solid rgba(212,201,180,0.35); transition: all 0.2s; text-decoration: none;
}
.btn-o:hover { border-color: rgba(212,201,180,0.6); color: var(--gold); }
.btn-cream {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cream); color: var(--sienna);
  padding: 14px 26px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  transition: background 0.2s; text-decoration: none;
}
.btn-cream:hover { background: var(--snow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: rgba(247,242,234,0.85);
  padding: 13px 22px; border-radius: var(--r-md);
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  border: 1.5px solid rgba(247,242,234,0.35); transition: all 0.2s; text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(247,242,234,0.8); background: rgba(247,242,234,0.08); }
