/*
    I want the sections to folow this order:
        1. Reset and Base Styles
        2. Utility classes
        3. Navigation
        4. Hero Section
        5. Text & Flourishes
        6. Buttons
        7. Cards and Components
        8. Sections
        9. Grid System
        10. Forms
        11. Footer
        12. Media Queries
*/


/* ============================================
   RESET & BASE STYLES
   ============================================ */
:root {
    /* Colors */
    --color-red: #ED1B24;
    --color-green: #27ED1D;
    --color-blue: #1D27ED;

    --color-red-dark: #58070B;
    --color-green-dark: #0B5807;
    --color-blue-dark: #070B58;
    
    --color-red-light: #F8070B;
    --color-green-light: #B2F8AE;
    --color-blue-light: #AEB2F8;

    --color-black: #121212;
    --color-white: #F3F3F3;
    --color-grey: #919191;
    
    /* Typography */
    --font-bevan: "Bevan", Courier, Georgia, serif;
    --font-jost: "Jost", Arial, Verdana, sans-serif;
    --font-weight-bold: 600;
    --font-weight-norm: 400;
    --font-weight-dark: 300;
    --font-weight-thin: 200;
    
    /* Text Sizes */
    --text-size-body: 1rem;
    --text-size-button: 1.125rem;
    --text-size-h1: 3rem;
    --text-size-h2: 2.25rem;
    --text-size-h3: 1.5rem;
    --text-size-navbar: 1.125rem;
    --text-size-smalltext: 0.75rem;
    --text-size-subheading: 1.3rem;
    
    /* Spacing Sizes */
    --size-xs: 0.25rem;
    --size-sm: 0.5rem;
    --size-md: 0.75rem;
    --size-norm: 1rem;
    --size-lg: 1.5rem;
    --size-xl: 2rem;
    --size-xxl: 3rem;
    --size-ultra: 6rem;
    
    /* Layout */
    --container-max-width: 65rem;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.3s ease;    
}

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

html {
    font-size: 1rem;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: var(--font-bevan);
}

body {
    font-family: var(--font-jost);
    font-size: var(--text-size-body);
    line-height: 1.75rem;
    color: var(--color-black);
    overflow-x: hidden;
}

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

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

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



/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.center-container {
    max-width: var(--container-max-width);
    margin: var(--size-xxl) auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-muted {
    color: var(--color-grey);
}

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



/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-black);
    z-index: 1000;
    padding: var(--size-lg) 0;
    /*transition: padding 0.3s ease;*/
}

.navbar-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--size-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-bevan);
    font-size: var(--text-size-h2);
    color: var(--color-red);
    text-shadow: -0.05em 0.05em var(--color-green), -0.1em 0.1em var(--color-blue);
    transition: text-shadow var(--transition-normal);
}

.navbar-brand:hover {text-shadow: 0 0, 0 0;}

.navbar-links {
    display: flex;
    list-style: none;
    gap: var(--size-xl);
}

.navbar-links a {
    text-transform: capitalize;
    font-family: var(--font-jost);
    font-weight: var(--font-weight-norm);
    color: var(--color-white);
    font-size: var(--text-size-navbar);
    transition: color var(--transition-normal);
}

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



/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    min-height: 50rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://www.blastdd.com/files/img/web/hero-banner.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-mini {
    height: 50vh;
    min-height: 25rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://www.blastdd.com/files/img/web/hero-banner.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-brand {
    font-family: var(--font-bevan);
    font-size: var(--text-size-h1);
    color: var(--color-red);
    animation: hero-brand-anim 0.3s;
    animation-fill-mode: forwards;
    margin-top: 4rem;
}

.hero-heading {
    font-family: var(--font-bevan);
    font-size: var(--text-size-h1);
    font-weight: var(--font-weight-norm);
    color: var(--color-white);
    animation: hero-heading-anim 0.3s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
    margin-top: 2.5rem;
    margin-bottom: var(--size-lg);
}

.hero-heading-mini {
    font-family: var(--font-bevan);
    font-size: var(--text-size-h1);
    font-weight: var(--font-weight-norm);
    color: var(--color-white);
    animation: hero-heading-anim 0.3s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
    margin-top: 10rem;
    margin-bottom: var(--size-lg);
}

.hero-subtitle {
    font-family: var(--font-jost);
    font-size: var(--text-size-subheading);
    font-weight: var(--font-weight-thin);
    letter-spacing: 5px;
    text-transform: lowercase;
    margin-top: 4rem;
    margin-bottom: 8rem;
    line-height: 1.1;
}

@keyframes hero-brand-anim {
    from {text-shadow: none;}
    to {text-shadow: -0.05em 0.05em var(--color-green), -0.1em 0.1em var(--color-blue);}
}

@keyframes hero-heading-anim {
    from {text-shadow: none;}
    to {text-shadow: -0.05em 0.05em var(--color-red), -0.1em 0.1em var(--color-green), -0.15em 0.15em var(--color-blue);}
}

