/*
Theme Name: DNFA Association
Author: DNFA
Description: Production-ready custom WordPress theme for DNFA
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: dnfa
*/
:root {
    --orange: #ff6a13;
    --orange-dark: #d94f00;
    --pink: #d4145a;
    --brown: #2b1a14;
    --brown-2: #43271d;
    --ink: #17120f;
    --muted: #675e59;
    --cream: #faf7f3;
    --line: #e8e0da;
    --white: #fff;
    --max: 1180px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65;
    font-size: 16px;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: inherit;
}
.wrap {
    width: min(var(--max), 100%);
    margin: auto;
    padding: 0 24px;
}
.narrow {
    max-width: 820px;
}
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 78px;
}
.site-branding {
    flex: 0 0 auto;
}
.custom-logo-link {
    display: flex;
    align-items: center;
}
.custom-logo {
    max-height: 70px;
    width: auto;
}
.brand,
.footer-brand {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -0.05em;
}
.brand span,
.footer-brand span {
    color: var(--orange);
}
.primary-navigation {
    margin-left: auto;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.nav-menu a:hover {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-underline-offset: 5px;
}
.btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 13px 22px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
}
.btn-primary,
.btn-header {
    background: var(--pink);
    color: #fff;
}
.btn-primary:hover,
.btn-header:hover {
    background: #b90f4c;
}
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    background: transparent;
}
.btn-light {
    background: #fff;
    color: var(--pink);
}
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 7px;
    padding: 8px 12px;
    font-weight: 800;
}
.hero {
    color: #fff;
}
.hero-home {
    background: radial-gradient(circle at 80% 20%, rgba(255, 106, 19, 0.28), transparent 30%),
        linear-gradient(115deg, #2b1a14, #5a321f);
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero-inner {
    padding-top: 85px;
    padding-bottom: 85px;
}
.eyebrow {
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}
.hero .eyebrow,
.page-hero .eyebrow {
    color: #ff9a4b;
}
.hero h1,
.page-hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 850px;
    margin: 0 0 24px;
}
.hero h1 span {
    color: #ff9a4b;
}
.hero-lead {
    font-size: 20px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.section {
    padding: 84px 0;
}
.section-soft {
    background: var(--cream);
}
.section-dark {
    background: var(--brown);
    color: #fff;
}
.section-heading {
    max-width: 780px;
    margin-bottom: 42px;
}
.section-heading h2,
.split h2 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0 0 18px;
}
.section-heading p {
    font-size: 18px;
    color: var(--muted);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(43, 26, 20, 0.04);
}
.section-dark .feature-card {
    color: var(--ink);
}
.feature-card h3 {
    font-size: 21px;
    margin: 8px 0 10px;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
}
.feature-icon {
    font-size: 13px;
    font-weight: 900;
    color: var(--pink);
    letter-spacing: 0.12em;
}
.split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}
.split-light {
    align-items: start;
}
.value-panel {
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
}
.value-price {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    color: var(--pink);
}
.value-period {
    font-weight: 800;
    margin: 7px 0 20px;
}
.value-panel ul,
.check-list {
    padding-left: 22px;
}
.value-panel li,
.check-list li {
    margin: 10px 0;
}
.cta {
    background: linear-gradient(90deg, var(--pink), #b70e4d);
    color: #fff;
    padding: 62px 0;
}
.cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
}
.cta h2 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    margin: 0;
}
.page-hero {
    background: linear-gradient(115deg, #2b1a14, #5a321f);
    color: #fff;
    padding: 90px 0;
}
.page-hero p {
    font-size: 20px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
}
.pricing-card {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(43, 26, 20, 0.06);
    margin-bottom: 70px;
}
.price {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    color: var(--pink);
}
.price span {
    font-size: 18px;
    color: var(--muted);
    font-weight: 700;
}
.checkout-intro {
    padding: 34px;
    background: var(--cream);
    border-radius: 18px;
    margin-bottom: 25px;
}
.join-purchase {
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 18px;
}
.join-purchase .quantity {
    display: inline-block;
    margin-right: 8px;
}
.join-purchase .quantity input {
    width: 90px;
}
.notice {
    padding: 18px 20px;
    background: #fff4df;
    border-left: 4px solid var(--orange);
    border-radius: 8px;
}
.member-box {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(43, 26, 20, 0.05);
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.post-card > img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.post-card-body {
    padding: 24px;
}
.post-card h2 {
    font-size: 24px;
    line-height: 1.15;
    margin: 8px 0 12px;
}
.post-card h2 a {
    text-decoration: none;
}
.post-card p {
    color: var(--muted);
}
.post-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.text-link {
    font-weight: 900;
    color: var(--pink);
    text-decoration: none;
}
.empty-state {
    grid-column: 1/-1;
    padding: 60px;
    text-align: center;
    background: var(--cream);
    border-radius: 16px;
}
.contact-card {
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 16px;
}
.dnfa-contact-form label {
    display: block;
    font-weight: 800;
}
.dnfa-contact-form input,
.dnfa-contact-form select,
.dnfa-contact-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ccc;
    border-radius: 7px;
    margin: 6px 0 18px;
    font: inherit;
}
.legal-content h2 {
    margin-top: 40px;
    line-height: 1.15;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.faq-list summary {
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}
.faq-list p {
    color: var(--muted);
    margin-bottom: 0;
}
.site-footer {
    background: var(--brown);
    color: #fff;
    padding: 60px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.7fr 0.7fr;
    gap: 50px;
}
.footer-brand {
    display: inline-block;
    color: #fff;
    margin-bottom: 18px;
}
.footer-grid p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.75);
}
.footer-grid h3 {
    margin-top: 0;
}
.footer-links,
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin: 9px 0;
}
.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
}
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-disclaimer {
    font-size: 13px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 1000px) {
    .nav {
        gap: 16px;
    }
    .nav-menu {
        gap: 14px;
    }
    .feature-grid,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .split {
        gap: 40px;
    }
}
@media (max-width: 800px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    .primary-navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 15px 24px;
    }
    .primary-navigation.is-open {
        display: block;
    }
    .nav-menu {
        display: block;
    }
    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid #f0ebe7;
    }
    .header-cta {
        display: none;
    }
    .hero-inner {
        padding-top: 65px;
        padding-bottom: 65px;
    }
    .hero-home {
        min-height: auto;
    }
    .feature-grid,
    .post-grid,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 60px 0;
    }
    .pricing-card,
    .cta-inner {
        display: block;
    }
    .pricing-card .btn,
    .cta-inner .btn {
        margin-top: 22px;
    }
    .value-panel {
        margin-top: 10px;
    }
    .page-hero {
        padding: 65px 0;
    }
    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }
}

