/**
 * Men of the Forge - Main Stylesheet
 * World-class modern masculine design
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --forge-primary: #ef7a38;
    --forge-primary-dark: #d66a2d;
    --forge-primary-light: #ff8f4d;
    --forge-primary-glow: rgba(239, 122, 56, 0.4);

    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #afafaf;
    --gray-600: #868686;
    --gray-700: #5f5f5f;
    --gray-800: #343a40;
    --gray-900: #212529;

    --black: #000000;
    --black-light: #0a0a0a;
    --black-medium: #121212;
    --white: #ffffff;

    --font-display: 'Oswald', -apple-system, sans-serif;
    --font-body: 'Open Sans', -apple-system, sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--forge-primary-glow);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-300);
    background: var(--black);
    overflow-x: hidden;
}

#main-content {
    padding-top: 160px; /* Account for fixed header */
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--white);
}
.forge-title {
  font-family: 'Impact', 'Anton', sans-serif;
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* shared crackle texture for both parts */
.forge-title span {
  display: inline-block;
  background-image: url('../img/crackle.png');
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* Light gray with subtle crackle texture */
.forge-gray {
  background-color: #c0c0c0;
  background-blend-mode: overlay;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Orange with crackle texture */
.forge-orange {
  background-color: #d4693a;
  background-blend-mode: multiply;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
/* Crackle/Fire Texture Text Effect */
.text-crackle {
    background: url('../img/men-of-the-forge-logo.jpg') center/cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Alternative: Use a dedicated texture image */
.text-fire-texture {
    background: url('../img/fire-texture.jpg') center/cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Animated version - texture moves subtly */
.text-crackle-animated {
    background: url('../img/men-of-the-forge-logo.jpg') center/150%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: textureShift 20s ease infinite;
}

@keyframes textureShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--forge-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--forge-primary-light);
}

/* ========================================
   Navigation
   ======================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.site-nav.scrolled {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 150px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    max-width:300px;
    height: auto;
    /* border-radius: 50%; */
    object-fit: cover;
    /* border: 2px solid var(--forge-primary); */
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--forge-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--forge-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-cta {
    margin-left: 1rem;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    background: var(--forge-primary);
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

.btn-nav-cta:hover {
    background: var(--forge-primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(239, 122, 56, 0.2);
    border-radius: 8px;
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-link {
    display: block;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    color: var(--forge-primary);
    background: rgba(239, 122, 56, 0.1);
    border-left-color: var(--forge-primary);
}

/* ========================================
   Hero Sections
   ======================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-fullscreen {
    min-height: 100vh;
}

.hero-standard {
    min-height: 75vh;
    padding-top: 150px;
}

.hero-compact {
    min-height: 50vh;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-pretitle {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--forge-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-title-accent {
    display: block;
    color: var(--forge-primary);
}

/* Crackle texture for hero titles */
.hero-title .forge-gray,
.hero-title .forge-orange,
.forge-gray,
.forge-orange {
    display: inline-block;
    background-image: url('../img/crackle.png');
    background-size: 150%;
    background-repeat: repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.hero-title .forge-gray,
.forge-gray {
    background-color: #9a9a9a;
    background-blend-mode: hard-light;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.hero-title .forge-orange,
.forge-orange {
    background-color: #ef7939;
    background-blend-mode: multiply;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-scripture {
    font-size: 1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0.75rem auto 2rem;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.75s;
}

.hero-scripture .btn-open-scripture-inline {
    color: var(--white) !important;
    opacity: 0.8;
}

.hero-scripture .btn-open-scripture-inline:hover {
    color: var(--white) !important;
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--forge-primary);
    border: 2px solid var(--forge-primary);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium);
}

.btn-hero-primary:hover {
    background: transparent;
    color: var(--forge-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-300);
    background: transparent;
    border: 2px solid var(--gray-700);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium);
}

.btn-hero-secondary:hover {
    border-color: var(--gray-400);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray-600);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: var(--forge-primary);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--black-medium);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-pretitle {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--forge-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Cards
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem;
    transition: all var(--transition-medium);
}

.card:hover {
    border-color: rgba(239, 122, 56, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--forge-primary);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all var(--transition-medium);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--forge-primary);
    color: var(--white);
    border: 2px solid var(--forge-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--forge-primary);
}

.btn-outline {
    background: transparent;
    color: var(--forge-primary);
    border: 2px solid var(--forge-primary);
}

.btn-outline:hover {
    background: var(--forge-primary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-divider {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.footer-divider::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(239, 122, 56, 0.3) 20%,
        var(--forge-primary) 50%,
        rgba(239, 122, 56, 0.3) 80%,
        transparent 100%);
    border-radius: 2px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    max-width:200px;
    height: auto;
    /* border-radius: 50%; */
}

.footer-brand-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--forge-primary);
    text-transform: uppercase;
}

.footer-about {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--forge-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-700);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Utilities
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--forge-primary) !important;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        text-align: center;
    }

    .nav-cta {
        margin: 1rem 0 0;
    }

    .nav-toggle {
        display: block;
    }

    /* Mobile Accordion for Dropdown */
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(239, 122, 56, 0.05);
        border: none;
        border-left: 3px solid var(--forge-primary);
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 300px;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-link {
        padding: 0.875rem 2rem;
        border-left: none;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hero-fullscreen {
        min-height: calc(100vh - 70px);
    }

    .hero-compact {
        min-height: 40vh;
    }

    .section {
        padding: 4rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.flash-close:hover {
    opacity: 1;
}

.flash-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.flash-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ========================================
   Form Error States
   ======================================== */
input.error,
textarea.error,
select.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* ========================================
   Scripture Reference Buttons
   ======================================== */
.btn-open-scripture-inline {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    color: var(--forge-primary) !important;
    width: auto;
    height: auto;
    padding: 0 !important;
    margin: 0 0 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    vertical-align: middle;
    opacity: 0.7;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.btn-open-scripture-inline:hover {
    opacity: 1;
    transform: scale(1.15);
    color: var(--forge-primary-light);
}
