/* --- Brand Color Palette ---
   Dark Matt Black: #0d0d0d
   Bone Cream/White: #f4eee1
   Helmet Tan Accent: #c59b6c
   Muted Gray/Iron: #262626
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Roboto:wght@400;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;

    /* Prevents anchor links from hiding under fixed header */
    scroll-padding-top: 70px;
}

body {
    background-color: #0d0d0d;
    color: #f4eee1;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, .logo-text {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #c59b6c;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 5%;
    transition: all 0.3s ease;
}

/* --- Logo --- */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.logo-main {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #f4eee1;
    letter-spacing: 1.5px;
    line-height: 1;
}

.logo-sub-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1px;
}

.logo-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #c59b6c;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.logo-sub-wrapper i {
    color: #c59b6c;
    font-size: 0.7rem;
}

.bolt-left {
    transform: rotate(60deg);
}

.bolt-right {
    transform: rotate(-60deg) scaleY(-1);
}

/* --- Navigation --- */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #f4eee1;
    font-size: 0.9rem;
    font-family: 'Oswald', sans-serif;
    transition: color 0.3s ease;
    min-height: 40px;
    padding: 2px 0;

    /* Mobile tap responsiveness */
    touch-action: manipulation;

    /* Desktop clarity */
    cursor: pointer;
}

.nav-item .icon {
    font-size: 1.2rem;
    color: #c59b6c;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Original desktop-safe sizing */
    width: 26px;
    height: 26px;
}

/* --- Icons Mechanics --- */
.users-icon {
    position: relative;
}

