/* =========================================================
   THE CARPENTER GARAGE
   FINAL PREMIUM LANDING PAGE CSS
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --brown: #9a5418;
    --brown-dark: #71370d;
    --brown-light: #c88742;

    --black: #171411;
    --dark: #29231e;

    --cream: #fffaf2;
    --white: #ffffff;

    --muted: #706861;

    --line: rgba(110, 80, 50, 0.22);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;

    font-family:
        "DM Sans",
        Arial,
        Helvetica,
        sans-serif;

    background: var(--cream);
    color: var(--black);

    overflow-x: hidden;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;
    height: 100vh;

    min-height: 700px;

    overflow: hidden;

    background: var(--cream);
}


/* =========================================================
   HERO BACKGROUND
========================================================= */

.hero-bg {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 62%;

    z-index: 0;

    background-image: url("assets/hero.png");

    background-repeat: no-repeat;

    background-size: cover;

    background-position: center center;
}


/* =========================================================
   HERO IMAGE FADE
========================================================= */

.hero-bg::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,

            rgba(255,250,242,1) 0%,

            rgba(255,250,242,.98) 8%,

            rgba(255,250,242,.86) 20%,

            rgba(255,250,242,.50) 38%,

            rgba(255,250,242,.15) 57%,

            rgba(255,250,242,0) 78%
        );
}


/* =========================================================
   GENERAL HERO OVERLAY
========================================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255,250,242,.03),
            rgba(255,250,242,0)
        );
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 50;

    padding-top: 30px;

    padding-left:
        clamp(
            40px,
            6vw,
            100px
        );

    padding-right:
        clamp(
            40px,
            6vw,
            100px
        );
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: block;

    width:
        clamp(
            210px,
            20vw,
            315px
        );

    height: auto;

    max-height: 115px;

    object-fit: contain;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: absolute;

    z-index: 10;

    left:
        clamp(
            40px,
            6vw,
            100px
        );

    top: 245px;

    width:
        min(
            700px,
            48vw
        );

    transform: none;

    animation:
        contentReveal
        .8s
        cubic-bezier(.2,.8,.2,1)
        both;
}


/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 17px;

    color: var(--brown);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 3.5px;

    line-height: 1;

    white-space: nowrap;

    text-transform: uppercase;
}

.eyebrow b {
    font-size: 8px;
}


/* =========================================================
   MAIN HEADING
========================================================= */

h1 {
    margin: 0;

    font-family:
        "Playfair Display",
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            48px,
            4.5vw,
            72px
        );

    font-weight: 600;

    line-height: .96;

    letter-spacing: -2.5px;

    color: var(--black);
}

h1 span {
    color: var(--brown);
}


/* =========================================================
   SCRIPT LINE
========================================================= */

.script-text {
    margin-top: 17px;

    margin-bottom: 17px;

    font-family:
        "Brush Script MT",
        "Segoe Script",
        cursive;

    font-size:
        clamp(
            29px,
            2.8vw,
            44px
        );

    line-height: 1;

    color: #211b17;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.description {
    width: 100%;

    max-width: 610px;

    margin-bottom: 23px;

    color: #4c4741;

    font-size:
        clamp(
            13px,
            .95vw,
            16px
        );

    font-weight: 400;

    line-height: 1.55;
}


/* =========================================================
   BUTTONS
========================================================= */

.buttons {
    display: flex;

    align-items: center;

    gap: 22px;

    margin-bottom: 22px;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    min-width: 235px;

    height: 50px;

    padding:
        0 27px;

    border-radius: 100px;

    background: var(--brown);

    color: var(--white);

    text-decoration: none;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    box-shadow:
        0 12px 28px
        rgba(100,50,10,.23);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.primary-btn span {
    font-size: 19px;

    line-height: 1;
}

.primary-btn:hover {
    background: var(--brown-dark);

    transform:
        translateY(-3px);

    box-shadow:
        0 17px 35px
        rgba(100,50,10,.30);
}


/* =========================================================
   WATCH STORY
========================================================= */

.watch-btn {
    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--black);

    text-decoration: none;
}

.play {
    width: 47px;
    height: 47px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border:
        1.3px solid
        var(--brown);

    border-radius: 50%;

    color: var(--brown);

    font-size: 10px;

    padding-left: 2px;

    transition:
        background .2s ease,
        color .2s ease;
}

.watch-btn:hover .play {
    background: var(--brown);

    color: var(--white);
}

.watch-btn strong {
    display: block;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;
}

.watch-btn small {
    display: block;

    margin-top: 3px;

    color: #777;

    font-size: 9px;
}


/* =========================================================
   FOUR PILLARS
========================================================= */

.pillars {
    position: relative;

    z-index: 10;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    width: 690px;

    max-width: 100%;

    height: 70px;

    margin-top: 0;

    overflow: visible;
}


/* =========================================================
   INDIVIDUAL PILLAR
========================================================= */

.pillar {
    position: relative;

    height: 68px;

    padding:
        0 14px;

    text-align: center;
}

.pillar:first-child {
    padding-left: 0;
}

.pillar:last-child {
    padding-right: 0;
}


/* =========================================================
   SHORT VERTICAL DIVIDER
========================================================= */

.pillar:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 3px;

    right: 0;

    width: 1px;

    height: 48px;

    background:
        var(--line);
}


/* =========================================================
   PILLAR ICON
========================================================= */

.icon {
    width: 38px;
    height: 38px;

    margin:
        0 auto 5px;

    display: grid;

    place-items: center;

    border:
        1.3px solid
        var(--brown);

    border-radius: 50%;

    color: var(--brown);

    font-size: 15px;
}


