/* ============================================
   KOFFEE JUNKTION — Custom Styles
   Classic & Elegant · Emerald + Cream
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* --- NAV --- */
.nav-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-scrolled.scrolled {
    background-color: rgba(253, 249, 243, 0.97);
    box-shadow: 0 1px 20px rgba(2, 44, 34, 0.08);
    backdrop-filter: blur(10px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}

.nav-scrolled.scrolled .nav-inner {
    padding: 0.85rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(2, 44, 34, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #059669;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #059669;
}

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

.nav-cta {
    background: #059669;
    color: #FDF9F3 !important;
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: #047857;
    color: #FDF9F3 !important;
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #064E3B;
}

/* --- MOBILE NAV --- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(1, 26, 18, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #FDF9F3;
    padding: 0.5rem;
}

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #064E3B;
    padding: 5rem 2rem 2rem;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-link {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(253, 249, 243, 0.85);
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(253, 249, 243, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
    color: #A7F3D0;
    padding-left: 0.5rem;
}

.mobile-cta {
    display: inline-block;
    margin-top: 1.5rem;
    border-bottom: none;
    background: #059669;
    color: #FDF9F3;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.mobile-cta:hover {
    background: #047857;
    color: #FDF9F3;
    padding-left: 1.5rem;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/31688651/pexels-photo-31688651.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 8s ease-out;
}

.hero.loaded .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(1, 26, 18, 0.82) 0%,
        rgba(6, 78, 59, 0.70) 50%,
        rgba(2, 44, 34, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 780px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A7F3D0;
    margin-bottom: 1.75rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(167, 243, 208, 0.3);
    border-radius: 100px;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.08;
    color: #FDF9F3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: rgba(253, 249, 243, 0.8);
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #059669;
    color: #FDF9F3;
    border-color: #059669;
}

.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #FDF9F3;
    border-color: rgba(253, 249, 243, 0.5);
}

.btn-outline-light:hover {
    background: rgba(253, 249, 243, 0.1);
    border-color: #FDF9F3;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- HERO SCROLL --- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(253, 249, 243, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* --- DIVIDER --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- SECTION HEADER --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    color: #064E3B;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #065F46;
    opacity: 0.75;
}

/* --- OFFERINGS --- */
.offerings {
    padding: 7rem 0;
    background: #FDF9F3;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.offer-card {
    background: #F9F0E0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(2, 44, 34, 0.12);
}

.offer-card-img {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.offer-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offer-card:hover .offer-card-img img {
    transform: scale(1.06);
}

.offer-card-icon {
    position: absolute;
    bottom: -24px;
    left: 1.5rem;
    width: 52px;
    height: 52px;
    background: #059669;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDF9F3;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
    z-index: 2;
}

.offer-card-body {
    padding: 2.5rem 1.5rem 1.75rem;
}

.offer-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #064E3B;
    margin-bottom: 0.6rem;
}

.offer-card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #065F46;
    opacity: 0.8;
}

/* --- ABOUT --- */
.about {
    padding: 7rem 0;
    background: #ECFDF5;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(2, 44, 34, 0.15);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: #059669;
    border-radius: 20px;
    opacity: 0.15;
    z-index: -1;
}

.about-content {
    padding: 1rem 0;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #065F46;
    opacity: 0.82;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(5, 150, 105, 0.2);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #059669;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: #065F46;
    opacity: 0.7;
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(5, 150, 105, 0.25);
}

/* --- GALLERY --- */
.gallery {
    padding: 7rem 0;
    background: #FDF9F3;
}

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

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(4) img {
    height: 320px;
}

.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img,
.gallery-item:nth-child(5) img,
.gallery-item:nth-child(6) img {
    height: 220px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 26, 18, 0.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #FDF9F3;
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 7rem 0;
    background: #064E3B;
}

.testimonials .section-eyebrow {
    color: #A7F3D0;
}

.testimonials .section-title {
    color: #FDF9F3;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: rgba(253, 249, 243, 0.06);
    border: 1px solid rgba(253, 249, 243, 0.1);
    border-radius: 16px;
    padding: 2.25rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(253, 249, 243, 0.1);
    transform: translateY(-4px);
}

.testimonial-quote {
    margin-bottom: 1.25rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(253, 249, 243, 0.82);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #A7F3D0;
}

/* --- VISIT --- */
.visit {
    padding: 7rem 0;
    background: #F9F0E0;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info {
    padding: 1rem 0;
}

.visit-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #065F46;
    opacity: 0.75;
    margin-bottom: 2.5rem;
}

.visit-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.visit-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit-details svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.visit-details strong {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #064E3B;
    margin-bottom: 0.2rem;
}

.visit-details a,
.visit-details span {
    font-size: 0.9375rem;
    color: #065F46;
    opacity: 0.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.visit-details a:hover {
    color: #059669;
}

/* Contact form */
.contact-form {
    background: #FDF9F3;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.contact-form-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #064E3B;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #065F46;
}

.form-group input,
.form-group textarea {
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(5, 150, 105, 0.25);
    border-radius: 10px;
    background: #FDF9F3;
    color: #064E3B;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(6, 95, 70, 0.35);
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 10px;
    color: #059669;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-top: 1rem;
}

.form-success svg {
    flex-shrink: 0;
}

.visit-map {
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(2, 44, 34, 0.12);
}

/* --- FOOTER --- */
.footer {
    background: #022C22;
    padding: 4rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(253, 249, 243, 0.08);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(253, 249, 243, 0.5);
}

.footer-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #FDF9F3;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.875rem;
    color: rgba(253, 249, 243, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #A7F3D0;
}

.footer-contact li:last-child {
    color: rgba(253, 249, 243, 0.5);
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 0.8125rem;
    color: rgba(253, 249, 243, 0.3);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.js-enabled .offerings-grid .reveal,
.js-enabled .gallery-grid .reveal,
.js-enabled .testimonials-grid .reveal {
    transition-delay: calc(var(--i, 0) * 0.12s);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .offerings-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .offerings-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item:nth-child(1) img,
    .gallery-item:nth-child(4) img {
        height: 220px;
    }

    .gallery-item:nth-child(2) img,
    .gallery-item:nth-child(3) img,
    .gallery-item:nth-child(5) img,
    .gallery-item:nth-child(6) img {
        height: 180px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .visit-map {
        height: 320px;
    }
}

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 260px !important;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .js-enabled .reveal { opacity: 1 !important; transform: none !important; }
}
