/* ==========================================================================
   TWO FARM TOURS — INTERIOR PAGES
   About, Ways to Travel, Gallery, Contact, legal.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. IMAGE PLACEHOLDER
   --------------------------------------------------------------------------
   Also declared in tours.css; kept here so interior pages render correctly
   even when the tours stylesheet is not enqueued.
   -------------------------------------------------------------------------- */
.tft-img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 8rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--ink-750) 0%, var(--rust-700) 62%, var(--rust-500) 100%);
}

.tft-img-placeholder::after {
    content: '';
    position: absolute;
    inset: auto -10% -30% -10%;
    height: 60%;
    border-radius: 50% 50% 0 0;
    background: rgba(10, 13, 17, 0.35);
}

/* --------------------------------------------------------------------------
   2. GENERIC PAGE PROSE
   -------------------------------------------------------------------------- */
.tft-prose {
    max-width: 68ch;
}

.tft-prose h2 {
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    font-size: var(--fs-h3);
}

.tft-prose h3 {
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    font-size: var(--fs-h4);
}

.tft-prose h2:first-child,
.tft-prose h3:first-child {
    margin-top: 0;
}

.tft-prose p,
.tft-prose li {
    color: var(--c-text-soft);
}

.tft-prose ul,
.tft-prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.2em;
    display: grid;
    gap: 0.5rem;
}

.tft-prose ul li {
    list-style: none;
    position: relative;
    padding-left: 1rem;
}

/* Rust diamond bullets. */
.tft-prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--rust-500);
    transform: rotate(45deg);
}

.tft-prose ol {
    list-style: decimal;
}

.tft-prose ol li {
    padding-left: 0.35rem;
}

.tft-prose a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}

.tft-prose a:hover {
    color: var(--c-accent-deep);
}

.tft-prose blockquote {
    margin: 1.8em 0;
    padding-left: var(--sp-lg);
    border-left: 2px solid var(--rust-400);
    font-family: var(--font-display);
    font-size: var(--fs-lead);
    font-style: italic;
    font-weight: 300;
    color: var(--c-text);
}

/* Legal pages: a compact table of contents rail. */
.tft-legal-layout {
    display: grid;
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
    grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
    align-items: start;
}

@media (max-width: 900px) {
    .tft-legal-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tft-legal-meta {
    position: sticky;
    top: 6.5rem;
    padding: var(--sp-lg);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
    background: var(--bone-050);
}

@media (max-width: 900px) {
    .tft-legal-meta {
        position: static;
    }
}

/* --------------------------------------------------------------------------
   3. ABOUT
   -------------------------------------------------------------------------- */

/* Pull-quote band between story sections. */
.tft-pullquote {
    position: relative;
    padding-block: clamp(3rem, 2.2rem + 4vw, 6rem);
    overflow: hidden;
    background: var(--rust-600);
    color: var(--bone-100);
    text-align: center;
}

.tft-pullquote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 120% at 50% 0%, rgba(255, 214, 148, 0.24), transparent 62%);
    pointer-events: none;
}

.tft-pullquote-text {
    position: relative;
    max-width: 34ch;
    margin-inline: auto;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.9rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--bone-100);
    font-variation-settings: 'SOFT' 70, 'WONK' 1;
}

.tft-pullquote-attr {
    position: relative;
    margin-top: var(--sp-lg);
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: rgba(250, 245, 238, 0.72);
}

/* --- Team --------------------------------------------------------------- */
.tft-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 1.2rem + 2vw, 3rem);
}

@media (max-width: 800px) {
    .tft-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 34rem;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .tft-team-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 20rem;
    }
}

/* Direct WhatsApp link under each person. */
.tft-person-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    font-variant-numeric: tabular-nums;
    transition: color var(--t-fast);
}

.tft-person-contact svg {
    width: 0.95rem;
    height: 0.95rem;
    color: #1faa53;
}

.tft-person-contact:hover {
    color: var(--c-accent);
}

