@import url('./variables.css');

/* Navbar */
.navbar-custom {
    background: var(--color-white) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    /* Keep same appearance when scrolled */
    background: var(--color-white) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-navy-dark) !important;
}

.navbar-brand-custom:hover {
    color: var(--color-blue-light) !important;
}

/* Logo sizing */
.navbar-brand-custom { display: flex; align-items: center; gap: 0.5rem; }
.navbar-logo { height: 42px; width: auto; display: block; }

/* Navbar brand name (next to logo) */
.navbar-name {
    font-weight: 700;
    color: var(--color-navy-dark) !important;
    font-size: 1.05rem;
    line-height: 1;
}

@media (max-width: 576px) {
    .navbar-name { display: none; }
    .navbar-logo { height: 38px; }
}

/* Navbar colors (solid/navbar always dark text) */
.navbar-custom .navbar-brand-custom,
.navbar-custom .navbar-nav .nav-link,
.navbar-custom .whatsapp-link,
.navbar-custom .btn-quote-nav {
    color: var(--color-navy-dark) !important;
}

.navbar-nav .nav-link {
    color: var(--color-navy-dark);
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0.75rem !important;
}

/* Ensure links have transparent background so white text remains readable over hero */
.navbar-nav .nav-link,
.navbar-nav .nav-link:hover {
    background: transparent !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-blue-light);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-blue-light) !important;
    text-decoration: none;
}

.btn-quote-nav {
    background: var(--btn-primary-bg, var(--gradient-primary));
    color: var(--btn-primary-text, var(--color-white)) !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    margin-left: 1rem;
    transition: var(--transition);
}

.btn-quote-nav:hover {
    filter: brightness(110%);
    /* background: var(--gradient-hero); REMOVED to respect custom color or fallback */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--btn-primary-text, var(--color-white)) !important;
}

/* Hero buttons: white background with green text for visibility on green hero */
.btn-hero {
    background: var(--color-white);
    color: var(--color-blue-light);
    border: 2px solid var(--color-blue-light);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-hero:hover {
    background: var(--color-blue-light);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.whatsapp-link {
    color: var(--color-navy-dark) !important;
    font-size: 1.5rem;
    margin-left: 0.75rem;
    transition: var(--transition);
}

.whatsapp-link:hover {
    color: #25D366 !important;
    transform: scale(1.1);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 3rem 1rem;
    backdrop-filter: none;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.2rem;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Center hero CTA buttons */
.hero-buttons {
    justify-content: center;
    align-items: center;
}

/* Decorative wave at bottom of hero */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
}

/* Footer */
.footer-custom {
    background: var(--color-navy-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-custom h5 {
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-custom a:hover {
    color: var(--color-blue-pale);
}

.footer-custom .footer-links {
    list-style: none;
    padding: 0;
}

.footer-custom .footer-links li {
    margin-bottom: 0.5rem;
}

.footer-custom .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-custom .social-icons a:hover {
    background: var(--color-blue-light);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumb */
.breadcrumb-custom {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--color-blue-light);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--color-text-light);
}

/* Service Detail Page */
.service-hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.service-hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn-quote-nav {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}
