@font-face {
    font-family: Trajanpro;
    font-weight: bold;
    src: url("fonts/TrajanPro-Bold.otf") format("opentype");
}

@font-face {
    font-family: Cinzel;
    src: url("fonts/Cinzel-Regular.otf") format("opentype");
}

@font-face {
    font-family: Cinzel;
    font-weight: bold;
    src: url("fonts/Cinzel-Bold.otf") format("opentype");
}



:root {
    /* --header-height: 64px; */
    --header-height: 65px;
    --footer-height: 56px;
    --header-background: #294320;
    /* --header-background: #395c2e; */
    --text-color: #222428;
    --max-width: 1100px;
    --brand-color: #E1C660;
    --brand-color: #fde386;

    --muted: #666;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%;
    color: light-dark(red, lightblue);
    /* max-width: 1100px; */
}

body {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    line-height: 1.45;
    color: var(--text-color);
    background: #f7f8fb;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    margin: 0;
}



.container {
    width: 100%;
    /* max-width: var(--max-width); */
    max-width: 3000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--header-background);
    display: flex;
    align-items: center;
    box-shadow: 0 1px 6px rgba(10, 10, 10, 0.08);
    z-index: 1000;
    overflow: visible;
    border-bottom: 3px solid var(--brand-color);

}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
}

.brand-left,
.brand-right {
    font-family: Cinzel, serif;
    font-weight: bold;
    color: var(--brand-color);
    font-size: 1.5rem
}

.header-brand-center {
    display: flex;
    align-items: center;
    justify-content: center
}

.header-brand-center img {
    display: block;
    width: auto;
    height: 45px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.375rem;
    cursor: pointer;
    color: var(--brand-color);
}

.site-nav-wrapper {
    /* position: absolute;
    right: 20px;
    top: 10px; */
}

.site-nav {
    display: flex;
    gap: 1rem
}

.site-nav a {
    color: var(--brand-color);
    text-decoration: none;
    padding: .5rem .25rem;
    border-radius: 4px
}

.site-nav a:hover {
    background: rgba(0, 0, 0, 0.04)
}

.site-main {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: calc(var(--footer-height) + 1rem);
    flex: 1 0 auto;
}

/* .welcome {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.25rem 0;
    background: yellow
} */

.lead {
    color: var(--muted);
    margin-top: 0;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.25rem 0
}

.card {
    background: #fff;
    padding: 1em 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(10, 10, 10, 0.06);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.75rem;
    min-height: 160px;
    overflow: visible;
    position: relative;
}

.card>h2 {
    margin: 0;
    /* font-size: 1.25rem; */
    color: var(--header-background);
}

.card-body {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 0.5rem;
}

.card-body>div {
    margin: 0;
    padding: 0.6rem 0.75rem 0.6rem 1rem;
    background: #e8f5e9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.card-body>div:hover {
    background: #c8e6c9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding-left: 1.25rem;
}

.item-text {
    flex: 1;
}

.card-body>div a {
    text-decoration: none;
    color: inherit;
}

.info-icon {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a7c59;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.card-body>div .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* background: #2c3e50; */
    background: var(--header-background);
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    /* allow wrapping and prevent the tooltip from exceeding the parent width */
    white-space: normal;
    max-width: calc(100% - 12px);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: left;
    z-index: 1001;
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.card-body>div .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--header-background);
}

.card-body>div.tooltip-bottom .tooltip {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 0.5rem;
}

.card-body>div.tooltip-bottom .tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--header-background);
}

.card-body>div.show-tooltip .tooltip {
    opacity: 1;
    visibility: visible;
}

.site-footer {
    position: relative;
    width: 100%;
    background: var(--header-background);
    box-shadow: 0 -1px 6px rgba(10, 10, 10, 0.06);
    z-index: 1000;
    margin-top: auto;
}



.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-cta h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    color: var(--brand-color)
}

.footer-contact-wrapper {
    display: flex;
    justify-content: center;
}

.footer-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    justify-items: start;
}

.contact-item {
    color: var(--brand-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--brand-color);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.contact-item:hover {
    opacity: 0.7;
}

.footer-copyright {
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--footer-height);
}

