/* Canonical homepage visual styles. */

body.home-landing {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: #111827;
    background: #ffffff;
    overflow-x: hidden;
    --home-radius-card: 8px;
    --home-radius-soft: 6px;
    --home-radius-button: 6px;
    --home-placeholder-surface: #f3f4f6;
    --home-placeholder-stroke: #d1d5db;
    --home-placeholder-text: #6b7280;
}

body.home-landing header {
    background: #ffffff;
    color: #231f20;
    border-bottom: 1px solid rgba(35, 31, 32, 0.1);
    box-shadow: 0 10px 28px rgba(35, 31, 32, 0.08);
}

.ios-safe-top {
    display: none;
}

body.home-landing .ios-safe-top {
    display: block;
    height: 0;
    height: constant(safe-area-inset-top);
    height: env(safe-area-inset-top);
    background: #ffffff;
    flex: 0 0 auto;
}

body.home-landing .header-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 96px;
    max-height: 100px;
    box-sizing: border-box;
}

.brand-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    min-width: 0;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.brand-logo-agronomy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(52vw, 620px);
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

.brand-logo-rsil {
    flex: 0 0 auto;
    height: 60px;
    object-fit: contain;
    object-position: right center;
}

body.home-landing .main-nav {
    height: auto;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.home-landing .menu-container {
    min-height: 0;
    box-sizing: border-box;
}

body.home-landing .menu a,
body.home-landing .login-button {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.home-landing .menu a {
    line-height: 52px;
    color: #231f20;
}

body.home-landing .menu a.active {
    background-color: #c8102e;
    color: #fff;
}

body.home-landing .login-button {
    height: 52px;
    line-height: 52px;
}

body.home-landing .btn-login {
    color: #231f20 !important;
}

body.home-landing .menu-toggle {
    border-color: rgba(35, 31, 32, 0.16);
}

body.home-landing .menu-toggle svg,
body.home-landing .menu-toggle svg rect {
    fill: #231f20 !important;
}

body.home-landing main {
    max-width: none;
    margin: 0;
    padding: 0 0 64px;
}

body.auth-page main {
    padding: 56px 20px 88px;
}

.auth-page .login-container {
    width: min(100%, 460px);
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid rgba(54, 34, 34, 0.08);
    border-radius: var(--home-radius-card);
    box-shadow: 0 20px 50px rgba(35, 31, 32, 0.08);
}

.auth-page .login-title {
    margin: 0 0 10px;
    color: #111827;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 2.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-page .auth-hint {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 0.96rem;
    line-height: 1.6;
}

.auth-page .auth-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-page .form-group {
    margin-bottom: 18px;
}

.auth-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-page input[type="text"],
.auth-page input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--home-radius-soft);
    background: #ffffff;
    color: #111827;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page input[type="text"]:focus,
.auth-page input[type="password"]:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.12);
}

.auth-page .submit-button {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #c8102e;
    border-radius: var(--home-radius-soft);
    background: #c8102e;
    color: #ffffff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.auth-page .submit-button:hover {
    background: #9f0c25;
    border-color: #9f0c25;
}

.auth-page .error-message {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #fecdd3;
    border-radius: var(--home-radius-soft);
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-page .error-message:empty {
    display: none;
}

@media (max-width: 640px) {
    body.auth-page main {
        padding: 32px 16px 72px;
    }

    .auth-page .login-container {
        padding: 24px 20px;
    }
}

.home-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 1.3125rem;
    line-height: 1.57143;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: stretch;
    gap: 24px;
    padding: 24px 0;
    margin-bottom: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.home-hero-summary {
    min-width: 0;
}

.section-heading h2 {
    font-family: "Inter", "Segoe UI", sans-serif;
    letter-spacing: -0.03em;
    color: #111827;
    font-weight: 700;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--home-radius-button);
    border: 1px solid rgba(54, 34, 34, 0.12);
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-button-primary {
    background: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
}

.hero-button-secondary {
    background: #ffffff;
    color: #231f20;
}

.hero-button:hover {
    background: #231f20;
    border-color: #231f20;
    color: #ffffff;
}

.home-hero-summary {
    display: grid;
    gap: 12px;
    align-content: start;
}

.summary-item {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
    padding: 24px 22px;
    border-radius: var(--home-radius-card);
}

.summary-item span {
    display: block;
    margin-bottom: 6px;
    color: #7c2529;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-item strong {
    color: #231f20;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
}

.page-card,
.overview-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(54, 34, 34, 0.08);
    box-shadow: 0 12px 30px rgba(72, 46, 46, 0.05);
}

