/* ============================================================
   ALOHA FITNESS · SHARED SITE STYLES
   Used by:  index.html, free.html
   Page-specific styles remain inline in each HTML file.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Warm sunrise paper palette */
    --paper:           #F2E9D5;
    --paper-deep:      #ECE0C5;
    --card:            #FFFCF5;
    --card-shadow:     rgba(43, 32, 18, 0.10);

    /* Ink */
    --ink:             #1E231D;
    --ink-2:           #2D332C;
    --ink-soft:        #6B6F66;
    --ink-fade:        #A39E8B;

    /* Accents */
    --terracotta:      #C95A36;
    --terracotta-deep: #9D4321;
    --terracotta-soft: #F4D6C5;
    --sage:            #6C8B65;
    --sage-deep:       #4F6B49;
    --sage-soft:       #D5DFCE;
    --gold:            #D9A155;
    --sun:             #E89A3C;
    --sky:             #C9D9D4;

    /* Lines */
    --line:            #DECDA8;
    --line-soft:       #E8DBBC;

    /* Type */
    --display: "Fraunces", "Times New Roman", Georgia, serif;
    --body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shape */
    --r-xs: 6px;
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 32px;
    --r-xl: 48px;

    /* Shadow */
    --shadow-1: 0 1px 2px rgba(43, 32, 18, 0.04), 0 8px 28px rgba(43, 32, 18, 0.07);
    --shadow-2: 0 2px 4px rgba(43, 32, 18, 0.05), 0 24px 64px rgba(43, 32, 18, 0.12);
    --shadow-3: 0 4px 8px rgba(43, 32, 18, 0.06), 0 40px 96px rgba(43, 32, 18, 0.18);
}

/* ============================================================
   BASE
   ============================================================ */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html, body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-weight: 400;
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
            radial-gradient(circle at 20% 10%, rgba(232, 154, 60, 0.10) 0%, transparent 45%),
            radial-gradient(circle at 85% 20%, rgba(108, 139, 101, 0.10) 0%, transparent 45%),
            radial-gradient(circle at 70% 90%, rgba(201, 90, 54, 0.08) 0%, transparent 50%);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; }

::selection {
    background: var(--terracotta);
    color: #fff;
}

/* ============================================================
   TOPBAR / PROMO
   ============================================================ */
.topbar {
    background: var(--ink);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    text-align: center;
}
.topbar strong {
    color: var(--sun);
    font-weight: 700;
}
.topbar .code {
    display: inline-block;
    border: 1px dashed var(--sun);
    border-radius: 4px;
    padding: 0.05rem 0.45rem;
    margin: 0 0.25rem;
    color: var(--sun);
    font-weight: 700;
    letter-spacing: 0.16em;
}
.topbar .dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--sun);
    margin: 0 0.7rem;
    vertical-align: middle;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    padding: 1.5rem 0;
    position: relative;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1rem;
}
.brand {
    font-family: var(--display);
    font-weight: 500;
    font-variation-settings: "SOFT" 50, "opsz" 36;
    font-size: 1.45rem;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.brand-mark {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.brand-mark svg {
    width: 100%; height: 100%;
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark svg { transform: rotate(15deg); }

/* "Back to site" link, used on the free page */
.nav-back {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color .2s, border-color .2s;
}
.nav-back:hover { color: var(--terracotta-deep); border-color: var(--terracotta-deep); }

/* Primary nav links, used on the homepage */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}
.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.nav-links a.cta {
    color: var(--terracotta-deep);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    display: block;
    width: 16px;
    height: 1.8px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  5px; left: 0; }

/* ============================================================
   HERO SHARED BITS (wrap, text, eyebrow, title, lead, strip)
   ============================================================ */
.hero-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    padding-top: 1rem;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    margin-bottom: 2rem;
}
.eyebrow::before, .eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--terracotta-deep);
}
.eyebrow::after { width: 8px; }

