/* ===== AEVO — Shared Styles ===== */

:root {
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark: #1a1a1a;
    --footer-dark: #141414;
    --accent: #6b6b6b; /* Improved from #8e8e8e for WCAG AA contrast */
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- SKIP NAVIGATION (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 10px;
}

/* --- FOCUS STYLES (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 2px;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

nav.scrolled {
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.98);
}

.nav-spacer { flex: 1; }

.logo-container {
    flex: 1;
    text-align: center;
}

.logo-container a {
    display: inline-block;
}

.logo-container img {
    height: 40px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active-page {
    border-bottom: 1px solid var(--dark);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    color: var(--dark);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--footer-dark);
    color: #fff;
    padding: 80px 8% 40px 8%;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.footer-brand p {
    color: #aaa; /* Improved contrast from #888 */
    font-size: 14px;
    max-width: 300px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    border: 1px solid #333;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.social-icons a:hover {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.footer-column h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #aaa; /* Improved contrast from #888 */
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-track-btn {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 0;
}

.footer-track-btn a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border: none;
    transition: var(--transition);
}

.footer-track-btn a:hover {
    background: #ddd;
}

.footer-track-btn a svg {
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999; /* Improved contrast from #555 */
    letter-spacing: 1px;
}

.footer-bottom-links a {
    color: #999; /* Improved contrast from #555 */
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--dark);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #333;
}

/* --- SHARED PRODUCT GRID STYLES --- */
.image-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--light-gray);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- RESPONSIVE BASE --- */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 15px 5%; }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .logo-container { order: 2; flex: 1; }
    .nav-spacer { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links.active { display: flex; }

    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: 100%; margin: 0 auto 25px auto; }
    .social-icons { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .footer-bottom-links a { margin: 0 10px; }
}

/* --- QUOTE CTA SECTION --- */
.quote-cta {
    text-align: center;
    padding: 80px 5%;
    background: var(--light-gray);
}

.quote-cta p {
    font-size: 15px;
    color: #555;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 30px;
    letter-spacing: 0.3px;
}

.quote-cta .btn-quote {
    display: inline-block;
    padding: 16px 44px;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.quote-cta .btn-quote:hover {
    background: transparent;
    color: var(--dark);
}

/* --- PRINT STYLES --- */
@media print {
    nav, .main-footer, .back-to-top, .skip-link, .menu-toggle { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    .main-container { margin-top: 0 !important; }
}
