﻿/* ========================================
   VISUAL POLISH & UX REFINEMENTS
   Modern, Professional, Accessible Design
   ======================================== */

/* ========== TYPOGRAPHY ENHANCEMENTS ========== */
body {
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #4a5568;
}

/* ========== IMPROVED VISUAL HIERARCHY ========== */
.hero-title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sub-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d20313;
    display: inline-block;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 2.5rem;
}

.sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #d20313, transparent);
}

/* ========== ENHANCED BUTTONS & CTAs ========== */
.atf-themes-btn {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.atf-themes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(210, 3, 19, 0.3);
}

.atf-themes-btn .icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.atf-themes-btn:hover .icon {
    transform: translateX(4px);
}

/* ========== CARD ENHANCEMENTS ========== */
.atf-service-item,
.team-member-card,
.atf-contact-details {
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #ffffff;
    overflow: hidden;
}

.atf-service-item:hover,
.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ========== IMAGE ENHANCEMENTS ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-frame img,
.service-thumb img,
.team-img,
.about-image-gallery img {
    border-radius: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-frame:hover img,
.service-thumb:hover img {
    transform: scale(1.05);
}

.team-img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

/* ========== FORM ENHANCEMENTS ========== */
.atf_contact_input input,
.atf_contact_input textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.atf_contact_input input:focus,
.atf_contact_input textarea:focus {
    outline: none;
    border-color: #d20313;
    box-shadow: 0 0 0 3px rgba(210, 3, 19, 0.1);
    transform: translateY(-2px);
}

.atf_contact_input {
    margin-bottom: 1.5rem;
}

/* ========== HEADER ENHANCEMENTS ========== */
.atf-site-header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.atf-main-menu a {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.atf-main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d20313;
    transition: width 0.3s ease;
}

.atf-main-menu a:hover::after {
    width: 100%;
}

/* ========== FOOTER ENHANCEMENTS ========== */
.atf-footer-widget-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.atf-footer-widget-social a:hover {
    background: #d20313;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(210, 3, 19, 0.3);
}

/* ========== STATS ENHANCEMENTS ========== */
.atf-funfact-title {
    font-size: 3rem;
    font-weight: 800;
    color: #d20313;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ========== CONTACT INFO CARDS ========== */
.atf-contact-details {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-left: 4px solid #d20313;
}

.atf-contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d20313, #ff4a17);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(210, 3, 19, 0.3);
}

/* ========== ACCESSIBILITY ========== */
*:focus-visible {
    outline: 3px solid #d20313;
    outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .atf-themes-btn {
        padding: 0.875rem 1.75rem;
    }
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

/* ========== ACCESSIBILITY HELPERS ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== LOADING INDICATOR ========== */
[wire\:loading] {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

button[wire\:loading] {
    position: relative;
}

/* ========== ENHANCED SPACING ========== */
.gap-3 {
    gap: 1rem !important;
}

.text-gradient {
    background: linear-gradient(135deg, #d20313, #ff4a17);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
