/*
Theme Name: Mirno Svemir Dom
Theme URI: https://obiteljskisvemir.hr
Author: Obiteljski svemir
Author URI: https://obiteljskisvemir.hr
Description: Profesionalna web stranica za gestalt integrativnu psihoterapiju.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirno-svemir-dom
Tags: therapy, counseling, blog, custom-colors, custom-menu, featured-images
*/

/* =============================================================================
   TABLE OF CONTENTS
   1.  Design Tokens
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Components — Buttons
   6.  Components — Cards
   7.  Components — Badges
   8.  Header & Navigation
   9.  Footer
   10. Hero Sections
   11. Service Cards
   12. Blog Grid & Post Cards
   13. Blog Post Single
   14. Contact Form
   15. FAQ Accordion
   16. Scroll Reveal Animations
   17. Star Accent & Twinkle Keyframes
   18. Gradient Backgrounds
   19. Utility Classes
   20. Media Queries
   ============================================================================= */

/* =============================================================================
   1. DESIGN TOKENS — CSS Custom Properties
   ============================================================================= */

:root {
  /* Core palette */
  --background:           hsl(40, 30%, 97%);   /* warm cream #F8F5F0 */
  --foreground:           hsl(150, 18%, 22%);  /* dark sage  #2D3F35 */
  --card:                 hsl(0, 0%, 100%);
  --card-foreground:      hsl(150, 18%, 22%);
  --border:               hsl(40, 20%, 88%);
  --input:                hsl(40, 20%, 88%);
  --ring:                 hsl(148, 22%, 51%);

  /* Primary — sage green */
  --primary:              hsl(148, 22%, 51%);
  --primary-light:        hsl(148, 22%, 90%);
  --primary-dark:         hsl(148, 22%, 30%);
  --primary-foreground:   hsl(0, 0%, 100%);

  /* Secondary — rose pink */
  --secondary:            hsl(330, 40%, 85%);
  --secondary-light:      hsl(330, 40%, 92%);
  --secondary-dark:       hsl(330, 40%, 45%);
  --secondary-foreground: hsl(330, 30%, 30%);

  /* Muted / neutral */
  --muted:                hsl(40, 20%, 92%);
  --muted-foreground:     hsl(150, 10%, 45%);

  /* Accent (alias for secondary) */
  --accent:               hsl(330, 40%, 92%);
  --accent-foreground:    hsl(150, 18%, 22%);

  /* Semantic aliases matching original Tailwind config */
  --sage:                 hsl(148, 22%, 51%);
  --sage-light:           hsl(148, 22%, 90%);
  --sage-dark:            hsl(148, 22%, 30%);
  --rose:                 hsl(330, 40%, 75%);
  --rose-light:           hsl(330, 40%, 92%);
  --rose-dark:            hsl(330, 40%, 45%);
  --cream:                hsl(40, 30%, 97%);
  --warm-white:           hsl(40, 20%, 98%);

  /* Destructive */
  --destructive:          hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 100%);

  /* Typography */
  --font-serif:           'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:            'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:            'Courier New', Courier, monospace;

  /* Border radius */
  --radius:               0.75rem;
  --radius-sm:            calc(var(--radius) - 4px);  /* 0.5rem  */
  --radius-lg:            calc(var(--radius) + 4px);  /* 1rem    */
  --radius-xl:            1.25rem;
  --radius-2xl:           1.5rem;
  --radius-full:          9999px;

  /* Spacing scale (mirrors Tailwind defaults used in the project) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:     0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 15px -3px hsl(148 22% 51% / 0.05);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;

  /* Z-index layers */
  --z-header:    50;
  --z-overlay:   60;
  --z-modal:     70;
  --z-toast:     80;
  --z-fixed:     90;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem,3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* Lead / intro paragraph */
.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

