/* Don Cheo Handyman - Custom Styles */
/* Color Palette: Orange #E67E22, Yellow #F39C12, Brown #8B4513 */

:root {
    --primary-orange: #E67E22;
    --primary-orange-dark: #D35400;
    --secondary-yellow: #F39C12;
    --tertiary-brown: #8B4513;
    --text-dark: #4A3728;
    --bg-cream: #FFF8F0;
    --bg-light: #FEF5E7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.6rem;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    white-space: nowrap;
}

.nav-link {
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-btn.active {
    background: white;
    color: var(--primary-orange);
    border-color: white;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: linear-gradient(135deg, var(--secondary-yellow) 0%, var(--primary-orange) 100%);
    opacity: 0.1;
    transform: rotate(-15deg);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--tertiary-brown);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-section h1 {
        white-space: normal;
    }
}

.hero-section .lead {
    color: var(--text-dark);
    font-size: 1.25rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-orange-dark), var(--tertiary-brown));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
}

.btn-outline-primary {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* Quote Modal */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-label {
    font-weight: 500;
    color: var(--text-dark);
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 8px;
    border-color: #ddd;
    padding: 0.6rem 1rem;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

/* Services Section */
#services {
    background: var(--bg-cream);
}

#services h2 {
    color: var(--tertiary-brown);
}

.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--secondary-yellow), var(--primary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 1.8rem;
    color: white;
}

.service-card .card-title {
    color: var(--tertiary-brown);
    font-weight: 600;
}

/* About Section */
#about {
    background: var(--bg-light);
}

#about h2 {
    color: var(--tertiary-brown);
}

.about-image-placeholder {
    background: linear-gradient(135deg, var(--secondary-yellow), var(--primary-orange));
    border-radius: 20px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-placeholder i {
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

.text-primary {
    color: var(--primary-orange) !important;
}

/* Service Areas */
#areas {
    background: white;
}

#areas h2 {
    color: var(--tertiary-brown);
}

.area-badge {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--tertiary-brown), #5D2E0A);
}

.contact-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}

.contact-card:hover {
    background: rgba(255,255,255,0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-link {
    color: var(--secondary-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: white;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .logo-container {
        width: 110px;
        height: 110px;
    }

    .brand-text {
        font-size: 0.95rem;
    }

    .about-image-placeholder {
        height: 250px;
    }

    .about-image-placeholder i {
        font-size: 5rem;
    }

    .area-badge {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    .logo-container {
        width: 90px;
        height: 90px;
    }

    .brand-text {
        font-size: 0.85rem;
    }
}

/* Customer Autocomplete Dropdown */
.customer-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.customer-autocomplete-dropdown.show {
    display: block;
}

.customer-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.customer-autocomplete-item:last-child {
    border-bottom: none;
}

.customer-autocomplete-item:hover {
    background-color: #f8f9fa;
}

.customer-autocomplete-item .customer-name {
    font-weight: 600;
    color: #333;
}

.customer-autocomplete-item .customer-details {
    font-size: 0.85rem;
    color: #666;
}

/* PayPal Zettle Button */
.btn-paypal {
    background: linear-gradient(135deg, #003087, #009cde);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-paypal:hover {
    background: linear-gradient(135deg, #001f5c, #0070ba);
    color: white;
}
