/* ================================================================
   ArtistFarm – Let's Connect Widget  |  contact-widget.css v4.0
   ================================================================ */

/* ── Scroll animation ── */
[data-afcw-animate="fade-up"] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
[data-afcw-animate="fade-up"].afcw-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section ── */
.afcw-section {
    position: relative;
    overflow: hidden;
    background-color: #eef6ee;
    padding: 80px 60px 0;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Leaf decor ── */
.afcw-deco {
    position: absolute;
    top: 0;
    pointer-events: none;
    z-index: 0;
    width: 240px;
}
.afcw-deco-tl { left: 0; }
.afcw-deco-tr { right: 0; transform: scaleX(-1); }
.afcw-deco svg { width: 100%; height: auto; }

/* ── Header ── */
.afcw-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 52px;
}
.afcw-leaf-svg { display: flex; justify-content: center; margin-bottom: 12px; }
.afcw-heading {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 16px;
    letter-spacing: -1px;
}
.afcw-heading-normal { color: #111811; }
.afcw-heading-accent  { color: #1e6b1e; }
.afcw-heading-divider {
    width: 48px; height: 3px; border-radius: 2px;
    background-color: #1e6b1e; margin: 0 auto 20px;
}
.afcw-subheading { font-size: 17px; color: #5a6e5a; line-height: 1.65; margin: 0; }

/* ── Cards row ── */
.afcw-cards-row {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto 40px;
    align-items: stretch;
}

/* ── Card ── */
.afcw-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow:
        0 2px 18px rgba(0,0,0,0.055),
        0 0 0 1px rgba(200,230,200,0.35),
        inset 0 -18px 28px -8px rgba(45,122,45,0.045);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), box-shadow 0.32s ease;
    position: relative;
    overflow: hidden;
}
.afcw-card::before {
    content: '';
    position: absolute; bottom: -24px; left: -15%;
    width: 130%; height: 52px;
    background: rgba(45,122,45,0.045);
    border-radius: 50%;
    pointer-events: none;
}
.afcw-hover-lift:hover {
    transform: translateY(-7px);
    box-shadow:
        0 14px 36px rgba(30,107,30,0.13),
        0 0 0 1px rgba(200,230,200,0.4),
        inset 0 -18px 28px -8px rgba(45,122,45,0.06);
}

/* Icon halo */
.afcw-card-icon-outer {
    width: 78px; height: 78px;
    border-radius: 50%;
    background-color: #c8e6c8;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px; flex-shrink: 0;
}
/* Icon circle */
.afcw-card-icon-wrap {
    width: 54px; height: 54px;
    border-radius: 50%;
    background-color: #1e6b1e;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
}
.afcw-hover-lift:hover .afcw-card-icon-wrap { transform: scale(1.1) rotate(-6deg); }
/* Force icon color & size — works for both FA <i> and SVG icons */
.afcw-card-icon-wrap i,
.afcw-card-icon-wrap svg,
.afcw-cta-icon-wrap i,
.afcw-cta-icon-wrap svg {
    color: #fff !important;
    fill: #fff !important;
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    display: block;
}

.afcw-card-title { font-size: 20px; font-weight: 700; color: #1e6b1e; margin-bottom: 10px; }
.afcw-card-divider { width: 38px; height: 2.5px; border-radius: 2px; background-color: #1e6b1e; margin-bottom: 22px; }
.afcw-card-body { font-size: 16px; color: #2a3a2a; line-height: 1.75; }
.afcw-card-body a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.afcw-card-body a:hover { color: #1e6b1e; border-bottom-color: #1e6b1e; }

/* ── CTA Banner ── */
.afcw-cta-wrapper {
    position: relative; z-index: 1;
    max-width: 1160px;
    margin: 0 auto 52px;
}
.afcw-cta-wrapper::before,
.afcw-cta-wrapper::after {
    content: '';
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 80px; height: 80px;
    background-image: radial-gradient(circle, rgba(45,122,45,0.25) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    pointer-events: none;
}
.afcw-cta-wrapper::before { left: -90px; }
.afcw-cta-wrapper::after  { right: -90px; }

.afcw-cta-link { display: block; text-decoration: none; color: inherit; }
.afcw-cta-link:hover .afcw-cta-banner { box-shadow: 0 8px 28px rgba(30,107,30,0.13); transform: translateY(-2px); }

.afcw-cta-banner {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid rgba(45,122,45,0.12);
    padding: 26px 36px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}
.afcw-cta-icon-wrap {
    width: 58px; height: 58px; min-width: 58px;
    border-radius: 50%;
    background-color: #1e6b1e;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.afcw-cta-text { display: flex; flex-direction: column; font-size: 16px; line-height: 1.5; }
.afcw-cta-normal { color: #2a3a2a; }
.afcw-cta-bold   { font-weight: 700; color: #1e6b1e; font-size: 17px; margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   FOOTER BAR
   Full-width bleed: escape the parent overflow:hidden
   by using a position trick independent of padding.
═══════════════════════════════════════════════════ */
.afcw-footer-bar {
    background-color: #1a5c1a;
    /* stretch to viewport width from inside a padded container */
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
    /* vertical padding only — horizontal handled by inner max-width */
    padding: 28px 40px;
    box-sizing: border-box;
    z-index: 1;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='160' viewBox='0 0 120 160'%3E%3Cpath d='M100 10 Q15 40 20 150 Q65 110 100 10Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='160' viewBox='0 0 120 160'%3E%3Cpath d='M20 10 Q105 40 100 150 Q55 110 20 10Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    background-position: left center, right center;
    background-repeat: no-repeat;
    background-size: 120px;
}

/* Desktop: logo left, copyright right */
.afcw-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.afcw-footer-logo {
    width: 120px; height: auto;
    object-fit: contain; display: block;
}
.afcw-footer-logo-placeholder { display: block; }
.afcw-footer-copy { font-size: 13px; color: rgba(255,255,255,0.85); }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */

/* Tablet ≤ 960px */
@media (max-width: 960px) {
    .afcw-section      { padding: 60px 32px 0; }
    .afcw-heading      { font-size: 44px; }
    .afcw-cards-row    { grid-template-columns: repeat(2,1fr); gap: 20px; }
    .afcw-cards-row .afcw-card:last-child { grid-column: 1/-1; max-width: 440px; margin: 0 auto; width: 100%; }
    .afcw-cta-wrapper::before,
    .afcw-cta-wrapper::after { display: none; }

    /* Footer: stack, center */
    .afcw-footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 14px;
    }
    .afcw-footer-copy { text-align: center; }
    .afcw-footer-logo { margin: 0 auto; }
}

/* Mobile ≤ 600px */
@media (max-width: 600px) {
    .afcw-section      { padding: 48px 18px 0; }
    .afcw-heading      { font-size: 34px; letter-spacing: -0.5px; }
    .afcw-subheading   { font-size: 15px; }
    .afcw-header       { margin-bottom: 32px; }
    .afcw-cards-row    { grid-template-columns: 1fr; gap: 16px; }
    .afcw-cards-row .afcw-card:last-child { grid-column: auto; max-width: 100%; }
    .afcw-card         { padding: 36px 24px; }
    .afcw-cta-banner   { flex-direction: column; text-align: center; padding: 24px 20px; gap: 14px; }
    .afcw-cta-wrapper  { margin-bottom: 36px; }
    .afcw-deco         { width: 140px; opacity: 0.55; }

    .afcw-footer-bar   { padding: 24px 20px; }
    .afcw-footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    .afcw-footer-logo  { margin: 0 auto; }
    .afcw-footer-copy  { text-align: center; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    [data-afcw-animate="fade-up"] { opacity:1; transform:none; transition:none; }
    .afcw-hover-lift,
    .afcw-cta-link:hover .afcw-cta-banner { transition:none !important; transform:none !important; }
}
