/* Global Styles */
:root {
    --main-color: #63585e;
    --accent-color: #4e6e5d;
    --secondary-color: #998da0;
    --light1: #b9c0da;
    --light2: #c4dacf;
    --neutral-bg: #ece9f0;
    --font-family: 'Arial', sans-serif;
}

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

.logo {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensures the body takes at least the full viewport height */
}

main {
    flex: 1; /* makes the main content area grow to fill space between header and footer */
}


h1, h2, h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
}

button, .service-btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}


body {
    font-family: var(--font-family);
    color: var(--main-color);
    background-color: var(--neutral-bg);
    line-height: 1.6;
}

header {
    background-color: var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

header img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

nav a, nav .dropdown-btn {
    text-decoration: none;
    color: var(--light2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: 0.2s;
}

nav a:hover, nav .dropdown-btn:hover {
    background-color: var(--light2);
    color: var(--main-color);
}

a:focus, button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--accent-color);
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--light2);
}

.dropdown-content a:hover {
    background-color: var(--light2);
    color: var(--main-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Buttons */
button, .service-btn {
    background-color: var(--main-color);
    color: var(--neutral-bg);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .service-btn:hover {
    background-color: var(--accent-color);
}

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

.service-card {
    background-color: var(--secondary-color);
    color: var(--neutral-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

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

a {
    color: var(--accent-color); /* or any color you want */
    text-decoration: none; /* optional: remove underline */
}

a:hover {
    color: var(--secondary-color); /* changes on hover */
    text-decoration: underline; /* optional hover effect */
}


/* Footer */
footer {
    background-color: var(--accent-color);
    color: var(--light2);
    font-size: 0.9rem;
    padding: 1rem 2rem;
}

/* Rows */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allows stacking on small screens */
    margin: 0; /* remove extra space */
}

/* First row columns */
footer {
    background-color: var(--accent-color);
    color: var(--light2);
    font-size: 0.9rem;
    padding: 1rem 2rem;
}

/* Top row: two columns */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* allows stacking on small screens */
    margin-bottom: 0; /* remove extra space below */
}

.footer-left {
    text-align: left;
}

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

/* Bottom row: full-width centered text */
.footer-bottom {
    text-align: center;
    width: 100%; /* ensure it spans entire footer */
    margin-top: 0.25rem; /* small spacing if desired */
}

/* Links */
footer a {
    color: var(--light2);
    text-decoration: underline;
    transition: 0.2s;
}

footer a:hover {
    color: var(--neutral-bg);
}

/* Responsive stacking for small screens */
@media (max-width: 600px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        margin: 0.25rem 0; /* small spacing between stacked items */
        text-align: center;
    }
}





