/**
 * reFitness shared design system (np- namespace)
 *
 * Base styles shared across all redesigned pages:
 * buttons, sections, typography, cards, scroll-reveal animations.
 * Import this in every new page via <link>.
 *
 * @author    Jimmy Lindmark
 * @copyright MJ STRATEGI TECH SOLUTIONS SL
 * @license   All Rights Reserved
 */

/* ============================================================
   RESET / BASE
============================================================ */
.np-page {
    color: #212529;
}

.np-page h1,
.np-page h2,
.np-page h3,
.np-page p {
    margin: 0;
}

/* ============================================================
   LABELS — small caps accent text above headings
============================================================ */
.np-label {
    display: inline-block;
    font-family: var(--rf-body-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rf-teal);
    margin-bottom: 12px;
}

.np-label--light {
    color: var(--rf-cyan-start);
}

/* ============================================================
   HEADINGS
============================================================ */
.np-heading {
    font-family: var(--rf-heading-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.np-heading--light {
    color: #ffffff;
}

.np-heading--xl {
    font-size: 42px;
}

/* ============================================================
   BODY TEXT
============================================================ */
.np-text {
    font-family: var(--rf-body-font);
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 16px;
}

.np-text--light {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   BUTTONS
============================================================ */
.np-btn {
    display: inline-block;
    font-family: var(--rf-body-font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    padding: 14px 36px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.np-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.np-btn--primary {
    background-color: var(--rf-red);
    color: #fff;
    box-shadow: 0 4px 20px rgba(236, 108, 107, 0.4);
}

.np-btn--primary:hover {
    background-color: #e05554;
    color: #fff;
    box-shadow: 0 6px 30px rgba(236, 108, 107, 0.5);
}

.np-btn--secondary {
    background: linear-gradient(135deg, var(--rf-cyan-start), var(--rf-cyan-end));
    color: #fff;
    box-shadow: 0 4px 20px rgba(51, 212, 255, 0.3);
}

.np-btn--secondary:hover {
    color: #fff;
    box-shadow: 0 6px 30px rgba(51, 212, 255, 0.45);
}

.np-btn--outline {
    background: transparent;
    color: var(--rf-dark-teal);
    border: 2px solid var(--rf-teal);
    padding: 12px 34px;
}

.np-btn--outline:hover {
    background: var(--rf-teal);
    color: #fff;
}

.np-btn--outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 34px;
}

.np-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.np-btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

.np-btn--lg {
    padding: 16px 48px;
    font-size: 18px;
}

/* ============================================================
   SECTIONS — alternating backgrounds
============================================================ */
.np-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.np-section--light {
    background: #ffffff;
}

.np-section--gray {
    background: #f8f9fa;
}

.np-section--dark {
    background: linear-gradient(170deg, var(--rf-dark-teal) 0%, var(--rf-navy) 100%);
}

.np-section--teal {
    background: linear-gradient(170deg, var(--rf-teal) 0%, var(--rf-dark-teal) 100%);
}

/* ============================================================
   HERO — reusable page hero (smaller than front page)
============================================================ */
.np-hero-sm {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(170deg, var(--rf-dark-teal) 0%, var(--rf-navy) 100%);
}

.np-hero-sm__content {
    position: relative;
    z-index: 2;
}

.np-hero-sm h1 {
    font-family: var(--rf-heading-font);
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.np-hero-sm p {
    font-family: var(--rf-body-font);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

/* SVG wave separator */
.np-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
============================================================ */
.np-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.np-reveal--left {
    transform: translateX(-40px);
}

.np-reveal--right {
    transform: translateX(40px);
}

.np-reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   CARDS
============================================================ */
.np-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.np-card:hover {
    text-decoration: none;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.np-card__icon {
    margin-bottom: 24px;
}

.np-card__icon img {
    height: 56px;
    width: auto;
}

.np-card__icon i {
    font-size: 40px;
    color: var(--rf-teal);
}

.np-card__title {
    font-family: var(--rf-heading-font);
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.np-card__text {
    font-family: var(--rf-body-font);
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* ============================================================
   FORM ELEMENTS
============================================================ */
.np-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.np-form-group label {
    display: block;
    font-family: var(--rf-body-font);
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.np-form-group .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--rf-body-font);
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.np-form-group .form-control:focus {
    border-color: var(--rf-teal);
    box-shadow: 0 0 0 3px rgba(67, 141, 154, 0.15);
    outline: none;
}

.np-form-hint {
    font-family: var(--rf-body-font);
    font-size: 12px;
    color: var(--rf-gray);
    margin-top: 4px;
}

.np-form-error {
    font-family: var(--rf-body-font);
    font-size: 13px;
    color: var(--rf-red);
    margin-top: 6px;
}

/* ============================================================
   FORM CARD — centered form container
============================================================ */
.np-form-card {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

@media (max-width: 575px) {
    .np-form-card {
        padding: 32px 24px;
        margin: 0 16px;
    }
}

/* ============================================================
   PRICING CARDS
============================================================ */
.np-pricing {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.np-pricing:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.np-pricing--featured {
    border: 3px solid var(--rf-teal);
}

.np-pricing__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rf-teal);
    color: #fff;
    font-family: var(--rf-body-font);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: 100px;
    white-space: nowrap;
}

.np-pricing__name {
    font-family: var(--rf-heading-font);
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.np-pricing__price {
    font-family: var(--rf-heading-font);
    font-size: 40px;
    font-weight: 700;
    color: var(--rf-dark-teal);
    margin-bottom: 4px;
}

.np-pricing__price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--rf-gray);
}

.np-pricing__desc {
    font-family: var(--rf-body-font);
    font-size: 14px;
    color: var(--rf-gray);
    margin-bottom: 24px;
}

.np-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
    flex-grow: 1;
}

.np-pricing__features li {
    font-family: var(--rf-body-font);
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.np-pricing__features li i {
    color: var(--rf-teal);
    margin-right: 10px;
    width: 18px;
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.np-faq__item {
    border-bottom: 1px solid #e8e8e8;
}

.np-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--rf-body-font);
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.np-faq__question i {
    color: var(--rf-teal);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.np-faq__question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.np-faq__answer {
    font-family: var(--rf-body-font);
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    padding-bottom: 20px;
}

/* ============================================================
   IMAGE GRID — for client results / transformations
============================================================ */
.np-img-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.np-img-card:hover {
    text-decoration: none;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.np-img-card__wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.np-img-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, var(--rf-teal) 100%);
    opacity: 0.5;
    z-index: 1;
}

.np-img-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.np-img-card:hover .np-img-card__img {
    transform: scale(1.05);
}

.np-img-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 2;
    color: #fff;
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 991px) {
    .np-heading { font-size: 28px; }
    .np-heading--xl { font-size: 36px; }
    .np-section { padding: 60px 0; }
    .np-hero-sm h1 { font-size: 34px; }
    .np-hero-sm { padding: 80px 0 50px; }
}

@media (max-width: 575px) {
    .np-heading { font-size: 24px; }
    .np-heading--xl { font-size: 30px; }
    .np-section { padding: 48px 0; }
    .np-btn { padding: 12px 28px; font-size: 14px; }
    .np-card { padding: 28px 20px; }
    .np-hero-sm h1 { font-size: 28px; }
    .np-hero-sm { padding: 70px 0 40px; }
    .np-pricing { padding: 32px 24px; }
    .np-img-card__wrap { height: 200px; }
}