.users-icon i {
    color: #c59b6c;
    transform: scaleX(-1) rotate(-5deg);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotating Wheel Icon */
.rotating-wheel i {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #c59b6c; 
    box-shadow: inset 0 0 0 1px #141414;
    position: relative;
    transition: transform 0.6s ease;
    background: 
        linear-gradient(90deg, transparent 46%, #f4eee1 47%, #f4eee1 53%, transparent 54%),
        linear-gradient(0deg, transparent 46%, #f4eee1 47%, #f4eee1 53%, transparent 54%), 
        linear-gradient(45deg, transparent 47%, #a6a197 48%, #a6a197 52%, transparent 53%), 
        linear-gradient(-45deg, transparent 47%, #a6a197 48%, #a6a197 52%, transparent 53%);
}

.rotating-wheel i::before {
    content: "" !important;
    display: none !important;
}

/* Bible Icon */
.bible-icon {
    position: relative;
}

.closed-bible-base {
    color: #c59b6c;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.open-page-left {
    position: absolute;
    color: #f4eee1;
    opacity: 0;
    transform: scale(0.6) rotateY(-90deg);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Connect Icon */
.connect-icon {
    position: relative;
}

.connect-icon i {
    color: #c59b6c;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Merch Icon */
.merch-icon {
    position: relative;
}

.merch-icon .fa-shirt {
    color: #c59b6c;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.merch-icon .shirt-bolt {
    position: absolute;
    font-size: 0.55rem;
    color: #f4eee1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%) rotate(160deg);
    text-shadow: 0 0 2px #0d0d0d;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Nav Hovers */
.nav-item:hover {
    color: #c59b6c;
}

.nav-item:hover .closed-bible-base {
    opacity: 0;
    transform: scale(0.6) rotateY(90deg);
}

.nav-item:hover .open-page-left {
    opacity: 1;
    transform: scale(1.1) rotateY(0deg);
}

.nav-item:hover .helmet-icon i {
    color: #f4eee1;
    transform: scaleX(-1) rotate(5deg);
}

.nav-item:hover .rotating-wheel i {
    border-color: #f4eee1;
    transform: rotate(360deg);
    box-shadow: 0 0 0 1px #f4eee1;
}

.nav-item:hover .connect-icon i {
    color: #f4eee1;
    transform: scale(1.2) rotate(-8deg);
}

.nav-item:hover .merch-icon .fa-shirt {
    color: #f4eee1;
}

.nav-item:hover .merch-icon .shirt-bolt {
    color: #c59b6c;
    transform: translate(-50%, -35%) rotate(50deg);
}

/* --- Hero Section --- */
.hero {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px 20px 25px;
    margin-top: 55px;
    background: linear-gradient(rgba(13,13,13,0.2), rgba(13,13,13,1)),
                repeating-linear-gradient(45deg, #141414, #141414 10px, #0d0d0d 10px, #0d0d0d 20px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 600px;
}

.hero-logo {
    max-width: 260px;
    width: 75%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.tagline {
    font-size: 1.05rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #c59b6c;
    line-height: 1.35;
    margin-top: 2px;
}

/* --- Content Sections --- */
.content-section {
    padding: 60px 8%;
    max-width: 1100px;
    margin: 0 auto;
}

.accent-bg {
    background-color: #141414;
    border-top: 1px solid #262626;
    border-bottom: 1px solid #262626;
}

h2 {
    font-size: 2rem;
    color: #c59b6c;
    margin-bottom: 25px;
    border-left: 4px solid #c59b6c;
    padding-left: 15px;
}

.section-note {
    color: #a6a197;
    margin-top: -15px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.card {
    background-color: #1f1f1f;
    border: 1px solid #262626;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.content-section p {
    margin-bottom: 1.2rem;
}

/* --- Grid & Study Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.study-card {
    display: flex;
    flex-direction: column;
}

.study-card .date {
    color: #c59b6c;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.study-card h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

.study-card p {
    color: #a6a197;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #c59b6c;
    border: 1px solid #c59b6c;
    padding: 10px 18px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-height: 44px;
    margin-top: 8px;

    /* Mobile tap responsiveness */
    touch-action: manipulation;
}

.btn:hover, .btn:active {
    background-color: #c59b6c;
    color: #0d0d0d;
}

/* --- Timeline Section --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    display: flex;
    gap: 14px;
}

.timeline-date {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #c59b6c;
    min-width: 140px;
    padding-top: 5px;
    line-height: 1.3;
}

.timeline-item .card {
    flex-grow: 1;
}

.timeline-item h3 {
    color: #f4eee1;
    margin-bottom: 6px;
}

.timeline-item p {
    color: #a6a197;
}

.timeline-item strong {
    color: #f4eee1;
}

.spinning-inline {
    color: #c59b6c;
}

/* Merch Section Placeholder */
.merch-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.merch-placeholder h3 {
    color: #c59b6c;
    margin-bottom: 10px;
}

/* --- Footer & Social Links --- */
footer {
    background-color: #050505;
    text-align: center;
    padding: 35px 20px;
    font-size: 0.85rem;
    color: #59554f;
    border-top: 1px solid #141414;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.social-link {
    color: #c59b6c;
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #262626;
    background-color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #0d0d0d;
    background-color: #c59b6c;
    border-color: #c59b6c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(197, 155, 108, 0.3);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet & Mobile Screens */
@media (max-width: 820px) {
    header {
        position: sticky;
        flex-direction: column;
        padding: 8px 12px;
        gap: 6px;
    }

    .hero {
        margin-top: 0;
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .hero-content {
        gap: 8px;
    }

    .hero-logo {
        max-width: 200px;
    }

    .tagline {
        font-size: 0.95rem;
        letter-spacing: 1px;
        padding: 0 5px;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav ul {
        gap: 12px;
        width: 100%;
        justify-content: space-between;
        padding: 0 2px;
    }

    nav li {
        flex-shrink: 0;
    }

    .nav-label {
        font-size: 0.85rem;
    }

    .content-section {
        padding: 40px 5%;
    }

    h2 {
        font-size: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 6px;
    }

    .timeline-date {
        min-width: auto;
        font-size: 1.1rem;
        padding-top: 0;
    }
}

/* Small Phones (iPhone SE, Galaxy S, Pixel) */
@media (max-width: 480px) {

    /* Mobile-only tap-target expansion */
    .nav-item .icon {
    min-width: 32px;
    min-height: 32px;
}


    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.72rem;
    }

    .hero-logo {
        max-width: 180px;
    }

    .tagline {
        font-size: 0.88rem;
    }

    .btn {
        width: 100%;
    }

    .card {
        padding: 16px;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
