/* === CSS Variables === */
:root {
    --primary-color: #174A7C; /* Dark Blue rgb(23, 74, 124) */
    --accent-color: #2a6ea9;  /* Lighter Blue for hover */
    --secondary-color: #ffc107; /* Bright Yellow/Gold */
    --dark-text: #333333;
    --light-text: #ffffff;
    --body-text: #555555;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --border-radius: 12px;
    --box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
    --header-height: 130px; /* Reverted Height */
}

/* === Basic Reset & Global Styles === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--body-text); line-height: 1.7; background-color: var(--background-white); padding-top: var(--header-height); }

/* Scroll margin for fixed header offset */
section[id] {
    scroll-margin-top: 150px; /* Value = header height (130px) + desired gap (20px) */
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--dark-text); margin-bottom: 0.8em; font-weight: 600; }
h1 { font-size: 3rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1em; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--accent-color); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === Utility Classes === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.content-section { padding: 80px 0; }
.alt-bg { background-color: var(--background-light); }
.section-title { margin-bottom: 15px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--primary-color); border-radius: 2px; }
.text-center.section-title::after { left: 50%; transform: translateX(-50%); }
.section-title:not(.text-center)::after { left: 0; transform: translateX(0); }
.section-subtitle { font-size: 1.1rem; color: var(--body-text); max-width: 700px; margin: 0 auto 50px auto; }

/* === Button Styles === */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--border-radius); font-family: var(--font-heading); font-weight: 600; font-size: 1rem; text-align: center; text-decoration: none; cursor: pointer; border: none; transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); vertical-align: middle; line-height: normal; }
.btn-primary { background-color: var(--primary-color); color: var(--light-text); }
.btn-primary:hover { background-color: var(--accent-color); color: var(--light-text); transform: translateY(-3px); box-shadow: var(--box-shadow-hover); text-decoration: none; }
.btn-secondary { background-color: var(--secondary-color); color: var(--dark-text); }
.btn-secondary:hover { background-color: #ffca2c; color: var(--dark-text); transform: translateY(-3px); box-shadow: var(--box-shadow-hover); text-decoration: none; }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }

/* === Header & Navigation === */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); height: var(--header-height); display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); z-index: 1000; transition: background-color var(--transition-speed) ease, height var(--transition-speed) ease; padding: 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { flex-shrink: 0; }
.logo-image { max-height: 110px; width: auto; display: block; transition: max-height var(--transition-speed) ease; }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--dark-text); text-decoration: none; padding: 5px 0; position: relative; transition: color var(--transition-speed) ease; }
.main-nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed) ease; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); text-decoration: none; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* === Hero Section === */
.hero-section { background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('bridge.jpg') no-repeat center 15% / cover; min-height: calc(85vh - var(--header-height)); display: flex; align-items: center; justify-content: center; color: var(--dark-text); text-align: center; margin-top: calc(-1 * var(--header-height)); padding-top: var(--header-height); }
.hero-section .container { max-width: 850px; background-color: rgba(255, 255, 255, 0.8); padding: 30px 40px; border-radius: var(--border-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.hero-section h1 { color: var(--dark-text); margin-bottom: 15px; }
.hero-section .subtitle { font-size: 1.25rem; margin-bottom: 20px; color: var(--body-text); font-weight: 600; }
.hero-intro-text { font-size: 1.05rem; margin-bottom: 30px; }

/* === About Section === */
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-text h3 { color: var(--primary-color); }
.about-image { flex-basis: 45%; max-width: 45%; }
.about-image img { box-shadow: var(--box-shadow); border-radius: var(--border-radius); }

/* === Services Section (UPDATED GRID LAYOUT) === */
.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column mobile */
    gap: 30px;
    margin-top: 40px;
}
.service-card { background-color: var(--background-white); padding: 30px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--box-shadow-hover); }
.service-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.service-card p { margin-bottom: 20px; font-size: 0.95rem; }
.service-img { width: 100%; height: auto; margin-top: auto; margin-bottom: 20px; border-radius: calc(var(--border-radius) / 2); }
.service-card .btn-small { margin-top: auto; } /* Keep button pushed down */