/* Second number, on the team card. Quieter than the WhatsApp line above it. */
.tft-person-alt {
    margin-top: 0.35rem;
    font-size: var(--fs-micro);
    color: var(--c-text-invert-faint);
    font-variant-numeric: tabular-nums;
}

.tft-person-alt a {
    color: var(--c-text-invert-soft);
    transition: color var(--t-fast);
}

.tft-person-alt a:hover {
    color: var(--c-gold);
}

.tft-person-alt span::before {
    content: '·';
    margin-inline: 0.4em;
}

/* --- Timeline / values rail --------------------------------------------- */
.tft-values {
    display: grid;
    gap: 1px;
    background: var(--c-rule);
    border-block: 1px solid var(--c-rule);
}

.tft-value {
    display: grid;
    grid-template-columns: minmax(0, 5rem) minmax(0, 1fr);
    gap: var(--sp-lg);
    padding-block: clamp(1.35rem, 1.1rem + 1.4vw, 2.25rem);
    background: var(--c-bg);
    align-items: start;
    transition: background var(--t-mid);
}

.tft-value:hover {
    background: var(--bone-050);
}

@media (max-width: 620px) {
    .tft-value {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-sm);
    }
}

.tft-value-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
    font-weight: 300;
    line-height: 0.85;
    color: var(--rust-300);
    letter-spacing: -0.04em;
    font-variation-settings: 'SOFT' 60, 'WONK' 1;
}

.tft-value-title {
    font-size: var(--fs-h4);
    margin-bottom: 0.4rem;
}

.tft-value-text {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    max-width: 58ch;
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. WAYS TO TRAVEL (SERVICES)
   -------------------------------------------------------------------------- */

/* Alternating full-width rows — image one side, copy the other. */
.tft-way-row {
    display: grid;
    gap: clamp(2rem, 1.2rem + 4vw, 5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    border-bottom: 1px solid var(--c-rule);
}

.tft-way-row:last-child {
    border-bottom: 0;
}

@media (max-width: 860px) {
    .tft-way-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Flip every second row. */
.tft-way-row:nth-child(even) .tft-way-row-media {
    order: 2;
}

@media (max-width: 860px) {
    .tft-way-row:nth-child(even) .tft-way-row-media {
        order: -1;
    }
}

.tft-way-row-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--ink-700);
}

.tft-way-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}

.tft-way-row:hover .tft-way-row-media img {
    transform: scale(1.04);
}

/* Big ghost numeral behind each row's heading. */
.tft-way-row-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--bone-300);
    margin-bottom: var(--sp-md);
    font-variation-settings: 'SOFT' 70, 'WONK' 1;
}

.tft-way-row-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--sp-md);
}

.tft-way-row-list {
    display: grid;
    gap: 0.5rem;
    margin-top: var(--sp-lg);
}

.tft-way-row-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
}

.tft-way-row-list svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    margin-top: 0.35em;
    color: var(--acacia-500);
}

/* --- Process steps ------------------------------------------------------- */
.tft-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
    counter-reset: tft-step;
}

@media (max-width: 900px) {
    .tft-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .tft-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tft-step {
    position: relative;
    counter-increment: tft-step;
    padding-top: var(--sp-lg);
    border-top: 2px solid var(--c-rule-invert);
    transition: border-color var(--t-mid);
}

.tft-step:hover {
    border-color: var(--gold-400);
}

.tft-step::before {
    content: counter(tft-step, decimal-leading-zero);
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--gold-400);
    margin-bottom: var(--sp-sm);
}

.tft-step-title {
    font-size: var(--fs-h5);
    color: var(--bone-100);
    margin-bottom: 0.4rem;
}

.tft-step-text {
    font-size: var(--fs-sm);
    color: var(--c-text-invert-soft);
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. CONTACT
   -------------------------------------------------------------------------- */
.tft-contact-layout {
    display: grid;
    gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
}

@media (max-width: 900px) {
    .tft-contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tft-contact-form-card {
    padding: clamp(1.5rem, 1.2rem + 1.8vw, 2.5rem);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-rule);
    background: var(--bone-050);
    box-shadow: var(--sh-sm);
}

/* Direct-contact cards: WhatsApp the actual humans. */
.tft-reach {
    display: grid;
    gap: var(--sp-md);
}

.tft-reach-card {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg);
    border-radius: var(--r-lg);
    border: 1px solid var(--c-rule);
    background: var(--bone-050);
    transition: transform var(--t-mid) var(--ease-out), border-color var(--t-mid), box-shadow var(--t-mid);
}

