/* ==========================================================================
   ISKCON DNIPRO — TEMPLE ROOT PAGE
   Entry point into temple life: welcome, three pillars (Deities,
   Prabhupada, Schedule), temple history, Veda-Market, address band.
   Uses Vedic editorial primitives from vedic.css.
   ========================================================================== */


/* ==========================================================================
   Section rhythm
   ========================================================================== */

.t-welcome,
.t-pillars,
.t-history,
.t-market {
    position: relative;
}

.t-welcome { padding: 120px 0 96px; background: var(--color-bg); }
.t-pillars { padding: 96px 0 120px; background: var(--color-surface-sunken); }
.t-history { padding: 140px 0;      background: var(--color-surface-sunken); }
.t-market  { padding: 120px 0 140px; background: var(--color-bg); }


/* ==========================================================================
   1. WELCOME — framed deity photo + editorial greeting
   ========================================================================== */

.t-welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: center;
}

.t-welcome-art {
    position: relative;
    margin: 0;
    text-align: center;
}

.t-welcome-art .framed-photo { max-width: 420px; }

.t-welcome-art .framed-photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center center;
}

.t-welcome-art figcaption {
    margin-top: 22px;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

.t-welcome-body .eyebrow { margin-bottom: 18px; }

.t-welcome-title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: clamp(1.8rem, 3.8vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text-strong);
    line-height: 1.25;
    margin: 0 0 26px;
    letter-spacing: 0.4px;
}

.t-welcome-lead {
    font-family: 'PT Serif', Georgia, serif;
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    font-style: italic;
    line-height: 1.65;
    color: var(--color-text-strong);
    margin: 0 0 24px;
}

.t-welcome-body p {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

.t-welcome-body p strong { color: var(--color-text-strong); font-weight: 700; }

.t-welcome-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding: 20px 0 4px;
    border-top: 1px solid var(--color-border);
}

.t-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-text-strong);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all .2s ease;
}

.t-chip i { font-size: 0.8rem; color: var(--color-accent-strong); }
.t-chip:hover {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
    color: var(--color-text-strong);
}


/* ==========================================================================
   2. PILLARS — three doors into temple life
   ========================================================================== */

.t-pillars .section-head { margin-bottom: 72px; }

.t-pillar-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.t-pillar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease;
    overflow: hidden;
}

.t-pillar:hover {
    border-color: var(--color-accent);
}

.t-pillar-art {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--color-surface-sunken);
    position: relative;
}

.t-pillar-art::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--color-accent);
    opacity: 0.35;
    pointer-events: none;
}

.t-pillar-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(43, 24, 16, 0.3) 100%);
}

.t-pillar-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.t-pillar-body .eyebrow {
    margin-bottom: 0;
    font-size: 0.72rem;
    letter-spacing: 0.26em;
}

.t-pillar-body h3 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.t-pillar-body p {
    font-family: 'PT Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin: 0 0 6px;
    flex: 1;
}

.t-pillar .link-more {
    align-self: flex-start;
    margin-top: auto;
}


/* ==========================================================================
   3. HISTORY — full-width editorial block, optional frame
   ========================================================================== */

.t-history-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 72px;
    align-items: center;
}

.t-history-body .eyebrow { margin-bottom: 18px; }

.t-history-body h2 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 26px;
    line-height: 1.2;
    letter-spacing: 0.4px;
}

.t-history-body p {
    font-family: 'PT Sans', sans-serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin: 0 0 18px;
}

.t-history-body p strong { color: var(--color-text-strong); font-weight: 700; }

.t-history-quote {
    margin: 26px 0 0;
    padding: 22px 28px 22px 34px;
    background: var(--color-surface);
    border-left: 3px solid var(--color-brand);
    position: relative;
}

.t-history-quote::before {
    content: '\201E';
    position: absolute;
    top: 2px;
    left: 12px;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--color-brand);
    opacity: 0.4;
}

.t-history-quote p {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.12rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--color-text-strong);
    margin: 0 0 6px;
}

.t-history-quote cite {
    display: block;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
}

.t-history-art {
    margin: 0;
    text-align: center;
}

.t-history-art .framed-photo { max-width: 380px; }

.t-history-art .framed-photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center center;
}


/* ==========================================================================
   4. MARKET — Veda-Market listing
   ========================================================================== */

.t-market-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
}

.t-market-body .eyebrow { margin-bottom: 18px; }

.t-market-body h2 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 700;
    color: var(--color-text-strong);
    margin: 0 0 22px;
    line-height: 1.25;
    letter-spacing: 0.3px;
}

.t-market-body p {
    font-family: 'PT Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0 0 16px;
}

.t-market-hours {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 18px;
    background: var(--color-inverse-bg);
    color: var(--color-inverse-text);
    font-family: 'PT Sans', sans-serif;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    border-radius: var(--radius-xs);
}

.t-market-hours i { color: var(--color-inverse-accent-light); font-size: 0.9rem; }

.t-market-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.t-market-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    align-items: baseline;
    padding: 18px 4px 18px 0;
    border-bottom: 1px solid var(--color-border);
    font-family: 'PT Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--color-text-strong);
}

.t-market-list li:first-child { border-top: 1px solid var(--color-border); }

.t-market-list li i {
    width: 28px;
    font-size: 1rem;
    color: var(--color-accent-strong);
    text-align: center;
}

.t-market-list li strong {
    display: block;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.05rem;
    color: var(--color-text-strong);
    font-weight: 600;
    margin-bottom: 2px;
}

.t-market-list li span {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .t-welcome-grid,
    .t-history-grid,
    .t-market-grid {
        gap: 48px;
    }
    .t-pillar-list { gap: 24px; }
}

@media (max-width: 900px) {
    .t-welcome { padding: 88px 0 72px; }
    .t-pillars { padding: 72px 0 88px; }
    .t-history { padding: 96px 0; }
    .t-market  { padding: 88px 0 110px; }

    .t-welcome-grid,
    .t-history-grid,
    .t-market-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .t-welcome-art,
    .t-history-art { text-align: center; }

    .t-welcome-art .framed-photo,
    .t-history-art .framed-photo { max-width: 320px; }

    .t-pillar-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .t-welcome { padding: 64px 0 56px; }
    .t-pillars { padding: 56px 0 72px; }
    .t-history { padding: 72px 0; }
    .t-market  { padding: 64px 0 88px; }

    .t-pillar-body { padding: 22px 22px 26px; }

    .t-history-quote { padding: 18px 20px 18px 30px; }
    .t-history-quote p { font-size: 1.02rem; }
}
