/* =========================================================
   eFitLog FREE TRAINING TOOLS
   Shared Tools Site + Calculator
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #050605;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: center;

    padding: 10px 32px;

    background: #0b5f32;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: relative;
    z-index: 1000;
}

.nav-logo-link {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    text-decoration: none;
    flex-shrink: 0;
}

.navbar .logo {
    display: block;

    width: auto;
    height: 60px;
    max-height: 60px;

    margin: 0;
    padding: 0;

    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 22px;

    margin: 0 0 0 auto;
    padding: 0;

    list-style: none;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;

    padding: 8px 0;

    color: #ffffff;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;

    border-bottom: 2px solid transparent;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.nav-links a:hover {
    color: #8dffbd;
}

.nav-links a.active {
    color: #00e676;
    border-bottom-color: #00e676;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.hamburger {
    display: none;

    margin-left: auto;
    padding: 4px 8px;

    background: transparent;

    color: #ffffff;

    border: 0;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   SHARED TOOLS HERO
   ========================================================= */

.tools-hero {
    width: 100%;

    padding: 55px 20px 30px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0,230,118,0.08),
            transparent 48%
        );
}

.hero-inner {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}


/* =========================================================
   EFITLOG PRODUCT NAME
   ========================================================= */

.hero-app-name {
    margin: 0 0 18px;

    color: #00e676;

    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: -1.5px;
}


/* =========================================================
   WORLD CLASS BADGE
   ========================================================= */

.world-class-badge {
    margin: 0 auto 28px;
}

.world-class-badge img {
    display: block;

    width: 90%;
    max-width: 300px;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   HERO H1
   ========================================================= */

.tools-hero h1 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: -0.3px;
}


/* =========================================================
   HERO MARKETING MESSAGE
   ========================================================= */

.hero-message {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 1.2rem;
    font-weight: 600;
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 700px;

    margin: 0 auto;

    color: #c3c8c5;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   TRAIN PLAN PROGRESS
   ========================================================= */

.hero-brand-line {
    margin-top: 20px;

    color: #00e676;

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: 0.7px;
}


/* =========================================================
   TOOLS INDEX
   ========================================================= */

.tools-section {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    padding: 25px 20px 75px;
}

.section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 1.8rem;
    font-weight: 700;
}

.section-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: #9da5a0;

    font-size: 1rem;
    line-height: 1.6;
}


/* =========================================================
   TOOL GRID
   ========================================================= */

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   TOOL CARDS
   ========================================================= */

.tool-card {
    display: flex;
    flex-direction: column;

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            #171a18,
            #0c0e0d
        );

    border: 1px solid #292e2b;
    border-radius: 14px;

    box-shadow:
        0 14px 35px rgba(0,0,0,0.30);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tool-card.live:hover {
    transform: translateY(-3px);

    border-color: rgba(0,230,118,0.45);

    box-shadow:
        0 18px 42px rgba(0,0,0,0.40);
}

.tool-label {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 18px;
    padding: 6px 10px;

    background: rgba(0,230,118,0.08);

    color: #00e676;

    border: 1px solid rgba(0,230,118,0.18);
    border-radius: 5px;

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-label.soon {
    background: #171917;

    color: #909792;

    border-color: #303431;
}

.tool-card h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 1.55rem;
    font-weight: 700;
}

.tool-card p {
    margin: 0 0 25px;

    color: #b2b9b4;

    font-size: 1rem;
    line-height: 1.65;
}

.tool-example {
    margin-bottom: 26px;
    padding: 15px 16px;

    background: #090b0a;

    border: 1px solid #242824;
    border-radius: 8px;

    color: #c6cbc8;

    font-size: 0.9rem;
}

.tool-example strong {
    color: #00e676;
}

