/* --- Global Styles & Variables --- */
:root {
    --brand-dark-blue: #0A2540; 
    --brand-light-blue: #4285F4;
    --accent-green: #2e7d32;
    --dark-text: #333333;
    --light-text: #ffffff;
    --bg-light-gray: #f4f7f6;
    --border-color: #dddddd;
    scroll-padding-top: 100px; 
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 19px; /* Increased for better readability */
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
}

.container { width: 90%; max-width: 1100px; margin: 0 auto; }

h1, h2, h3, h4 { font-weight: 700; color: var(--brand-dark-blue); line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.8rem; margin-bottom: 20px;}
h4 { font-size: 1.2rem; margin-top: 0; }

p.subtitle { font-size: 1.25rem; color: #555555; max-width: 700px; margin: 20px auto 30px auto; }
section { padding: 80px 0; }

/* === ACCESSIBILITY & INTERACTIVITY ENHANCEMENTS === */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--brand-dark-blue); color: white; padding: 10px 15px; z-index: 9999; transition: top 0.3s ease; }
.skip-link:focus { top: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand-light-blue);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2);
}
input, textarea { transition: border-color 0.3s ease, box-shadow 0.3s ease; }


/* --- Header & Navigation --- */
header { background-color: var(--light-text); border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-dark-blue);
    font-weight: 700;
    font-size: 1.3rem;
    transition: opacity 0.3s ease;
}
.logo a:hover { opacity: 0.8; }
.logo img { height: 40px; width: auto; }

header nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; } /* Aligned items center */
header nav li { margin-left: 30px; }
header nav a { text-decoration: none; color: var(--dark-text); font-weight: 700; transition: color 0.3s ease; }
header nav a:hover { color: var(--brand-light-blue); }