.hero-title {
    font-family: var(--display);
    font-weight: 400;
    font-variation-settings: "SOFT" 30, "opsz" 144;
    font-size: clamp(3rem, 6.5vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin: 0 0 1.75rem;
}
.hero-title .ital {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    color: var(--terracotta-deep);
    position: relative;
    display: inline-block;
}
.hero-title .ital::after {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -0.05em;
    height: 0.18em;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 30 2, 60 6 T 120 5 T 198 7' fill='none' stroke='%23C95A36' stroke-width='2.5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
    opacity: 0.85;
}

.hero-lead {
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 42ch;
    margin: 0 0 2.25rem;
}

.hero-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.hero-strip-item { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-strip-item .label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-fade);
}
.hero-strip-item .value {
    font-family: var(--display);
    font-weight: 500;
    font-variation-settings: "SOFT" 40, "opsz" 24;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* Rotating sun decoration */
.sun-decor {
    position: absolute;
    top: -1.5rem;
    right: -4%;
    width: 130px;
    height: 130px;
    opacity: 0.9;
    z-index: -1;
    animation: rotateSun 60s linear infinite;
}
@keyframes rotateSun { to { transform: rotate(360deg); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.section-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
    flex-wrap: wrap;
}
.section-label h2,
.section-label h3 {
    font-family: var(--display);
    font-weight: 400;
    font-variation-settings: "SOFT" 40, "opsz" 80;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--ink);
}
.section-label h2 em,
.section-label h3 em {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "opsz" 80;
    color: var(--terracotta-deep);
}
.section-label .num {
    font-family: var(--display);
    font-style: italic;
    font-variation-settings: "SOFT" 80, "opsz" 24;
    font-size: 0.9rem;
    color: var(--ink-fade);
    letter-spacing: 0.04em;
}
.section-intro {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0 0 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-ink,
.btn-outline-ink {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: transform .15s, background .2s, color .2s, box-shadow .2s, border-color .2s;
    border: 1.5px solid transparent;
}
.btn-primary-ink {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 8px 20px rgba(43, 32, 18, 0.20);
}
.btn-primary-ink:hover {
    background: var(--terracotta-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(157, 67, 33, 0.30);
}
.btn-outline-ink {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-outline-ink:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
}
.btn-primary-ink .arrow,
.btn-outline-ink .arrow { display: inline-block; transition: transform 0.2s; }
.btn-primary-ink:hover .arrow,
.btn-outline-ink:hover .arrow { transform: translateX(4px); }

.btn-pill-ink {
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.3rem;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-pill-ink:hover {
    background: var(--terracotta-deep);
    color: #fff;
    transform: translateY(-1px);
}
.btn-pill-outline {
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.6rem 1.3rem;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all .15s;
}
.btn-pill-outline:hover { background: var(--ink); color: var(--paper); }

/* "Submit" pill (used by free.html registration form) */
.submit {
    width: 100%;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 999px;
    padding: 1.1rem 1.5rem;
    font-family: var(--body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform .15s, background .2s, box-shadow .2s, color .2s;
    box-shadow: 0 8px 20px rgba(43, 32, 18, 0.20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}
.submit:hover {
    background: var(--terracotta-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(157, 67, 33, 0.30);
}
.submit:active { transform: translateY(0); }
.submit .arrow {
    display: inline-block;
    transition: transform 0.2s;
}
.submit:hover .arrow { transform: translateX(4px); }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field {
    position: relative;
    margin-bottom: 0.95rem;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    background: #FFFEFA;
    color: var(--ink);
    font-family: var(--body);
    font-size: 0.98rem;
    border-radius: var(--r-sm);
    padding: 1.5rem 1rem 0.5rem;
    min-height: 60px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    appearance: none;
    -webkit-appearance: none;
}
.field textarea { min-height: 120px; padding-top: 1.6rem; resize: vertical; }
.field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236B6F66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.5rem;
}
.field input::placeholder,
.field textarea::placeholder { color: transparent; }
.field label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--ink-soft);
    font-size: 0.97rem;
    font-weight: 500;
    pointer-events: none;
    transition: all .15s ease;
    background: transparent;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(201, 90, 54, 0.15);
    background: #fff;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:not([value=""]):valid + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 0.42rem;
    font-size: 0.7rem;
    color: var(--terracotta-deep);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Always-floated label for select once option is selected */
.field.has-value label {
    top: 0.42rem;
    font-size: 0.7rem;
    color: var(--terracotta-deep);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invalid-msg {
    font-size: 0.8rem;
    color: var(--terracotta-deep);
    margin: 0.3rem 0 0 0.3rem;
    display: none;
}
.was-validated .field input:invalid,
.was-validated .field select:invalid,
.was-validated .field textarea:invalid {
    border-color: var(--terracotta);
}
.was-validated .field input:invalid + label,
.was-validated .field select:invalid + label {
    color: var(--terracotta);
}
.was-validated .field input:invalid ~ .invalid-msg,
.was-validated .field select:invalid ~ .invalid-msg,
.was-validated .field textarea:invalid ~ .invalid-msg {
    display: block;
}

/* ============================================================
   FREE-CLASS CALLOUT  (used in index.html and free.html)
   ============================================================ */
.free-callout {
    position: relative;
    margin-top: 4rem;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.free-callout::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(232, 154, 60, 0.35) 0%, transparent 70%);
    border-radius: 50%;
}
.free-callout::after {
    content: "";
    position: absolute;
    bottom: -120px; left: -100px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(201, 90, 54, 0.30) 0%, transparent 70%);
    border-radius: 50%;
}
.free-callout > * { position: relative; z-index: 1; }
.free-callout .eyebrow-dark {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: 1rem;
}
.free-callout .callout-title {
    font-family: var(--display);
    font-weight: 400;
    font-variation-settings: "SOFT" 50, "opsz" 144;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}
.free-callout .callout-title .ital {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    color: var(--sun);
}
.free-callout .callout-sub {
    font-size: 1rem;
    color: rgba(242, 233, 213, 0.78);
    max-width: 44ch;
    margin: 0 auto 1.6rem;
}
/* Original variant used by free.html (no CTA button, large hero-style price line) */
.free-callout .price-line {
    font-family: var(--display);
    font-weight: 400;
    font-variation-settings: "SOFT" 50, "opsz" 144;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}
.free-callout .price-line .ital {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "opsz" 144;
    color: var(--sun);
}
.free-callout .price-sub {
    font-size: 1rem;
    color: rgba(242, 233, 213, 0.75);
    max-width: 40ch;
    margin: 0 auto;
}

.btn-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--paper);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.95rem 1.6rem;
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform .15s, background .2s, color .2s;
}
.btn-callout:hover {
    background: var(--sun);
    color: var(--ink);
    transform: translateY(-2px);
}
.btn-callout .arrow { transition: transform 0.2s; }
.btn-callout:hover .arrow { transform: translateX(4px); }

/* ============================================================
   MODAL OVERRIDES (Bootstrap)
   ============================================================ */
.modal-content {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
    box-shadow: var(--shadow-3);
}
.modal-header {
    border-bottom: 1px solid var(--line-soft);
    padding: 1.25rem 1.5rem;
}
.modal-title {
    font-family: var(--display);
    font-weight: 500;
    font-variation-settings: "SOFT" 50, "opsz" 28;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.modal-body {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.65;
    padding: 1.25rem 1.5rem;
    font-family: var(--body);
}
.modal-body.modal-body-pre { white-space: pre-line; }
.modal-footer { border-top: 1px solid var(--line-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0;
    margin-top: 2rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}
.footer-links a:hover { color: var(--terracotta-deep); }
.footer-mark,
.footer-inner .heart-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-style: italic;
    font-family: var(--display);
    font-variation-settings: "SOFT" 80, "opsz" 24;
}
.footer-mark svg,
.footer-inner .heart-icon svg { width: 16px; height: 16px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes riseRotate {
    from { opacity: 0; transform: translateY(20px) rotate(2deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0.4deg); }
}
.anim { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.18s; }
.anim-3 { animation-delay: 0.30s; }
.anim-4 { animation-delay: 0.42s; }
.anim-5 { animation-delay: 0.55s; }
.anim-form { animation: riseRotate 0.9s 0.25s cubic-bezier(.2,.7,.2,1) both; }
.anim-art  { animation: riseRotate 0.9s 0.25s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
    .anim, .anim-form, .anim-art { animation: none !important; }
    .sun-decor { animation: none !important; }
    .form-card, .hero-art { transform: rotate(0); }
}

/* ============================================================
   SHARED RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .hero-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 3rem;
    }
    .sun-decor { right: 0; top: -2rem; width: 100px; height: 100px; }
}
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        box-shadow: var(--shadow-2);
        z-index: 10;
    }
}
@media (max-width: 640px) {
    .site-header-inner { padding: 0 1.25rem; }
    .hero-wrap { padding: 1rem 1.25rem 3rem; }
    .section { padding: 3rem 1.25rem; }
    .footer-inner { padding: 0 1.25rem; }
    .topbar { font-size: 0.7rem; padding: 0.55rem 1rem; }
    .topbar .dot { margin: 0 0.4rem; }
    .hero-strip { gap: 1rem 2rem; }
}
