/* ============================================================
   OlaVoices — Shared Tonal Theme
   Loaded AFTER Tailwind so it can refine the look site-wide.
   Strategy: gentle GLOBAL polish that upgrades every page without
   touching markup, plus OPT-IN component classes for key pages.
   ============================================================ */

:root {
    --ola-green:        #1D4E3E;  /* forest green — primary */
    --ola-green-soft:   #2D5A4A;
    --ola-green-tint:   #E8F5E9;
    --ola-orange:       #E85D04;  /* burnt orange — accent */
    --ola-amber:        #F9A825;
    --ola-cream:        #FFF8F0;  /* page background */
    --ola-sand:         #FFF3E0;
    --ola-brown:        #3D2914;  /* heading text */
    --ola-brown-soft:   #5D4E37;  /* body text */
    --ola-border:       #E8DFD5;
}

/* ---------- Safe global polish (applies everywhere) ---------- */

html { scroll-behavior: smooth; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--ola-orange);
    color: #fff;
}

/* Tighter, more confident heading rhythm site-wide */
h1, h2, h3 { letter-spacing: -0.01em; }
h1 { line-height: 1.12; }
h2 { line-height: 1.2; }

/* Warmer, softer shadows — refines every card/section automatically.
   Tailwind v2 ships flat grey shadows; these are tinted to the brand. */
.shadow-md  { box-shadow: 0 4px 14px rgba(61, 41, 20, 0.08) !important; }
.shadow-lg  { box-shadow: 0 10px 28px rgba(61, 41, 20, 0.10) !important; }
.shadow-xl  { box-shadow: 0 18px 40px rgba(61, 41, 20, 0.12) !important; }
.shadow-2xl { box-shadow: 0 26px 60px rgba(29, 78, 62, 0.18) !important; }

/* Smooth, consistent interaction feel on buttons & pill links */
a.rounded-full, button.rounded-full,
a.rounded-lg, button.rounded-lg {
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
a.rounded-full:hover, a.rounded-lg:hover { transform: translateY(-2px); }

/* Accessible brand focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--ola-amber);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Crisper images */
img { image-rendering: -webkit-optimize-contrast; }

/* ---------- Opt-in components (used on key pages) ---------- */

/* Warm, layered hero — richer than a flat gradient */
.hero-warm {
    background:
        radial-gradient(circle at 85% 20%, rgba(232, 93, 4, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(249, 168, 37, 0.18) 0%, transparent 40%),
        linear-gradient(135deg, var(--ola-green) 0%, var(--ola-green-soft) 100%);
}

/* Glow ring behind a circular portrait */
.portrait-glow { position: relative; }
.portrait-glow::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--ola-orange) 0%, var(--ola-amber) 100%);
    opacity: 0.55;
    filter: blur(2px);
    z-index: 0;
}

/* Amber underline accent for section headings */
.accent-underline {
    display: inline-block;
    position: relative;
    padding-bottom: 0.4rem;
}
.accent-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--ola-orange) 0%, var(--ola-amber) 100%);
}
.text-center .accent-underline::after { left: 50%; transform: translateX(-50%); }

/* Card hover lift (opt-in, mirrors free-tools tool-card) */
.card-lift { transition: transform .3s ease, box-shadow .3s ease; }
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(29, 78, 62, 0.16) !important;
}