.tool-button {
    display: inline-block;
    align-self: flex-start;

    margin-top: auto;
    padding: 12px 20px;

    background: #00c968;

    color: #001a0d;

    border-radius: 7px;

    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.tool-button:hover {
    background: #00e676;
    transform: translateY(-1px);
}

.tool-button.disabled {
    background: #202320;

    color: #818883;

    border: 1px solid #343834;

    cursor: default;
}

.tool-button.disabled:hover {
    background: #202320;
    transform: none;
}


/* =========================================================
   TOOLS PURPOSE
   ========================================================= */

.tools-purpose {
    width: calc(100% - 40px);
    max-width: 850px;

    margin: 0 auto 70px;
    padding: 30px;

    background: #0e100f;

    border: 1px solid #242824;
    border-radius: 12px;

    text-align: center;
}

.tools-purpose h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 1.55rem;
    font-weight: 700;
}

.tools-purpose h2 span {
    color: #00e676;
}

.tools-purpose p {
    margin: 0;

    color: #abb2ad;

    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   1RM CALCULATOR PAGE
   ========================================================= */

.calculator-page {
    width: 100%;

    padding: 12px 20px 75px;
}

.calculator-wrapper {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;
}


/* =========================================================
   CALCULATOR CARD
   ========================================================= */

#container {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;
    padding: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(25,28,26,0.98),
            rgba(10,12,11,0.98)
        );

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.60),
        0 0 50px rgba(0,255,100,0.035);

    text-align: center;
}


/* =========================================================
   CALCULATOR INPUT AREA
   ========================================================= */

#calculator {
    padding: 32px 38px 38px;

    background: rgba(0,0,0,0.22);

    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}


/* =========================================================
   1RM FORM
   ========================================================= */

#oneRMForm {
    display: grid;

    grid-template-columns: 1fr 1fr;
    gap: 18px;

    margin: 0;

    text-align: left;
}

#oneRMForm label {
    display: block;

    margin: 0;

    color: #c7ccc9;

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.2px;
}

#oneRMForm input {
    display: block;

    width: 100%;

    margin-top: 9px;
    padding: 18px;

    background: #080a09;

    color: #ffffff;

    border: 1px solid #343936;
    border-radius: 12px;

    outline: none;

    font-size: 1.55rem;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#oneRMForm input:hover {
    border-color: #505753;
}

#oneRMForm input:focus {
    background: #0b0e0c;

    border-color: #00ff78;

    box-shadow:
        0 0 0 3px rgba(0,255,120,0.10),
        0 0 25px rgba(0,255,120,0.06);
}

#oneRMForm input::placeholder {
    color: #555c58;
}

#oneRMForm input[type="number"]::-webkit-inner-spin-button,
#oneRMForm input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.4;
}


/* =========================================================
   CALCULATOR BUTTONS
   ========================================================= */

.calculator-buttons {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns: 2fr 1fr;
    gap: 12px;

    margin-top: 8px;
}

.calculator-buttons button {
    width: 100%;

    margin: 0;
    padding: 18px 24px;

    border: none;
    border-radius: 12px;

    font-size: 1rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

#calculate {
    background:
        linear-gradient(
            135deg,
            #00ff78,
            #00c95d
        );

    color: #001c0d;

    box-shadow:
        0 10px 30px rgba(0,255,120,0.12);
}

#calculate:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 14px 35px rgba(0,255,120,0.20);
}

#calculate:active {
    transform: translateY(0);
}

#reset {
    background: #1b1e1c;

    color: #c7ccc9;

    border: 1px solid #3b413d;

    box-shadow: none;
}

#reset:hover {
    background: #252925;

    color: #ffffff;

    border-color: #5b625e;

    transform: translateY(-2px);
}

#reset:active {
    transform: translateY(0);
}


/* =========================================================
   RESULT AREA
   ========================================================= */

#oneRMResult {
    position: relative;

    margin: 0;
    padding: 42px 30px 46px;

    background:
        radial-gradient(
            circle at center,
            rgba(0,255,120,0.07),
            transparent 60%
        );
}

#oneRMResult::before {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    margin: 0 auto 25px;

    background: #00ff78;

    border-radius: 20px;
}

#oneRMResult small {
    display: block;

    margin-bottom: 12px;

    color: #8e9992;

    font-size: 0.72rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 2px;
}

#oneRM {
    display: inline-block;

    color: #00ff78;

    font-size: clamp(4.5rem, 15vw, 7rem);
    line-height: 0.95;

    font-weight: 900;
    letter-spacing: -4px;

    text-shadow:
        0 0 35px rgba(0,255,120,0.15);
}

