/* ============================================
   Dillon's Double D's Bar and Offsale
   Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(166, 44, 44, 0.15);
    color: #4a1212;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Navigation --- */
.nav {
    background: rgba(250, 247, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(196, 181, 170, 0.2);
}

.nav.scrolled {
    background: rgba(250, 247, 245, 0.97);
    box-shadow: 0 1px 0 rgba(196, 181, 170, 0.15);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #a62c2c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    cursor: pointer;
}

.mobile-menu-btn.active #menuLine1 {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active #menuLine2 {
    transform: rotate(-45deg) translate(2px, -2px);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    position: relative;
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-gradient {
    background: linear-gradient(
        135deg,
        rgba(74, 18, 18, 0.92) 0%,
        rgba(110, 28, 28, 0.85) 40%,
        rgba(140, 36, 36, 0.78) 100%
    );
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(45, 11, 11, 0.3) 0%,
        rgba(45, 11, 11, 0.1) 50%,
        rgba(45, 11, 11, 0.5) 100%
    );
}

.hero-img {
    will-change: transform;
}

.hero-content {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.hero-title {
    letter-spacing: -0.02em;
}

.hero-tag {
    opacity: 0.9;
}

.hero-subtitle {
    max-width: 28rem;
}

/* Hero Card */
.hero-card {
    background: rgba(253, 242, 242, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(253, 242, 242, 0.12);
    padding: 2rem;
    margin-top: 2rem;
}

.hero-card-line {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, #f2c4c4, transparent);
    margin-bottom: 1.5rem;
}

.hero-card-content {
    margin-bottom: 1.25rem;
}

.hero-card-content:last-child {
    margin-bottom: 0;
}

.hero-card-label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(242, 196, 196, 0.6);
    margin-bottom: 0.35rem;
}

.hero-card-value {
    font-size: 1rem;
    color: rgba(253, 242, 242, 0.9);
    font-weight: 300;
    line-height: 1.6;
}

.hero-card-divider {
    height: 1px;
    background: rgba(253, 242, 242, 0.08);
    margin: 1.25rem 0;
}

/* Hero Scroll */
.hero-scroll {
    opacity: 0.5;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #a62c2c;
    color: #fdf2f2;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #a62c2c;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    background: #8c2424;
    border-color: #8c2424;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166, 44, 44, 0.25);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    color: rgba(253, 242, 242, 0.8);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(253, 242, 242, 0.2);
    transition: all 0.4s ease;
}

.btn-ghost:hover {
    border-color: rgba(253, 242, 242, 0.5);
    color: #fdf2f2;
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #fdf2f2;
    color: #4a1212;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #fdf2f2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-white:hover {
    background: transparent;
    color: #fdf2f2;
    transform: translateY(-2px);
}

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #fdf2f2;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(253, 242, 242, 0.3);
    transition: all 0.4s ease;
}

.btn-white-outline:hover {
    border-color: #fdf2f2;
    background: rgba(253, 242, 242, 0.08);
    transform: translateY(-2px);
}

/* --- Divider --- */
.divider {
    padding: 3rem 0;
}

/* --- Section Styles --- */
.section-tag {
    display: flex;
}

.section-title {
    letter-spacing: -0.01em;
}

/* --- About --- */
.about-image-wrapper {
    position: relative;
}

.about-image-main {
    overflow: hidden;
}

.about-image-main img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image-wrapper:hover .about-image-main img {
    transform: scale(1.02);
}

.about-image-accent {
    background: #faddd6;
}

.about-image-accent2 {
    border-color: rgba(232, 154, 154, 0.4);
}

/* --- Services --- */
.services {
    position: relative;
}

.service-card {
    opacity: 1;
}

.service-card-inner {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(166, 44, 44, 0.08);
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* --- Image Strip --- */
.image-strip {
    overflow: hidden;
}

.image-strip img {
    transition: opacity 0.3s ease;
}

.image-strip:hover img {
    opacity: 0.6;
}

.image-strip img:hover {
    opacity: 1;
}

/* --- Visit --- */
.visit-info {
    padding-left: 1rem;
    border-left: 1px solid rgba(196, 181, 170, 0.3);
}

.map-wrapper {
    position: relative;
}

.map-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(196, 181, 170, 0.3);
    pointer-events: none;
}

/* --- CTA --- */
.cta {
    position: relative;
}

/* --- Contact Form --- */
.form-input {
    width: 100%;
}

.form-input:focus {
    border-bottom-color: #a62c2c !important;
}

.form-input::placeholder {
    color: #c4b5aa;
}

.form-input:focus {
    border-bottom-color: #a62c2c;
    background: transparent;
}

.form-success {
    animation: fadeIn 0.4s ease forwards;
}

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

/* --- Footer --- */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(253, 242, 242, 0.2), transparent);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: #a62c2c;
    color: #fdf2f2;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 40;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #8c2424;
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --- Reveal Animations (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion - no animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-card {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-title span {
        font-size: 3rem !important;
    }
    
    .section-title {
        font-size: 2.5rem !important;
    }
    
    .about-image-accent {
        width: 32px;
        height: 32px;
        bottom: -2rem;
        right: -2rem;
    }
    
    .about-image-accent2 {
        display: none;
    }
    
    .image-strip .flex-shrink-0 {
        width: 120px;
    }
    
    .visit-info {
        padding-left: 0.75rem;
    }
    
    .visit-info p {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-title span {
        font-size: 2.5rem !important;
    }
    
    .hero-card {
        padding: 1.25rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 1px solid #a62c2c;
    outline-offset: 2px;
}

/* --- Print --- */
@media print {
    .nav, .back-to-top, .hero-scroll, .image-strip {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-bg {
        display: none;
    }
}
