/* Root variables for consistent theming */
:root {
    --primary-color: #007FA3;
    --secondary-color: #2CA58D;
    --accent-color: #F4C542;
    --dark-color: #002D40;
    --light-color: #F7FDFE;
    --grey-color: #F5F7F9;
    --text-color: #243447;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Global resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--light-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.light-bg {
    background: var(--grey-color);
}

.text-center {
    text-align: center;
}

/* Navigation */
.navbar {
    background: var(--dark-color);
    color: #fff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo wrapper for text or image */
.logo {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
}

/* Logo image styling */
.logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-right: 0.5rem;
}

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

.nav-links a {
    margin-left: 1.5rem;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nav toggle open state */
.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--dark-color);
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links a {
        margin: 0.5rem 0;
    }
    .nav-toggle {
        display: flex;
    }
}

/* Hero section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.small-hero {
    min-height: 40vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: var(--secondary-color);
    color: #fff;
}

/* Slightly darker shade on hover */
.primary-btn:hover {
    background: #24886d;
}

.secondary-btn {
    background: var(--dark-color);
    color: #fff;
}

.secondary-btn:hover {
    background: var(--primary-color);
}

/* Section titles */
.section h2 {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Service cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
}

/* Grid lists */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
}

.grid-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.grid-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* Tools grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--dark-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s ease;
}

.tool-card:hover {
    background: var(--primary-color);
}

/* Services list page */
.services-list article {
    margin-bottom: 3rem;
}

.services-list article h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-list article p {
    margin-bottom: 0.5rem;
}

.services-list article ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.services-list article ul li {
    margin-bottom: 0.25rem;
}

/* About page */
.about-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.about-content ul.grid-list {
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Contact page */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d2d6dc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--body-font);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 127, 163, 0.2);
}

.form-response {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Modal overlay for form submission confirmation */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.4;
}

.modal-content .btn {
    margin-top: 0.5rem;
}