/* Small / caption text */
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-serif  { font-family: var(--font-serif); }
.font-sans   { font-family: var(--font-sans); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold   { font-weight: 700; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-primary          { color: var(--primary); }
.text-secondary        { color: var(--secondary); }
.text-muted            { color: var(--muted-foreground); }
.text-foreground       { color: var(--foreground); }
.text-sage             { color: var(--sage); }
.text-sage-dark        { color: var(--sage-dark); }
.text-rose             { color: var(--rose); }
.text-rose-dark        { color: var(--rose-dark); }

.italic  { font-style: italic; }
.leading-relaxed { line-height: 1.75; }

/* Highlighted inline text (used in hero "sve**MIR**u" pattern) */
.text-highlight {
  color: var(--primary);
  font-style: italic;
}

/* =============================================================================
   4. LAYOUT
   ============================================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Full-bleed section wrapper with standard vertical rhythm */
.section {
  padding-block: var(--space-16);
}

.section-lg {
  padding-block: var(--space-24);
}

/* Two-column grid (used on About, Contact pages) */
.grid-2 {
  display: grid;
  gap: var(--space-12);
}

/* Three-column grid (used for services, blog cards) */
.grid-3 {
  display: grid;
  gap: var(--space-8);
}

/* Four-column grid (used for values on About page) */
.grid-4 {
  display: grid;
  gap: var(--space-6);
}

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

/* Spacing helpers */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }
.space-y-4 > * + * { margin-top: var(--space-4); }
.space-y-6 > * + * { margin-top: var(--space-6); }
.space-y-8 > * + * { margin-top: var(--space-8); }

/* =============================================================================
   5. COMPONENTS — BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary — solid sage green */
.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  box-shadow: var(--shadow-primary);
}

/* Outline — bordered, transparent fill */
.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--sage-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Ghost — no border, subtle hover */
.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--muted);
}

/* Secondary — rose-tinted */
.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--rose);
  border-color: var(--rose);
}

/* Size variants */
.btn-sm {
  padding: 0.375rem var(--space-4);
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem var(--space-8);
  font-size: 1rem;
}

/* Icon button */
.btn-icon {
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
}

/* =============================================================================
   6. COMPONENTS — CARDS
   ============================================================================= */

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-slow);
}

.card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-primary);
  border-color: hsl(148 22% 51% / 0.3);
}

/* Flat card — no hover lift */
.card-flat {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

/* Muted background card */
.card-muted {
  background-color: var(--muted);
  border: none;
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

/* Sage-tinted card */
.card-sage {
  background-color: var(--sage-light);
  border: 1px solid hsl(148 22% 51% / 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

/* Rose-tinted card */
.card-rose {
  background-color: var(--rose-light);
  border: 1px solid hsl(330 40% 75% / 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

/* Quote / testimonial card */
.card-quote {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-10);
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.card-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--foreground);
}

.card-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted-foreground);
}

/* =============================================================================
   7. COMPONENTS — BADGES
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Default — muted */
.badge-default {
  background-color: var(--muted);
  color: var(--foreground);
}

/* Primary — sage */
.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Sage-light (used for Odrasli category) */
.badge-sage {
  background-color: var(--sage-light);
  color: var(--sage-dark);
}

/* Rose-light (used for Djeca category) */
.badge-rose {
  background-color: var(--rose-light);
  color: var(--rose-dark);
}

/* Secondary (used for Roditeljstvo category) */
.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Muted (used for Radionice category) */
.badge-muted {
  background-color: var(--muted);
  color: var(--foreground);
}

/* Outline badge */
.badge-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

/* =============================================================================
   8. HEADER & NAVIGATION
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: hsl(40 30% 97% / 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: var(--space-6);
}

/* Brand / logo */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-header__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

/* Desktop navigation */
.nav-primary {
  display: none; /* shown at md+ */
  align-items: center;
  gap: var(--space-1);
}

.nav-primary .nav-item a,
.nav-primary a.nav-link {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: color var(--transition-base), background-color var(--transition-base);
  text-decoration: none;
}

.nav-primary .nav-item a:hover,
.nav-primary a.nav-link:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

/* Active nav link */
.nav-primary .current-menu-item > a,
.nav-primary .nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

/* CTA button in header */
.site-header__cta {
  flex-shrink: 0;
  display: none; /* shown at md+ */
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base);
}

.nav-toggle:hover {
  background-color: var(--muted);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile .nav-item a,
.nav-mobile a.nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  transition: color var(--transition-base), background-color var(--transition-base);
  text-decoration: none;
}

.nav-mobile .nav-item a:hover,
.nav-mobile a.nav-link:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

.nav-mobile .current-menu-item > a,
.nav-mobile .nav-link.is-active {
  color: var(--primary);
  font-weight: 600;
}

.nav-mobile__cta {
  margin-top: var(--space-4);
  padding-inline: var(--space-4);
}

/* WordPress menu resets */
.nav-primary ul,
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-mobile ul {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* =============================================================================
   9. FOOTER
   ============================================================================= */

.site-footer {
  background-color: var(--foreground);
  color: hsl(0 0% 100% / 0.9);
  padding-block: var(--space-16) var(--space-8);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}

/* Brand column */
.footer-brand__logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(0 0% 100%);
}

.footer-brand__tagline {
  font-size: 0.9375rem;
  color: hsl(0 0% 100% / 0.7);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.footer-brand__stars {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Nav column */
.footer-nav__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.5);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav a {
  font-size: 0.9375rem;
  color: hsl(0 0% 100% / 0.7);
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer-nav a:hover {
  color: hsl(0 0% 100%);
}

/* Contact column */
.footer-contact__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.5);
  margin-bottom: var(--space-4);
}

.footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: hsl(0 0% 100% / 0.7);
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer-contact__link:hover {
  color: hsl(0 0% 100%);
}

/* Copyright bar */
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid hsl(0 0% 100% / 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.4);
}

