/* Basic Reset */
body, h1, h2, h3, p, ul, li, a, header, footer, main, nav {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333; /* Dark gray for text - good contrast on white */
    background-color: #ffffff; /* White background */
}

/* Color Palette (Initial - can be refined) */
:root {
    --primary-blue: #005A9C; /* A strong, trustworthy blue */
    --secondary-blue: #007bff; /* A lighter, vibrant blue for accents/buttons */
    --light-gray: #f4f4f4; /* For subtle backgrounds or borders */
    --dark-gray: #333333;
    --white: #ffffff;
}

header {
    background: var(--white); /* Keep header clean */
    padding: 1rem 2rem; /* Add some horizontal padding */
    text-align: left; /* Align content to the left */
    border-bottom: 1px solid var(--light-gray); /* Subtle separator */
    display: flex; /* Using flexbox for layout */
    justify-content: space-between; /* Space between logo and nav */
    align-items: center; /* Vertically align items */
}

.logo-container img#logo {
    max-height: 50px; /* Adjust as needed, keeps logo from being too tall */
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem; /* Space between nav items */
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500; /* Medium weight for nav links */
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-blue);
    border-bottom: 2px solid var(--secondary-blue); /* Highlight for active/hover */
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--primary-blue);
    margin: 4px 0;
    transition: background-color 0.3s ease;
}

/* Basic Mobile Nav Styling (will be improved with JS for toggle) */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav by default on mobile */
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: var(--white);
        border-top: 1px solid var(--light-gray);
        padding: 1rem 0;
    }

    .main-nav.active {
        display: flex; /* Show when active */
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .main-nav li {
        margin: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }
}

footer {
    background: var(--dark-gray); /* Darker footer */
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem; /* Increased padding */
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    align-items: start;
}

.footer-contact p,
.footer-copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact a,
.footer-social a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover,
.footer-social a:hover {
    color: var(--secondary-blue);
}

.footer-social {
    display: flex;
    gap: 1.5rem; /* Space between social icons */
    font-size: 1.8rem; /* Size of social icons */
    justify-content: flex-start; /* Align to start on larger screens */
}

.footer-copyright {
    grid-column: 1 / -1; /* Make copyright span full width on grid */
    text-align: center; /* Center copyright text */
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--wndb-gray-600); /* Subtle separator, using a defined gray if available */
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    .footer-social {
        justify-content: center; /* Center social icons on mobile */
    }
}

/* Hero Section */
.hero-section {
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); */
    background-image: linear-gradient(rgba(0, 90, 156, 0.7), rgba(0, 123, 255, 0.7)), url('../img/pexels-ketut-subiyanto-4963437-scaled.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 6rem 2rem; /* Generous padding for impact */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh; /* Make it take a good portion of the viewport height */
}

.hero-content {
    max-width: 800px; /* Constrain content width for readability */
}

.hero-headline {
    font-size: 3rem; /* Large headline */
    font-weight: 700; /* Bold */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.5rem; /* Substantial tagline */
    font-weight: 300; /* Lighter weight for contrast */
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    text-decoration: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Content Sections General Styling */
.content-section {
    padding: 4rem 2rem;
    text-align: left;
}

.content-section .container {
    max-width: 960px; /* Max width for content readability */
    margin: 0 auto; /* Center the container */
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center; /* Center section titles */
}

.content-section h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.content-section p.intro-text {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #555; /* Slightly lighter than main text */
}

.specialties-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1rem;
}

.specialties-list li {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    color: var(--dark-gray);
    border-left: 4px solid var(--secondary-blue); /* Accent border */
}

/* Services Section Styling */
.alt-bg {
    background-color: var(--light-gray); /* Light gray background for differentiation */
}

.services-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid for cards */
    gap: 2rem; /* Space between service items */
    margin-top: 2rem;
}

.service-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 0; /* Reset margin from generic content-section h3 */
    margin-bottom: 0.75rem;
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0; /* Reset margin from generic content-section p */
    color: #555;
}

.service-icon {
    font-size: 2.5rem; /* Adjust size as needed */
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    display: block; /* To allow margin auto for centering if needed, or text-align on parent */
    text-align: center; /* Center the icon within its block */
}

/* TODO: Add placeholder for icons if desired */

/* Blog Post Specific Styling */
.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.blog-post-header h1 {
    font-size: 2.8rem; /* Slightly smaller than hero headline for hierarchy */
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-align: left; /* Override content-section h2 center align */
}

.post-meta {
    font-size: 0.9rem;
    color: #777; /* Lighter color for meta data */
    margin-bottom: 0;
}

.blog-post .container h2 {
    font-size: 2rem; /* Subheadings within blog post */
    text-align: left; /* Override content-section h2 center align */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post ol,
.blog-post ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem; /* Standard indentation for lists */
}

.blog-post ol li,
.blog-post ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.blog-post strong {
    font-weight: 500; /* Medium weight for emphasis */
    color: var(--primary-blue);
}

/* Ensure main has enough padding if footer is fixed or content is short */
main {
    padding-bottom: 60px; /* Adjust if footer height changes */
}

/* Recent News Section Styling */
.news-items-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); */ /* For multiple items */
    grid-template-columns: 1fr; /* Start with single column for one item */
    gap: 2rem;
    margin-top: 2rem;
}

.news-item {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    overflow: hidden; /* If using images, to contain them */
    display: flex;
    flex-direction: column;
}

.news-item-image {
    width: 100%;
    height: 200px; /* Adjust as needed */
    object-fit: cover;
}

.news-item-content {
    padding: 1.5rem;
}

.news-item-content h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.news-item-content h3 a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.news-item-content h3 a:hover {
    color: var(--secondary-blue);
}

.news-item-excerpt {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

.news-item-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
}

