/**
 * PALESA LETLOTLO Construction - Custom Styles
 * Modern, professional design with road/construction theme
 */

/* ===== CSS Variables ===== */
:root {
    /* Color Palette - Road/Asphalt Theme */
    --color-primary: #1a1a1a;        /* Asphalt charcoal */
    --color-secondary: #2c3e50;      /* Cool grey */
    --color-accent: #ffc107;         /* Road marking yellow */
    --color-accent-dark: #ff9800;    /* Safety orange */
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #6c757d;
    --color-success: #28a745;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.10);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 18px 40px rgba(0,0,0,0.18);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

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

::selection {
    background: rgba(255, 193, 7, 0.35);
}

/* ===== Navbar Styles ===== */
.navbar {
    padding: 0.9rem 0;
    transition: var(--transition);
    background-color: rgba(26, 26, 26, 0.92) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: var(--shadow-lg);
    background-color: rgba(26, 26, 26, 0.96) !important;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white) !important;
    letter-spacing: 0.3px;
}

.navbar-brand .brand-text {
    color: var(--color-white);
}

.navbar-logo { 
    height: 58px; /* good navbar size */ 
    width: 108px; /* force square */ 
    object-fit: contain; 
    border-radius: 50%; /* makes it round */ 
    background-color: #f5f5f5; /* optional: helps on dark navbar */ 
    padding: 4px; /* breathing space inside the circle */ 
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255,255,255,0.82) !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* ===== Buttons (a bit more premium) ===== */
.btn {
    border-radius: 12px;
}

.btn-warning {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #111;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(255, 193, 7, 0.18);
}

.btn-warning:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #111;
    transform: translateY(-1px);
}

.btn-outline-light {
    border-width: 2px;
}

.btn-outline-dark {
    border-width: 2px;
    border-color: rgba(26, 26, 26, 0.25);
}

.btn-outline-dark:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    /* background-image comes from template inline style when admin uploads hero_image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 84px; /* navbar space */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 20% 20%, rgba(255,193,7,0.18), transparent 60%),
        linear-gradient(135deg, rgba(26,26,26,0.90) 0%, rgba(44,62,80,0.86) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
    opacity: 0.95;
}

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

/* ===== Animations ===== */
.animate-fade-in {
    animation: fadeIn 0.9s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 0.9s ease-in 0.25s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.9s ease-in 0.5s both;
}

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

/* ===== Trust Strip ===== */
.trust-strip {
    border-top: 3px solid var(--color-accent-dark);
    border-bottom: 3px solid var(--color-accent-dark);
}

.trust-item i {
    color: var(--color-primary);
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(26,26,26,0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,193,7,0.55);
}

.service-icon {
    width: 78px;
    height: 78px;
    background: rgba(255,193,7,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--color-primary);
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.service-icon-large {
    display: inline-block;
}

.service-icon-large i {
    font-size: 4rem;
    color: var(--color-accent);
}

/* ===== Project Cards ===== */
.project-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--color-white);
    border: 1px solid rgba(26,26,26,0.08);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
    padding: 1.5rem;
}

/* ===== Story Section ===== */
.story-image-grid img {
    border-radius: 16px;
}

.stat-box {
    background: var(--color-light);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(26,26,26,0.06);
}

.stat-box:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

/* ===== Process Timeline ===== */
.process-timeline {
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0.5rem;
}

.process-number {
    width: 52px;
    height: 52px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 18px rgba(0,0,0,0.20);
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26,26,26,0.08);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: var(--color-accent);
    border-radius: 999px;
}

.stars i {
    font-size: 1.2rem;
}

/* ===== Page Header ===== */
.page-header {
    padding: 8rem 0 4rem;
    margin-top: 56px;
}

/* ===== Contact Styles ===== */
.contact-info-item {
    padding-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.map-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== Quote Form ===== */
.quote-form-wrapper {
    max-width: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===== Footer ===== */
.footer {
    margin-top: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.72);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.text-light-gray {
    color: rgba(255,255,255,0.72);
}

.footer .btn-outline-warning {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-width: 1px;
    border-radius: 999px;
}

.footer .btn-outline-warning:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.06);
    color: var(--color-white);
}

/* ===== Messages Container ===== */
.messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

/* ===== Value Cards ===== */
.value-card {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(26,26,26,0.08);
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* ===== Sidebar Cards ===== */
.sidebar-card {
    position: sticky;
    top: 100px;
}

/* ===== Stat Cards ===== */
.stat-card {
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(26,26,26,0.08);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
    .hero-section {
        background-attachment: scroll;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .process-step {
        margin-bottom: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .display-3 { font-size: 2.4rem; }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }

    .navbar-logo {
        height: 42px;
        width: 42px;
    }
}

/* ===== Utility Classes ===== */
.bg-light-gray {
    background-color: #f8f9fa;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .whatsapp-float,
    .footer {
        display: none;
    }
}