/* =========================================================
   DNFA JOIN / MEMBERSHIP PURCHASE
   ========================================================= */

.join-purchase {
    margin-top: 32px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e6ddd8;
    border-radius: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.join-purchase-header {
    margin-bottom: 28px;
}

.join-purchase-header h3 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.join-purchase-header p {
    margin: 0;
    color: #6d625e;
    font-size: 16px;
    line-height: 1.6;
}

/* WooCommerce add-to-cart area */

.join-add-to-cart form.cart {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

/* Quantity */

.join-add-to-cart form.cart .quantity {
    margin: 0;
}

.join-add-to-cart form.cart .quantity input.qty {
    width: 70px;
    height: 52px;
    padding: 0 10px;
    border: 1px solid #d8cec8;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
}

/* Add to Cart button */

.join-add-to-cart .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 30px;

    border: 0;
    border-radius: 8px;

    background: #d7195b;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover */

.join-add-to-cart .single_add_to_cart_button:hover {
    background: #b9144d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(215, 25, 91, 0.18);
}

/* Focus */

.join-add-to-cart .single_add_to_cart_button:focus,
.join-add-to-cart .single_add_to_cart_button:focus-visible {
    outline: 3px solid rgba(215, 25, 91, 0.25);
    outline-offset: 3px;
}

/* Disabled */

.join-add-to-cart .single_add_to_cart_button.disabled,
.join-add-to-cart .single_add_to_cart_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* WooCommerce notices */

.join-purchase .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* Subscription information */

.checkout-intro .price {
    margin: 24px 0 8px;
}

.checkout-intro .price .woocommerce-Price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #675d59;
}

.checkout-intro .price .subscription-details {
    font-size: 16px;
    font-weight: 500;
    color: #675d59;
}

/* Product description */

.membership-description {
    margin: 18px 0;
    font-size: 18px;
    line-height: 1.65;
    color: #332c29;
}

/* Benefits */

.checkout-intro .check-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.checkout-intro .check-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.checkout-intro .check-list li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    font-weight: 700;
    color: #d7195b;
}

