/*
Theme Name: Two Frame Story
Theme URI: https://twoframestory.com
Author: Priya & Srishti
Description: Official theme for Two Frame Story — Two Women, Two Perspectives, One Story.
Version: 1.0
License: Private
Text Domain: twoframestory
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --ink:     #1a3c40;
    --blue:    #145da0;
    --sky:     #00d1ff;
    --yellow:  #ffe162;
    --green:   #2ecc71;
    --cream:   #f9f9f9;
    --border:  3px;
    --max:     1100px;
}

/* =============================================
   BASE RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Cabin', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* =============================================
   SITE HEADER
   ============================================= */
.tfs-site-header {
    background: #fff;
    border-bottom: 3px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

/* Admin bar offset */
.admin-bar .tfs-site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .tfs-site-header { top: 46px; }
}

.tfs-header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.8rem 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Logo */
.tfs-logo {
    text-decoration: none;
    text-align: center;
    display: block;
    margin-bottom: 1.2rem;
    line-height: 1;
}

.tfs-logo__name {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.8rem;
    color: var(--ink);
    letter-spacing: 2px;
    display: block;
    line-height: 1;
}

.tfs-logo__name em {
    font-style: normal;
    color: var(--blue);
}

.tfs-logo__tagline {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.45;
    margin-top: 5px;
}

/* Navigation */
.tfs-nav {
    width: 100%;
    border-top: 1px solid #eee;
}

.tfs-nav ul {
    display: flex;
    gap: 2.5rem;
    padding: 14px 0;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
}

.tfs-nav ul li a {
    text-decoration: none;
    color: var(--ink);
    font-family: 'Cabin', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.55;
    transition: all 0.2s;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.tfs-nav ul li a:hover,
.tfs-nav ul li.current-menu-item a,
.tfs-nav ul li.current_page_item a {
    opacity: 1;
    color: var(--blue);
    border-bottom-color: var(--yellow);
}

/* Hamburger — hidden on desktop */
.tfs-hamburger {
    display: none;
    background: none;
    border: 2px solid var(--ink);
    cursor: pointer;
    padding: 7px 9px;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
}

.tfs-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
}

.tfs-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tfs-hamburger.is-open span:nth-child(2) { opacity: 0; }
.tfs-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   MAIN CONTENT
   ============================================= */
.tfs-site-main {
    min-height: 60vh;
}

/* =============================================
   SITE FOOTER
   ============================================= */
.tfs-site-footer {
    background: var(--ink);
    color: #fff;
    padding: 5rem 2rem 2rem;
    border-top: 6px solid var(--sky);
    width: 100%;
}

.tfs-footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem;
}

/* Footer brand column */
.tfs-footer-brand__logo {
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 0.9;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.tfs-footer-brand__logo em { font-style: normal; color: var(--sky); }

.tfs-footer-brand__tagline {
    font-size: 0.95rem;
    opacity: 0.7;
    max-width: 280px;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.tfs-footer-brand__social {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tfs-footer-brand__social a {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--yellow);
    padding: 5px 10px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.tfs-footer-brand__social a:hover { background: var(--sky); }

/* Footer link columns */
.tfs-footer-col h4 {
    font-family: 'Space Mono', monospace;
    color: var(--sky);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tfs-footer-col ul {
    list-style: none;
}

.tfs-footer-col ul li { margin-bottom: 0.7rem; }

.tfs-footer-col ul li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.tfs-footer-col ul li a:hover { color: var(--yellow); }

/* Footer bottom bar */
.tfs-footer-bottom {
    max-width: var(--max);
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    opacity: 0.45;
    text-transform: uppercase;
}

.tfs-back-top {
    font-family: 'Gochi Hand', cursive;
    font-size: 1.2rem;
    color: var(--yellow);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 1 !important;
    transition: transform 0.2s;
    text-decoration: none;
}

.tfs-back-top:hover { transform: translateY(-3px); }

/* =============================================
   RESPONSIVE — TABLET (481px – 900px)
   ============================================= */
@media (min-width: 481px) and (max-width: 900px) {
    .tfs-header-inner { padding: 1.5rem 1.5rem 0; }
    .tfs-logo__name { font-size: 2.2rem; }
    .tfs-nav ul { gap: 1.6rem; }
    .tfs-nav ul li a { font-size: 0.62rem; letter-spacing: 2px; }

    .tfs-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .tfs-footer-grid > .tfs-footer-brand {
        grid-column: span 2;
    }
    .tfs-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
    .tfs-header-inner {
        padding: 1rem 1rem 0;
        align-items: flex-start;
    }

    .tfs-logo { margin-bottom: 0; }
    .tfs-logo__name { font-size: 1.7rem; padding-right: 3rem; }
    .tfs-logo__tagline { font-size: 0.5rem; letter-spacing: 2px; }

    /* Show hamburger */
    .tfs-hamburger { display: flex; }

    /* Collapse nav */
    .tfs-nav {
        border-top: none;
    }
    .tfs-nav ul {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.35s ease, padding 0.35s;
        align-items: flex-start;
    }
    .tfs-nav.is-open ul {
        max-height: 400px;
        border-top: 1px solid #eee;
        padding: 0.5rem 0 1rem;
    }
    .tfs-nav ul li { width: 100%; }
    .tfs-nav ul li a {
        display: block;
        padding: 0.75rem 0.5rem;
        font-size: 0.72rem;
        border-bottom: 1px solid #f0f0f0;
        opacity: 0.7;
    }
    .tfs-nav ul li a:hover { background: var(--yellow); opacity: 1; }

    .tfs-site-footer { padding: 3rem 1rem 1.5rem; }
    .tfs-footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .tfs-footer-brand__tagline { margin: 0 auto 1.5rem; }
    .tfs-footer-brand__social { justify-content: center; }
    .tfs-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
