/* ==================================================
   THAINE H. ALLISON JR.
   SITE STYLESHEET

   Custom site design.

   All major style sections are clearly labeled
   for future maintenance.
  ================================================== */


/* ==================================================
   GLOBAL SETTINGS
   ================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #111111;
    color: #ededed;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}


/* ==================================================
   GLOBAL CONTENT WIDTH
   ================================================== */

.content-width {
    width: min(1180px, 90%);
    margin-left: auto;
    margin-right: auto;
}



/* ==================================================
   HEADER
   ================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    padding: 24px 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.38) 0%,
            rgba(0, 0, 0, 0.12) 55%,
            rgba(0, 0, 0, 0) 100%
        );    
}


.header-inner {
    width: min(1280px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}


.site-name {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-decoration: none;
    opacity: 0.78;
    text-transform: uppercase;
}


.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}


.main-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.9;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.main-nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
}



/* ==============================================================
   HERO IMAGE

   Change hero photograph in this section -> ../images/hero.jpg 

   ============================================================== */

/* ========================================================
*  Position the hero image where you want to, as a 
*  percentage of placement along the width of the screen.
*  We're starting at 65%, as seen in backgroun-position.
* ========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-image:
        url("../images/hero.jpg");
    background-position:
        center center;
    background-repeat:
        no-repeat;
    background-size:
        cover;
    background-position: 65% center;    
}

/* =========================================================
*  Make the Overlay a little more cinematic and less like a 
*  simple black transparency.
*  ========================================================= */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 7, 7, 0.96) 0%,
            rgba(7, 7, 7, 0.78) 32%,
            rgba(7, 7, 7, 0.30) 62%,
            rgba(7, 7, 7, 0.05) 100%
        );
}


.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, 92%);
    margin: 0 auto;
    padding-top: 100px;
}


.hero-kicker {
    margin: 0 0 12px;
    font-size: 0.9rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* Thin, horizontal rule put beneath the occupation line */
.hero-kicker::after {
    content: "";
    display: block;
    width: 70px;
    height: 1px;
    margin-top: 16px;
    background: rgba(255,255,255,0.45);
}


.hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.90;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}


.hero-tagline {
    margin:
        28px 0 0;
    margin-top: 28px;
        font-size:
        clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-tagline span {
    display: block;
    margin-top: 4px;
    font-size: 0.68em;
    font-style: italic;
    font-weight: 400;
    opacity: 0.7;
}

.hero-subtagline {
    margin: 3px 0 0;
    font-size:
        clamp(1rem, 2vw, 1.35rem);

    font-style: italic;
    opacity: 0.78;
}

/* ==================================================
    Scroll Cue code
   ================================================== */
   
.scroll-cue {
    position: absolute;
    z-index: 5;

    left: 5%;
    bottom: 28px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #fff;

    font-size: 0.7rem;
    letter-spacing: 0.18em;

    text-decoration: none;
    text-transform: uppercase;

    opacity: 0.55;
}   

/* ==================================================
   BUTTONS
   ================================================== */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 36px;
}


.button {
    display: inline-block;

    padding:
        14px 26px;

    border:
        1px solid rgba(255,255,255,0.7);

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    font-size: 0.8rem;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.button-primary {
    background: #f2f2f2;

    color: #111;
}


.button-primary:hover {
    background: #ffffff;
}


.button-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}


.button-secondary:hover {
    background:
        rgba(255,255,255,0.1);
}



/* ==================================================
   GENERAL CONTENT SECTIONS
   ================================================== */

.content-section,
.featured-links,
.gallery-section,
.contact-section {

    padding:
        100px 0;
}


.content-section {
    background:
        #171717;
}


.section-label {
    margin:
        0 0 12px;

    font-size:
        0.75rem;

    letter-spacing:
        0.25em;

    text-transform:
        uppercase;

    opacity:
        0.6;
}


h2 {
    margin:
        0 0 30px;

    font-size:
        clamp(2rem, 5vw, 4rem);

    line-height:
        1.05;
}


.lead {
    max-width:
        800px;

    font-size:
        clamp(1.25rem, 2.5vw, 1.8rem);
}



/* ==================================================
   FEATURE CARDS
   ================================================== */

.featured-links {
    background:
        #0e0e0e;
}


.card-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 18px;
}


/* First row: three equal cards */
.card-grid .feature-card {
    grid-column:
        span 2;
}


/* Second row: center the remaining two cards */
.card-grid .feature-card:nth-child(4) {
    grid-column:
        2 / span 2;
}

.card-grid .feature-card:nth-child(5) {
    grid-column:
        4 / span 2;
}