/* Prominent phone number in header */
.header-phone {
    background-color: var(--accent-green);
    color: var(--light-text);
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.header-phone i { margin-right: 8px; }
.header-phone:hover {
    background-color: #1b5e20;
    color: var(--light-text);
    transform: translateY(-2px);
}

.nav-toggle, .nav-toggle-label { display: none; }

/* --- Hero Section --- */
#hero { background-image: linear-gradient(rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.6)), url('images/hero_section_bridge_image.png'); background-size: cover; background-position: center; color: var(--light-text); text-align: center; padding: 120px 0; }
#hero h1, #hero p.subtitle { color: var(--light-text); text-shadow: 2px 2px 4px rgba(0,0,0,0.6); }

/* --- Why Us Section --- */
#why-us { background-color: #ffffff; }
.features { display: flex; justify-content: space-around; gap: 30px; text-align: center; }
.feature { flex: 1; padding: 20px; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.feature-icon { height: 70px; margin-bottom: 15px; }

/* --- Services Section --- */
#services { background-color: var(--bg-light-gray); }
.section-intro { text-align: center; max-width: 800px; margin: -20px auto 60px auto; font-size: 1.1rem; }
.service-row { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-image-container { flex: 1; min-width: 300px; overflow: hidden; border-radius: 8px; }
.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}
.service-row:hover .service-image-container img {
    transform: scale(1.05);
}
.service-text-container { flex: 1.2; }
.service-grid { display: grid; gap: 20px; }
.service-grid.one-col { grid-template-columns: 1fr; }
.service-grid.two-col { grid-template-columns: 1fr 1fr; }
.service-card { background: #ffffff; padding: 25px; border: 1px solid var(--border-color); border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.service-card.full-width { grid-column: 1 / -1; }

/* --- About Section --- */
#about { background: var(--brand-dark-blue); color: var(--light-text); }
#about .about-content { display: flex; align-items: center; gap: 60px; max-width: 1000px; margin: 0 auto; }
#about .about-image { flex-shrink: 0; }
#about .about-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    object-position: 60% 50%; /* This shifts the image subject to the left */
    border-radius: 50%;
    border: 5px solid var(--light-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#about h2 { color: var(--light-text); text-align: left; margin-top: 0; }
#about .about-text { flex: 1; }

/* --- TESTIMONIALS SECTION --- */
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-basis: 400px;
    max-width: 520px;
    flex-grow: 1;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    flex-shrink: 0;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    line-height: 1.3;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-dark-blue);
    margin: 0;
}

.testimonial-title {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}


/* --- Contact Section --- */
#contact { background-color: var(--bg-light-gray); }
#contact-form { max-width: 700px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--dark-text); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 1rem; font-family: 'Lato', sans-serif; box-sizing: border-box; }
#contact-form button { width: 100%; justify-content: center; }
#form-messages { margin-top: 20px; padding: 15px; border-radius: 5px; text-align: center; font-weight: bold; display: none; }
#form-messages.success { color: var(--accent-green); background-color: #e9f5ea; display: block; }
#form-messages.error { color: #c62828; background-color: #fbe9e7; display: block; }

/* --- Footer --- */
footer { background-color: var(--brand-dark-blue); color: #cccccc; text-align: center; padding: 40px 20px; }
.footer-logo { margin-bottom: 25px; }
.footer-logo img { max-width: 300px; height: auto; }
footer p { margin: 8px 0; font-size: 0.9rem; }
footer a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--brand-light-blue); text-decoration: underline; }

/* --- Back to Top Button --- */
#back-to-top { display: none; position: fixed; bottom: 20px; right: 20px; background: var(--brand-dark-blue); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 24px; text-align: center; line-height: 50px; cursor: pointer; z-index: 100; transition: all 0.3s; text-decoration: none; }
#back-to-top:hover { background: var(--accent-green); transform: scale(1.1); }

/* --- CTA Button Styles --- */
.cta-button { display: inline-flex; align-items: center; gap: 0.75em; background-color: var(--accent-green); color: var(--light-text); padding: 15px 30px; border-radius: 5px; text-decoration: none; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; line-height: 1; }
.cta-button:hover { background-color: #1b5e20; transform: translateY(-2px); }
.hero-cta-button { font-size: 1.25rem; padding: 18px 35px; background-image: linear-gradient(45deg, #2e7d32, #4caf50); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); }
.hero-cta-button:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

/* --- Review Page Styles --- */
.review-container { max-width: 900px; margin: 40px auto; padding: 40px; background-color: #ffffff; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); }
.review-content { display: flex; gap: 50px; align-items: flex-start; }
.review-image { flex: 1; max-width: 300px; text-align: center; padding-top: 20px; }
.review-image img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--brand-dark-blue); margin-bottom: 20px; }
.review-image h3 { margin-bottom: 10px; font-size: 1.5rem; }
.review-image p { font-size: 0.95rem; color: #555; line-height: 1.5; }
.review-form-wrapper { flex: 1.5; }
.review-form .form-group { margin-bottom: 25px; }
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 5px; }
.rating input { position: absolute; left: -9999px; }
.rating label { font-size: 2.5rem; color: #ddd; cursor: pointer; transition: color 0.2s ease; padding: 0; margin: 0; }
.rating:not(:hover) input:checked ~ label,
.rating:hover label { color: #f39c12; }
.rating label:hover ~ label { color: #ddd; }
.review-form .cta-button { width: 100%; justify-content: center; }
#review-form-messages { margin-top: 20px; padding: 15px; border-radius: 5px; text-align: center; font-weight: 700; display: none; }
#review-form-messages.success { background-color: #e9f5ea; color: var(--accent-green); display: block; }
#review-form-messages.error { background-color: #fbe9e7; color: #c62828; display: block; }


/* --- Responsive Design --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    .features, .service-row, .service-row.reverse, #about .about-content { flex-direction: column; }
    #about .about-content { text-align: center; }
    #about h2 { margin-top: 30px; text-align: center; } /* Centered about headline on mobile */
    header nav { position: absolute; top: 100%; left: 0; width: 100%; background: var(--light-text); border-top: 1px solid var(--border-color); transform: scale(1, 0); transform-origin: top; transition: transform 0.3s ease-in-out; }
    header nav ul { flex-direction: column; align-items: center; padding: 20px 0; }
    header nav li { margin: 10px 0; margin-left: 0; }
    .header-phone { padding: 12px 20px; font-size: 1.1rem;} /* Make phone button bigger on mobile nav */
    .nav-toggle-label { display: block; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); height: 35px; width: 35px; cursor: pointer; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; background: var(--brand-dark-blue); height: 3px; width: 100%; border-radius: 2px; position: absolute; transition: all 0.3s; }
    .nav-toggle-label span::before { content: ''; top: -10px; }
    .nav-toggle-label span::after { content: ''; top: 10px; }
    .nav-toggle:checked ~ nav { transform: scale(1, 1); }
    .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
    .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
}

@media (max-width: 768px) {
    .logo span {
        display: none;
    }
    .review-content { flex-direction: column; align-items: center; gap: 20px; }
    .review-form-wrapper h1,
    .review-form-wrapper .intro-text { text-align: center; }
}

@media (max-width: 480px) {
    .service-grid.two-col { grid-template-columns: 1fr; }
}

/* --- SPECIAL CROP FOR AI CONSULTING IMAGE --- */
#ai-consulting-image {
    height: 180%;
    object-position: top;
}
