/*
Theme Name: Mike & Art Design
Version: 1.0.0
Description: Arizona workshop split landing page and portfolio.
Requires PHP: 8.0
Text Domain: mike-art-design
*/

/* ========================================
   01. BRAND COLORS
   ======================================== */

:root {
    --cream: #f3e4cc;
    --gold: #c39761;
    --orange: #a9360b;
}


/* ========================================
   02. GLOBAL STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #111;
    color: var(--cream);
    font: 16px/1.6 system-ui, sans-serif;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}


/* ========================================
   03. HEADER & NAVIGATION
   ======================================== */

header {
    background: #090909;
    border-bottom: 2px solid var(--gold);
    padding: 18px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-weight: 750;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}


/* ========================================
   04. BRAND NAME & LOGO
   ======================================== */

.brand {
    font-weight: 900;
    text-decoration: none;
    font-size: 23px;
    letter-spacing: 1px;
}

.brand img {
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
}


/* ========================================
   05. TAGLINE
   ======================================== */

.tagline {
    text-align: center;
    margin: 0;
    padding: 16px;
    background: #15120e;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
}


/* ========================================
   06. HOMEPAGE SPLIT LAYOUT
   ======================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 75vh;
}

.panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    min-height: 620px;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: 36px 22px;
}

/* Background images */

.panel > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Dark gradient overlay */

.panel:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 30%,
        rgba(0, 0, 0, 0.2) 48%,
        #0b0907 100%
    );
    z-index: -1;
}

/* Divider between homepage panels */

.panel:first-child {
    border-right: 1px solid var(--gold);
}

/* Panel descriptions */

.panel p {
    font-weight: 650;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}


/* ========================================
   07. TYPOGRAPHY
   ======================================== */

h1,
h2 {
    line-height: 1.05;
    text-transform: uppercase;
    font-family: Impact, 'Arial Narrow', sans-serif;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(36px, 5vw, 76px);
    margin: 0 0 14px;
}

h2 {
    font-size: clamp(30px, 4vw, 55px);
    margin: 0 0 12px;
}


/* ========================================
   08. BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--cream);
    background: var(--orange);
    color: white;
    padding: 13px 22px;
    font-weight: 800;
    text-transform: uppercase;
    align-self: center;
}

/* Metal Fabrication button */

.metal .btn {
    background: #233b4b;
}

/* Button hover and focus effects */

.btn:hover,
.btn:focus {
    filter: brightness(1.3);
}


/* ========================================
   09. INTERIOR PAGE LAYOUT
   ======================================== */

.wrap {
    max-width: 1150px;
    margin: auto;
    padding: 50px 24px;
}


/* ========================================
   10. PROJECT GALLERIES
   ======================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 18px;
    margin: 28px 0;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}


/* ========================================
   11. SERVICE CARDS
   ======================================== */

.services {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 18px;
    margin: 25px 0;
}

.services article {
    background: #211e1a;
    padding: 22px;
    border-top: 2px solid var(--gold);
}


/* ========================================
   12. FOOTER
   ======================================== */

footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid #574630;
    font-size: 13px;
}


/* ========================================
   13. MOBILE RESPONSIVE LAYOUT
   ======================================== */

@media (max-width: 700px) {

    /* Header */

    header {
        justify-content: center;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 12px;
    }

    /* Stack homepage panels vertically */

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

    .panel {
        min-height: 520px;
    }

    .panel:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--gold);
    }

    /* Tagline */

    .tagline {
        letter-spacing: 1px;
    }
}

/* ========================================
   14. CUSTOM CREATIONS LANDING PAGE
   ======================================== */

.creations-page {
    max-width: 1250px;
}

.creations-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.creations-subtitle {
    color: var(--gold);
    font-size: 21px;
    letter-spacing: 1px;
}


/* Featured custom hats section */

.creation-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #1b1814;
    border: 1px solid var(--gold);
    margin-bottom: 40px;
    overflow: hidden;
}

.creation-featured > img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.creation-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.creation-featured-content .btn {
    align-self: flex-start;
}

.creation-eyebrow {
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}


/* Product category grid */

.creation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.creation-card {
    background: #1b1814;
    border: 1px solid #574630;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s ease,
                transform 0.2s ease;
}

.creation-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.creation-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.creation-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.creation-card h2 {
    font-size: 34px;
    margin-bottom: 8px;
}

.creation-card p {
    margin-bottom: 24px;
}

.creation-card .btn {
    margin-top: auto;
    align-self: flex-start;
}


/* Temporary image placeholders */

.creation-placeholder {
    height: 230px;
    background: linear-gradient(
        135deg,
        #30271e,
        #15120e
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    text-align: center;
    padding: 20px;
}

.creation-placeholder span {
    font-family: 'Bebas Kai', Impact, sans-serif;
    font-size: 30px;
}

.creation-placeholder small {
    color: var(--cream);
    opacity: 0.6;
}


/* Bottom call to action */

.creation-cta {
    text-align: center;
    border-top: 1px solid var(--gold);
    margin-top: 50px;
    padding: 40px 20px 10px;
}

.creation-cta .btn {
    margin: 6px;
}

.creation-secondary {
    background: transparent;
    border-color: var(--gold);
}


/* Tablet layout */

@media (max-width: 1000px) {

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

    .creation-featured-content {
        padding: 25px;
    }

}


/* Mobile layout */

@media (max-width: 700px) {

    .creations-page {
        padding: 30px 16px;
    }

    .creation-featured {
        grid-template-columns: 1fr;
    }

    .creation-featured > img {
        height: 260px;
        min-height: 0;
    }

    .creation-featured-content {
        padding: 24px;
    }

    .creation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .creation-image,
    .creation-placeholder {
        height: 220px;
    }

    .creation-card:hover {
        transform: none;
    }

    .creation-cta .btn {
        display: block;
        margin: 12px auto;
    }

}
