@font-face {
    font-family: 'Josefin Sans';
    src: url('Site-Assets/Fonts/JosefinSans-Regular.woff2') format('woff2'),
        url('Site-Assets/Fonts/JosefinSans-Regular.woff') format('woff'),
        url('Site-Assets/Fonts/JosefinSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('Site-Assets/Fonts/JosefinSans-Bold.woff2') format('woff2'),
        url('Site-Assets/Fonts/JosefinSans-Bold.woff') format('woff'),
        url('Site-Assets/Fonts/JosefinSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', Arial, sans-serif;
    background: #F3F0EC;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px 24px;
    background: white;
    border-radius: 8px;
}

/* Footer will be part of the document flow so it shows at the bottom when scrolled to */
/* No extra body padding required for a normal footer */

/* Contact grid: two-column layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.contact-form {
    background: transparent;
}

.field {
    display: block;
    margin-bottom: 18px;
}

.field .label-text {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    background: #f1efee;
    border: none;
    border-bottom: 4px solid #d66b2a;
    /* orange bar */
    padding: 12px 10px;
    border-radius: 2px;
    outline: none;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.field input:focus,
.field textarea:focus,
.field input:active,
.field textarea:active {
    border-bottom-color: #ffffff;
    /* turn white when focused */
    background-color: #eae9e8;
}

/* Two-up row (first + last name) */
.row.two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    /* increased gap so fields are visually separate */
    align-items: start;
}

/* ensure fields don't visually touch when space is tight */
.row.two-up .field {
    min-width: 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.btn-submit {
    background: #7BA5B0;
    /* teal-ish pill button */
    color: #fff;
    padding: 12px 32px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-submit:hover {
    background: #8fbec3;
    transform: translateY(-2px);
}

.status {
    color: #333;
}

/* Contact side */
.contact-side {
    background: transparent;
    padding: 6px 8px;
}

.contact-side .phone,
.contact-side .socials,
.contact-side .realtor {
    margin-bottom: 18px;
}

.socials .icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
}

.realtor-logo {
    margin-top: 8px;
    font-weight: 700;
}

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .row.two-up {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 20px;
    }
}

textarea {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    cursor: pointer;
}

/* Header styles */
.site-header {
    background: #2B4E4E;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .site-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
}

.nav {
    display: flex;
    gap: 16px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.page-hero {
    /* full-bleed: stretch the section edge-to-edge while keeping the site centered */
    width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-top: 2%;
    margin-left: -50vw;
    /* pull to the left edge of the viewport */
    margin-right: -50vw;
    /* pull to the right edge of the viewport */
    min-width: 100vw;
    /* ensure the element spans at least the viewport width to avoid 1px gaps on some browsers */
    margin-right: -1px;
    /* small negative to counter subpixel rounding/scrollbar width differences */
}

.page-hero img {
    width: 100%;
    /* changed from 100vw to 100% so it matches the .page-hero container exactly */
    max-width: none;
    height: 320px;
    /* default desktop height */
    object-fit: cover;
    display: block;
}

/* Overlay and anchored logo (bottom at ~2/3 height) */
.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    /* fill the hero container */
    pointer-events: none;
    /* decorative */
    z-index: 2;
}

.page-hero .hero-logo {
    position: absolute;
    left: 50%;
    top: 0;
    /* align top of logo with top of hero */
    transform: translate(-50%, 0);
    /* align top edge */
    width: clamp(230px, 49vw, 604px);
    /* unchanged size */
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.25));
}

/* Responsive heights for different breakpoints */
@media (min-width: 900px) {
    .page-hero img {
        height: 420px;
    }
}

@media (max-width: 700px) {
    .page-hero img {
        height: 220px;
    }

    .page-hero .hero-logo {
        top: 0;
        /* align top with hero on mobile */
        transform: translate(-50%, 0);
        width: clamp(173px, 60.4vw, 460px);
        /* ~15% larger on mobile */
    }
}

/* Profile hero (lake background + profile card) */
.profile-hero {
    background-color: #304F4F;
    width: 100%;
    margin: 0 0 28px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    /* pull to viewport left edge */
    margin-right: -50vw;
    /* pull to viewport right edge */
    min-width: 100vw;
    /* ensure the element spans at least the viewport width to avoid 1px gaps on some browsers */
    margin-right: -1px;
    /* small negative to counter subpixel rounding/scrollbar width differences */
    overflow: visible;

}