.read-more {
    font-weight: 500;
    color: var(--secondary-blue);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc; /* Lighter border for inputs */
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.2); /* Subtle focus ring */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    justify-self: start; /* Align button to the left in the grid */
    width: auto;
}

.form-messages {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.form-messages.success {
    background-color: #e6f9f0; /* Light green for success */
    color: #008744;
    border: 1px solid #008744;
}

.form-messages.error {
    background-color: #fdecea; /* Light red for error */
    color: #d93025;
    border: 1px solid #d93025;
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Start slightly lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add more styles as we build components */

/* Responsive Adjustments */
@media (max-width: 992px) { /* Medium devices (tablets, less than 992px) */
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.25rem;
    }
    .content-section h2 {
        font-size: 2.2rem;
    }
    .content-section h3 {
        font-size: 1.5rem;
    }
    .blog-post-header h1 {
        font-size: 2.3rem;
    }
    .blog-post .container h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) { /* Small devices (landscape phones, 768px and down) */
    header {
        padding: 1rem; /* Reduce header padding */
        flex-direction: column; /* Stack logo and nav if nav becomes too wide */
        align-items: flex-start;
    }
    .logo-container {
        margin-bottom: 0.5rem; /* Add space if header stacks */
    }
    .main-nav {
        top: auto; /* Adjust if header stacks differently */
        /* The existing mobile nav toggle will handle menu display */
    }
    .hero-section {
        padding: 4rem 1rem;
        min-height: 60vh;
    }
    .hero-headline {
        font-size: 2rem;
    }
    .hero-tagline {
        font-size: 1.1rem;
    }
    .content-section {
        padding: 3rem 1rem;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    .content-section p, .content-section li, .service-item p {
        font-size: 1rem;
    }
    .specialties-list {
        grid-template-columns: 1fr; /* Stack specialties list on small screens */
    }
    .services-list {
        grid-template-columns: 1fr; /* Stack service cards on small screens */
    }
    .news-items-grid {
        /* Already 1fr, which is good for mobile */
    }
    .footer-content {
        text-align: center;
        grid-template-columns: 1fr; /* Stack footer sections */
    }
    .footer-social {
        justify-content: center; /* Center social icons */
        margin-top: 1rem;
    }
    .footer-contact {
        margin-bottom: 1rem;
    }
    .blog-post-header h1 {
        font-size: 2rem;
    }
    .blog-post .container h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) { /* Extra small devices (phones, less than 480px) */
    .hero-headline {
        font-size: 1.8rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* TODO: Add placeholder for icons if desired */

/* New Story Page Banner Section */
.story-banner-section {
    background-image: linear-gradient(rgba(0, 90, 156, 0.7), rgba(0, 123, 255, 0.7)), url('../img/deal image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 2rem; /* Adjusted padding */
    text-align: center;
    min-height: 45vh; /* Adjusted height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* Ensure full width */
}

.story-banner-content {
    max-width: 800px; /* Consistent with hero content */
}

.story-banner-section h1 {
    font-size: 3rem; /* Prominent heading */
    font-weight: 700;
    margin-bottom: 0; /* Remove default bottom margin */
    line-height: 1.2;
    color: var(--white); /* Ensure text is white */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Optional: slight shadow for readability */
}

/* New Services Page Banner Section */
.services-banner-section {
    background-image: linear-gradient(rgba(0, 90, 156, 0.7), rgba(0, 123, 255, 0.7)), url('../img/Businessman in Motion through Cityscape.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.services-banner-content {
    max-width: 800px;
}

.services-banner-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Responsive Adjustments */
@media (max-width: 992px) { /* Medium devices (tablets, less than 992px) */
    .hero-headline {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.25rem;
    }
    .content-section h2 {
        font-size: 2.2rem;
    }
    .content-section h3 {
        font-size: 1.5rem;
    }
    .blog-post-header h1 {
        font-size: 2.3rem;
    }
    .blog-post .container h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) { /* Small devices (landscape phones, 768px and down) */
    header {
        padding: 1rem; /* Reduce header padding */
        flex-direction: column; /* Stack logo and nav if nav becomes too wide */
        align-items: flex-start;
    }
    .logo-container {
        margin-bottom: 0.5rem; /* Add space if header stacks */
    }
    .main-nav {
        top: auto; /* Adjust if header stacks differently */
        /* The existing mobile nav toggle will handle menu display */
    }
    .hero-section {
        padding: 4rem 1rem;
        min-height: 60vh;
    }
    .hero-headline {
        font-size: 2rem;
    }
    .hero-tagline {
        font-size: 1.1rem;
    }
    .content-section {
        padding: 3rem 1rem;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    .content-section p, .content-section li, .service-item p {
        font-size: 1rem;
    }
    .specialties-list {
        grid-template-columns: 1fr; /* Stack specialties list on small screens */
    }
    .services-list {
        grid-template-columns: 1fr; /* Stack service cards on small screens */
    }
    .news-items-grid {
        /* Already 1fr, which is good for mobile */
    }
    .footer-content {
        text-align: center;
        grid-template-columns: 1fr; /* Stack footer sections */
    }
    .footer-social {
        justify-content: center; /* Center social icons */
        margin-top: 1rem;
    }
    .footer-contact {
        margin-bottom: 1rem;
    }
    .blog-post-header h1 {
        font-size: 2rem;
    }
    .blog-post .container h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) { /* Extra small devices (phones, less than 480px) */
    .hero-headline {
        font-size: 1.8rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
} 

/* Modal content styling */
#quote-modal .modal-content {
  border: 1px solid black;
  border-radius: 8px;
  background-color: #fff;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  box-sizing: border-box;
}

/* "Request a Quote" button styling */
.request-quote {
  color: black;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
}

.request-quote:hover {
  background-color: #e0e0e0;
}
