:root {
    --color-ink: #2c3e50;
    --color-deep: #1a4d5e;
    --color-accent: #ffde59;
    --color-accent-dark: #ffcc4d;
    --color-mist: #ecf0f1;
    --color-surface: #ffffff;
    --color-surface-alt: #e8f5ec;
    --color-border: #bdc3c7;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lift: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* Base reset & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--color-ink);
    background: linear-gradient(180deg, #ecf9ff 0%, #d9f0e8 100%);
    min-height: 100vh;
}

/* Layout helpers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--color-deep);
}

p {
    margin: 0 0 1.2rem;
}

/* Header & navigation */
header.hero {
    background-color: #0f4d66;
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-mist);
    text-align: center;
    padding: 1.5rem 0 6rem;
    position: relative;
}
header.hero::before,
header.hero::after {
    content: none !important;
}
header.hero,
.navbar,
.hero-content {
    pointer-events: auto;
}
.navbar,
.hero-content {
    position: relative;
    z-index: 1;
}

nav.navbar {
    background-color: #1a4d5e;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}
.logo {
    color: var(--color-accent);
    font-size: 1.6rem;
    text-decoration: none;
    font-weight: 700;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a {
    color: var(--color-mist);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s, color 0.3s;
}
.nav-links a:hover {
    opacity: 0.85;
    color: var(--color-accent);
}

/* Hero content */
.hero-content {
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    user-select: text;
}
.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: #ffffff;
}
.hero-content p {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0;
    color: #f7fbff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-deep);
    padding: 0.85rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* Sections */
.section {
    margin: 3rem auto;
    padding: 3.5rem 2.5rem;
}
.section-about,
.section-services,
.section-contact {
    background-color: var(--color-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}
.section-lede {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: #375565;
}
.section-about h2,
.section-services h2,
.section-contact h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-deep);
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    line-height: 1.9;
}

/* Services / Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.card {
    background-color: var(--color-surface-alt);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-soft);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}
.card h3 {
    color: var(--color-deep);
    margin-bottom: 0.7rem;
}
.card p {
    font-size: 0.95rem;
    margin: 0 0 1rem;
}
.card ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #334d5c;
}
.card li {
    margin-bottom: 0.4rem;
}
.card li:last-child {
    margin-bottom: 0;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s;
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-deep);
    outline: none;
}
.contact-form button {
    background-color: var(--color-deep);
    color: #ffffff;
    border: none;
    padding: 0.95rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}
.contact-form button:hover {
    background-color: #17455a;
    transform: translateY(-2px);
}

/* Footer */
footer.footer {
    background-color: var(--color-deep);
    color: var(--color-mist);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}
footer.footer p {
    margin: 0;
}
footer.footer a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-inner {
        flex-direction: column;
    }
    .section {
        padding: 3rem 2rem;
        margin: 2.5rem auto;
    }
}
@media (max-width: 600px) {
    header.hero {
        padding-bottom: 4.5rem;
    }
    .hero-content h1 {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
    }
    .nav-links {
        gap: 1rem;
    }
    .section {
        padding: 2.5rem 1.5rem;
    }
    .contact-form button {
        width: 100%;
    }
}