/* === Contact Section === */
.contact-details-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
.contact-card { background-color: var(--background-light); padding: 20px; border-radius: var(--border-radius); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; display: flex; flex-direction: column; justify-content: flex-start; }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }
.contact-icon { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 10px; }
.contact-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.contact-card p { margin-bottom: 8px; line-height: 1.4; font-size: 0.95rem; flex-grow: 1; }
.contact-card p:last-child { margin-bottom: 0; flex-grow: 0; }
.contact-card p a { word-break: break-word; color: var(--primary-color); }
.map-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.85rem; }
.map-link:hover { text-decoration: underline; }
.business-hours { font-size: 0.85em; color: var(--body-text); margin-top: 8px; }
.business-hours strong { color: var(--dark-text); }
.social-links { margin-top: 10px; margin-bottom: 10px; display: block; line-height: 1; }
.social-links a { display: inline-block; margin: 0 15px; color: var(--primary-color); font-size: 2.2rem; text-decoration: none; transition: color var(--transition-speed) ease, transform var(--transition-speed) ease; }
.social-links a:hover { color: var(--accent-color); transform: scale(1.1); text-decoration: none; }
.social-links + p { margin-top: 10px; margin-bottom: 0; font-size: 0.9rem; }

/* === Footer === */
.site-footer-bottom { background-color: var(--dark-text); color: #a0a0a0; padding: 30px 0; text-align: center; font-size: 0.9rem; }
.site-footer-bottom p { margin-bottom: 5px; }

/* === Simple Animations === */
.animate-fade-in, .animate-fade-in-up, .animate-fade-in-left, .animate-fade-in-right, .animate-pop-in { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-fade-in-up { transform: translateY(40px); }
.animate-fade-in-left { transform: translateX(-40px); }
.animate-fade-in-right { transform: translateX(40px); }
.animate-pop-in { transform: scale(0.9); }
.visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* === Responsive Design === */

@media (min-width: 768px) { /* Tablet and up */
    .contact-details-grid { grid-template-columns: repeat(2, 1fr); } /* 2x2 Grid for Contact */
    .services-grid { grid-template-columns: repeat(2, 1fr); } /* **** Force 2x2 Grid for Services **** */
}

/* Remove the 1200px override that forced 4 columns for services */
/* @media (min-width: 1200px) { ... } */

@media (max-width: 992px) {
    :root { --header-height: 110px; }
    body { padding-top: var(--header-height); }
    section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
    .hero-section { min-height: calc(85vh - var(--header-height)); margin-top: calc(-1 * var(--header-height)); padding-top: var(--header-height); }
    .logo-image { max-height: 90px; }
    .container { max-width: 960px; }
    h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
    .about-content { flex-direction: column; text-align: center; }
    .about-image { max-width: 70%; margin-top: 0; flex-basis: auto; }
    .about-text { text-align: center; }
    .text-center.section-title::after { left: 50%; transform: translateX(-50%); }
    .section-title:not(.text-center)::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 767px) { /* Mobile Styles */
    html { font-size: 15px; }
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; }
    :root { --header-height: 170px; }
    body { padding-top: var(--header-height); }
    section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
    .hero-section { min-height: calc(80vh - var(--header-height)); margin-top: calc(-1 * var(--header-height)); padding-top: var(--header-height); }
    .header-container { flex-direction: column; justify-content: center; gap: 15px; padding: 15px 0; }
    .site-header { height: auto; min-height: var(--header-height); }
    .logo-image { max-height: 90px; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-section .container { padding: 20px; }
    .content-section { padding: 60px 0; }
    /* Grids default to 1 column */
    .services-grid { grid-template-columns: 1fr; }
    .contact-details-grid { grid-template-columns: 1fr; }
    .about-image { max-width: 80%; }
    .about-text { text-align: center; }
    .section-title:not(.text-center)::after { left: 50%; transform: translateX(-50%); }
    .contact-card { padding: 25px; min-height: auto;}
    .social-links a { font-size: 2.8rem; margin: 0 15px;}
    .about-content { gap: 30px; }
}

@media (max-width: 576px) {
    :root { --header-height: 150px; }
    body { padding-top: var(--header-height); }
    section[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
    .hero-section { min-height: calc(75vh - var(--header-height)); margin-top: calc(-1 * var(--header-height)); padding-top: var(--header-height); }
    html { font-size: 14px; }
    h1 { font-size: 1.8rem; } h2 { font-size: 1.6rem; }
    .hero-section .subtitle { font-size: 1.1rem; }
    .btn { padding: 10px 22px; font-size: 0.9rem; }
    .main-nav a { font-size: 0.9rem; }
    .about-image { max-width: 90%; }
    .hero-section .container { padding: 15px; }
    .service-card, .contact-card { padding: 20px; }
    .logo-image { max-height: 80px; }
    .header-container { gap: 15px; padding: 15px 0; }
    .social-links a { font-size: 2.5rem; margin: 0 12px;}
}