/* =============================================================================
   10. HERO SECTIONS
   ============================================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-block: var(--space-24);
  overflow: hidden;
  background-color: var(--foreground);
}

/* Background image with overlay */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    hsl(150 18% 22% / 0.85),
    hsl(148 22% 30% / 0.75)
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hero__content h1,
.hero__content .hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: hsl(0 0% 100%);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.hero__content .hero__title .highlight {
  color: var(--secondary);
  font-style: italic;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: hsl(0 0% 100% / 0.85);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 38rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Star accents inside hero */
.hero__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  color: var(--secondary);
}

/* Shorter hero — for inner page headers */
.hero-sm {
  min-height: 40vh;
  padding-block: var(--space-16);
}

.hero-sm .hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

/* CTA Banner (gradient section, reused on all pages bottom) */
.cta-banner {
  background: linear-gradient(to bottom right, var(--sage-light), var(--rose-light));
  padding-block: var(--space-16) var(--space-20);
  text-align: center;
}

.cta-banner__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.cta-banner__stars {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: var(--space-4);
}

.cta-banner p {
  font-size: 1.0625rem;
  margin-bottom: var(--space-8);
  color: var(--muted-foreground);
}

/* About teaser section (homepage) */
.about-teaser {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.about-teaser__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-teaser__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.about-teaser__content h2 {
  margin-bottom: var(--space-4);
}

.about-teaser__content p {
  margin-bottom: var(--space-6);
}

/* Supervision / callout box (About page) */
.callout-box {
  background-color: var(--sage-light);
  border: 1px solid hsl(148 22% 51% / 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.callout-box__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: var(--space-3);
}

.callout-box p {
  font-size: 0.9375rem;
  color: var(--sage-dark);
}

/* Values grid (About page) */
.values-grid {
  display: grid;
  gap: var(--space-6);
}

.value-card {
  text-align: center;
  padding: var(--space-6);
}

.value-card__icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--sage-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: var(--primary);
}

.value-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.value-card p {
  font-size: 0.9375rem;
}

/* =============================================================================
   11. SERVICE CARDS
   ============================================================================= */

.services-grid {
  display: grid;
  gap: var(--space-8);
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.service-card:hover {
  border-color: hsl(148 22% 51% / 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-primary);
}

.service-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--sage-light);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-6);
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--foreground);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.service-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.service-card__meta-label {
  font-weight: 600;
  color: var(--foreground);
  flex-shrink: 0;
}

.service-card__meta-value {
  color: var(--muted-foreground);
}

/* =============================================================================
   12. BLOG GRID & POST CARDS
   ============================================================================= */

/* Category filter bar */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-10);
}

.blog-filter-btn {
  padding: 0.375rem var(--space-4);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background-color: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.blog-filter-btn:hover {
  background-color: var(--muted);
  color: var(--foreground);
}

.blog-filter-btn.is-active {
  background-color: var(--foreground);
  border-color: var(--foreground);
  color: var(--background);
}

/* Blog posts grid */
.posts-grid {
  display: grid;
  gap: var(--space-6);
}

/* Hidden post (filtered out) */
.post-card--hidden {
  display: none;
}

/* Post card */
.post-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-slow);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-primary);
  border-color: hsl(148 22% 51% / 0.25);
  transform: translateY(-2px);
}

.post-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__category {
  margin-bottom: var(--space-3);
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.35;
  margin-bottom: var(--space-3);
  transition: color var(--transition-base);
}

.post-card:hover .post-card__title {
  color: var(--primary);
}

.post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  flex: 1;

  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.post-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.post-card__meta-item svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* =============================================================================
   13. BLOG POST SINGLE
   ============================================================================= */

/* Fixed reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--rose));
  transition: width 0.1s linear;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding-block: var(--space-4);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  color: var(--border);
}

.breadcrumb__current {
  color: var(--foreground);
  font-weight: 500;
}

/* Post header */
.post-header {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  padding-block: var(--space-8) var(--space-6);
}

.post-header__category {
  margin-bottom: var(--space-4);
}

