/* 
    Iron Templar - Main Stylesheet
    Architecture: Mobile-First
    Methodology: Custom CSS Properties + Utility classes
*/

:root {
    /* Brand Colors */
    --color-black: #080808;
    --color-black-light: #121212;
    --color-black-lighter: #1a1a1a;
    --color-red: #AB2328; /* Pantone 7621 C */
    --color-red-hover: #8A1C20;
    --color-gray: #97999B; /* Pantone Cool Gray 7 C */
    --color-white: #D9D9D6; /* Pantone Cool Gray 1 C (replaces white text) */
    --color-text-body: #97999B; /* Pantone Cool Gray 7 C */
    
    /* Typography */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--trans-fast);
}

a:hover {
    color: var(--color-red);
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-red {
    color: var(--color-red);
}

.mt-4 {
    margin-top: var(--space-lg);
}

/* Buttons */
.amazon-btn-img, .ig-btn-img {
    display: inline-block;
    transition: transform var(--trans-normal);
}

.amazon-btn-img:hover, .ig-btn-img:hover {
    transform: scale(1.05);
}

.amazon-btn-img img, .ig-btn-img img {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--trans-normal);
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-gray);
}

.btn-outline:hover {
    border-color: var(--color-white);
}

.btn-icon {
    padding: 0.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 160px;
}

.logo-img {
    height: 120px;
    object-fit: contain;
}

.nav-links {
    display: none; /* Mobile first: hidden */
}

.nav-actions {
    display: none;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--trans-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 140px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,1) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.hero-shield {
    height: 150px;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.8));
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-desc {
    max-width: 600px;
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 300px;
}

/* Section Common */
.section-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--color-text-body);
    margin-bottom: var(--space-xl);
    font-size: 1.125rem;
}

/* Our Story */
.story {
    padding: var(--space-2xl) 0;
    background-color: var(--color-black);
}

.story-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.story-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px var(--color-black);
}

.story-content p {
    margin-bottom: var(--space-md);
}

.story-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.story-fan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: var(--space-xl);
}

.story-graphic {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in; /* Indicate it can be clicked to enlarge */
    position: relative;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-white);
    font-size: 50px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--color-red);
}

@media (min-width: 768px) {
    .story-fan {
        flex-direction: row;
        justify-content: center;
        height: 450px; /* Explicit height since items are absolute */
        align-items: center;
    }

    .story-graphic {
        position: absolute;
        width: 45%; /* Relative to container */
        max-width: 500px;
    }

    /* Fan layout */
    .fan-1 {
        left: 0;
        transform: rotate(-12deg) translateY(20px);
        z-index: 1;
    }

    .fan-2 {
        left: 50%;
        transform: translateX(-50%) translateY(-20px) scale(1.05);
        z-index: 3;
    }

    .fan-3 {
        right: 0;
        transform: rotate(12deg) translateY(20px);
        z-index: 2;
    }

    /* Hover effects for the fan */
    .fan-1:hover {
        transform: rotate(0deg) scale(1.1) translateY(-10px);
        z-index: 10;
        box-shadow: 0 30px 60px rgba(171, 35, 40, 0.3);
        border: 1px solid rgba(171, 35, 40, 0.5);
    }
    
    .fan-2:hover {
        transform: translateX(-50%) scale(1.15) translateY(-30px);
        z-index: 10;
        box-shadow: 0 30px 60px rgba(171, 35, 40, 0.3);
        border: 1px solid rgba(171, 35, 40, 0.5);
    }

    .fan-3:hover {
        transform: rotate(0deg) scale(1.1) translateY(-10px);
        z-index: 10;
        box-shadow: 0 30px 60px rgba(171, 35, 40, 0.3);
        border: 1px solid rgba(171, 35, 40, 0.5);
    }
}

/* Values */
.values {
    padding: var(--space-2xl) 0;
    background-color: var(--color-black-light);
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.value-card {
    padding: var(--space-lg);
    background-color: var(--color-black-lighter);
    border-top: 3px solid var(--color-red);
    transition: transform var(--trans-normal);
}

.value-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(171, 35, 40, 0.1);
}

.value-icon {
    color: var(--color-red);
    margin-bottom: var(--space-md);
}

.value-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

/* Gallery / Lifestyle */
.gallery {
    padding: var(--space-2xl) 0;
    background-image: url('../Documentos/WhatsApp Image 2026-05-07 at 13.20.26.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 8, 8, 0.85);
}

.gallery-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--color-black-lighter);
    padding: var(--space-xl) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-md);
}

.footer-heading {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a,
.footer-social a {
    color: var(--color-text-body);
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-red);
}

.newsletter-form {
    display: flex;
    margin-top: var(--space-md);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    background-color: var(--color-black);
    border: 1px solid var(--color-gray);
    color: var(--color-white);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-red);
}

.footer-bottom {
    background-color: var(--color-black);
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    color: var(--color-gray);
    font-size: 0.875rem;
}

/* Media Queries (Desktop) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: var(--space-lg);
    }
    
    .nav-links a {
        text-transform: uppercase;
        font-size: 1.125rem;
        font-weight: 500;
        letter-spacing: 1px;
    }

    .nav-actions {
        display: flex;
        gap: var(--space-md);
        align-items: center;
    }

    .mobile-toggle {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 1.125rem;
    }

    .hero-ctas {
        flex-direction: row;
        max-width: none;
    }


    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
    }
}
