:root {
    --forest: #44503D;
    --forest-dark: #374232;
    --forest-light: #50604A;
    --cream: #F7F4EE;
    --cream-light: #FAF8F5;
    --cream-dark: #E9E5DC;
    --gold: #C9B894;
    --gold-dark: #B8A67F;
    --gold-light: #D9CCA8;
    --text-dark: #2B2B2B;
    --text-light: #5C5C5C;
    --text-inverse: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1400px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 50px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--forest);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background-color: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(55, 66, 50, 0.35);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--forest-dark);
    font-weight: 600;
    border-radius: 10px;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 184, 148, 0.4);
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 3rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.4rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(247, 244, 238, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 0.85rem 0;
}

.navbar.scrolled .nav-links a {
    color: var(--forest);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 42px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-inverse);
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: currentColor;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-inverse);
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--forest);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #2A2E25;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s ease-in-out, transform 7s linear;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.22);
}

.hero-slide.is-leaving {
    opacity: 0;
    transform: scale(1.14);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        rgba(38, 46, 35, 0.88) 0%,
        rgba(38, 46, 35, 0.75) 35%,
        rgba(38, 46, 35, 0.55) 70%,
        rgba(38, 46, 35, 0.4) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 90px;
    width: 100%;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-inverse);
    margin-bottom: 0.85rem;
    opacity: 0.9;
}

.hero-address {
    font-size: 1rem;
    color: var(--text-inverse);
    margin-bottom: 1.5rem;
    font-weight: 400;
    opacity: 0.92;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 500;
    color: var(--text-inverse);
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 720px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    color: var(--gold);
    margin-bottom: 2.2rem;
    font-weight: 400;
    font-style: italic;
    opacity: 0.95;
}

.hero-btn {
    font-size: 1rem;
    padding: 17px 38px;
    border-radius: 10px;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 4vh, 42px);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
}

.hero-scroll-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    animation: scrollLabelIn 1s ease 1.2s forwards;
}

.hero-scroll:hover {
    color: var(--gold);
}

.hero-scroll:hover .hero-scroll-mouse {
    border-color: var(--gold);
}

.hero-scroll:hover .hero-scroll-dot {
    background-color: var(--gold);
}

.hero-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
    transition: border-color 0.3s ease;
}

.hero-scroll-dot {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.95);
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    60% { transform: translateY(13px); opacity: 1; }
    80% { transform: translateY(13px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@keyframes scrollLabelIn {
    to { opacity: 0.92; transform: translateY(0); }
}

.hero-scroll::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 1px;
    height: 16px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    transform: translateX(-50%);
    animation: scrollLine 1.8s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes scrollLine {
    0% { transform: translateX(-50%) scaleY(0.4); opacity: 0; }
    40% { opacity: 0.7; }
    100% { transform: translateX(-50%) scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 0.4s ease;
        transform: none !important;
    }
    .hero-slide.is-active { transform: none !important; }
    .hero-scroll-dot,
    .hero-scroll-label,
    .hero-scroll::before { animation: none; }
    .hero-scroll-label { opacity: 0.92; transform: none; }
}

.hero-dots {
    position: absolute;
    right: clamp(18px, 3vw, 38px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.hero-dot {
    position: relative;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
}

.hero-dot-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    overflow: visible;
}

.hero-dot-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.4;
}

.hero-dot-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 62.83;
    stroke-dashoffset: 62.83;
    transform: rotate(-90deg);
    transform-origin: 12px 12px;
    transition: stroke-dashoffset 0.4s ease;
}

.hero-dot::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.75);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover::after {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.15);
}

.hero-dot.is-active::after {
    background-color: var(--gold);
    transform: scale(1.1);
}

.hero-dot .hero-dot-fill {
    stroke-dashoffset: 62.83;
    transition: stroke-dashoffset 0.4s ease;
}

.hero-dot.is-active .hero-dot-fill {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 6s linear;
}

@media (prefers-reduced-motion: reduce) {
    .hero-dot.is-active .hero-dot-fill {
        transition: stroke-dashoffset 0.4s ease;
    }
}

.about {
    padding: 5rem 0;
    background-color: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 24px 8px 24px 8px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-content {
    max-width: 520px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 0.9rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

.why-join {
    padding: 5rem 0;
    background-color: var(--cream-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.8rem;
}

.benefit-card {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.benefit-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: rgba(68, 80, 61, 0.2);
}

.benefit-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.4rem;
    border: 1.5px solid var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.benefit-icon img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--forest);
    transform: scale(1.06);
}

.benefit-card:hover .benefit-icon img {
    filter: brightness(0) invert(1);
}

.benefit-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.benefit-desc {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--text-light);
    max-width: 290px;
    margin: 0 auto;
}

