/* Custom styles supplementing Tailwind CSS for Schieffer Masonry & Concrete */

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2e8ec;
}
::-webkit-scrollbar-thumb {
    background: #a86678;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a3f4e;
}

/* Selection color */
::selection {
    background-color: #7a3f4e;
    color: #fffbeb;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav, #back-to-top, .cta-btn { display: none; }
    body { color: #000; background: #fff; }
    .hero-overlay { background: #542c38 !important; }
}

/* Reduced motion */
@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; }
}

/* Image object-fit fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle pattern for sections */
.bg-brick-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='30' viewBox='0 0 60 30' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='28' height='13' x='0' y='0' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3Crect width='28' height='13' x='30' y='0' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3Crect width='28' height='13' x='15' y='15' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3Crect width='28' height='13' x='45' y='15' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Nav link hover underline animation */
nav a:not(.cta-btn) {
    position: relative;
}
nav a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}
nav a:not(.cta-btn):hover::after {
    width: 100%;
}

/* Service card image container */
.service-card .relative {
    position: relative;
}

/* Divider ornament */
.divider-ornament {
    display: flex;
    align-items: center;
    gap: 16px;
}
.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b45309, transparent);
}

/* Testimonial quote styling */
.bg-plum-50 blockquote {
    position: relative;
}

/* Gallery hover overlay */
#gallery .relative::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 20, 26, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}
#gallery .group:hover::after {
    opacity: 1;
}
