/* Relayworks Custom Styles - Muted Green Editorial Theme */

/* Primary Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;500&display=swap');

/* CSS Variables */
:root {
    /* Neutral Palette */
    --ink: #111111;
    --charcoal: #2A2A2A;
    --midgray: #6B6B6B;
    --lightgray: #DADADA;
    --offwhite: #F6F7F5;
    --white: #FFFFFF;

    /* Brand Palette (Muted Green) */
    --brand: #5E6F2D;
    --brand-soft: #A6B18A;
    --brand-tint: #E6EAD9;
    --brand-accent: #8FA06A;

    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--offwhite);
    color: var(--ink);
}

/* Typography - Headlines (Serif) */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.17;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.875rem;
    line-height: 1.22;
}

/* Body Text */
.body-lg {
    font-size: 1.125rem;
    line-height: 1.56;
}

.body-md {
    font-size: 1rem;
    line-height: 1.625;
}

/* UI Text */
.ui-label {
    font-size: 0.875rem;
    line-height: 1.43;
    font-weight: 500;
}

.ui-meta {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Primary Button - Pill Style */
.btn-primary {
    background-color: var(--brand);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

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

/* Secondary Button */
.btn-secondary {
    background-color: var(--brand-tint);
    color: var(--brand);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--brand-soft);
}

/* Pills / Tags */
.pill {
    background-color: var(--brand-tint);
    color: var(--midgray);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--offwhite);
}

::-webkit-scrollbar-thumb {
    background: var(--lightgray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-soft);
}

/* Header transitions */
#header {
    backdrop-filter: blur(0px);
    background-color: transparent;
}

#header.scrolled {
    backdrop-filter: blur(12px);
    background-color: rgba(246, 247, 245, 0.95);
    border-bottom: 1px solid var(--lightgray);
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* FAQ accordion styles */
.faq-icon.rotated {
    transform: rotate(180deg);
}

.faq-content {
    /* No height restrictions - using hidden class for toggle */
}

.faq-content.open {
    /* Legacy - now using hidden class */
}

/* Form input focus */
input:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(94, 111, 45, 0.1);
}

/* Selection styling */
::selection {
    background: rgba(94, 111, 45, 0.2);
    color: var(--ink);
}

/* Skip link */
.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;
}

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

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

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

/* Mobile menu animation */
#mobile-menu-panel.open {
    transform: translateX(0);
}

/* Accent bar for hero */
.accent-bar {
    background-color: var(--brand-tint);
    height: 160px;
}

/* Image styling */
img {
    border-radius: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {

    header,
    #mobile-menu,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

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