.site-footer p {
    margin: 0;
    color: var(--brand-color);

    font-size: 0.95rem
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--header-background);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--header-background);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #222;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #222;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--header-background);
    box-shadow: 0 0 0 3px rgba(36, 138, 7, 0.1);
}

.form-submit {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--header-background);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1e6f06;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Modal footer links section */
.modal-footer-links {
    /* margin-top: 2rem; */
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
}

.modal-footer-links .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.modal-footer-links .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #248a07;
    font-weight: 500;
    transition: color 0.2s;
}

.modal-footer-links .contact-item:hover {
    color: #1e6f06;
}

.modal-footer-links .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Message styles for contact form (errors and success) */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    animation: slideDownFade 320ms ease both;
    transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.error-message {
    background: linear-gradient(180deg, #fff5f5, #fdecea);
    color: #7a1f1f;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: linear-gradient(180deg, #f6fffb, #e6f9ec);
    color: #1e5f2b;
    border: 1px solid #c3e6cb;
}

.msg-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.msg-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.error-message .msg-icon svg {
    color: #b91c1c;
}

.success-message .msg-icon svg {
    color: #15703b;
}

.msg-text {
    flex: 1 1 auto;
}

.msg-text p {
    margin: 0;
}

@keyframes slideDownFade {
    from {
        transform: translateY(-6px);
        opacity: 0;
    }

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

@keyframes slideUpFade {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-8px);
        opacity: 0;
    }
}

.msg-hide {
    animation: slideUpFade 260ms ease both;
}

/* Slider */

/* * {
           box-sizing: border-box
       } */

.slider-header {
    text-align: center;
    font-family: Cinzel, serif;
    background-color: var(--header-background);
    color: var(--brand-color);
    border-radius: 10px 10px 0 0;
}

.slider-header h2 {
    margin: 0;
    padding: 10px 0;
}

.slide-header {
    margin: 0;
    color: #222428;
}

.slide-topic {
    display: flex;
    margin-bottom: 15px;
    justify-content: flex-start;
    gap: 1em;
    align-items: center;
}

.slide-topic-icon {
    background-size: contain;
}

/* 
        .slide-header::before {
            content: '';co
            background: url('images/icons/png/004-verified.png');
            position: absolute;
            top: 0px;
            left: 0px;
        } */

/*
/* ul li:before
{
    content: '\2713';
    margin: 0 .75em;  
} */

li {
    list-style-type: "⚠";
    /* list-style-image: url('images/icons/png/004-verified.png'); */
    margin: 0 .75em .75em;




}

/* 
       li::marker {
           color: red;
           font-weight: bold;
           margin: 0 .75em;
       } */

.container-div {
    width: 100%;
    height: 330px;
    position: relative;
    overflow: hidden;
    background: url('images/home-image1.png') no-repeat right center;
    background-size: 50%;
    border: 1px solid gold;
    border-radius: 0 0 10px 10px;
    /* font-family: sans-serif; */
}

.content-viewport {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #ffffffa6;
}

.content-wrapper {
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.8s ease;
}

/* Animation States */
.scroll-out {
    transform: translateY(-30px);
    opacity: 0;
    filter: blur(4px);
}

.scroll-in-start {
    transform: translateY(30px);
    opacity: 0;
    filter: blur(4px);
}

/* Navigation Dots */
.dot-container {
    position: absolute;
    width: 100%;
    bottom: 20px;
    /* left: 40px; */
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: green;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    transform: scale(1.3);
}

/* Responsive rules */
@media (max-width:900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* @media (max-width:640px) { */

@media (max-width:1024px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--header-background);
        display: flex;
        flex-direction: column;
        padding: .5rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 280ms cubic-bezier(.2, .9, .3, 1),
            opacity 180ms ease,
            transform 180ms ease;
    }

    .site-nav.open {
        max-height: 340px;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav a {
        padding: .75rem 0
    }

    h1 {
        font-size: 6vw;
    }

    .slider-header h2 {
        font-size: 1.2rem;
        padding: 5px;
    }

    .content-viewport {
        width: 100%;
    }

    .container-div {
        background-size: cover;
    }

    .cards {
        grid-template-columns: 1fr
    }

    .footer-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (min-width:1025px) {
    .site-nav-wrapper {
        position: absolute;
        right: 20px;
        top: 10px;
    }
}


@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}