/* Container wrapper that spans from hero into body section */
.product-showcase-wrapper {
    /* Negative margin pulls this up into the hero section */
    
    /* Center the container horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Ensure proper z-index so image sits above other content */
    position: relative;
    z-index: 10;
    background-color: var(--color-white);
}

.product-showcase-container {
    margin-top: calc(-1 * 6rem); /* Adjust based on desired overlap */
    width: auto;
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    z-index: 11;
}
/*.product-showcase-container:hover {
    transform: scale(1.03);
    box-shadow: -12px 12px var(--color-red), -20px 20px var(--color-green);
}*/

.product-showcase-img {
    /* Full width of container */
    width: auto;
    /* Maintain aspect ratio */
    height: 16rem;
    display: block;
    /* Optional: smooth loading */
    object-fit: cover;
    filter: drop-shadow(-0.4rem 0.4rem 7px #121212);
}



/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: var(--size-norm) var(--size-xl);
    font-family: var(--font-jost);
    font-size: var(--text-size-button);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-black);
    background-color: var(--color-red);
    box-shadow: -4px 4px var(--color-green), -8px 8px var(--color-blue);
    line-height: 1;
    cursor: pointer;
    transition: box-shadow var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
    text-align: center;
}

.btn-red {
    background-color: var(--color-red);
    box-shadow: -4px 4px var(--color-green), -8px 8px var(--color-blue);
}

.btn-green {
    background-color: var(--color-green);
    box-shadow: -4px 4px var(--color-red), -8px 8px var(--color-blue);
}

.btn-blue {
    background-color: var(--color-blue);
    box-shadow: -4px 4px var(--color-red), -8px 8px var(--color-green);
}

/*make one for neutral*/

.btn:hover,
.btn:focus,
.btn-red:hover {
    background-color: var(--color-red-dark);
    color: var(--color-white);
    box-shadow: 0 0, 0 0;
}

.btn-green:hover {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    box-shadow: 0 0, 0 0;
}

.btn-blue:hover {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    box-shadow: 0 0, 0 0;
}



/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--size-xxl) 0;
}

.section-white {
    background-color: var(--color-white);
    color: var(--color-black);
}

.section-grey {
    background-color: var(--color-grey);
    color: var(--color-white);
}

.section-black {
    background-color: var(--color-black);
    color: var(--color-white);
}

.section-black p {
    font-weight: var(--font-weight-dark);
}

/*.section-black > .container > p {
    font-weight: var(--font-weight-dark);
}*/



/* ============================================
   GRID SYSTEM
   ============================================ */ 
/*
    Default is for desktop, see @media for larger sizes
*/

.grid {
    display: grid;
    gap: var(--size-xxl);
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-col {
    display: grid;
    gap: var(--size-xxl);
    grid-template-columns: repeat(2, 1fr);
}



/* ============================================
   TEXT & FLOURISHES
   ============================================ */
h1, h2, h3 {
    position: relative;
    display: inline-block;
    z-index: 1;
    line-height: 1;
}

h1 {
    font-size: var(--text-size-h1);
}

h2 {
    font-size: var(--text-size-h2);
}

h3 {
    font-size: var(--text-size-h3);
}

/* BASE STYLES FIRST - defines shape/position for ALL flourishes */
h1::before, h2::before, h3::before {
    content: '';
    position: absolute;
    left: -0.7rem;
    top: 0.5em;
    width: 2.3em;
    height: 0.5em;
    z-index: -1;
    background-color: var(--color-red);
}

.h-red::before { background-color: var(--color-red); }
.h-green::before { background-color: var(--color-green); }
.h-blue::before { background-color: var(--color-blue); }

/* This didn't work automatically like I wanted it to, so I had to do it manually.
h1:nth-of-type(3n+1)::before,
h2:nth-of-type(3n+2)::before,
h3:nth-of-type(3n)::before { background-color: var(--color-green); }

h1:nth-of-type(3n+2)::before,
h2:nth-of-type(3n)::before,
h3:nth-of-type(3n+1)::before { background-color: var(--color-blue); }*/

.subheading {
    font-family: var(--font-jost);
    font-size: var(--text-size-subheading);
    font-weight: var(--font-weight-thin);
    letter-spacing: 5px;
    text-transform: lowercase;
    margin-bottom: var(--size-xl); 
}

.return-link {
    color: var(--color-green);
}



/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card-title {} /*For some reason deleting this resets the product cards...*/

/*Product Cards*/
.product-card-black {
    padding: var(--size-lg);
    background-color: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
    height: 22rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), zoom var(--transition-fast);
}

.product-card-white {
    padding: var(--size-lg);
    background-color: var(--color-white);
    color: var(--color-black);
    overflow: hidden;
    height: 22rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), zoom var(--transition-fast);
}

.product-card-white .product-card-title,
.product-card-white .product-card-blurb,
.product-card-white .product-card-cost,
.product-card-white .product-card-image {
    color: var(--color-black);
}

.product-card-grey {
    padding: var(--size-lg);
    background-color: var(--color-grey);
    color: var(--color-black);
    overflow: hidden;
    height: 22rem;
    display: flex;
    flex-direction: column;
}