.home-section {
    margin-bottom: 42px;
}

.section-heading {
    max-width: none;
    width: 100%;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    color: #c8102e;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.875rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1be48;
}

.section-heading p:last-child {
    margin: 0;
    color: #4f4343;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.page-card {
    display: block;
    min-height: 220px;
    padding: 24px 22px 22px;
    border-radius: var(--home-radius-card);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-card:hover {
    box-shadow: 0 18px 36px rgba(72, 46, 46, 0.08);
    border-color: rgba(200, 16, 46, 0.16);
}

.page-card-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.page-card.page-card-featured {
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #ece8e2;
}

.page-card-placeholder {
    border-radius: 0;
    background: linear-gradient(135deg, #f4f1eb 0%, #ebeef2 100%);
}

.page-card-placeholder span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px;
}

.page-card.page-card-featured h3 {
    margin: 0 0 10px;
    font-size: 1.32rem;
}

.page-card.page-card-featured p {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.page-card.page-card-featured .page-card-link {
    margin-top: auto;
    padding-top: 18px;
}

.page-card h3 {
    margin: 16px 0 10px;
    color: #7c2529;
    font-size: 1.18rem;
}

.page-card p,
.home-cta p {
    color: #4f4343;
}

.page-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: #8d1429;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.overview-stack {
    display: grid;
    gap: 24px;
}

.overview-card {
    border-radius: var(--home-radius-card);
}

.overview-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.overview-split:nth-child(even) .overview-copy {
    order: 2;
}

.overview-split:nth-child(even) .overview-media {
    order: 1;
}

.overview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 36px;
}

.overview-copy h3 {
    margin: 0 0 12px;
    color: #7c2529;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.1;
}

