/* ============================================
   HENSEL READY MIX — Custom Styles
   Premium Dark Luxury Theme
   Deep Navy + Warm Gold
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-navy-900: #060e1a;
    --color-navy-800: #0a1628;
    --color-navy-700: #0d1b2a;
    --color-navy-600: #122438;
    --color-navy-500: #162d45;
    --color-gold-500: #c9a84c;
    --color-gold-400: #d4b95e;
    --color-gold-300: #dfca70;
    --color-gold-600: #b8943f;
    --color-gold-700: #a67c2e;
    
    --font-display: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-navy-900);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-navy-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-500);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--color-gold-500);
    color: var(--color-navy-900);
}

/* ---------- Gold Button ---------- */
.gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-400) 50%, var(--color-gold-600) 100%);
    color: var(--color-navy-900);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25), 0 2px 8px rgba(201, 168, 76, 0.15);
}

.gold-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gold-400) 0%, var(--color-gold-300) 50%, var(--color-gold-500) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35), 0 4px 12px rgba(201, 168, 76, 0.2);
}

.gold-btn:hover::before {
    opacity: 1;
}

.gold-btn:active {
    transform: translateY(0);
}

.gold-btn span,
.gold-btn svg {
    position: relative;
    z-index: 1;
}

/* ---------- Nav Button (Outline) ---------- */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    border-color: var(--color-gold-500);
    color: var(--color-gold-400);
    background: rgba(201, 168, 76, 0.05);
    transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(6, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1), 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-gold-400) !important;
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    padding: 2rem;
}

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

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    margin: 0.25rem auto 0;
    transition: width 0.3s ease;
}

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

/* ---------- Menu Button ---------- */
.menu-line {
    display: block;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Service Cards ---------- */
.service-card {
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

/* ---------- Gallery Items ---------- */
.gallery-item {
    height: 250px;
    cursor: pointer;
}

.gallery-item.col-span-2 {
    height: 520px;
}

@media (max-width: 767px) {
    .gallery-item {
        height: 200px;
    }
    .gallery-item.col-span-2 {
        height: 300px;
        col-span: 2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gallery-item {
        height: 280px;
    }
    .gallery-item.col-span-2 {
        height: 580px;
    }
}

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Scroll Dot Animation ---------- */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* ---------- Back to Top ---------- */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* ---------- Form Styles ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Gold Divider ---------- */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
}

/* ---------- Section Reveal ---------- */
.section-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ---------- Hero Text Animation ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content > *:nth-child(4) { animation-delay: 0.8s; }
.hero-content > *:nth-child(5) { animation-delay: 1s; }

/* ---------- Shimmer Effect ---------- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-shimmer {
    background: linear-gradient(90deg, var(--color-gold-600) 0%, var(--color-gold-300) 50%, var(--color-gold-600) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ---------- Subtle Glow ---------- */
.gold-glow {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

/* ---------- Loading State ---------- */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .gold-btn,
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .service-card {
        padding: 2rem;
    }
}
