/* Custom styles for flourish hr - Redundancy Support */

/* CSS Variables - Flourish Brand Palette */
:root {
    --color-bg-hero: #F7EFE9;       /* warm cream for hero */
    --color-bg: #F9F5F1;            /* page background */
    --color-bg-white: #FFFFFF;      /* white sections */
    --color-bg-soft-warm: #FDF6F3;  /* soft warm sections */
    --color-primary-text: #2B2B33;  /* headings */
    --color-body-text: #4A4A55;     /* body text */
    --color-muted-text: #6B7280;    /* muted/secondary text */
    --color-accent: #E07A5F;        /* terracotta accent */
    --color-accent-dark: #C96B52;   /* button hover */
    --color-border: #E3D8CF;        /* light warm border */
}

/* Base resets and defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-body-text);
}

/* Typography - Serif headings */
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--color-primary-text);
    font-weight: 600;
}

h1 {
    line-height: 1.2;
}

h2, h3 {
    line-height: 1.3;
}

/* Button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    background-color: transparent;
    color: var(--color-primary-text);
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--color-primary-text);
}

.btn-secondary:hover {
    background-color: rgba(43, 43, 51, 0.05);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Accent colour for icons and highlights */
.text-accent {
    color: var(--color-accent);
}

.bg-accent {
    background-color: var(--color-accent);
}

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

/* Background utilities */
.bg-hero {
    background-color: var(--color-bg-hero);
}

.bg-soft-warm {
    background-color: var(--color-bg-soft-warm);
}

.bg-page {
    background-color: var(--color-bg);
}

/* FAQ accordion styling */
.faq-item summary {
    list-style: none;
}

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

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

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.2s ease;
}

/* Focus states for accessibility */
a:focus,
button:focus,
summary:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible) {
    outline: none;
}

/* Session card styling */
.session-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.session-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Pricing card */
.pricing-card {
    transition: box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* About section photo placeholder */
.avatar-placeholder {
    transition: transform 0.3s ease;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
}

/* Hero portrait */
.hero-portrait {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
}

/* Custom selection color */
::selection {
    background-color: rgba(224, 122, 95, 0.2);
    color: inherit;
}

/* Header styling */
header {
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid var(--color-border);
}

/* Brand lockup */
.brand-lockup {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--color-muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Differentiation cards */
.diff-card {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: white;
}

/* CTA strip before footer */
.cta-strip {
    background-color: var(--color-bg-soft-warm);
    border-top: 1px solid var(--color-border);
}

/* Scenario chips */
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 0.375rem 0.875rem;
    color: var(--color-body-text);
}

/* Mobile-specific adjustments */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1.125rem;
    }

    .hero-portrait {
        max-height: 400px;
        object-position: top;
    }
}

/* Print styles */
@media print {
    header,
    .btn-primary,
    .btn-secondary,
    .cta-strip {
        display: none;
    }

    body {
        font-size: 12pt;
        background: white;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .faq-item {
        border-width: 2px;
    }
}