.unit {
    display: inline-block;

    margin-left: 8px;
    padding-bottom: 10px;

    color: #ffffff;

    font-size: 1.35rem;
    font-weight: 800;

    vertical-align: bottom;
}

#calculationSummary {
    margin: 18px 0 0;

    color: #a8b0ab;

    font-size: 0.95rem;
    font-weight: 500;
}


/* =========================================================
   EDUCATIONAL CONTENT
   ========================================================= */

.calculator-info {
    width: 100%;
    max-width: 850px;

    margin: 65px auto 0;

    color: #d5dad7;
}

.calculator-info h2 {
    margin: 45px 0 14px;

    color: #ffffff;

    font-size: 1.8rem;
}

.calculator-info h2:first-child {
    margin-top: 0;
}

.calculator-info p {
    margin: 0 0 18px;

    color: #b8bfba;

    font-size: 1.05rem;
    line-height: 1.75;
}

.calculator-info strong {
    color: #ffffff;
}

.green {
    color: #00e676;
}

.formula-box {
    margin: 25px 0;
    padding: 22px 25px;

    background: #0d100e;

    border: 1px solid rgba(0,230,118,0.22);
    border-radius: 10px;

    text-align: center;
}

.formula-box strong {
    color: #00e676;
    font-size: 1.08rem;
}


/* =========================================================
   EFITLOG CTA
   ========================================================= */

.efitlog-cta {
    width: 100%;
    max-width: 850px;

    margin: 65px auto 0;
    padding: 40px 30px;

    background:
        linear-gradient(
            145deg,
            #151a17,
            #090b0a
        );

    border: 1px solid rgba(0,230,118,0.25);
    border-radius: 14px;

    text-align: center;
}

.cta-kicker {
    margin: 0 0 10px;

    color: #00e676;

    font-size: 0.78rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.efitlog-cta h2 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 1.8rem;
    font-weight: 700;
}

.efitlog-cta p {
    max-width: 680px;

    margin: 0 auto 25px;

    color: #b8bfba;

    font-size: 1.05rem;
    line-height: 1.7;
}

.explore-button {
    display: inline-block;

    padding: 13px 23px;

    background: #00c968;

    color: #001a0d;

    border-radius: 7px;

    text-decoration: none;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.explore-button:hover {
    background: #00e676;
    transform: translateY(-1px);
}


/* =========================================================
   STORE BADGES
   ========================================================= */

.store-area {
    margin-top: 32px;
}

.store-caption {
    margin-bottom: 15px !important;

    color: #ffffff !important;

    font-size: 0.95rem !important;
    font-weight: 700;
}

.store-badges {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
}

.store-badges a {
    display: inline-block;
}

.store-badges img {
    display: block;
}

.apple-badge {
    height: 54px;
}

.google-badge {
    height: 80px;
}


/* =========================================================
   BACK TO TOOLS
   ========================================================= */

.back-to-tools {
    width: 100%;
    max-width: 850px;

    margin: 35px auto 0;

    text-align: center;
}

.back-to-tools a {
    color: #00e676;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;
}

.back-to-tools a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

    margin: 0;
    padding: 28px 20px;

    background: #101210;

    color: #aeb4b0;

    border-top: 1px solid #252925;

    text-align: center;
}

.site-footer p {
    margin: 5px 0;

    font-size: 0.9rem;
}

.footer-links {
    margin-top: 10px !important;
}

.footer-links a {
    color: #00e676;

    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    margin: 0 10px;

    color: #555b57;
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 10px 18px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        margin: 0;
        padding: 14px 0;

        flex-direction: column;
        gap: 0;

        background: #101310;

        border-bottom: 1px solid #292d29;

        box-shadow:
            0 12px 30px rgba(0,0,0,0.40);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        width: 100%;

        padding: 11px 15px;

        border-bottom: 0;
    }

    .nav-links a.active {
        color: #00e676;
    }
}


/* =========================================================
   PHONE / TABLET
   ========================================================= */

