/*
  Webbloom Static — Base Styles
  Extracted from the Webbloom WordPress theme.
  Contains CSS variables, reset, typography, and base elements.
  Use with style-components.css for the full design system.
*/

/* ── CSS VARIABLES ── */
:root {
  /* Client brand — override these to retheme */
  --wb-primary: #007acc;
  --wb-primary-hover: #005fa3;
  --wb-secondary: #4ECDC4;
  --wb-secondary-hover: #3DBDB5;
  --wb-accent: #38bdf8;
  --wb-dark: #1a1a2e;
  --wb-light: #f8f9fc;
  --wb-white: #ffffff;
  --wb-text: #333333;
  --wb-text-light: #6b7280;
  --wb-text-muted: #999999;

  /* Typography */
  --wb-font-body: 'Inter', sans-serif;
  --wb-font-heading: 'Inter', sans-serif;

  /* Spacing */
  --wb-section-pad: 5em;
  --wb-inner-max: 1100px;
  --wb-narrow-max: 800px;
  --wb-radius-sm: 4px;
  --wb-radius-md: 8px;
  --wb-radius-lg: 16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote,
a, img, ol, ul, li, figure, figcaption, footer, header, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

html { scroll-behavior: smooth; }
nav ul, nav ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── BASE TYPOGRAPHY ── */
body {
  font-family: var(--wb-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wb-text);
  background: var(--wb-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--wb-font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--wb-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { margin-bottom: 1em; line-height: 1.7; }

a {
  color: var(--wb-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--wb-primary-hover); }

b, strong { font-weight: 600; }
em, i { font-style: italic; }

/* ── LINKS ── */
a { text-decoration-skip-ink: auto; }
a[href^="tel"] { color: inherit; text-decoration: none; }

/* ── ACCESSIBILITY ── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ── FOOTER ── */
.wb-footer {
  background: var(--wb-dark);
  padding: 3em 0;
  font-size: 0.9rem;
  color: #b8c0d0;
}
.wb-footer h4 {
  color: var(--wb-white);
  font-size: 1.1rem;
  margin-bottom: 1em;
}
.wb-footer a { color: #b8c0d0; }
.wb-footer a:hover { color: var(--wb-primary); }
.wb-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2em;
  max-width: var(--wb-inner-max);
  margin: 0 auto;
  padding: 0 1.5em;
}
.wb-footer-col ul { list-style: none; }
.wb-footer-col ul li { line-height: 2; }
.wb-footer-col ul li i { width: 1.2em; margin-right: 0.3em; color: var(--wb-primary); }
.wb-footer-logo img { max-width: 180px; height: auto; margin-bottom: 1em; }
.wb-footer-brand {
  font-family: var(--wb-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wb-white);
}
.wb-footer-description { color: #8892a6; line-height: 1.6; }

.wb-copyright {
  padding: 1.2em 0;
  font-size: 0.85em;
  text-align: center;
  color: var(--wb-text-light);
  background: color-mix(in srgb, var(--wb-dark) 85%, black);
}
.wb-copyright a { color: var(--wb-primary); }
.wb-copyright a:hover { color: var(--wb-white); }
.wb-copyright-inner {
  max-width: var(--wb-inner-max);
  margin: 0 auto;
  padding: 0 1.5em;
}
.wb-copyright-sep { margin: 0 0.3em; opacity: 0.4; }

@media (max-width: 767px) {
  .wb-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wb-footer-logo { display: flex; justify-content: center; }
}
