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

html {
    scroll-behavior: smooth;
    background-color: #3d2f1f;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f4f1e8;
    overflow-x: hidden;
    background-color: #3d2f1f;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #f4f1e8;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: #d4c2a0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #efa232;
    color: white;
    border-color: #efa232;
}

.btn-primary:hover {
    background-color: #B8935E;
    border-color: #B8935E;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: #d4c2a0;
    color: #f4f1e8;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    background: #6b5340;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-phone {
    display: none;
}

.nav-phone-link {
    color: #efa232;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 15px;
    border: 2px solid #efa232;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-phone-link:hover {
    background-color: #efa232;
    color: white;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #f4f1e8;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(61, 47, 31, 0.8) 0%, rgba(52, 58, 64, 0.9) 100%),
        url('assets/images/excavator_photo_optimized.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
    padding-bottom: 40px;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    color: white;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ecf0f1;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    background: #5a4530;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-phone {
    margin: 2rem 0;
    text-align: center;
}

.phone-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #efa232;
    text-decoration: none;
    background: rgba(61, 47, 31, 0.9);
    padding: 15px 30px;
    border-radius: 15px;
    border: 3px solid #efa232;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.phone-number:hover {
    background: #efa232;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.phone-label {
    font-size: 1.2rem;
    color: #ecf0f1;
    margin: 0;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #c9b896;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: #2d3a4a;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: #efa232;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight {
    background: #5a4530;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-left: 4px solid #efa232;
}

.highlight h4 {
    color: #f4f1e8;
    margin-bottom: 0.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.placeholder-image, .placeholder-map {
    width: 100%;
    height: 300px;
    background-color: #bdc3c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
    border: 2px dashed #95a5a6;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.services {
    background-color: #4a3d2d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.service-card {
    background: #5a4530;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #6b5340;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #efa232;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.service-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #6b5340;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #efa232;
    font-weight: bold;
}

.service-card li:last-child {
    border-bottom: none;
}

/* Service Area Section */
.service-area {
    background-color: #2a3a2a;
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.area-info h3 {
    color: #efa232;
    margin-bottom: 1.5rem;
}

.service-areas {
    background: #5a4530;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-areas h4 {
    color: #f4f1e8;
    margin-bottom: 1rem;
}

.area-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.area-column ul {
    list-style: none;
}

.area-column li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #6b5340;
    position: relative;
    padding-left: 1.5rem;
}

.area-column li::before {
    content: '📍';
    position: absolute;
    left: 0;
}

.area-column li:last-child {
    border-bottom: none;
}

.area-note {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #27ae60;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Reviews Section */
.reviews {
    background-color: #3a3a3a;
}

.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.review-slider {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.review-card {
    background: #5a4530;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    display: none;
    position: relative;
    border: 1px solid #6b5340;
}

.review-card.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.review-stars {
    margin-bottom: 1.5rem;
}

.star {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0 2px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #d4c2a0;
}

.review-author {
    margin-bottom: 1rem;
}

.review-author strong {
    color: #f4f1e8;
    font-size: 1.1rem;
}

.review-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.google-logo {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: #4285f4;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.review-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.review-btn {
    background: #efa232;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
}

.review-btn:hover {
    background: #B8935E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.review-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #efa232;
    transform: scale(1.2);
}

.dot:hover {
    background: #95a5a6;
}

.google-reviews-link {
    text-align: center;
    margin-top: 2rem;
}

.google-reviews-link .btn-secondary {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.google-reviews-link .btn-secondary:hover {
    background-color: #efa232;
    color: white;
    border-color: #efa232;
}

/* FAQ Section */
.faq {
    background-color: #4a342d;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #3d2f1f;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #6b5340;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: #5a4530;
    border-bottom: 1px solid #6b5340;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #5a4530;
}

.faq-question h3 {
    margin: 0;
    color: #f4f1e8;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #efa232;
    transition: transform 0.3s ease;
    user-select: none;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #5a4530;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
    color: #c9b896;
    line-height: 1.6;
}

.faq-answer a {
    color: #efa232;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    background-color: #3a2d2d;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: #efa232;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #4a3a28;
    border-radius: 5px;
    border-left: 4px solid #efa232;
}

.contact-item h4 {
    color: #f4f1e8;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #efa232;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form h3 {
    color: #efa232;
    margin-bottom: 2rem;
}

.quote-form {
    background: #4a3a28;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #6b5340;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #f4f1e8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #6b5340;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #efa232;
}

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

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.footer-info h3 {
    color: #efa232;
    margin-bottom: 1rem;
}

.footer-contact {
    text-align: right;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation states when visible */
.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in.visible,
.scale-in.visible,
.slide-in-up.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered animations for grid items */
.service-card {
    transition-delay: 0ms;
}

.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 100ms; }
.service-card:nth-child(3) { transition-delay: 200ms; }
.service-card:nth-child(4) { transition-delay: 300ms; }

.highlight:nth-child(1) { transition-delay: 0ms; }
.highlight:nth-child(2) { transition-delay: 150ms; }
.highlight:nth-child(3) { transition-delay: 300ms; }

/* Mobile Responsive Design */
@media (min-width: 769px) {
    .nav-phone {
        display: block !important;
    }
}

@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 920px) {
    .nav-menu {
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 820px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(44, 62, 80, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-area-content {
        grid-template-columns: 1fr;
    }
    
    .area-list {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .review-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .review-navigation {
        margin: 1.5rem 0;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-toggle {
        font-size: 1.3rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero-logo-img {
        max-width: 200px;
    }
    
    .phone-number {
        font-size: 2rem;
        padding: 12px 25px;
    }
    
    .phone-label {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .placeholder-image, .placeholder-map {
        height: 200px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .quote-form {
        padding: 1.5rem;
    }
}