.tft-reach-card:hover {
    transform: translateX(4px);
    border-color: var(--rust-300);
    box-shadow: var(--sh-sm);
}

.tft-reach-avatar {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    border-radius: 50%;
    background: rgba(196, 84, 42, 0.12);
    color: var(--rust-600);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-variation-settings: var(--wonk-on);
}

.tft-reach-name {
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.3;
}

.tft-reach-role {
    display: block;
    font-size: var(--fs-micro);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-accent);
}

.tft-reach-tel {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    font-variant-numeric: tabular-nums;
}

/* A second line for anyone reachable on more than one number. */
.tft-reach-tel--alt {
    margin-top: 0.1rem;
    font-size: var(--fs-micro);
    color: var(--c-text-faint);
}

.tft-reach-icon {
    margin-left: auto;
    flex: none;
    color: #1faa53;
}

.tft-reach-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

/* Details block: address, hours, languages. */
.tft-details {
    display: grid;
    gap: var(--sp-lg);
    margin-top: var(--sp-xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--c-rule);
}

.tft-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.tft-detail svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    margin-top: 0.28em;
    color: var(--c-accent);
}

.tft-detail-label {
    display: block;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-faint);
    margin-bottom: 0.2rem;
}

.tft-detail-value {
    display: block;
    font-size: var(--fs-sm);
    color: var(--c-text);
}

.tft-detail-value a:hover {
    color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   6. GALLERY PAGE
   -------------------------------------------------------------------------- */
.tft-gallery-intro {
    max-width: 52ch;
}

/* Filter chips (client-side, optional). */
.tft-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: clamp(1.5rem, 1.2rem + 2vw, 2.5rem);
}

.tft-filter {
    padding: 0.5em 1.1em;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-rule-strong);
    color: var(--c-text-soft);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.tft-filter:hover {
    border-color: var(--ink-900);
    color: var(--c-text);
}

.tft-filter.is-active {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: var(--bone-100);
}

.tft-filter-count {
    margin-left: 0.55em;
    color: var(--c-text-faint);
    font-variant-numeric: tabular-nums;
}

.tft-filter:hover .tft-filter-count,
.tft-filter.is-active .tft-filter-count {
    color: inherit;
    opacity: 0.7;
}

/*
 * The chip rail sticks under the fixed header so a visitor can jump between
 * places without scrolling back up through a hundred photographs.
 *
 * The offset tracks the header's own fluid height. When the header hides on
 * scroll-down the rail closes the gap and takes the top edge itself — the two
 * are siblings, so the header's state class reaches this without any JS.
 */
.tft-gallery-jump {
    /*
     * theme.js measures the header and publishes --tft-header-h. The clamp is
     * only the pre-script estimate, so the rail is never wrong for the split
     * second before the measurement lands.
     */
    --jump-top: var(--tft-header-h, clamp(4.3rem, 3.2rem + 3.2vw, 6.3rem));

    position: sticky;
    top: var(--jump-top);
    z-index: 20;
    transition: top var(--t-mid) var(--ease-out);
    padding-block: 0.9rem;
    background: rgba(250, 245, 238, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-rule);
}

.tft-gallery-jump .tft-filters {
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tft-gallery-jump .tft-filters::-webkit-scrollbar {
    display: none;
}

.tft-gallery-jump .tft-filter {
    flex: 0 0 auto;
    background: var(--c-bg);
}

.tft-header.is-hidden ~ .tft-main .tft-gallery-jump {
    top: 0;
}

/* Anchored sections land below the sticky chip rail, not behind it. */
.tft-gallery-band {
    /* Header offset plus the chip rail's own height. */
    scroll-margin-top: calc(var(--tft-header-h, 4.3rem) + 4.5rem);
}

.tft-gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-lg);
}

