/* =========================
   Base reset
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    color: #1f2933;
    background-color: #f4f6f8;
    background-image: radial-gradient(#eef2f6 1px, transparent 1px);
    background-size: 18px 18px;
}

/* =========================
   Header & Navigation
========================= */

header {
    background: #0f2a44;
    color: #ffffff;
    padding: 22px 30px; /* slightly tighter */
    border-bottom: 1px solid rgba(255,255,255,0.08); /* subtle separation */
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================
   Branding (logo + name)
========================= */

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
}

/* Nav links */
nav a {
    color: #dbe7f2;
    text-decoration: none;
    margin-left: 22px;
    font-size: 0.95rem;
}

nav a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* =========================
   Main layout
========================= */

main {
    background-color: #ffffff;
    max-width: 1100px;
    margin: 50px auto;
    padding: 50px 60px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =========================
   Typography
========================= */

h1 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.7rem;
    font-weight: 600;
    color: #0f2a44;
    letter-spacing: -0.01em;
}

h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #0f2a44;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    margin-top: 6px;
    font-weight: 500;
    color: #4b5563;
}

p {
    margin-bottom: 18px;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

/* =========================
   Sections
========================= */

section {
    margin-bottom: 50px;
}

/* Use this class on selected sections if you want an alternate band */
.section-muted {
    background-color: #f7f9fb;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #edf1f5;
}

/* =========================
   Images
========================= */

/* Existing (if used on any pages) */
.profile-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =========================
   About page layout
========================= */

.about-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-photo {
    flex: 1;
    min-width: 260px;
}

.about-photo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    /* This prevents the “massive photo” issue on wide screens */
    max-width: 360px;
}

.about-copy {
    flex: 2;
    min-width: 280px;
}

.about-copy h2 {
    margin-bottom: 0.25rem;
}

.about-copy h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    opacity: 0.88;
}

/* =========================
   Contact form (Netlify)
========================= */

.contact-form {
    margin-top: 1.25rem;
    max-width: 760px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(0,0,0,0.22);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Make the textarea line up nicely with its label */
.contact-form .form-row:has(textarea) {
    align-items: start;
}

.contact-form button[type="submit"] {
    margin-top: 0.25rem;
    padding: 0.75rem 1.2rem;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #0f2a44; /* matches header */
    color: #ffffff;
}

.contact-form button[type="submit"]:hover {
    opacity: 0.92;
}

/* =========================
   Footer
========================= */

footer {
    text-align: center;
    padding: 28px 20px;
    font-size: 0.85rem;
    color: #6b7280;
    background-color: #eef1f5;
    margin-top: 60px;
}

/* =========================
   Responsive tweaks
========================= */

@media (max-width: 768px) {
    header {
        padding: 18px 18px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    nav a {
        margin-left: 0;
        margin-right: 18px;
    }

    main {
        margin: 18px;
        padding: 32px 22px;
    }

    main a strong {
        text-decoration: underline;
        text-underline-offset: 6px;
    }

    .about-layout {
        gap: 20px;
    }

    .about-photo-img {
        max-width: 320px;
    }
}

@media (max-width: 700px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}