.post-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.post-header__subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.post-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.post-header__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Hero image */
.post-hero-image {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--space-12);
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article + Sidebar layout */
.post-layout {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}

/* Article body (prose content from the_content()) */
.post-content {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--foreground);
}

.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.post-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.post-content p {
  color: var(--foreground);
  margin-bottom: var(--space-5);
}

.post-content ul,
.post-content ol {
  list-style: revert;
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-content blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: var(--space-6);
  margin-block: var(--space-6);
  font-style: italic;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
}

.post-content strong { font-weight: 700; }
.post-content em     { font-style: italic; }

/* Callout boxes inside post content */
.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  margin-block: var(--space-6);
}

.callout--tip     { background-color: var(--sage-light); }
.callout--info    { background-color: hsl(220 70% 95%); }
.callout--warning { background-color: hsl(45 90% 94%); }

.callout__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.callout--tip     .callout__icon { color: var(--sage-dark); }
.callout--info    .callout__icon { color: hsl(220 70% 45%); }
.callout--warning .callout__icon { color: hsl(38 80% 45%); }

.callout__body {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.callout--tip     .callout__body { color: var(--sage-dark); }
.callout--info    .callout__body { color: hsl(220 30% 30%); }
.callout--warning .callout__body { color: hsl(38 50% 30%); }

/* Post interaction bar (copy link, feedback) */
.post-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-block: var(--space-8);
  flex-wrap: wrap;
}

.post-actions__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-right: auto;
}

/* Sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

.sidebar-card__title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
}

/* Author card */
.sidebar-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.sidebar-author__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--sage-light);
}

.sidebar-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-author__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-author__bio {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Related posts in sidebar */
.sidebar-related__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.sidebar-related__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-decoration: none;
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background-color var(--transition-base);
}

.sidebar-related__item:hover {
  background-color: var(--muted);
}

.sidebar-related__item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.4;
}

.sidebar-related__item-meta {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Scroll-to-top button */
.scroll-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-fixed);
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--foreground);
  color: var(--background);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background-color: var(--primary);
}

.scroll-top-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: 0 -4px 12px rgb(0 0 0 / 0.08);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.mobile-sticky-cta.is-visible {
  transform: translateY(0);
}

.mobile-sticky-cta__text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* Related posts grid (below article) */
.related-posts {
  padding-block: var(--space-16);
  border-top: 1px solid var(--border);
}

/* =============================================================================
   14. CONTACT FORM
   ============================================================================= */

.contact-layout {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}

/* Form wrapper */
.contact-form-wrap {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.contact-form-wrap h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.contact-form-wrap .form-intro {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-6);
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-label .required {
  color: var(--destructive);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.625rem var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--foreground);
  background-color: var(--background);
  border: 1.5px solid var(--input);
  border-radius: var(--radius);
  line-height: 1.5;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  appearance: none;
}

.form-control::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(148 22% 51% / 0.15);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--destructive);
}

/* Select */
.form-select {
  width: 100%;
  padding: 0.625rem var(--space-10) 0.625rem var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--foreground);
  background-color: var(--background);
  border: 1.5px solid var(--input);
  border-radius: var(--radius);
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(148 22% 51% / 0.15);
}

/* Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 8rem;
}

/* Inline form grid (name + email side by side at md+) */
.form-row {
  display: grid;
  gap: var(--space-4);
}

/* Feedback/status message */
.form-message {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-top: var(--space-4);
}

.form-message.is-success {
  display: block;
  background-color: var(--sage-light);
  color: var(--sage-dark);
  border: 1px solid hsl(148 22% 51% / 0.25);
}

.form-message.is-error {
  display: block;
  background-color: hsl(0 72% 96%);
  color: hsl(0 72% 38%);
  border: 1px solid hsl(0 72% 51% / 0.25);
}

/* Trust badges */
.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--muted);
  border-radius: var(--radius-xl);
}

.trust-badge__icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--sage-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.trust-badge__icon svg {
  width: 1rem;
  height: 1rem;
}

.trust-badge__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.125rem;
}

.trust-badge__desc {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Process steps (right column on Contact page) */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.process-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.process-step__number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step__content h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.process-step__content p {
  font-size: 0.9375rem;
}

/* =============================================================================
   15. FAQ ACCORDION
   ============================================================================= */

.faq-section {
  max-width: 42rem;
  margin-inline: auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-10);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Native <details> + <summary> accordion */
.faq-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
  color: var(--primary);
  background-color: hsl(148 22% 51% / 0.04);
}