.cta-section {
    position: relative;
    padding: 5.5rem 0;
    background-color: var(--forest);
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    opacity: 0.15;
    pointer-events: none;
}

.cta-decoration svg {
    width: 100%;
    height: 100%;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--text-inverse);
    margin-bottom: 0.85rem;
    font-weight: 500;
}

.cta-subtitle {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.2rem;
    font-weight: 400;
}

.footer {
    padding: 4rem 0 3rem;
    background-color: var(--cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.8rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 0.4rem;
    line-height: 1;
}

.footer-logo img {
    height: 56px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
}

.social-icon {
    width: 42px;
    height: 42px;
    background-color: var(--forest);
    color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--forest-dark);
    transform: translateY(-3px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-dark);
    font-size: 0.97rem;
    line-height: 1.5;
}

.contact-item svg {
    color: var(--forest);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item a:hover {
    color: var(--forest);
}

.footer-community {
    text-align: center;
}

.footer-community h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.1rem;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

..qr-code {
    width: 140px;
    aspect-ratio: 1 / 1;
    display: block;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    line-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.qr-code:hover {
    box-shadow: 0 6px 20px rgba(68, 80, 61, 0.15);
    transform: scale(1.03);
}

.qr-code img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* QR popup overlay */
.qr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.qr-overlay.active {
    display: flex;
}

.qr-popup {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 24px 20px;
    position: relative;
    animation: popupIn 0.3s ease forwards;
}

@keyframes popupIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.qr-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: 300;
}

.qr-close-btn:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

.qr-popup-inner {
    width: 220px;
    height: 220px;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-popup-inner img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.qr-popup .scan-hint {
    font-size: 14px;
    color: #44503D;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.55;
    max-width: 180px;
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }

    .hero-content {
        padding: 0 2rem;
        padding-top: 90px;
    }

    .about {
        padding: 6rem 0;
    }

    .why-join {
        padding: 6rem 0;
    }

    .cta-section {
        padding: 6rem 0;
    }

    .footer {
        padding: 4.5rem 0 3rem;
    }
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4.5rem;
    }

    .about-image {
        margin: 0;
        border-radius: 28px 10px 28px 10px;
    }

    .about-content {
        margin: 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .benefit-card {
        padding: 0 2rem;
    }

    .benefit-card:not(:last-child)::after {
        bottom: auto;
        top: 10%;
        left: auto;
        right: 0;
        transform: none;
        width: 1px;
        height: 80%;
        background-color: rgba(68, 80, 61, 0.15);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        text-align: left;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-community {
        grid-column: 1 / -1;
        text-align: left;
        border-top: 1px solid rgba(68, 80, 61, 0.12);
        padding-top: 2.5rem;
    }

    .qr-section {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.6rem;
        max-width: 720px;
    }

    .about {
        padding: 7.5rem 0;
    }

    .about-grid {
        gap: 5.5rem;
    }

    .about-image {
        border-radius: 32px 12px 32px 12px;
        max-width: 560px;
    }

    .why-join {
        padding: 7.5rem 0;
    }

    .cta-section {
        padding: 7rem 0;
    }

    .cta-decoration {
        width: 380px;
        height: 380px;
        right: 0;
        opacity: 0.12;
    }

    .footer-grid {
        grid-template-columns: 1fr 1.3fr 1fr;
        gap: 3.5rem;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-community {
        grid-column: auto;
        text-align: left;
        border-top: none;
        padding-top: 0;
        border-left: 1px solid rgba(68, 80, 61, 0.15);
        padding-left: 2.5rem;
    }

    .qr-section {
        flex-direction: row;
        align-items: flex-start;
    }

    .qr-text {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--forest);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.2rem;
        transition: right 0.4s ease;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.05rem;
        color: var(--text-inverse);
    }

    .navbar.scrolled .nav-links {
        background-color: var(--cream);
    }

    .navbar.scrolled .nav-links a {
        color: var(--forest);
    }

    .hero-title {
        max-width: 100%;
    }

    .cta-decoration {
        width: 200px;
        height: 200px;
        right: -50px;
        opacity: 0.1;
    }

    .footer-logo img {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1.25rem;
    }

    .hero-content {
        padding: 0 1.25rem;
        padding-top: 80px;
    }

    .hero-btn {
        width: 100%;
        padding: 16px 24px;
    }

    .btn-gold {
        width: 100%;
        padding: 16px 24px;
    }

    .benefit-icon {
        width: 74px;
        height: 74px;
    }

    .benefit-icon img {
        width: 36px;
        height: 36px;
    }

    .about-image {
        border-radius: 20px 6px 20px 6px;
    }
}
