/* ============================================
   Royal Chambers Solicitors — Custom CSS
   Replaces Tailwind utility classes
   ============================================ */

/* --- CSS Variables (Theme) ---
   This is the single source of truth for color. Every color used across the
   templates resolves to one of these variables (directly, or via an rgba()
   twin below for opacity variants) — change a value here and it propagates
   to the whole site. Templates must never hardcode a hex color. */
:root {
    --color-primary: #262B2E;
    --color-primary-dark: #17191B;
    --color-accent: #56972E;
    --color-accent-light: #74B84C;
    --color-accent-dark: #3E7220;
    --color-surface: #EEF0EC;
    --color-bg: #F7F8F6;
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-red-50: #fef2f2;
    --color-red-200: #fecaca;
    --color-red-500: #ef4444;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* --- Reset & Base --- */
/* border-style/width defaults here so any border-color + border-*-width
   utility pair renders on its own, without also needing the plain .border
   shorthand class present on the same element. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-style: solid; border-width: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* --- Container ---
   max-w-* only constrains width; it never centers on its own. Pair it with
   an explicit .mx-auto when centering is actually wanted (as most section
   containers already do) — this used to be baked in here, which silently
   mis-centered content (like the hero paragraph) that wasn't meant to be. */
.max-w-7xl { max-width: 1280px; }
.max-w-6xl { max-width: 1152px; }
.max-w-5xl { max-width: 1024px; }
.max-w-4xl { max-width: 896px; }
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }
.max-w-xl { max-width: 576px; }
.max-w-lg { max-width: 512px; }
.max-w-md { max-width: 448px; }
.max-w-xs { max-width: 320px; }
.max-w-none { max-width: none; }
.max-w-\[220px\] { max-width: 220px; }
.max-w-\[240px\] { max-width: 240px; }
.max-w-\[280px\] { max-width: 280px; }
.max-w-\[380px\] { max-width: 380px; }

/* --- Display --- */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

/* --- Vertical Align --- */
.align-top { vertical-align: top; }

