/**
 * Homepage Redesign - Rolstons
 * Transforms the boring white homepage into a professional dark theme
 * matching the resume page aesthetic
 */

/* ==========================================================================
   CSS VARIABLES - Design System
   ========================================================================== */

:root {
    /* Primary colors - matching resume pages */
    --rols-dark-900: #0f172a;
    --rols-dark-800: #1e293b;
    --rols-dark-700: #334155;
    --rols-dark-600: #475569;
    
    /* Accent colors */
    --rols-blue-500: #3b82f6;
    --rols-blue-400: #60a5fa;
    --rols-blue-600: #2563eb;
    
    /* Neutral colors */
    --rols-white: #ffffff;
    --rols-gray-100: #f1f5f9;
    --rols-gray-200: #e2e8f0;
    --rols-gray-300: #cbd5e1;
    --rols-gray-400: #94a3b8;
    
    /* Gradients */
    --rols-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --rols-gradient-hero: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --rols-gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    
    /* Shadows */
    --rols-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --rols-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --rols-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --rols-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --rols-section-padding: clamp(3rem, 8vw, 6rem);
}

/* ==========================================================================
   TYPOGRAPHY IMPROVEMENTS
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix the missing 's' character issue - likely a font problem */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hjp-Ek-_0.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hjp-Ek-_0.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuI6fAZ9hjp-Ek-_0.woff2') format('woff2');
}

/* ==========================================================================
   HEADER TRANSFORMATION
   ========================================================================== */

