/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Selection color */
::selection {
    background-color: rgba(212, 160, 23, 0.3);
    color: #fefdf8;
}

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

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card image hover */
.service-card img {
    transition: transform 0.5s ease;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(90deg, #fcd34d, #d4a017, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom select styling */
select option {
    background-color: #064e3b;
    color: #fefce8;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #022c22 inset !important;
    -webkit-text-fill-color: #fefce8 !important;
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(6, 95, 70, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Gallery grid gap fix */
.grid-cols-2 > :nth-child(2) {
    grid-column: span 1;
}

/* Ensure all text has proper contrast */
.text-cream-50 { color: #fefdf8; }
.text-cream-100 { color: #fefce8; }
.text-cream-200 { color: #fff9c4; }
.text-cream-300 { color: #f5f0e1; }
.text-cream-400 { color: #e8dcc8; }
.text-cream-500 { color: #c4b49a; }

/* Print styles */
@media print {
    nav, #contactForm, .cta-pulse { display: none; }
    body { background: white; color: black; }
}