/* =========================================================
   PILLAR TITLE
========================================================= */

.pillar h3 {
    margin: 0;

    font-size: 8px;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: .7px;

    text-transform: uppercase;
}


/* =========================================================
   PILLAR DESCRIPTION
========================================================= */

.pillar p {
    margin-top: 3px;

    color: var(--muted);

    font-size: 7.5px;

    line-height: 1.15;
}


/* =========================================================
   BIBLE VERSE CARD
========================================================= */

.verse {
    position: absolute;

    z-index: 30;

    top: 18%;

    right:
        clamp(
            30px,
            4vw,
            70px
        );

    width:
        clamp(
            270px,
            22vw,
            350px
        );

    padding:
        25px 28px;

    background:
        rgba(
            255,
            255,
            255,
            .88
        );

    border-left:
        3px solid
        var(--brown);

    box-shadow:
        0 20px 55px
        rgba(0,0,0,.13);

    backdrop-filter:
        blur(10px);

    animation:
        verseReveal
        1s
        .2s
        cubic-bezier(.2,.8,.2,1)
        both;
}


/* =========================================================
   QUOTE MARK
========================================================= */

.quote {
    position: absolute;

    top: -18px;

    left: 10px;

    color: var(--brown);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 43px;
}


/* =========================================================
   VERSE TEXT
========================================================= */

.verse p {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    font-style: italic;

    line-height: 1.55;

    color: var(--dark);
}


/* =========================================================
   VERSE REFERENCE
========================================================= */

.verse strong {
    display: block;

    margin-top: 13px;

    color: var(--brown);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 4px;
}


/* =========================================================
   BOTTOM STATEMENT
========================================================= */

.bottom {
    position: absolute;

    z-index: 40;

    left:
        clamp(
            40px,
            6vw,
            100px
        );

    bottom: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    gap: 10px;

    white-space: nowrap;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 11px;

    font-style: italic;

    color: #574b40;
}

.bottom b {
    color: var(--brown);
}


/* =========================================================
   CONTENT ANIMATION
========================================================= */

@keyframes contentReveal {

    from {
        opacity: 0;

        transform:
            translateY(25px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes verseReveal {

    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .hero-content {
        width: 53vw;
    }

    h1 {
        font-size: 62px;
    }

    .script-text {
        font-size: 38px;
    }

    .verse {
        width: 285px;

        padding:
            22px 25px;
    }
}


/* =========================================================
   SHORT LAPTOP / SHORT SCREEN
========================================================= */

@media (min-width: 901px) and (max-height: 800px) {

    .hero-content {
        top: 220px;
    }

    h1 {
        font-size: 60px;
    }

    .script-text {
        font-size: 36px;

        margin-top: 12px;

        margin-bottom: 12px;
    }

    .description {
        margin-bottom: 16px;
    }

    .buttons {
        margin-bottom: 17px;
    }

    .pillars {
        height: 65px;
    }

    .pillar {
        height: 63px;
    }

    .pillar:not(:last-child)::after {
        height: 44px;
    }

    .icon {
        width: 36px;
        height: 36px;

        margin-bottom: 4px;
    }

    .bottom {
        bottom: 15px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .hero {
        width: 100%;

        height: auto;

        min-height: 900px;

        overflow: hidden;
    }

    .hero-bg {
        width: 100%;

        height: 100%;

        background-position:
            center center;
    }

    .hero-bg::after {

        background:
            linear-gradient(
                180deg,

                rgba(255,250,242,.98) 0%,

                rgba(255,250,242,.94) 35%,

                rgba(255,250,242,.70) 68%,

                rgba(255,250,242,.10) 100%
            );
    }

    .hero-content {
        position: relative;

        top: auto;

        left: auto;

        width: 100%;

        padding:
            210px
            35px
            80px;

        transform: none;

        animation: none;
    }

    .verse {
        display: none;
    }

    .bottom {
        display: none;
    }

    .pillars {
        width: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .hero {
        min-height: 100vh;

        height: auto;
    }

    .header {
        padding:
            20px 22px;
    }

    .logo {
        width: 190px;

        max-height: 90px;
    }

    .hero-content {
        padding:
            135px
            22px
            70px;
    }

    .eyebrow {
        font-size: 8px;

        letter-spacing: 2px;

        gap: 6px;
    }

    .eyebrow b {
        display: none;
    }

    h1 {
        font-size: 43px;

        line-height: .97;

        letter-spacing: -1.5px;
    }

    .script-text {
        font-size: 30px;
    }

    .description {
        font-size: 14px;

        line-height: 1.55;
    }

    .buttons {
        flex-wrap: wrap;

        gap: 14px;
    }

    .primary-btn {
        width: 100%;

        min-width: 0;
    }

    .pillars {
        grid-template-columns:
            repeat(2, 1fr);

        width: 100%;

        height: auto;

        row-gap: 20px;
    }

    .pillar {
        height: 72px;

        padding:
            0 10px;
    }

    .pillar:nth-child(2)::after,
    .pillar:nth-child(4)::after {
        display: none;
    }

    .pillar p {
        display: none;
    }

    .pillar h3 {
        font-size: 8px;
    }

    .icon {
        width: 40px;

        height: 40px;

        font-size: 16px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .logo {
        width: 175px;
    }

    .hero-content {
        padding:
            120px
            20px
            65px;
    }

    .eyebrow {
        font-size: 7px;

        letter-spacing: 1.5px;
    }

    h1 {
        font-size: 39px;
    }

    .script-text {
        font-size: 27px;
    }

    .description {
        font-size: 13px;
    }

    .primary-btn {
        height: 48px;

        font-size: 10px;
    }
}