/* Common CSS for J.R. Redstone website */

/* Web Fonts */
@font-face {
    font-family: 'Dream Reacher';
    src: url('dreamreacher-webfont.woff2') format('woff2'),
         url('dreamreacher-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --gold: #D4A44C;
    --copper: #C47832;
    --midnight: #121829;
    --cream: #F0EAD6;
    --dark-navy: #1E2636;
    --warm-gray: #D5CFC5;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to Main Content Link (Accessibility) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    background: var(--gold);
    color: var(--midnight);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-to-main:focus {
    left: 0;
    top: 0;
}

/* Base Typography */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-navy);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: rgba(18, 24, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(18, 24, 41, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Dream Reacher', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    letter-spacing: normal;
    color: var(--gold);
    text-decoration: none;
    transition: transform 0.3s ease;
    font-feature-settings: "liga" 1, "dlig" 1;
    -webkit-font-feature-settings: "liga" 1, "dlig" 1;
    font-variant-ligatures: common-ligatures discretionary-ligatures;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--cream);
    font-size: 1.2rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons a:hover {
    color: var(--gold);
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(93%) sepia(9%) saturate(298%) hue-rotate(346deg) brightness(106%) contrast(94%);
    transition: filter 0.3s ease;
}

.social-icons a:hover img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(366%) hue-rotate(39deg) brightness(96%) contrast(89%);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Footer Styles */
.footer {
    background: var(--midnight);
    color: var(--cream);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer .social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(93%) sepia(9%) saturate(298%) hue-rotate(346deg) brightness(106%) contrast(94%);
    transition: filter 0.3s ease;
}

.footer .social-icons a:hover img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(366%) hue-rotate(39deg) brightness(96%) contrast(89%);
}

.footer .social-icons a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    opacity: 0.7;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* Common Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Visible Styles for Accessibility */
*:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible {
    outline-color: var(--gold);
}

button:focus-visible {
    outline-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 164, 76, 0.2);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 164, 76, 0.15);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: var(--gold);
    font-weight: 700;
}

.breadcrumb-link {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--gold);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.mobile-open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-bottom a {
        display: block;
        margin: 0.5rem 0;
    }
}