.profile-hero .profile-bg {
    display: block;
    width: 100%;
    max-width: none;
    height: 240px;
    object-fit: cover;
}

.profile-hero .profile-card {
    max-width: 1100px;
    margin: -80px auto 0 auto;
    /* pull up to overlap the bg */
    background: transparent;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    padding: 22px 24px;
}

.profile-photo img {
    width: 220px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: block;
}

.profile-copy h1 {
    color: #7BA5B0;
    margin: 0 0 8px 0;
}


.profile-copy h2 {
    margin: 0 0 8px 0;
}

.profile-copy p {
    color: #F3F0EC;
    margin: 0 0 8px 0;
}

@media (max-width: 900px) {
    .profile-hero .profile-bg {
        height: 160px;
    }

    .profile-hero .profile-card {
        margin: -56px auto 0 auto;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-photo img {
        width: 180px;
        margin: 0 auto;
    }
}

.text-hero {
    background-color: #7BA5B0;
    min-height: 20vh;
    /* adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.text-hero h1 {
    color: #ffffff;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.3;
    max-width: 1100px;
}

.hero-emphasis {
    display: block;
    /* ensures it stays on its own line */
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.neutral-section {
    background-color: #F3F0EC;
    padding: 5rem 2rem;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.neutral-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.neutral-section {
    background-color: #F3F0EC;
    /* fallback color */
    /* background-image: url('Site-Assets/Images/MNKate_Backgrounds_Background Canoe.png'); */
    background-size: cover;
    /* makes the image cover the entire section */
    background-position: center;
    /* centers the image */
    background-repeat: no-repeat;
    padding: 6rem 2rem;
    /* adjust vertical spacing */
    color: #304F4F;
    /* ensures text is readable */
    position: relative;
    z-index: 1;
}

.neutral-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(243, 240, 236, 0.7);
    /* optional overlay for readability */
    z-index: -1;
}

.decor-image {
    position: absolute;
    width: 300px;
    /* default size for desktop */
    height: auto;
    z-index: 0;
    pointer-events: none;
    top: 20%;
    /* vertical placement */
    transition: all 0.3s ease;
    /* smooth resizing */
}

/* Left image */
.decor-image.left {
    left: 2%;
    transform: rotate(20deg);
}

/* Right image */
.decor-image.right {
    right: 2%;
    transform: rotate(-20deg);
}

/* Tablet / iPad landscape ~ 1024px wide */
@media (max-width: 1024px) {
    .decor-image {
        width: 120px;
        top: 15%;
    }

    .decor-image.left {
        left: 3%;
        transform: rotate(-15deg);
    }

    .decor-image.right {
        right: 3%;
        transform: rotate(15deg);
    }
}

/* Tablet / iPad portrait ~ 768px wide */
@media (max-width: 768px) {
    .decor-image {
        width: 90px;
        top: 12%;
    }

    .decor-image.left {
        left: 5%;
        transform: rotate(-10deg);
    }

    .decor-image.right {
        right: 5%;
        transform: rotate(10deg);
    }
}

/* Mobile / smaller screens */
@media (max-width: 768px) {
    .decor-image {
        width: 80px;
        /* smaller size on mobile */
        top: 10%;
        /* move higher to avoid overlapping text */
    }

    .decor-image.left {
        left: 5%;
        /* slightly inset */
        transform: rotate(20deg);
    }

    .decor-image.right {
        right: 5%;
        transform: rotate(-20deg);
    }
}

@media (max-width: 480px) {
    .decor-image {
        width: 60px;
        /* even smaller on very small screens */
        top: 5%;
    }
}

.hero-accent {
    color: #C86128;
}

.btn-primary {
    display: inline-block;
    background-color: #C86128;
    color: #ffffff;
    padding: 1rem 3rem;
    /* taller and wider */
    min-width: 200px;
    /* ensures it has a minimum width */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    /* fully rounded edges */
    text-align: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #b05523;
    transform: translateY(-2px);
}


.btn-say-hello {
    display: inline-block;
    background-color: #ffffff;
    color: #b05523;
    padding: 1rem 3rem;
    /* taller and wider */
    min-width: 200px;
    /* ensures it has a minimum width */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 50px;
    /* fully rounded edges */
    text-align: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-say-hello:hover {
    background-color: #7BA5B0;
    transform: translateY(-2px);
}

.listings-section {
    color: #304F4F;
}

.listings-section p {
    margin: 1rem;
}

.listing-icons {
    display: flex;
    justify-content: center;
    /* center horizontally */
    gap: 2rem;
    /* space between images */
    margin-top: 3rem;
    /* space from above content */
    flex-wrap: wrap;
    /* allows wrapping on smaller screens */
}

.listing-item {
    display: flex;
    flex-direction: column;
    /* image on top, text below */
    align-items: center;
    text-align: center;
    max-width: 150px;
    /* optional max width */
}

.listing-item img {
    width: 100%;
    /* scales to container */
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
    /* space between image and text */
}

.listing-item p {
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* Optional: Responsive adjustments */
@media (max-width: 768px) {
    .listing-icons {
        gap: 1.5rem;
    }

    .listing-item {
        max-width: 120px;
    }
}




.veteran-section {
    background-color: #E9AA65;
    /* full-width background */
    padding: 4rem 0;
    /* only vertical padding now */
    margin-top: 2%;
}

.veteran-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    /* constrain content width */
    margin: 0 auto;
    /* center horizontally */
    padding: 0 2rem;
    /* horizontal padding inside content */
}

.veteran-text {
    color: #F3F0EC;
    flex: 1 1 400px;
    margin-right: 1rem;
}

.veteran-photo {
    flex: 0 0 300px;
    margin-left: 1rem;
}

.veteran-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {

    .veteran-section {
        margin-top: 6%;
        padding: 2rem 0;
    }

    .veteran-container {
        flex-direction: column;
        /* stack text above photo */
        text-align: center;
        gap: 0rem;
        /* reduce space between text and photo */
    }

    .veteran-text,
    .veteran-photo {
        margin: 0;
        flex: 0 0 300px;
        /* remove horizontal margins */
    }

    .veteran-photo {
        margin-top: 0rem;
        /* small space between text and photo */
    }
}

.seeking-next-home {
    width: 100%;
    height: 400px;
    /* or whatever height you want */
    background-image: url('Site-Assets/Images/MNKate_Backgrounds_Background_Lake.png');
    background-size: cover;
    /* fills area while keeping aspect ratio */
    background-position: center;
    /* centers the image */
    background-repeat: no-repeat;
}

.seeking-next-home img {
    display: none;
    /* hide the img tag */
}


.realtor-logo img {
    height: 40px;
    /* adjust logo size */
    width: auto;
    /* maintain aspect ratio */
    vertical-align: middle;
    margin-left: 0.5rem;
    /* optional space if text is next to it */
}

.social {
    background: none !important;
    /* remove any background */
    border-radius: 0 !important;
    /* remove circle corners */
    padding: 0 !important;
    /* remove extra padding */
}

.social-icon {
    background: none !important;
    /* remove background from the image itself */
    border-radius: 0 !important;
    /* remove rounded corners */
    padding: 0 !important;
    /* remove padding */
    display: inline-block;
    width: 32px;
    /* adjust size as needed */
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    /* spacing between icons */
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    /* subtle hover effect */
}

/* Footer (normal document flow) with contact form */
.footer-title {
    margin: 0 0 14px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

.site-footer {
    position: relative;
    /* not fixed so it sits at bottom when scrolled to */
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.04);
    z-index: 100;
    overflow: visible;
    margin-top: 48px;
}

.site-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 24px;
}

@media (max-width: 900px) {
    .site-footer .footer-inner {
        padding: 18px 16px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .nav {
        display: none;
        flex-direction: column;
        background: #2B4E4E;
        position: absolute;
        right: 20px;
        top: 60px;
        padding: 8px;
        border-radius: 6px;
        min-width: 140px;
    }

    .nav.show {
        display: flex;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-header .site-inner {
        padding: 10px 16px;
    }

    .container {
        margin: 20px;
    }
}