.feature-card {
    min-height:
        260px;

    padding:
        28px;

    border:
        1px solid rgba(255,255,255,0.14);

    background:
        rgba(255,255,255,0.025);

    text-decoration:
        none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.feature-card:hover {
    transform:
        translateY(-6px);

    background:
        rgba(255,255,255,0.06);

    border-color:
        rgba(255,255,255,0.45);
}


.feature-number {
    font-size:
        0.72rem;

    letter-spacing:
        0.2em;

    opacity:
        0.45;
}


.feature-card h3 {
    margin:
        60px 0 12px;

    font-size:
        1.55rem;
}


.feature-card p {
    margin:
        0;

    opacity:
        0.7;
}



/* ==================================================
   PHOTO GALLERY
   ================================================== */

.gallery-section {
    background:
        #181818;
}


.gallery-grid {
    display:
        grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        12px;
}


.gallery-grid img {
    width:
        100%;

    aspect-ratio:
        3 / 4;

    object-fit:
        cover;

    filter:
        grayscale(15%);

    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}


.gallery-grid img:hover {
    filter:
        grayscale(0%);

    transform:
        scale(1.015);
}



/* ==================================================
   BIO / INDUSTRY LINKS
   ================================================== */

.links-section {
    padding:
        40px 0;

    background:
        #eeeeee;

    color:
        #111111;
}


.links-row {
    display:
        flex;

    justify-content:
        center;

    flex-wrap:
        wrap;

    gap:
        50px;
}


.links-row a {
    font-weight:
        bold;

    letter-spacing:
        0.1em;

    text-decoration:
        none;

    text-transform:
        uppercase;
}



/* ==================================================
   CONTACT SECTION
   ================================================== */

.contact-section {
    min-height:
        400px;

    display:
        flex;

    align-items:
        center;

    background:
        #101010;
}


.contact-placeholder {
    max-width:
        700px;

    opacity:
        0.7;
}



/* ==================================================
   FOOTER
   ================================================== */

.site-footer {
    padding:
        30px 0;

    border-top:
        1px solid rgba(255,255,255,0.12);

    background:
        #090909;
}


.footer-inner {
    width:
        min(1180px, 90%);

    margin:
        0 auto;

    display:
        flex;

    justify-content:
        space-between;

    gap:
        30px;

    font-size:
        0.75rem;

    opacity:
        0.65;
}


.footer-inner p {
    margin:
        0;
}


.designer-credit a {
    text-decoration:
        none;
}

/* ======================================================
     TEST SECTION - ALWAYS REMOVE THIS CODE WHEN DONE
   ====================================================== */
   
/* ======================================================
   HERO NAME - FINAL POSITION / SIZE OVERRIDE
   ====================================================== */

.hero-content {
    width: min(1280px, 92%);
    margin: 0 auto;
}

.hero h1 {
    max-width: 700px;
    margin: 0;

    font-size: clamp(3rem, 6vw, 6rem);

    line-height: 0.90;
    letter-spacing: -0.04em;

    text-transform: uppercase;
}  

/* Just making sure this is really set.  */
.hero h1 {
    max-width: 700px !important;
    font-size: clamp(3rem, 6vw, 6rem) !important;
    line-height: 0.90 !important;
    letter-spacing: -0.04em !important;
}

.header-inner,
.hero-content {
    width: min(1280px, 92%);
    margin-left: auto;
    margin-right: auto;
}

/* ======================================================
   Gallery Padding - Just so the spacing doesn't look
   like things are piled on top of each other
   ====================================================== */

   .gallery-link {
    margin-top: 30px;
    text-align: center;
}

/* ==================================================
   TABLET / SMALL DESKTOP
   ================================================== */

@media (max-width: 950px) {

.card-grid {
    grid-template-columns:
        repeat(2, 1fr);
}

.card-grid .feature-card,
.card-grid .feature-card:nth-child(4),
.card-grid .feature-card:nth-child(5) {
    grid-column:
        auto;
}

    .gallery-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .header-inner {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}



/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 600px) {

    .site-header {
        position:
            relative;

        background:
            #0b0b0b;
    }


    .hero {
        min-height:
            78vh;
    }


    .hero-content {
        padding-top:
            50px;
    }


    .main-nav {
        gap:
            13px;
    }


    .card-grid {
        grid-template-columns:
            1fr;
    }


    .gallery-grid {
        grid-template-columns:
            1fr 1fr;
    }


    .footer-inner {
        flex-direction:
            column;
    }


    .content-section,
    .featured-links,
    .gallery-section,
    .contact-section {

        padding:
            70px 0;
    }

}

/* ===============================================================
    Fixing Block Formating - Typo somewhere in the code (?)

    This is the new code for getting Thaine's site to look like:
         Biography | Demo Reel | Resume
            Actors Access | IMDB

   =============================================================== */
   
/* ==================================================
   WORK & REPRESENTATION - FIVE CARD LAYOUT
   ================================================== */

@media (min-width: 951px) {

    #work .card-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    #work .feature-card {
        grid-column: span 2;
    }

    #work .feature-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    #work .feature-card:nth-child(5) {
        grid-column: 4 / span 2;
    }

}   