.overview-copy p {
    margin: 0;
    color: #4f4343;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.overview-media {
    min-height: 260px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    background: linear-gradient(135deg, #f4f1eb 0%, #ebeef2 100%);
}

.overview-media span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-cta-section {
    margin-bottom: 24px;
}

.home-cta h2 {
    margin: 0 0 12px;
    color: #c8102e;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1be48;
}

.home-cta-copy {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
}

.home-cta .home-cta-actions {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.home-cta-copy p:last-child {
    margin: 0;
}

.people-section {
    margin-bottom: 24px;
}

.explore-heading,
.people-heading {
    margin-bottom: 28px;
}

.people-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 22px;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(54, 34, 34, 0.08);
    box-shadow: 0 12px 30px rgba(72, 46, 46, 0.05);
    border-radius: var(--home-radius-card);
    min-width: 0;
    text-align: center;
}

.person-avatar {
    width: 104px;
    height: 104px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 104px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.person-body {
    min-width: 0;
    display: grid;
    gap: 4px;
    width: 100%;
    justify-items: center;
    text-align: center;
}

.person-body h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    line-height: 1.12;
}

.person-body h3 a {
    color: #7c2529;
    text-decoration: none;
}

.person-body h3 a:hover {
    color: #7c2529;
}

.person-role,
.person-body p {
    margin: 0;
    color: #344767;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.person-body a {
    color: #243b63;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.person-body a:hover {
    text-decoration: underline;
}

body.home-landing footer {
    background-color: #C8102E;
    margin-top: 0;
}

.contact-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: text-bottom;
    color: #f1be48;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

@media (max-width: 1100px) {
    .home-hero,
    .home-cta {
        grid-template-columns: 1fr;
    }

    .overview-stack {
        gap: 20px;
    }

    .overview-split {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .overview-split:nth-child(even) .overview-copy,
    .overview-split:nth-child(even) .overview-media {
        order: initial;
    }

    /* Mirror RSIL Products card layout: image on top, text below. */
    .overview-split .overview-media {
        order: 0;
    }

    .overview-split .overview-copy {
        order: 1;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 22px;
    }

    .overview-split .overview-copy h3 {
        margin: 0 0 10px;
        font-size: 1.32rem;
        line-height: 1.1;
    }

    .overview-split .overview-copy p {
        margin: 0;
    }

    .overview-media {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    img.overview-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .page-card-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .people-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-cta-copy {
        width: 100%;
    }

    .home-cta .home-cta-actions {
        margin-left: 0;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    body.home-landing .header-main {
        min-height: 72px;
        max-height: none;
        padding: 10px 14px;
        gap: 8px;
        align-items: center;
    }

    body.home-landing .main-nav {
        border-top: none;
    }

    .brand-pair {
        gap: 10px;
        align-items: center;
    }

    .brand-logo-agronomy {
        max-width: min(50vw, 198px);
        max-height: 30px;
    }

    .brand-logo-rsil {
        max-width: min(28vw, 98px);
        max-height: 34px;
    }

    body.home-landing .menu a {
        line-height: normal;
    }

    body.home-landing .login-button {
        height: auto;
        line-height: normal;
    }

    .home-page {
        width: min(100%, calc(100% - 24px));
        padding-top: 16px;
    }

    .home-hero,
    .page-card,
    .overview-card {
        padding: 24px 20px;
        border-radius: var(--home-radius-card);
    }

    .home-cta {
        padding: 0;
    }

    .overview-split {
        padding: 0;
    }

    .overview-copy {
        padding: 22px;
    }

    .overview-media,
    img.overview-media {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .overview-split .overview-copy h3 {
        margin: 0 0 10px;
        font-size: 1.32rem;
        line-height: 1.1;
    }

    .page-card.page-card-featured {
        padding: 0;
    }

    .page-card-body {
        padding: 20px;
    }

    .page-card-grid-featured {
        grid-template-columns: 1fr;
    }

    .people-list {
        grid-template-columns: 1fr;
    }

    .person-avatar {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .person-body h3 {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }

    .home-hero {
        gap: 18px;
    }

    .section-heading h2 {
        font-size: 1.625rem;
    }

    .home-cta h2 {
        font-size: 1.625rem;
    }

    .overview-copy {
        padding: 20px;
    }

    .overview-media,
    img.overview-media {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .overview-split .overview-copy h3 {
        margin: 0 0 10px;
        font-size: 1.32rem;
        line-height: 1.1;
    }

    .home-cta .home-cta-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .home-cta .hero-button {
        width: auto;
    }

    .page-card {
        min-height: 0;
    }

    .section-heading {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    body.home-landing .header-main {
        min-height: 64px;
        padding: 8px 10px;
    }

    .brand-logo-agronomy {
        max-width: min(48vw, 164px);
        max-height: 24px;
    }

    .brand-logo-rsil {
        max-width: min(26vw, 84px);
        max-height: 28px;
    }

    body.home-landing .menu-toggle {
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .home-page {
        width: min(100%, calc(100% - 16px));
    }

    .home-hero,
    .page-card {
        padding: 22px 18px;
        border-radius: var(--home-radius-card);
    }

    .overview-card {
        padding: 0;
        border-radius: var(--home-radius-card);
    }

    .home-cta {
        padding: 0;
    }

    .page-card.page-card-featured {
        padding: 0;
    }

    .page-card-body {
        padding: 18px;
    }

    .person-card {
        padding: 20px 18px;
    }
}

/* Image Placeholders */
.image-placeholder {
    background-color: var(--home-placeholder-surface);
    border: 1px dashed var(--home-placeholder-stroke);
    border-radius: var(--home-radius-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--home-placeholder-text);
    font-size: 0.9rem;
    overflow: hidden;
    width: 100%;
}

.image-placeholder span {
    padding: 16px;
    opacity: 0.8;
}

/* Slideshow overrides */
.home-hero-left {
    display: flex;
    min-width: 0;
    min-height: 100%;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: var(--home-radius-card);
    overflow: hidden;
    background: #e5e7eb;
}

.slide-placeholder {
    position: relative;
    display: block;
    padding: 0;
    background-size: cover;
    background-position: center;
}

.slide-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02) 0%, rgba(17, 24, 39, 0.30) 100%);
}

.slide-placeholder-imaging {
    background-image: linear-gradient(135deg, #362222 0%, #5b2d2f 50%, #8d1429 100%);
}

.slide-placeholder-processing {
    background-image: linear-gradient(135deg, #5c4b3c 0%, #7c2529 50%, #c8102e 100%);
}

.slide-placeholder-delivery {
    background-image: linear-gradient(135deg, #6b0f20 0%, #8d1429 45%, #f1be48 100%);
}

.slide-with-image {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-with-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02) 0%, rgba(17, 24, 39, 0.30) 100%);
    z-index: 0;
}

.slide-with-image .slide-placeholder-content {
    z-index: 1;
}

.slide-placeholder-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
    display: grid;
    gap: 6px;
    max-width: min(100%, 640px);
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(17, 24, 39, 0.28);
}

.slide-placeholder-content span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.84;
}

.slide-placeholder-content strong {
    display: block;
    font-size: clamp(1.05rem, 1.65vw, 1.55rem);
    line-height: 1.2;
    font-weight: 700;
}

@media (min-width: 1024px) {
    .slideshow {
        min-height: 400px;
    }
}

@media (max-width: 1100px) {
    .home-hero-left {
        min-height: 0;
    }

    .slideshow {
        height: 320px;
    }

    .slide-placeholder {
        padding: 0;
    }

    .slide-placeholder-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

.slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.slideshow .slide.active {
    opacity: 1;
    visibility: visible;
}

.slideshow .slide img,
.slideshow .slide-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .hero-button,
    .page-card,
    .slideshow .slide {
        transition: none !important;
    }
}

/* Homepage shell base styles previously inherited from iowa-style.css */
html,
body.home-landing {
    margin: 0;
    padding: 0;
}

body.home-landing {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.home-landing .header-main.container,
body.home-landing .menu-container,
body.home-landing footer .container {
    --bs-gutter-x: 0;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

body.home-landing footer .container {
    padding: 0 20px;
}

body.home-landing .header-main {
    position: relative;
}

body.home-landing .menu-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
    box-sizing: border-box;
}

body.home-landing .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    align-items: center;
    flex-wrap: nowrap;
}

body.home-landing .menu li {
    margin: 0;
}

body.home-landing .menu a {
    display: inline-block;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body.home-landing .menu a:hover {
    background-color: transparent;
}

body.home-landing .user-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
    margin-left: auto;
}

body.home-landing .login-button {
    margin: 0;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, border-color 0.2s ease;
}

body.home-landing .menu a,
body.home-landing .login-button {
    min-height: 0;
    height: auto;
    line-height: 1.2;
    background: transparent !important;
    box-shadow: none;
    color: #000 !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

body.home-landing .menu a:hover,
body.home-landing .login-button:hover {
    background: transparent !important;
    color: #111 !important;
}

body.home-landing .menu a.active,
body.home-landing .login-button.active {
    background: transparent !important;
    color: #000 !important;
    border-bottom-color: #111;
}

body.home-landing .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 1px solid rgba(35, 31, 32, 0.16);
    border-radius: 6px;
    cursor: pointer;
}

body.home-landing footer {
    color: #ffffff;
    padding: 40px 0 20px;
}

body.home-landing .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
}

body.home-landing .footer-links:empty {
    display: none;
}

body.home-landing .footer-links,
body.home-landing .footer-contact,
body.home-landing .footer-logo {
    flex: 1 1 280px;
}

body.home-landing .footer-links h4,
body.home-landing .footer-contact h4,
body.home-landing .footer-logo h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

body.home-landing .footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-landing .footer-links li {
    margin-bottom: 10px;
}

body.home-landing .footer-links a,
body.home-landing .footer-contact p,
body.home-landing .footer-logo p {
    color: rgba(255, 255, 255, 0.85);
}

body.home-landing .footer-links a {
    text-decoration: none;
}

body.home-landing .footer-links a:hover {
    color: #f1be48;
    text-decoration: underline;
}

body.home-landing .footer-contact p,
body.home-landing .footer-logo p {
    margin-bottom: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.home-landing .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

body.home-landing .footer-bottom p {
    margin: 0;
    color: #ffffff;
}

@media (max-width: 768px) {
    body.home-landing .main-nav {
        height: auto;
        border-top: none;
    }

    body.home-landing .menu-toggle {
        display: none !important;
    }

    body.home-landing .menu-container {
        gap: 16px;
        min-height: 0;
        padding: 8px 16px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    body.home-landing .menu-container::-webkit-scrollbar {
        display: none;
    }

    body.home-landing .menu,
    body.home-landing .user-menu {
        display: flex;
        width: auto;
        max-width: none;
        box-sizing: border-box;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        min-width: min-content;
        margin: 0;
        background: transparent;
    }

    body.home-landing .menu li {
        width: auto;
        border-bottom: none;
    }

    body.home-landing .menu li:last-child {
        border-bottom: none;
    }

    body.home-landing .menu a {
        width: auto;
        max-width: none;
        min-height: 0;
        padding: 4px 0;
        box-sizing: border-box;
    }

    body.home-landing .user-menu {
        justify-content: flex-start;
        margin-left: 0;
        padding: 0;
    }

    body.home-landing .login-button {
        width: auto;
        max-width: none;
        min-height: 0;
        height: auto;
        line-height: 1.2;
        margin: 0;
        padding: 4px 0;
        box-sizing: border-box;
        border-radius: 0;
        text-align: center;
    }

    body.home-landing footer {
        padding: 32px 0 18px;
    }

    body.home-landing footer .container {
        padding: 0 16px;
    }

    body.home-landing .footer-content {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
    }

    body.home-landing .footer-links,
    body.home-landing .footer-contact,
    body.home-landing .footer-logo {
        flex: 1 1 auto;
        width: 100%;
    }

    body.home-landing .footer-links h4,
    body.home-landing .footer-contact h4,
    body.home-landing .footer-logo h4 {
        margin-bottom: 12px;
        padding-bottom: 8px;
        font-size: 1rem;
    }

    body.home-landing .footer-contact p,
    body.home-landing .footer-logo p,
    body.home-landing .footer-links a {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    body.home-landing .footer-bottom {
        padding-top: 16px;
        text-align: left;
    }

    body.home-landing .footer-bottom p {
        font-size: 0.82rem;
        line-height: 1.6;
    }
}

@keyframes homeMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Text Block section ───────────────────────────────────── */

.text-block-body {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.text-block-body p {
    margin-bottom: 1em;
}

/* ── Image List section ────────────────────────────────────── */

.imglist {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.imglist-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: var(--home-radius-card, 8px);
    padding: 16px;
}

.imglist-media {
    width: 180px;
    min-width: 180px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.imglist-copy {
    flex: 1;
    min-width: 0;
}

.imglist-copy h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
}

.imglist-copy p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
}

@media (max-width: 600px) {
    .imglist-row {
        flex-direction: column;
        gap: 14px;
    }
    .imglist-media {
        width: 100%;
        min-width: 0;
        height: 180px;
    }
}

/* ── Gallery section ──────────────────────────────────────── */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--home-radius-card, 8px);
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.gallery-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 12px 16px;
    font-size: 0.92rem;
    color: #4b5563;
    margin: 0;
}

/* ── Empty page state ─────────────────────────────────────── */

.page-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