.faq-item[open] summary {
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

/* Chevron icon */
.faq-item__chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--muted-foreground);
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item__answer {
  padding: var(--space-5) var(--space-6);
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* =============================================================================
   16. SCROLL REVEAL ANIMATIONS
   ============================================================================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.scroll-reveal[data-direction="down"]  { transform: translateY(-30px); }
.scroll-reveal[data-direction="left"]  { transform: translateX(30px); }
.scroll-reveal[data-direction="right"] { transform: translateX(-30px); }

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================================
   17. STAR ACCENT & TWINKLE KEYFRAMES
   ============================================================================= */

.star-accent {
  display: inline-block;
  flex-shrink: 0;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

.animate-twinkle {
  animation: twinkle 3s ease-in-out infinite;
}

.animate-twinkle-delayed {
  animation: twinkle 3s ease-in-out 1s infinite;
}

.animate-twinkle-slow {
  animation: twinkle 4s ease-in-out 0.5s infinite;
}

/* =============================================================================
   18. GRADIENT BACKGROUNDS
   ============================================================================= */

.bg-gradient-sage-rose {
  background: linear-gradient(
    to bottom right,
    var(--sage-light),
    var(--rose-light)
  );
}

.bg-gradient-hero {
  background: linear-gradient(
    to bottom right,
    hsl(150 18% 22% / 0.85),
    hsl(148 22% 30% / 0.75)
  );
}

.bg-sage-light  { background-color: var(--sage-light); }
.bg-rose-light  { background-color: var(--rose-light); }
.bg-cream       { background-color: var(--cream); }
.bg-muted       { background-color: var(--muted); }
.bg-card        { background-color: var(--card); }
.bg-foreground  { background-color: var(--foreground); }

/* =============================================================================
   19. UTILITY CLASSES
   ============================================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded-full { border-radius: var(--radius-full); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-2xl  { border-radius: var(--radius-2xl); }

.shadow-sm  { box-shadow: var(--shadow-sm); }
.shadow     { box-shadow: var(--shadow); }
.shadow-md  { box-shadow: var(--shadow-md); }
.shadow-lg  { box-shadow: var(--shadow-lg); }

.border          { border: 1px solid var(--border); }
.border-top      { border-top: 1px solid var(--border); }
.border-bottom   { border-bottom: 1px solid var(--border); }

.aspect-ratio-square    { aspect-ratio: 1 / 1; }
.aspect-ratio-video     { aspect-ratio: 16 / 9; }
.aspect-ratio-portrait  { aspect-ratio: 4 / 5; }

.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

.max-w-sm   { max-width: 24rem; }
.max-w-md   { max-width: 28rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }

.mx-auto    { margin-inline: auto; }
.py-0       { padding-block: 0; }

/* =============================================================================
   20. MEDIA QUERIES (mobile-first)
   ============================================================================= */

/* sm — 640px */
@media (min-width: 640px) {
  .posts-grid    { grid-template-columns: repeat(2, 1fr); }
  .form-row      { grid-template-columns: 1fr 1fr; }
  .sm-flex       { display: flex; }
  .sm-grid-2     { grid-template-columns: repeat(2, 1fr); }
}

/* md — 768px */
@media (min-width: 768px) {
  /* Show desktop nav, hide hamburger */
  .nav-primary        { display: flex; }
  .site-header__cta   { display: block; }
  .nav-toggle         { display: none; }
  .nav-mobile         { display: none !important; }

  /* Footer grid */
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  /* About teaser */
  .about-teaser {
    grid-template-columns: 1fr 1fr;
  }

  /* Values grid */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  /* Scroll-to-top position */
  .scroll-top-btn {
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
  }

  /* Mobile sticky CTA hidden on desktop */
  .mobile-sticky-cta {
    display: none;
  }

  .md-text-left   { text-align: left; }
  .md-grid-2      { grid-template-columns: repeat(2, 1fr); }
}

/* lg — 1024px */
@media (min-width: 1024px) {
  .container { padding-inline: var(--space-8); }

  /* Services full 3-column */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Blog posts full 3-column */
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Values full 4-column */
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Blog post: article + sidebar side by side */
  .post-layout {
    grid-template-columns: 1fr 300px;
    gap: var(--space-16);
  }

  /* Sticky sidebar */
  .post-sidebar {
    position: sticky;
    top: 5rem;
    align-self: start;
  }

  .lg-grid-3  { grid-template-columns: repeat(3, 1fr); }
  .lg-text-left { text-align: left; }
}

/* xl — 1280px */
@media (min-width: 1280px) {
  .container { padding-inline: var(--space-6); }

  .xl-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .reading-progress,
  .scroll-top-btn,
  .mobile-sticky-cta,
  .post-actions {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a { text-decoration: underline; }
}