.product-card-image {
    width: 100%;
    height: 11rem;
    object-fit: contain;
    align-content: center;
    text-align: center;
}

.product-card-title {
    font-family: var(--font-jost);
    font-size: var(--text-size-h3);
    font-weight: var(--font-weight-bold);
    margin-top: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.product-card-blurb {
    font-family: var(--font-jost);
    font-size: var(--text-size-body);
    font-weight: var(--font-weight-dark);
    margin-top: 0.5rem;
    line-height: 1rem;
    text-overflow: ellipsis;
    display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-type {
    height: var(--text-size-h3);
    display: inline;
    float: left;
    margin-top: var(--size-norm);
    margin-right: var(--size-xs);
}

.product-card-cost {    
    font-family: var(--font-jost);
    font-size: var(--text-size-h3);
    font-weight: var(--font-weight-norm);
    display: inline;
    float: right;
    white-space: nowrap;
    overflow: hidden;
    margin-top: var(--size-norm);
}

.product-card-black:hover {
    zoom: 105%;
    box-shadow: -4px 4px var(--color-red), -8px 8px var(--color-green), -12px 12px var(--color-blue);
}
    
.product-card-white:hover {
    zoom: 105%;
    box-shadow: -4px 4px var(--color-red), -8px 8px var(--color-green), -12px 12px var(--color-blue);
}

/* Service Cards */
.service-card {
    /*padding: var(--size-norm) var(--size-xxl);*/
    padding: 0;
    display: block;
}

.service-image {
    height: var(--size-ultra);
    border-radius: 50%;
    margin: auto;
}

.service-title {
    font-family: var(--font-bevan);
    font-size: var(--text-size-h3);
    margin-top: var(--size-norm);
}

.service-blurb {
    font-family: var(--font-jost);
    font-size: var(--text-size-body);
}

/* Text Cards */
.text-card {
    padding: 0;
    display: block;
}

.text-title {
    font-family: var(--font-bevan);
    font-size: var(--text-size-h3);
    margin-top: var(--size-norm);
}

.text-blurb {
    font-family: var(--font-jost);
    font-size: var(--text-size-body);
}

/* Portfolio Items */
.portfolio-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.portfolio-img {
    width: 100%;
    border: 7px solid #fff;
}

.portfolio-caption {
    padding: 2.5rem;
    background-color: #fff;
    text-align: center;
}

.portfolio-caption h4 {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    margin: 0;
    text-transform: none;
}

/* Timeline Items */
.timeline-item {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.timeline-image {
    flex-shrink: 0;
}

.timeline-img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 7px solid #ecf0f1;
}

.timeline-content h4 {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    margin-top: 0;
}

.timeline-content .subheading {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    text-transform: none;
    margin-bottom: 1rem;
}

/* Team Members */
.team-member {
    text-align: center;
    margin-bottom: 4rem;
}

.team-img {
    width: 23rem;
    height: 23rem;
    border-radius: 50%;
    border: 7px solid #fff;
    margin: 0 auto 1.5rem;
}

.team-name {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.4rem;
    margin: 2.5rem 0;
    text-transform: none;
}

.team-role {
    margin: 0;
}



/* ============================================
   FORMS
   ============================================ */
.contact-form {
    max-width: 80rem;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-control {
    width: 100%;
    padding: 2rem;
    font-size: 1.5rem;
    border: 2px solid #ecf0f1;
    border-radius: 3px;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: #fed136;
}

.form-control::placeholder {
    color: #b4bcc2;
}



/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-grey);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.copyright {
    font-family: var(--font-jost);
    font-size: var(--size-norm);
    color: var(--color-black);
}

.social-buttons {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #222;
    color: var(--color-black);
    font-size: 2rem;
    transition: background-color 0.15s ease;
}

.social-buttons a:hover {
    background-color: #fed136;
}

.quicklinks {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
}

.quicklinks a {
    font-family: var(--font-jost);
    font-size: var(--size-norm);
    color: var(--color-black);
}

.quicklinks a:hover {
    color: #fed136;
}



/* ============================================
   MEDIA QUERIES (MOBILE-FIRST)
   ============================================ */
/*
    Notes:
        - Make navbar padding smaller for mobile
*/

/* Mobile menu hidden by default - would need JS to toggle */
@media (max-width: 767px) {
    .navbar-links {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    /*.3-col {
        grid-template-columns: 1fr;
    }*/
}

/* Tablet and Up (768px+)
@media (min-width: 768px) {
    .hero-brand {
        font-size: 4rem;
    }
    
    .hero-heading {
        font-size: 4rem;
    }
    
    .section {
        padding: var(--size-ultra) 0;
    }
    
    .3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
    }
}*/

/* Large Screens (992px+) */
@media (min-width: 1550px) {
    .timeline-img {
        width: 15rem;
        height: 15rem;
    }
    
    .timeline-content h4 {
        font-size: 1.8rem;
    }
}

/* Extra Large Screens (1200px+) */
@media (min-width: 1920px) {
    .timeline-img {
        width: 17rem;
        height: 17rem;
    }
}