.tft-gallery-head-main h2 {
    margin-top: 0.35rem;
}

.tft-gallery-head-side {
    display: flex;
    align-items: baseline;
    gap: var(--sp-md);
    padding-bottom: 0.4rem;
}

.tft-gallery-count {
    font-size: var(--fs-micro);
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-faint);
    font-variant-numeric: tabular-nums;
}

.tft-gallery-band .tft-gallery {
    margin-top: clamp(1.75rem, 1.4rem + 2vw, 2.75rem);
}

/* The contact sheet's own caption strip — reads on hover, and always on touch. */
.tft-gallery-item {
    margin: 0;
}

.tft-gallery-cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 0.9rem 0.75rem;
    font-size: var(--fs-micro);
    line-height: 1.35;
    color: var(--bone-100);
    background: linear-gradient(to top, rgba(10, 13, 17, 0.82), rgba(10, 13, 17, 0));
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
    pointer-events: none;
}

.tft-gallery-item:hover .tft-gallery-cap,
.tft-gallery-item:focus-within .tft-gallery-cap {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .tft-gallery-cap {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   7. PAGINATION
   -------------------------------------------------------------------------- */
.navigation.pagination {
    margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers {
    display: grid;
    place-items: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding-inline: 0.6rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--c-rule-strong);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-text-soft);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.page-numbers:hover {
    border-color: var(--ink-900);
    color: var(--c-text);
}

.page-numbers.current {
    background: var(--rust-500);
    border-color: var(--rust-500);
    color: var(--bone-100);
}

/* --------------------------------------------------------------------------
   8. 404 / SEARCH
   -------------------------------------------------------------------------- */
.tft-404 {
    display: grid;
    place-items: center;
    min-height: 70svh;
    padding-block: var(--section-y);
    text-align: center;
    background: var(--ink-900);
    color: var(--bone-100);
    position: relative;
    overflow: hidden;
}

.tft-404-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 3rem + 12vw, 12rem);
    font-weight: 300;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--rust-500);
    font-variation-settings: 'SOFT' 80, 'WONK' 1;
}

.tft-404 h1 {
    color: var(--bone-100);
    margin-top: var(--sp-lg);
}

.tft-404 p {
    max-width: 42ch;
    margin: var(--sp-lg) auto 0;
    color: var(--c-text-invert-soft);
}

/* --------------------------------------------------------------------------
   7. TROPHY HUNTING
   --------------------------------------------------------------------------
   A separate line of business, and the one section on the site with no
   photography behind it. So it is built to read as a document rather than a
   brochure: a heading column, a body column, and a rule between them doing
   the work the imagery does elsewhere.
   -------------------------------------------------------------------------- */
.tft-hunt-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 1.2rem + 4vw, 5rem);
    align-items: start;
}

@media (max-width: 860px) {
    .tft-hunt-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tft-hunt-head {
    position: sticky;
    top: clamp(5.5rem, 4.4rem + 3.2vw, 7.5rem);
}

@media (max-width: 860px) {
    .tft-hunt-head {
        position: static;
    }
}

.tft-hunt-body {
    padding-left: clamp(0rem, -1rem + 3vw, 2.5rem);
    border-left: 1px solid var(--c-rule);
}

@media (max-width: 860px) {
    .tft-hunt-body {
        padding-left: 0;
        border-left: 0;
    }
}

.tft-hunt-subtitle {
    margin-top: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
    font-family: var(--font-body);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: var(--tr-label);
    text-transform: uppercase;
    color: var(--c-text-faint);
}

/* Six short lines read better in two columns once there is room. */
.tft-hunt-list {
    margin-top: var(--sp-md);
}

@media (min-width: 620px) {
    .tft-hunt-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--sp-lg);
    }
}

.tft-hunt-note {
    margin-top: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    padding: var(--sp-md) var(--sp-lg);
    border-left: 2px solid var(--c-accent);
    background: rgba(196, 84, 42, 0.05);
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
}