header.site-header,
.site-header {
    background: var(--rols-gradient-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

header .wp-block-group,
.site-header .wp-block-group {
    background: transparent !important;
}

/* Logo styling */
header .wp-block-site-logo img,
.site-header img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

header .wp-block-site-logo img:hover {
    transform: scale(1.05);
}

/* Navigation links */
header a,
.site-header a,
header .wp-block-navigation-item a {
    color: var(--rols-white) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

header a:hover,
.site-header a:hover,
header .wp-block-navigation-item a:hover {
    color: var(--rols-blue-400) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   HERO SECTION TRANSFORMATION
   ========================================================================== */

/* Target the hero section - first major content block */
.entry-content > .wp-block-group:first-child,
.wp-block-post-content > .wp-block-group:first-child,
.alignfull:first-of-type {
    background: var(--rols-gradient-hero) !important;
    padding: var(--rols-section-padding) 0 !important;
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay to hero */
.entry-content > .wp-block-group:first-child::before,
.wp-block-post-content > .wp-block-group:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero text styling */
.entry-content > .wp-block-group:first-child h1,
.entry-content > .wp-block-group:first-child h2,
.wp-block-post-content > .wp-block-group:first-child h1 {
    color: var(--rols-white) !important;
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    margin-bottom: 1rem !important;
}

.entry-content > .wp-block-group:first-child p,
.wp-block-post-content > .wp-block-group:first-child p {
    color: var(--rols-gray-300) !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    max-width: 600px;
}

/* Hero CTA button */
.entry-content > .wp-block-group:first-child .wp-block-button__link,
.wp-block-post-content > .wp-block-group:first-child .wp-block-button__link {
    background: var(--rols-blue-500) !important;
    color: var(--rols-white) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.4);
}

.entry-content > .wp-block-group:first-child .wp-block-button__link:hover {
    background: var(--rols-blue-600) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   TEAM SECTION - CARDS TRANSFORMATION
   ========================================================================== */

/* Team section heading */
.entry-content h2:not(:first-child),
.wp-block-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: var(--rols-dark-900) !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.01em;
}

/* Section subtitles */
.entry-content h2 + p,
.wp-block-heading + p {
    color: var(--rols-gray-400) !important;
    font-size: 1.125rem !important;
    margin-bottom: 2.5rem !important;
}

/* Team member cards container */
.wp-block-columns {
    gap: 1.5rem !important;
}

/* Individual team member cards */
.wp-block-column {
    background: var(--rols-gradient-card) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: var(--rols-shadow-md) !important;
    border: 1px solid var(--rols-gray-200) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.wp-block-column:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--rols-shadow-xl) !important;
    border-color: var(--rols-blue-500) !important;
}

/* Card accent line on hover */
.wp-block-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rols-blue-500), var(--rols-blue-400));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wp-block-column:hover::before {
    transform: scaleX(1);
}

/* Profile images */
.wp-block-image img,
figure.wp-block-image img {
    border-radius: 50% !important;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border: 4px solid var(--rols-white) !important;
    box-shadow: var(--rols-shadow-lg) !important;
    margin: 0 auto 1.5rem !important;
    display: block !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.wp-block-column:hover .wp-block-image img {
    transform: scale(1.05);
    box-shadow: 0 12px 24px -8px rgba(59, 130, 246, 0.3);
}

/* Team member names */
.wp-block-column h3,
.wp-block-column .wp-block-heading {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--rols-dark-900) !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
}

/* Job titles */
.wp-block-column h3 + p,
.wp-block-column .wp-block-heading + p {
    color: var(--rols-blue-500) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

/* Description text */
.wp-block-column p:not(:first-of-type) {
    color: var(--rols-gray-400) !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* ==========================================================================
   VIEW PROFILE BUTTONS - UNIFIED STYLE
   ========================================================================== */

/* Override the inconsistent button colors */
.wp-block-button__link,
.wp-element-button {
    background: var(--rols-dark-800) !important;
    color: var(--rols-white) !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background: var(--rols-blue-500) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    text-decoration: none !important;
}

/* Arrow animation on hover */
.wp-block-button__link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.wp-block-button__link:hover::after {
    transform: translateX(4px);
}

/* Center buttons in cards */
.wp-block-column .wp-block-buttons {
    display: flex !important;
    justify-content: center !important;
    margin-top: 1.5rem !important;
}

/* ==========================================================================
   CTA SECTION (Ready to Connect?)
   ========================================================================== */

/* Find and style the CTA section */
.alignfull:has(h2:contains("Connect")),
.wp-block-group:has(h2:contains("Connect")) {
    background: var(--rols-gradient-dark) !important;
    padding: var(--rols-section-padding) !important;
    text-align: center !important;
    margin-top: 4rem !important;
}

/* General CTA-like sections */
.has-gradient-one-gradient-background,
[class*="gradient"] {
    background: var(--rols-gradient-dark) !important;
}

.has-gradient-one-gradient-background h2,
.has-gradient-one-gradient-background p,
[class*="gradient"] h2,
[class*="gradient"] p {
    color: var(--rols-white) !important;
}

.has-gradient-one-gradient-background .wp-block-button__link,
[class*="gradient"] .wp-block-button__link {
    background: var(--rols-white) !important;
    color: var(--rols-dark-900) !important;
}

.has-gradient-one-gradient-background .wp-block-button__link:hover,
[class*="gradient"] .wp-block-button__link:hover {
    background: var(--rols-blue-400) !important;
    color: var(--rols-white) !important;
}

/* ==========================================================================
   FOOTER TRANSFORMATION
   ========================================================================== */

footer.site-footer,
.site-footer,
footer,
[class*="footer"] {
    background: var(--rols-dark-900) !important;
    color: var(--rols-white) !important;
    padding: 3rem 0 !important;
}

footer h2,
footer h3,
footer h4,
.site-footer h2,
.site-footer h3 {
    color: var(--rols-white) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1rem !important;
}

footer a,
.site-footer a {
    color: var(--rols-gray-300) !important;
    transition: color 0.2s ease !important;
}

footer a:hover,
.site-footer a:hover {
    color: var(--rols-blue-400) !important;
}

footer p,
.site-footer p {
    color: var(--rols-gray-400) !important;
}

/* ==========================================================================
   SECTION SPACING & LAYOUT
   ========================================================================== */

.entry-content > .wp-block-group,
.wp-block-post-content > .wp-block-group {
    padding: var(--rols-section-padding) 1.5rem !important;
}

/* Constrain content width */
.alignwide {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --rols-section-padding: 3rem;
    }
    
    .wp-block-column {
        padding: 1.5rem !important;
    }
    
    .wp-block-image img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .entry-content > .wp-block-group:first-child h1,
    .wp-block-post-content > .wp-block-group:first-child h1 {
        font-size: 2rem !important;
    }
}

/* ==========================================================================
   SMOOTH SCROLL & INTERACTIONS
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 2px solid var(--rols-blue-500);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: var(--rols-blue-500);
    color: var(--rols-white);
}

/* ==========================================================================
   ANIMATION ENHANCEMENTS
   ========================================================================== */

/* Fade in animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-column {
    animation: fadeInUp 0.6s ease forwards;
}

.wp-block-column:nth-child(1) { animation-delay: 0.1s; }
.wp-block-column:nth-child(2) { animation-delay: 0.2s; }
.wp-block-column:nth-child(3) { animation-delay: 0.3s; }
.wp-block-column:nth-child(4) { animation-delay: 0.4s; }
.wp-block-column:nth-child(5) { animation-delay: 0.5s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

