/* ================================================
   TILEN COUNTERS - Shared Styles
   ================================================ */

/* ================================================
   BASE & RESET
   ================================================ */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    position: relative;
}

* {
    box-sizing: border-box;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
.text-balance {
    text-wrap: balance;
}

/* ================================================
   HERO SLIDER
   ================================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #C41E3A;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 30;
}

.slider-arrow:hover {
    background: rgba(196, 30, 58, 0.8);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slide {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-in-out;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.top-bar {
    transition: transform 0.3s ease-in-out;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.main-nav {
    transition: all 0.3s ease-in-out;
    background: white;
}

.main-nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-logo {
    transition: height 0.3s ease;
}

.main-nav.scrolled .nav-logo {
    height: 3rem;
}

.modern-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0 0 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    min-height: 70px;
}

.header-bottom {
    border-top: 1px solid #f3f4f6;
    padding: 12px 0;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: #1e293b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #C41E3A;
}

.nav-link.active {
    color: #C41E3A;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #C41E3A;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 1rem;
}

.header-phone {
    font-weight: 700;
    color: #C41E3A;
    font-size: 18px;
    margin-bottom: 2px;
}

.header-hours {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================
   MOBILE NAVIGATION
   ================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-side-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-side-panel.active {
    right: 0;
}

.mobile-panel-header {
    padding: 20px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1A2B 100%);
    color: white;
}

.mobile-panel-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 24px;
}

.mobile-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.mobile-panel-content {
    padding: 0;
}

.mobile-panel-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-panel-nav li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-panel-nav a {
    display: block;
    padding: 16px 20px;
    color: #1e293b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-panel-nav a:hover {
    background: #fef2f2;
    color: #C41E3A;
    padding-left: 30px;
}

.mobile-panel-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #C41E3A;
    transition: width 0.3s ease;
}

.mobile-panel-nav a:hover::before {
    width: 4px;
}

.mobile-panel-contact {
    padding: 24px 20px;
    background: #f9fafb;
    margin-top: 20px;
}

.mobile-panel-contact h3 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.mobile-panel-contact-item {
    display: flex;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.mobile-panel-contact-item i {
    color: #C41E3A;
    margin-top: 2px;
    font-size: 18px;
}

.mobile-panel-cta {
    padding: 20px;
}

.mobile-panel-cta a {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #C41E3A 0%, #8B1A2B 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-panel-cta a:hover {
    background: linear-gradient(135deg, #8B1A2B 0%, #C41E3A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* Hamburger Button */
.hamburger {
    width: 32px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #C41E3A;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

.mobile-quote-btn {
    display: none;
    background: #C41E3A;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-quote-btn:hover {
    background: #a01729;
    transform: scale(1.05);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
    background: linear-gradient(135deg, #C41E3A 0%, #8B1A2B 100%);
    transition: all 0.3s ease;
}

.btn-clean {
    background: transparent;
    color: #C41E3A;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #C41E3A;
    position: relative;
    overflow: hidden;
}

.btn-clean:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #C41E3A;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-clean:hover:before {
    left: 0;
}

.btn-clean:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-outline {
    background: transparent;
    color: #C41E3A;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #C41E3A;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #C41E3A;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover:before {
    left: 0;
}

.btn-outline:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* ================================================
   CARDS & EFFECTS
   ================================================ */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(196, 30, 58, 0.1);
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ================================================
   GALLERY
   ================================================ */
.gallery-filter {
    background: transparent;
    color: #64748b;
    border: none;
    cursor: pointer;
}

.gallery-filter.active {
    background: #C41E3A;
    color: white;
}

.gallery-filter:hover:not(.active) {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
}

.gallery-item {
    transition: all 0.3s ease;
}

/* ================================================
   PAGE HEADER (for inner pages)
   ================================================ */
.page-header {
    position: relative;
    padding-top: 180px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Hero Background for inner pages */
.hero-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('../img/n28.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

/* ================================================
   FORM ELEMENTS
   ================================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

/* ================================================
   SECTION DIVIDER
   ================================================ */
.section-divider {
    width: 60px;
    height: 4px;
    background: #C41E3A;
    margin: 0 auto 1.5rem;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .modern-header {
        padding: 8px 0;
    }

    .max-w-7xl {
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0;
        min-height: 60px;
    }

    .header-top > div:first-child {
        flex: 0 0 auto;
    }

    .header-top > div:last-child {
        flex: 0 0 auto;
    }

    .header-top .nav-logo {
        height: 45px;
        display: block;
    }

    .header-right {
        display: none;
    }

    .header-bottom {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-quote-btn {
        display: inline-block;
    }

    .mobile-side-panel {
        display: block;
    }

    .mobile-menu-overlay {
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .hero-slider {
        min-height: 500px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .slider-arrow.prev {
        left: 15px;
    }

    .slider-arrow.next {
        right: 15px;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C41E3A' fill-opacity='0.03'%3E%3Crect x='0' y='0' width='10' height='10'/%3E%3Crect x='10' y='10' width='10' height='10'/%3E%3C/g%3E%3C/svg%3E");
}

/* ================================================
   ENHANCED DESIGN ELEMENTS
   ================================================ */

/* Subtle image overlays */
.img-overlay {
    position: relative;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

/* Card hover shadow enhancement */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Accent border */
.accent-border-left {
    border-left: 4px solid #C41E3A;
}

.accent-border-top {
    border-top: 4px solid #C41E3A;
}

/* Subtle gradient text */
.gradient-text {
    background: linear-gradient(135deg, #C41E3A 0%, #8B1A2B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll reveal animation (for intersection observer) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Improved focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C41E3A;
    outline-offset: 2px;
}

/* Subtle link underline effect */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #C41E3A;
    transition: width 0.3s ease;
}

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

/* Red accent dot */
.accent-dot::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #C41E3A;
    border-radius: 50%;
    margin-right: 12px;
}

/* Decorative corner brackets */
.corner-brackets {
    position: relative;
    padding: 2rem;
}

.corner-brackets::before,
.corner-brackets::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #C41E3A;
    border-style: solid;
}

.corner-brackets::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.corner-brackets::after {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}
