/*
Theme Name: TerryArthur AI Consulting
Description: A modern one-page block theme designed to showcase AI consulting and prompt engineering services with professional design and clear call-to-actions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Author: Terry Arthur
Text Domain: terryarthur
License: GPL v2 or later
*/

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--wp--preset--color--surface);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--wp--preset--color--contrast);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Global Enhancements */
.wp-site-blocks {
    scroll-behavior: smooth;
}

/* Hero Section Animations */
.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards with Professional Hover Effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Service Card Images */
.service-card .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
}

.service-card .wp-block-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}

/* Button Enhancements */
.wp-element-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.wp-element-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.wp-element-button:focus {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

.wp-element-button:active {
    transform: translateY(0);
}

/* Link Focus States */
a:focus {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Navigation Focus Enhancement */
.wp-block-navigation a:focus {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--wp--preset--color--contrast);
    }
    
    .wp-element-button {
        border: 2px solid var(--wp--preset--color--contrast);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .wp-site-blocks {
        scroll-behavior: auto;
    }
    
    .service-card,
    .wp-element-button,
    .wp-block-image img,
    .wp-block-navigation a {
        transition: none;
    }
    
    .hero-section {
        animation: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .wp-element-button:hover {
        transform: none;
    }
}

/* Professional Image Overlays */
.wp-block-image {
    position: relative;
}

.wp-block-image img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.wp-block-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

/* Navigation Enhancements */
.wp-block-navigation a {
    position: relative;
    transition: color 0.3s ease;
}

.wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--primary);
    transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after {
    width: 100%;
}

/* Section Spacing and Typography */
.section-spacing {
    padding: clamp(4rem, 8vw, 8rem) 2rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }
    
    .wp-block-columns {
        gap: 1.5rem !important;
    }
    
    .section-spacing {
        padding: clamp(2rem, 6vw, 4rem) 1rem;
    }
}

/* Custom utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===========================
   FSE-Compliant ROI Calculator
   =========================== */

.roi-input-group {
    margin: 0;
    display: block;
}

.roi-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--surface-variant);
    border-radius: 8px;
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.5;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23757575' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.roi-select:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.roi-select:hover {
    border-color: var(--wp--preset--color--primary);
}

/* Dark mode considerations */
@media (prefers-color-scheme: dark) {
    .roi-select {
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0a0' d='M6 8L0 2h12z'/%3E%3C/svg%3E");
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .roi-select {
        padding: 0.5rem 0.75rem;
        font-size: var(--wp--preset--font-size--small);
    }
}