/* --- Flex --- */
.flex-1 { flex: 1; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-20 { gap: 5rem; }
.gap-24 { gap: 6rem; }
.gap-16 { gap: 4rem; }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-32 { top: 8rem; }
.top-full { top: 100%; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.bottom-0 { bottom: 0; }
.bottom-1\/4 { bottom: 25%; }
.left-0 { left: 0; }
.left-4 { left: 1rem; }
.left-6 { left: 1.5rem; }
.left-8 { left: 2rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-\[200\] { z-index: 200; }

/* --- Sizing --- */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-max { width: max-content; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-80 { width: 20rem; }
.w-\[480px\] { width: 480px; }
.w-96 { width: 24rem; }
.w-\[85\%\] { width: 85%; }
.h-full { height: 100%; }
.h-0\.5 { height: 0.125rem; }
.h-\[1\.5px\] { height: 1.5px; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-44 { height: 11rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-\[480px\] { height: 480px; }
.h-\[500px\] { height: 500px; }
.h-96 { height: 24rem; }
.h-\[85\%\] { height: 85%; }
.h-\[650px\] { height: 650px; }
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.min-h-\[145px\] { min-height: 145px; }
.min-h-\[420px\] { min-height: 420px; }
.min-w-\[145px\] { min-width: 145px; }
.max-h-\[90vh\] { max-height: 90vh; }
.w-\[85\%\] { width: 85%; }
.h-\[85\%\] { height: 85%; }

/* --- Aspect Ratio --- */
.aspect-square { aspect-ratio: 1; }
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[3\/4\] { aspect-ratio: 3/4; }

/* --- Spacing: Margin --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-24 { margin-bottom: 6rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.-mt-2 { margin-top: -0.5rem; }
.-bottom-4 { bottom: -1rem; }
.-bottom-6 { bottom: -1.5rem; }
.-bottom-8 { bottom: -2rem; }
.-bottom-10 { bottom: -2.5rem; }
.-left-6 { left: -1.5rem; }
.-left-8 { left: -2rem; }
.-left-10 { left: -2.5rem; }
.-left-24 { left: -6rem; }
.-right-4 { right: -1rem; }
.-right-20 { right: -5rem; }
.-right-32 { right: -8rem; }
.-top-20 { top: -5rem; }
.-top-24 { top: -6rem; }
.-top-32 { top: -8rem; }

/* --- Spacing: Padding --- */
.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pt-48 { padding-top: 12rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-32 { padding-bottom: 8rem; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-5 { padding-left: 1.25rem; }
.pl-8 { padding-left: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }

/* --- Typography --- */
.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.normal-case { text-transform: none; }
.underline { text-decoration: underline; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }
.leading-\[1\.15\] { line-height: 1.15; }

.text-xs { font-size: 0.75rem; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[13px\] { font-size: 13px; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.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; }
.text-8xl { font-size: 6rem; }

.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[2px\] { letter-spacing: 2px; }
.tracking-\[3px\] { letter-spacing: 3px; }
.tracking-\[4px\] { letter-spacing: 4px; }
.tracking-\[6px\] { letter-spacing: 6px; }
.tracking-\[8px\] { letter-spacing: 8px; }

/* --- Colors: Text --- */
.text-primary { color: var(--color-primary); }
.text-primary\/20 { color: rgba(38, 43, 46, 0.2); }
.text-primary\/60 { color: rgba(38, 43, 46, 0.6); }
.text-primary\/90 { color: rgba(38, 43, 46, 0.9); }
.text-accent { color: var(--color-accent); }
.text-accent\/10 { color: rgba(86, 151, 46, 0.1); }
.text-accent\/30 { color: rgba(86, 151, 46, 0.3); }
.text-accent-light { color: var(--color-accent-light); }
.text-white { color: var(--color-white); }
.text-white\/5 { color: rgba(255, 255, 255, 0.05); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-slate-400 { color: var(--color-slate-400); }
.text-slate-500 { color: var(--color-slate-500); }
.text-slate-600 { color: var(--color-slate-600); }
.text-red-600 { color: var(--color-red-600); }
.text-red-700 { color: var(--color-red-700); }

/* --- Colors: Background --- */
.bg-primary { background-color: var(--color-primary); }
.bg-red-50 { background-color: var(--color-red-50); }
.bg-red-500 { background-color: var(--color-red-500); }
.bg-red-600 { background-color: var(--color-red-600); }
.bg-accent { background-color: var(--color-accent); }
.bg-accent\/5 { background-color: rgba(86, 151, 46, 0.05); }
.bg-accent\/10 { background-color: rgba(86, 151, 46, 0.1); }
.bg-accent\/20 { background-color: rgba(86, 151, 46, 0.2); }
.bg-accent\/30 { background-color: rgba(86, 151, 46, 0.3); }
.bg-accent\/90 { background-color: rgba(86, 151, 46, 0.9); }
.bg-white { background-color: var(--color-white); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-surface { background-color: var(--color-surface); }
.bg-transparent { background-color: transparent; }
.bg-transparent\/5 { background-color: rgba(0, 0, 0, 0.05); }
.bg-slate-50 { background-color: var(--color-slate-50); }
.bg-slate-200 { background-color: var(--color-slate-200); }
.bg-slate-200\/50 { background-color: rgba(226, 232, 240, 0.5); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-page { background-color: var(--color-bg); }
.bg-page\/95 { background-color: rgba(247, 248, 246, 0.95); }

/* --- Gradients --- */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--grad-from, transparent), var(--grad-via, transparent), var(--grad-to, transparent)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--grad-from, transparent), var(--grad-via, transparent), var(--grad-to, transparent)); }
.from-page { --grad-from: var(--color-bg); }
.from-page\/40 { --grad-from: rgba(247, 248, 246, 0.4); }
.from-primary\/60 { --grad-from: rgba(38, 43, 46, 0.6); }
.from-primary\/80 { --grad-from: rgba(38, 43, 46, 0.8); }
.via-page\/90 { --grad-via: rgba(247, 248, 246, 0.9); }
.via-transparent { --grad-via: transparent; }
.to-transparent { --grad-to: transparent; }

/* --- Colors: Border --- */
.border-primary { border-color: var(--color-primary); }
.border-primary\/10 { border-color: rgba(38, 43, 46, 0.1); }
.border-accent { border-color: var(--color-accent); }
.border-accent\/10 { border-color: rgba(86, 151, 46, 0.1); }
.border-accent\/20 { border-color: rgba(86, 151, 46, 0.2); }
.border-white { border-color: var(--color-white); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-slate-50 { border-color: var(--color-slate-50); }
.border-slate-100 { border-color: var(--color-slate-100); }
.border-slate-200 { border-color: var(--color-slate-200); }
.border-red-200 { border-color: var(--color-red-200); }
.border-black\/10 { border-color: rgba(0, 0, 0, 0.1); }

/* --- Border --- */
.border { border: 1px solid; }
.border-1 { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-\[6px\] { border-width: 6px; }
.border-\[20px\] { border-width: 20px; }
.border-\[30px\] { border-width: 30px; }
.border-\[40px\] { border-width: 40px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.last\:border-0:last-child { border-width: 0; }
.border-l-4 { border-left-width: 4px; }
.border-collapse { border-collapse: collapse; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[32px\] { border-radius: 32px; }
.rounded-\[40px\] { border-radius: 40px; }
.rounded-\[50px\] { border-radius: 50px; }
.rounded-r-3xl { border-top-right-radius: 1.5rem; border-bottom-right-radius: 1.5rem; }
.rounded-t-\[40px\] { border-top-left-radius: 40px; border-top-right-radius: 40px; }
.rounded-t-\[24px\] { border-top-left-radius: 24px; border-top-right-radius: 24px; }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }

/* --- Effects --- */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-premium { box-shadow: 0 30px 60px -15px rgba(38,43,46,0.2); }
.shadow-primary\/20 { box-shadow: 0 10px 15px -3px rgba(38,43,46,0.2); }

.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

.blur-\[60px\] { filter: blur(60px); }
.blur-\[80px\] { filter: blur(80px); }
.blur-\[100px\] { filter: blur(100px); }
.blur-\[120px\] { filter: blur(120px); }

.grayscale { filter: grayscale(100%); }
.object-cover { object-fit: cover; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* Subtle dot texture for section backgrounds that would otherwise be flat. */
.bg-dot-grid {
    background-image: radial-gradient(rgba(38, 43, 46, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.overflow-hidden { overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.pointer-events-none { pointer-events: none; }
.resize-none { resize: none; }
.cursor-pointer { cursor: pointer; }
.outline-none { outline: none; }
.accent-accent { accent-color: var(--color-accent); }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.break-all { word-break: break-all; }
.whitespace-nowrap { white-space: nowrap; }

/* --- Transition --- */
.transition { transition: all 0.15s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.duration-300 { transition-duration: 0.3s; }
.duration-500 { transition-duration: 0.5s; }
.duration-700 { transition-duration: 0.7s; }
.duration-1000 { transition-duration: 1s; }

/* --- Transforms --- */
.scale-105 { transform: scale(1.05); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-x-1\/2 { transform: translateX(50%); }
.translate-x-1\/3 { transform: translateX(33.333%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-1\/2 { transform: translateY(50%); }
.translate-y-0 { transform: translateY(0); }
.translate-y-4 { transform: translateY(1rem); }

/* --- Hover Effects --- */
.hover\:bg-accent:hover { background-color: var(--color-accent); }
.hover\:bg-white:hover { background-color: var(--color-white); }
.hover\:bg-white\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:bg-black:hover { background-color: #000; }
.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-slate-50:hover { background-color: var(--color-slate-50); }
.hover\:bg-red-50:hover { background-color: var(--color-red-50); }
.hover\:bg-red-600:hover { background-color: var(--color-red-600); }
.hover\:text-red-600:hover { color: var(--color-red-600); }
.hover\:text-red-700:hover { color: var(--color-red-700); }
.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:text-accent\/80:hover { color: rgba(86,151,46,0.8); }
.hover\:text-white:hover { color: var(--color-white); }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.hover\:shadow-premium:hover { box-shadow: 0 30px 60px -15px rgba(38,43,46,0.3); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:border-accent\/30:hover { border-color: rgba(86,151,46,0.3); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:gap-4:hover { gap: 1rem; }
.hover\:gap-5:hover { gap: 1.25rem; }

/* --- Group Hover --- */
.group:hover .group-hover\:bg-accent { background-color: var(--color-accent); }
.group:hover .group-hover\:bg-primary { background-color: var(--color-primary); }
.group:hover .group-hover\:text-accent { color: var(--color-accent); }
.group:hover .group-hover\:text-primary { color: var(--color-primary); }
.group:hover .group-hover\:text-white { color: var(--color-white); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:w-4 { width: 1rem; }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0); }

/* --- Focus --- */
.focus\:border-accent:focus { border-color: var(--color-accent); }
.focus\:outline-none:focus { outline: none; }

/* --- Backdrop --- */
.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.backdrop-blur-lg { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* --- Form Fields ---
   Single source of truth for every admin text input / textarea / select.
   Replaces the old flat bg-surface + hairline-border look (which read as
   "thin"/undefined) with a white field, a visible resting border, a subtle
   resting shadow for depth, and a proper focus ring. Use .field-input for
   normal fields, .field-input-sm for dense multi-item repeater cards
   (Feature Highlights, Values, Milestones, etc). */
.field-input {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--color-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input:hover { border-color: var(--color-slate-300); }
.field-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(86, 151, 46, 0.14);
}
.field-input::placeholder { color: var(--color-slate-400); }

.field-input-sm {
    width: 100%;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    color: var(--color-primary);
    font-size: 0.8125rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-input-sm:hover { border-color: var(--color-slate-300); }
.field-input-sm:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(86, 151, 46, 0.14);
}
.field-input-sm::placeholder { color: var(--color-slate-400); }

select.field-input, select.field-input-sm { cursor: pointer; }

/* --- Buttons ---
   One reusable base (.btn) carries the shape, type, and the single hover
   effect (a background-color shift only — the button stays put, no
   transform, no shadow). Pair it with exactly one variant class for color:
   btn-primary / btn-outline / btn-outline-dark / btn-dark.
   Never style a button outside this file. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    padding: 16px 32px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

/* Variant: solid brand green — the main call to action everywhere. */
.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
}

/* Variant: solid dark — secondary action paired next to .btn-primary. */
.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn-dark:hover {
    background: var(--color-primary-dark);
}

/* Variant: outline for dark/photo backgrounds — light border and text. */
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Variant: outline for light backgrounds — dark border and text. */
.btn-outline-dark {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-dark:hover {
    background: rgba(38, 43, 46, 0.08);
}

.card-premium {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(38, 43, 46, 0.06);
    border: 1px solid var(--color-slate-100);
    transition: all 0.4s ease;
}
.card-premium:hover {
    box-shadow: 0 30px 60px -15px rgba(38, 43, 46, 0.14);
    transform: translateY(-4px);
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light), var(--color-accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4); }
.text-shadow-lg { text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5); }

/* --- Animation --- */
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}
.animate-pulse { animation: pulse 3s ease-in-out infinite; }

/* --- Prose --- */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1.5rem; color: var(--color-slate-600); line-height: 1.75; max-width: 65ch; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--color-primary); }
.prose h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: var(--color-primary); }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--color-slate-600); }
.prose li { margin-bottom: 0.5rem; }
.prose-slate { --prose-body: var(--color-slate-600); }

/* --- Underline decorations --- */
.decoration-4 { text-decoration-thickness: 4px; }
.decoration-accent\/30 { text-decoration-color: rgba(86,151,46,0.3); }
.decoration-white\/5 { text-decoration-color: rgba(255,255,255,0.05); }
.underline-offset-8 { text-underline-offset: 8px; }

/* --- Ring --- */
.ring-1 { box-shadow: 0 0 0 1px; }
.ring-accent\/20 { box-shadow: 0 0 0 1px rgba(86,151,46,0.2); }

/* --- Colspan --- */
.col-span-1 { grid-column: span 1; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* --- Space (vertical margin between children) --- */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* --- Divide (border between children) --- */
.divide-y > * + * { border-top-width: 1px; }
.divide-x > * + * { border-left-width: 1px; }
.divide-slate-100 > * + * { border-color: var(--color-slate-100); }
.divide-white\/10 > * + * { border-color: rgba(255, 255, 255, 0.1); }

/* === Responsive: sm (≥640px) === */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:text-left { text-align: left; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:text-6xl { font-size: 3.75rem; }
    .sm\:w-\[500px\] { width: 500px; }
}

/* === Responsive: md (≥768px) === */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:p-12 { padding: 3rem; }
    .md\:p-16 { padding: 4rem; }
    .md\:text-left { text-align: left; }
    .md\:text-lg { font-size: 1.125rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:text-8xl { font-size: 6rem; }
}

/* === Responsive: lg (≥1024px) === */
@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:flex-col { flex-direction: column; }
    .lg\:col-span-1 { grid-column: span 1; }
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:col-span-4 { grid-column: span 4; }
    .lg\:col-span-5 { grid-column: span 5; }
    .lg\:col-span-7 { grid-column: span 7; }
    .lg\:col-span-8 { grid-column: span 8; }
    .lg\:col-span-12 { grid-column: span 12; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    .lg\:divide-x > * + * { border-left-width: 1px; }
    .lg\:divide-y-0 > * + * { border-top-width: 0; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:w-2\/5 { width: 40%; }
    .lg\:w-3\/5 { width: 60%; }
    .lg\:w-14 { width: 3.5rem; }
    .lg\:h-1\/2 { height: 50%; }
    .lg\:h-14 { height: 3.5rem; }
    .lg\:h-full { height: 100%; }
    .lg\:h-64 { height: 16rem; }
    .lg\:h-\[600px\] { height: 600px; }
    .lg\:gap-6 { gap: 1.5rem; }
    .lg\:gap-8 { gap: 2rem; }
    .lg\:gap-10 { gap: 2.5rem; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:gap-20 { gap: 5rem; }
    .lg\:gap-24 { gap: 6rem; }
    .lg\:p-7 { padding: 1.75rem; }
    .lg\:p-8 { padding: 2rem; }
    .lg\:p-10 { padding: 2.5rem; }
    .lg\:p-12 { padding: 3rem; }
    .lg\:p-16 { padding: 4rem; }
    .lg\:p-20 { padding: 5rem; }
    .lg\:p-24 { padding: 6rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
    .lg\:pl-10 { padding-left: 2.5rem; }
    .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
    .lg\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
    .lg\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .lg\:pt-8 { padding-top: 2rem; }
    .lg\:pt-10 { padding-top: 2.5rem; }
    .lg\:pt-12 { padding-top: 3rem; }
    .lg\:pt-24 { padding-top: 6rem; }
    .lg\:pt-40 { padding-top: 10rem; }
    .lg\:pt-32 { padding-top: 8rem; }
    .lg\:pt-48 { padding-top: 12rem; }
    .lg\:pb-20 { padding-bottom: 5rem; }
    .lg\:pb-24 { padding-bottom: 6rem; }
    .lg\:pb-32 { padding-bottom: 8rem; }
    .lg\:mt-0 { margin-top: 0; }
    .lg\:mt-3 { margin-top: 0.75rem; }
    .lg\:mt-10 { margin-top: 2.5rem; }
    .lg\:mt-14 { margin-top: 3.5rem; }
    .lg\:mt-20 { margin-top: 5rem; }
    .lg\:mb-2 { margin-bottom: 0.5rem; }
    .lg\:mb-3 { margin-bottom: 0.75rem; }
    .lg\:mb-4 { margin-bottom: 1rem; }
    .lg\:mb-6 { margin-bottom: 1.5rem; }
    .lg\:mb-8 { margin-bottom: 2rem; }
    .lg\:mb-10 { margin-bottom: 2.5rem; }
    .lg\:mb-12 { margin-bottom: 3rem; }
    .lg\:mb-16 { margin-bottom: 4rem; }
    .lg\:mb-20 { margin-bottom: 5rem; }
    .lg\:mb-24 { margin-bottom: 6rem; }
    .lg\:mb-32 { margin-bottom: 8rem; }
    .lg\:bottom-4 { bottom: 1rem; }
    .lg\:right-4 { right: 1rem; }
    .lg\:left-8 { left: 2rem; }
    .lg\:-bottom-10 { bottom: -2.5rem; }
    .lg\:-left-10 { left: -2.5rem; }
    .lg\:text-base { font-size: 1rem; }
    .lg\:text-lg { font-size: 1.125rem; }
    .lg\:text-3xl { font-size: 1.875rem; }
    .lg\:text-4xl { font-size: 2.25rem; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:rounded-\[50px\] { border-radius: 50px; }
    .lg\:border-\[8px\] { border-width: 8px; }
    .lg\:space-y-8 > * + * { margin-top: 2rem; }
    .lg\:space-y-16 > * + * { margin-top: 4rem; }
    .lg\:max-w-\[240px\] { max-width: 240px; }
    .lg\:scroll-mt-48 { scroll-margin-top: 12rem; }
}

/* --- Mobile-specific negative transforms --- */
.-translate-y-2 { transform: translateY(-0.5rem); }
.-rotate-45 { transform: rotate(-45deg); }
.rotate-45 { transform: rotate(45deg); }
.rotate-180 { transform: rotate(180deg); }