/* Mobile */

@media (max-width: 767px) {
    .join-purchase {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .join-purchase-header h3 {
        font-size: 24px;
    }

    .join-add-to-cart form.cart {
        flex-direction: column;
        align-items: stretch;
    }

    .join-add-to-cart form.cart .quantity {
        width: 100%;
    }

    .join-add-to-cart form.cart .quantity input.qty {
        width: 100%;
    }

    .join-add-to-cart .single_add_to_cart_button {
        width: 100%;
        min-height: 54px;
    }

    .checkout-intro .price .woocommerce-Price-amount {
        font-size: 28px;
    }
}

.membership-product-image {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 35px;
    text-align: center;
}

.membership-product-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 18px;
    margin: 0 auto;
}

/* ================================
   HEADER ACTIONS
================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ================================
   CART
================================ */

.header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 46px;
    padding: 0 12px;

    color: #241914;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.header-cart:hover {
    color: #d7195b;
    background-color: #faf5f3;
}

.header-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cart-label {
    line-height: 1;
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border-radius: 50px;

    background: #d7195b;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 767px) {

    .header-actions {
        gap: 6px;
    }

    .header-cart {
        width: 44px;
        min-height: 44px;
        padding: 0;

        position: relative;
    }

    .header-cart-label {
        display: none;
    }

    .header-cart-count {
        position: absolute;

        top: 1px;
        right: 0;

        min-width: 18px;
        height: 18px;

        font-size: 10px;
    }

}

/* ==================================================
   HEADER ACTIONS
================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* ==================================================
   USER
================================================== */

.header-user {
    position: relative;
}

.header-user-toggle,
.header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;
    padding: 0 10px;

    border: 0;
    background: transparent;

    color: #173b64;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.header-user-toggle:hover,
.header-login:hover {
    color: #d7195b;
}

.header-user-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-user-name {
    white-space: nowrap;
}

.header-user-arrow {
    font-size: 14px;
}


/* ==================================================
   USER DROPDOWN
================================================== */

.header-user-menu {
    position: absolute;

    top: calc(100% + 15px);
    right: 0;

    width: 270px;

    padding: 25px 30px;

    background: #ffffff;

    border: 1px solid #e1e1e1;
    border-radius: 0 0 10px 10px;

    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

    z-index: 99999;
}

.header-user-menu a {
    display: block;

    padding: 12px 0;

    color: #173b64;
    text-decoration: none;

    font-size: 17px;
    line-height: 1.4;
}

.header-user-menu a:hover {
    color: #d7195b;
}

.header-user-divider {
    height: 1px;

    margin: 18px 0;

    background: #dddddd;
}

.header-user-menu .header-logout {
    color: #777777;
}

.header-user-menu .header-logout:hover {
    color: #d7195b;
}


/* ==================================================
   CART
================================================== */

.header-cart {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 46px;
    padding: 0 10px;

    color: #173b64;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    border-radius: 8px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.header-cart:hover {
    color: #d7195b;
    background-color: #faf5f3;
}

.header-cart-icon {
    display: inline-flex;
}

.header-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border-radius: 50px;

    background: #d7195b;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    .header-actions {
        gap: 5px;
    }

    .header-user-name,
    .header-user-arrow,
    .header-cart-label,
    .header-login-text {
        display: none;
    }

    .header-user-toggle,
    .header-login,
    .header-cart {
        width: 44px;
        min-height: 44px;
        padding: 0;
    }

    .header-cart-count {
        position: absolute;

        top: 1px;
        right: 0;

        min-width: 18px;
        height: 18px;

        font-size: 10px;
    }

    .header-user-menu {
        position: fixed;

        top: 75px;
        right: 15px;
        left: 15px;

        width: auto;

        padding: 22px 25px;
    }

}
