:root {
    --text-color: #333333;
    --black-color: #000000;
    --primary-color: #0A775F;
    --white-color: #FFFFFF;
    --accent-color: #C99B67;
    --site-bg-color: #F8F8F2;
    --header-bg-color: #f2d2af;
    --footer-bg-color: #F3D7B7;
    --transition: 0.3s ease;
}

/* ========================
   GLOBAL
   ======================== */
html {
    box-sizing: border-box;
    height: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus {
    outline: 2px dashed #1e90ff;
    outline-offset: 2px;
}

body {
    font-size: 22px;
    font-weight: 400;
    line-height: 34px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: "Roboto", "Arial", sans-serif;
    background-color: var(--white-color);
    color: var(--text-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1300px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================
   PAGE LOADER
   ======================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--header-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-coffee-cup {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.loader-cup {
    width: 60px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 0 0 25px 25px;
    position: relative;
    margin: 0 auto;
}

.loader-cup::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 8px;
    width: 18px;
    height: 28px;
    border: 4px solid var(--primary-color);
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.loader-cup::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.loader-steam {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.loader-steam span {
    display: block;
    width: 4px;
    height: 20px;
    background-color: rgba(10, 119, 95, 0.4);
    border-radius: 2px;
    animation: steam 1.2s ease-in-out infinite;
}

.loader-steam span:nth-child(2) {
    animation-delay: 0.2s;
    height: 25px;
}

.loader-steam span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes steam {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scaleY(1.3);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.6;
    }
}

.loader-text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========================
   HEADER
   ======================== */
.site-header {
    position: relative;
    margin-bottom: 20px;
    background-color: var(--header-bg-color);
}

.site-header-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-logo img {
    transition: opacity var(--transition);
}

.site-header-logo img:hover {
    opacity: 0.8;
}

.site-header-logo img:active {
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--black-color);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Nav */
.site-nav-list {
    list-style: none;
    display: flex;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.site-nav-item a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 1px;
    transition: opacity var(--transition);
}

.site-nav-item a:hover {
    opacity: 0.8;
}

.site-nav-item a:active {
    opacity: 0.6;
}

.site-nav-item:not(:last-child) {
    margin-right: 40px;
}

/* ========================
   HERO
   ======================== */
.hero-section-container {
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-section-info-wrapper {
    max-width: 464px;
    margin: 60px 0;
    flex-shrink: 0;
}

.hero-section-h2 {
    margin: 0 0 24px 0;
    color: var(--black-color);
    font-size: 64px;
    font-weight: 700;
    line-height: 75px;
}

.hero-section-p {
    margin: 0 0 34px 0;
    color: var(--black-color);
    font-size: 16px;
    line-height: 24px;
}

.info-section-button {
    display: inline-block;
    padding: 16px 24px;
    border-radius: 100px;
    background: var(--primary-color);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
    transition: opacity var(--transition), transform var(--transition);
}

.info-section-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.info-section-button:active {
    opacity: 0.6;
    transform: translateY(0);
}

.hero-section-img-wrapper {
    position: relative;
    display: flex;
    flex-shrink: 1;
    min-width: 0;
}

.header-absolute-img {
    position: absolute;
    left: -11%;
    top: -10%;
}

/* ========================
   OUR COLLECTION
   ======================== */
.main-section-container {
    width: 100%;
    max-width: 1360px;
    position: relative;
    margin-bottom: 20px;
    background-color: var(--site-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.leaves-1 {
    position: absolute;
    left: calc(50% - 900px);
}

.leaves-2 {
    position: absolute;
    right: calc(50% - 1060px);
}

.leaves-3 {
    position: absolute;
    right: calc(50% + 551px);
    top: calc(73% - 10px);
}

.main-section-h2 {
    justify-content: center;
    display: flex;
    width: 100%;
    margin: 0 0 81px 0;
    padding-top: 50px;
    text-transform: uppercase;
    color: var(--black-color);
    font-size: 50px;
    font-weight: 700;
    line-height: 59px;
    text-align: center;
}

.main-section-cards-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1114px;
}

.main-section-cards-wrapper:last-child {
    margin-bottom: 50px;
}

.main-section-card-inner {
    display: flex;
    flex-grow: 1;
    align-items: center;
}

.card-info-wrapper {
    flex-grow: 1;
    width: 100%;
    margin: 0 0 0 60px;
    position: relative;
}

.card-info-wrapper h3 {
    text-transform: uppercase;
    margin: 0 0 10px 0;
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
}

.card-info-wrapper p {
    margin: 0;
}

/* ========================
   WHY CHOOSE US
   ======================== */
.why-choose-us-section-container {
    width: 100%;
    max-width: 1360px;
    background-color: var(--accent-color);
    padding-bottom: 80px;
    margin-bottom: 40px;
}

.why-choose-us-section-h2 {
    margin: 0 0 0 10px;
    padding-top: 50px;
    color: var(--white-color);
    font-size: 50px;
    font-weight: 700;
    line-height: 58px;
    text-align: center;
}

.why-choose-us-section-p-wrapper {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 80px;
}

.why-choose-us-section-p {
    margin: 0;
    max-width: 581px;
    opacity: 0.8;
    color: var(--white-color);
    font-size: 16px;
    line-height: 28px;
}

.why-choose-us-section-cards-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
}

.why-choose-us-section-card {
    position: relative;
    flex: 1;
}

.why-choose-us-section-card img {
    border-radius: 8px;
    transition: transform var(--transition);
}

.why-choose-us-section-card:hover img {
    transform: scale(1.02);
}

.why-choose-us-section-card-absolute-img {
    position: absolute;
    top: -9%;
    left: -13%;
    z-index: 2;
}

.why-choose-us-section-card h3 {
    text-transform: uppercase;
    margin: 28px 0 10px 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 35px;
}

.why-choose-us-section-card p {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
}

/* ========================
   HOW IT WORKS
   ======================== */
.how-it-works-section-container {
    width: 100%;
    margin-bottom: 50px;
    max-width: 1360px;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.how-it-works-section-h2 {
    color: var(--white-color);
    font-size: 48px;
    font-weight: 700;
    line-height: 59px;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 160px 0;
    padding-top: 50px;
}

.how-it-works-section-absolute-img {
    position: absolute;
    z-index: 5;
    right: 60px;
    top: 58px;
}

.how-it-works-section-cards-wrapper {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    padding: 0 20px;
}

.how-it-works-section-card {
    position: relative;
    flex: 1;
    max-width: 423px;
    min-height: 396px;
    background-color: var(--site-bg-color);
    padding: 20px 20px 40px 20px;
    border-radius: 4px;
    transition: transform var(--transition);
}

.how-it-works-section-card:hover {
    transform: translateY(-4px);
}

.how-it-works-section-card-absolute-box {
    position: absolute;
    top: -80px;
    left: 0;
}

.how-it-works-section-card-absolute-hr {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
}

.step-number {
    text-align: right;
    opacity: 0.8;
    font-size: 64px;
    font-weight: 400;
    line-height: 75px;
    margin-bottom: 45px;
}

.how-it-works-section-card h3 {
    text-transform: uppercase;
    max-width: 231px;
    font-size: 35px;
    font-weight: 500;
    line-height: 47px;
    margin: 0 0 10px 0;
}

.how-it-works-section-card-p {
    font-size: 18px;
    margin: 0;
    font-weight: 400;
    line-height: 28px;
}

.how-it-works-button-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
}

.how-it-works-button {
    display: inline-block;
    text-decoration: none;
    color: var(--white-color);
    background-color: var(--accent-color);
    padding: 16px 24px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 150px;
    transition: opacity var(--transition), transform var(--transition);
}

.how-it-works-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.how-it-works-button:active {
    opacity: 0.6;
    transform: translateY(0);
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
    background-color: var(--footer-bg-color);
    margin-top: auto;
}

.site-footer-container {
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer-logo {
    transition: opacity var(--transition);
}

.site-footer-logo:hover {
    opacity: 0.8;
}

.site-footer-logo:active {
    opacity: 0.6;
}

.site-footer-nav-list {
    display: flex;
    list-style: none;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

.site-footer-nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    letter-spacing: 1px;
}

.site-footer-nav-item:not(:last-child) {
    margin-right: 40px;
}

.site-footer-nav-link {
    text-decoration: none;
    color: var(--text-color);
    transition: opacity var(--transition);
}

.site-footer-nav-link:hover {
    opacity: 0.8;
}

.site-footer-nav-link:active {
    opacity: 0.6;
}

.socials-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-item:not(:last-child) {
    margin-right: 30px;
}

.social-link {
    transition: opacity var(--transition), transform var(--transition);
    display: inline-block;
}

.social-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.social-link:active {
    opacity: 0.6;
}

/* ========================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================== */
@media (max-width: 1024px) {
    .hero-section-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-section-info-wrapper {
        max-width: 100%;
        margin: 40px 0 30px;
    }

    .hero-section-h2 {
        font-size: 48px;
        line-height: 56px;
    }

    .hero-section-img-wrapper {
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .header-absolute-img {
        width: 120px;
        height: 120px;
    }

    /* Collection */
    .main-section-h2 {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 40px;
    }

    .main-section-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .main-section-cards-wrapper:nth-child(odd) .main-section-card-inner {
        flex-direction: column;
    }

    .card-info-wrapper {
        margin: 20px 0 40px 0;
    }

    .card-info-wrapper h3 {
        font-size: 36px;
        line-height: 44px;
    }

    .leaves-1,
    .leaves-2,
    .leaves-3 {
        display: none;
    }

    /* Why Choose Us */
    .why-choose-us-section-cards-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .why-choose-us-section-card {
        max-width: 500px;
        width: 100%;
    }

    .why-choose-us-section-h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .why-choose-us-section-card-absolute-img {
        display: none;
    }

    /* How It Works */
    .how-it-works-section-cards-wrapper {
        flex-direction: column;
        gap: 100px;
    }

    .how-it-works-section-card {
        max-width: 500px;
        width: 100%;
    }

    .how-it-works-section-h2 {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 120px;
    }

    .how-it-works-section-card-absolute-hr {
        display: none;
    }

    .how-it-works-section-absolute-img {
        display: none;
    }

    /* Footer */
    .site-footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .site-footer-nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .site-footer-nav-item:not(:last-child) {
        margin-right: 20px;
    }
}

/* ========================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================== */
@media (max-width: 768px) {
    body {
        font-size: 18px;
        line-height: 28px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--header-bg-color);
        padding: 80px 30px 30px;
        transition: right var(--transition);
        z-index: 90;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav-list {
        flex-direction: column;
        gap: 0;
    }

    .site-nav-item:not(:last-child) {
        margin-right: 0;
    }

    .site-nav-item a {
        font-size: 16px;
        line-height: 20px;
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 80;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition), visibility var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero-section-h2 {
        font-size: 36px;
        line-height: 42px;
    }

    .hero-section-p {
        font-size: 14px;
        line-height: 22px;
    }

    .hero-section-img-wrapper {
        max-width: 350px;
    }

    .header-absolute-img {
        width: 80px;
        height: 80px;
        left: -5%;
        top: -5%;
    }

    /* Collection */
    .main-section-h2 {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .card-info-wrapper h3 {
        font-size: 28px;
        line-height: 34px;
    }

    .card-info-wrapper p {
        font-size: 14px;
        line-height: 22px;
    }

    .main-section-card-inner img {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Why Choose Us */
    .why-choose-us-section-h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .why-choose-us-section-p {
        font-size: 14px;
        line-height: 24px;
    }

    .why-choose-us-section-p-wrapper {
        margin-bottom: 40px;
    }

    .why-choose-us-section-card h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .why-choose-us-section-card p {
        font-size: 14px;
        line-height: 22px;
    }

    /* How It Works */
    .how-it-works-section-h2 {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 100px;
    }

    .step-number {
        font-size: 48px;
        line-height: 56px;
        margin-bottom: 20px;
    }

    .how-it-works-section-card {
        min-height: auto;
        padding: 16px 16px 30px;
    }

    .how-it-works-section-card h3 {
        font-size: 26px;
        line-height: 34px;
    }

    .how-it-works-section-card-p {
        font-size: 14px;
        line-height: 22px;
    }

    .how-it-works-section-card-absolute-box {
        top: -60px;
        width: 45px;
        height: 45px;
    }

    /* Footer */
    .site-footer-nav-list {
        flex-direction: column;
        gap: 6px;
    }

    .site-footer-nav-item:not(:last-child) {
        margin-right: 0;
    }

    .site-footer-nav-item {
        font-size: 14px;
    }
}

/* ========================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ======================== */
@media (max-width: 480px) {
    .hero-section-h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .info-section-button,
    .how-it-works-button {
        font-size: 14px;
        padding: 14px 20px;
    }

    .main-section-card-inner img {
        max-width: 250px;
    }

    .card-info-wrapper h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .why-choose-us-section-container,
    .how-it-works-section-container {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        max-width: none;
        border-radius: 0;
    }
}
