/* Landing page styles based on the provided Django template styles */
html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    background: #fff;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

article,
aside,
footer,
header,
nav,
section {
    display: block;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Container styles */
.container {
    width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 1128px;
}

@media (min-width: 481px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    clear: both;
    color: #98a084;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 44px;
    line-height: 54px;
}

h2 {
    font-size: 32px;
    line-height: 42px;
}

h3, h4 {
    font-size: 24px;
    line-height: 34px;
    letter-spacing: -0.1px;
}

p {
    margin-top: 0;
    margin-bottom: 24px;
    color: #627183;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.1px;
}

.text-sm {
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.1px;
}

.text-xs {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.1px;
}

.text-xxs {
    font-size: 14px;
    line-height: 22px;
}

/* Button styles */
.button {
    display: inline-flex;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.1px;
    font-weight: 600;
    padding: 11px 31px;
    height: 48px;
    text-decoration: none !important;
    color: #627183;
    background-color: #f3f5f8;
    border-width: 1px;
    border-style: solid;
    border-color: #e7ecf2;
    border-radius: 2px;
    cursor: pointer;
    justify-content: center;
    text-align: center;
    letter-spacing: inherit;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.button:hover {
    background-color: #e7ecf2;
}

.button-rounded-white {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #98a084;
    background-color: white;
    border: 2px solid #98a084;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.button-rounded-white:hover {
    background-color: #5d634e;
    color: white;
}

.button-rounded-dark {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white !important;
    background-color: #98a084;
    border: 2px solid #98a084;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.button-rounded-dark:hover {
    background-color: #5d634e;
    color: white;
}

.button-rounded-transparent {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.button-rounded-transparent:hover {
    background-color: white;
    color: #98a084;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-right: -8px;
    margin-left: -8px;
    margin-top: -8px;
}

.button-group > .button {
    margin: 8px;
}

@media (max-width: 640px) {
    .button-wide-mobile {
        width: 100%;
        max-width: 280px;
    }
}

/* Layout styles */
.body-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

/* Header styles */
.site-header {
    position: absolute !important;
    top: 0;
    width: 100%;
    z-index: 10 !important;
}

.site-header + .site-content .section:first-of-type {
    padding-top: 80px;
}

.site-header .brand {
    margin-right: 32px;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-nav {
    flex-grow: 1;
}

.header-nav .header-nav-inner {
    display: flex;
    flex-grow: 1;
}

.header-nav ul {
    display: flex;
    align-items: center;
    flex-grow: 1;
    white-space: nowrap;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.header-nav ul:first-of-type {
    flex-wrap: wrap;
}

.header-nav a:not(.button) {
    display: block;
    text-decoration: none;
    font-weight: 500;
    padding: 0 32px;
    color: #95a4b4;
}

.header-nav a.button {
    margin-left: 32px;
}

.header-nav-right {
    justify-content: flex-end;
}

.header-nav-right + .header-nav-right {
    flex-grow: 0;
}

.header-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0;
    cursor: pointer;
}

/* Hamburger menu */
.hamburger,
.hamburger-inner {
    display: block;
    pointer-events: none;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 24px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    position: absolute;
    background: #fff;
}

.hamburger-inner {
    top: 50%;
    margin-top: -1px;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -7px;
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger-inner::after {
    bottom: -7px;
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), width 0.1s 0.25s ease-in;
}

/* Section styles */
.section {
    position: relative;
}

.section-inner {
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
}

.section-header {
    padding-bottom: 48px;
}

@media (min-width: 641px) {
    .section-inner {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .section-header {
        padding-bottom: 80px;
    }
}

/* Hero section */
.hero {
    position: relative;
    background-color: transparent;
    z-index: auto;
}

.hero.has-bg-color::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #98a084;
    clip-path: polygon(0 0, 5760px 0, 5760px calc(100% - 352px), 0 100%);
    z-index: -3;
}

.hero-inner {
    padding-bottom: 168px;
}

.hero-inner > .hero-content + .hero-figure,
.hero-inner > .hero-figure + .hero-content {
    margin-top: 48px;
}

.hero-figure {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.hero-figure:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.hero-figure > a {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
}

/* Split layout */
.split-wrap {
    margin-top: -24px;
}

.split-wrap:last-of-type {
    margin-bottom: -24px;
}

.split-wrap:not(:last-of-type) {
    margin-bottom: 24px;
}

.split-wrap .split-item {
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.split-wrap .split-item .split-item-image {
    position: relative;
    width: 100%;
}

.split-wrap .split-item .split-item-image img,
.split-wrap .split-item .split-item-image svg,
.split-wrap .split-item .split-item-image video {
    width: auto;
    height: auto;
    max-width: 100%;
    overflow: visible;
}

.split-wrap .split-item .split-item-image.split-item-image-fill img,
.split-wrap .split-item .split-item-image.split-item-image-fill svg,
.split-wrap .split-item .split-item-image.split-item-image-fill video {
    width: 100%;
}

@media (max-width: 640px) {
    .split-wrap .split-item .split-item-content {
        margin-bottom: 40px;
    }
    
    .hero .split-wrap .split-item .split-item-content {
        margin-bottom: 48px;
    }
}

@media (min-width: 641px) {
    .split-wrap {
        margin-top: -40px;
    }
    
    .split-wrap:last-of-type {
        margin-bottom: -40px;
    }
    
    .split-wrap:not(:last-of-type) {
        margin-bottom: 40px;
    }
    
    .split-wrap .split-item {
        padding-top: 40px;
        padding-bottom: 40px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
    }
    
    .split-wrap .split-item .split-item-content {
        flex-shrink: 0;
        width: 396px;
        margin-bottom: 0;
        margin-right: 64px;
    }
    
    .split-wrap .split-item .split-item-image {
        min-width: 436px;
    }
    
    .hero-inner > .hero-content + .hero-figure,
    .hero-inner > .hero-figure + .hero-content {
        margin-top: 64px;
    }
}

/* Tiles layout */
.tiles-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: -12px;
    margin-left: -12px;
    margin-top: -12px;
}

.tiles-wrap:last-of-type {
    margin-bottom: -12px;
}

.tiles-wrap:not(:last-of-type) {
    margin-bottom: 12px;
}

.tiles-item {
    flex-basis: 330px;
    max-width: 330px;
    box-sizing: content-box;
    padding: 12px;
}

.tiles-item * {
    box-sizing: border-box;
}

.tiles-item-inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: 100%;
    padding: 32px 24px;
    background: #fff;
}

/* Features tiles */
.features-tiles .tiles-wrap {
    margin-right: -16px;
    margin-left: -16px;
    margin-top: -16px;
}

.features-tiles .tiles-wrap:last-of-type {
    margin-bottom: -16px;
}

.features-tiles .tiles-wrap:not(:last-of-type) {
    margin-bottom: 16px;
}

.features-tiles .tiles-item {
    flex-basis: 317px;
    max-width: 317px;
    padding: 16px;
}

.features-tiles .tiles-item-inner {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.features-tiles-item-image {
    display: inline-flex;
    border-radius: 50%;
    background: #98a084;
}

.features-tiles-item-content h4 {
    font-family: "Playfair Display", serif;
}

@media (min-width: 641px) {
    .features-tiles .tiles-wrap {
        margin-right: -32px;
        margin-left: -32px;
        margin-top: -32px;
    }
    
    .features-tiles .tiles-wrap:last-of-type {
        margin-bottom: -32px;
    }
    
    .features-tiles .tiles-wrap:not(:last-of-type) {
        margin-bottom: 32px;
    }
    
    .features-tiles .tiles-item {
        padding: 32px;
    }
}

/* News section */
.news {
    position: relative;
}

.news::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #f3f5f8;
    z-index: -3;
}

.news .tiles-item {
    flex-basis: 344px;
    max-width: 344px;
}

.news .tiles-item-inner {
    padding: 0;
    flex-wrap: nowrap;
}

.news .news-item-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: 100%;
    padding: 32px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.news-item-body {
    flex-grow: 1;
}

.news-item-title {
    font-weight: 700;
}

.news-item-title a {
    color: #98a084 !important;
    text-decoration: none;
}

.news-item-more {
    font-weight: 500;
}

.news-item-more a {
    color: #000;
    text-decoration: none;
}

.news-item-more a:hover {
    color: #98a084;
}

.news-item-image {
    margin: 0;
}

.news-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.site-footer {
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #98a084;
    z-index: -3;
}

.site-footer-inner {
    padding: 48px 0;
}

.footer-top {
    padding-bottom: 12px;
}

.footer-bottom {
    padding-top: 12px;
}

@media (max-width: 640px) {
    .footer-top > *:not(:last-child),
    .footer-bottom > *:not(:last-child) {
        margin-bottom: 24px;
    }
}

@media (min-width: 641px) {
    .site-footer-inner {
        padding: 64px 0;
    }
    
    .footer-top.space-between,
    .footer-bottom.space-between {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Utility classes */
.invert-color {
    color: #95a4b4;
}

.invert-color h1,
.invert-color h2,
.invert-color h3,
.invert-color h4,
.invert-color h5,
.invert-color h6 {
    color: #fff;
}

.invert-color a:not(.button) {
    color: #95a4b4;
    text-decoration: underline;
}

.invert-color a:not(.button):hover,
.invert-color a:not(.button):active {
    color: #2174ea;
    outline: 0;
    text-decoration: none;
}

.has-bg-color {
    position: relative;
    background-color: #98a084;
    z-index: 0;
}

.has-shadow {
    box-shadow: 0 4px 16px rgba(16, 29, 45, 0.08);
}

.has-top-divider {
    position: relative;
}

.has-top-divider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    height: 1px;
    background: #e7ecf2;
}

.center-content {
    text-align: center;
}

.center-content img,
.center-content svg,
.center-content video {
    margin-left: auto;
    margin-right: auto;
}

.center-content .button-group {
    justify-content: center;
}

@media (max-width: 640px) {
    .center-content-mobile {
        text-align: center;
    }
    
    .center-content-mobile img,
    .center-content-mobile svg,
    .center-content-mobile video {
        margin-left: auto;
        margin-right: auto;
    }
    
    .center-content-mobile .button-group {
        justify-content: center;
    }
}

/* Margin and padding utilities */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

.list-reset {
    list-style: none;
    padding: 0;
}

.list-reset li {
    margin: 0;
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive breakpoints */
@media (min-width: 641px) {
    h1 {
        font-size: 52px;
        line-height: 62px;
    }
    
    h2 {
        font-size: 44px;
        line-height: 54px;
    }
    
    h3 {
        font-size: 32px;
        line-height: 42px;
    }
}

/* Mobile header navigation */
@media (max-width: 640px) {
    .header-nav-toggle {
        display: block;
    }
    
    .header-nav-toggle + .header-nav {
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 9999;
        background: #0c1622;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.25s ease-in-out, opacity 0.15s;
    }
    
    .header-nav-toggle + .header-nav.is-active {
        opacity: 1;
    }
    
    .header-nav-toggle + .header-nav .header-nav-inner {
        flex-direction: column;
        padding: 24px;
    }
    
    .header-nav-toggle + .header-nav ul {
        display: block;
        text-align: center;
    }
    
    .header-nav-toggle + .header-nav ul a:not(.button) {
        display: inline-flex;
        color: #fff;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .header-nav-toggle + .header-nav ul a:not(.button):hover,
    .header-nav-toggle + .header-nav ul a:not(.button):active {
        color: #fff;
    }
    
    .header-nav-toggle + .header-nav a.button {
        margin-left: 0;
        margin-top: 12px;
        margin-bottom: 12px;
    }
}