@media (max-width: 700px) {

    .navbar {
        min-height: 72px;
    }

    .navbar .logo {
        height: 52px;
        max-height: 52px;
    }

    .tools-hero {
        padding: 42px 18px 28px;
    }

    .hero-app-name {
        font-size: 2.65rem;
        letter-spacing: -1px;
    }

    .world-class-badge img {
        max-width: 250px;
    }

    .tools-hero h1 {
        font-size: 1.6rem;
    }

    .hero-message {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .calculator-page {
        padding: 12px 14px 55px;
    }

    #container {
        border-radius: 18px;
    }

    #calculator {
        padding: 26px 22px 30px;
    }

    #oneRMForm {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #oneRMForm input {
        padding: 16px;
        font-size: 1.35rem;
    }

    .calculator-buttons {
        grid-column: 1;

        grid-template-columns: 1fr;

        gap: 10px;
    }

    .calculator-buttons button {
        padding: 16px 18px;
    }

    #oneRMResult {
        padding: 35px 20px 40px;
    }

    #oneRM {
        font-size: 5rem;
    }

    .unit {
        font-size: 1.15rem;
        padding-bottom: 7px;
    }

    .calculator-info {
        margin-top: 50px;
    }

    .calculator-info h2 {
        font-size: 1.55rem;
    }

    .tools-section {
        padding: 15px 14px 55px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 26px 22px;
    }

    .tools-purpose {
        width: calc(100% - 28px);

        margin-bottom: 55px;

        padding: 25px 20px;
    }

    .efitlog-cta {
        margin-top: 50px;

        padding: 32px 22px;
    }

    .efitlog-cta h2 {
        font-size: 1.6rem;
    }

    .apple-badge {
        height: 48px;
    }

    .google-badge {
        height: 70px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .tools-hero {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-app-name {
        font-size: 2.15rem;
    }

    #calculator {
        padding-left: 16px;
        padding-right: 16px;
    }

    #oneRM {
        font-size: 4.25rem;
    }
}

/* =========================================================
   MORE FREE TRAINING TOOLS
   ========================================================= */

.related-tools {
    width: 100%;
    max-width: 960px;
    margin: 55px auto 15px;
    padding: 38px 34px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 25, 23, 0.96),
            rgba(10, 12, 11, 0.98)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28);

    text-align: center;
}


.related-tools-inner {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}


/* Small green heading */

.related-tools .section-kicker {
    display: block;

    margin: 0 0 10px;

    color: #00ff78;

    font-size: 0.75rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.8px;
}


/* Main heading */

.related-tools h2 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}


/* Supporting text */

.related-tools-inner > p {
    max-width: 610px;

    margin: 0 auto 26px;

    color: #aeb5b0;

    font-size: 0.98rem;
    line-height: 1.6;
}


/* =========================================================
   TOOL LINKS
   ========================================================= */

.related-tool-links {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    width: 100%;
}


/* Individual tool card */

.related-tool-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 135px;

    padding: 22px 24px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;

    color: #ffffff;
    text-decoration: none;
    text-align: left;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


/* Small arrow */

.related-tool-card::after {
    content: "→";

    position: absolute;

    top: 18px;
    right: 20px;

    color: #00ff78;

    font-size: 1.25rem;
    font-weight: 700;

    opacity: 0.8;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}


/* Tool name */

.related-tool-card strong {
    display: block;

    margin: 0 34px 9px 0;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 800;
}


/* Tool description */

.related-tool-card span {
    display: block;

    color: #9fa7a2;

    font-size: 0.91rem;
    line-height: 1.5;
}


/* Hover */

.related-tool-card:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            145deg,
            rgba(0, 255, 120, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    border-color: rgba(0, 255, 120, 0.38);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        0 0 24px rgba(0, 255, 120, 0.035);
}


.related-tool-card:hover::after {
    transform: translateX(4px);
    opacity: 1;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .related-tools {
        margin-top: 40px;

        padding: 30px 20px;

        border-radius: 16px;
    }


    .related-tool-links {
        grid-template-columns: 1fr;
    }


    .related-tool-card {
        min-height: 0;

        padding: 20px;
    }
}