/* Roadstrut.com - Cleaned Main Styles */

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

html {
    background: #145a1f;
    padding: 8px 0 18px;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: #1f5f1f;
    color: #241d17;
    font: 1.05rem/1.55 "Myriad Pro", Helvetica, Arial, sans-serif;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    overflow-x: hidden;
    background-image:
        radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(rgba(0,0,0,0.08) 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px;
}

.container {
    width: 100%;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
}

.container::after,
.content::after {
    content: "";
    display: block;
    clear: both;
}

/* HEADER */

header {
    min-height: 140px;
    margin-bottom: 22px;
    background:
        linear-gradient(rgba(20,16,12,0.42), rgba(20,16,12,0.42)),
        url("../img/greenswirl1024.jpg") center/cover no-repeat;
    border: 3px solid #b89447;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    border-radius: 0 0 8px 8px;
}

header h1 {
    color: #fff7e8;
    font-size: 2rem;
    text-align: right;
    padding: 38px 24px;
    letter-spacing: 3px;
}

/* DESKTOP 3-COLUMN LAYOUT */

#navL,
#navR {
    width: 190px;
}

#navL {
    float: left;
    margin-right: 18px;
}

#navR {
    float: right;
    margin-left: 18px;
}

.content {
    overflow: hidden;
    width: auto;
    min-height: 420px;
    padding: 26px 18px 30px;
    background: #f3ecd9;
    border: 1px solid #cdb47e;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    text-align: center;
}

/* SIDE LABELS + LINKS */

#navL .likeGreen,
#navR .likeGreen {
    display: block;
    margin: 0 0 10px;
    padding-left: 4px;
    color: #f0e7cf;
    font-size: 1.08rem;
    text-align: left;
}

#navL a,
#navR a {
    display: block;
    text-decoration: none;
}

.navBtnProjects {
    display: block;
    margin: 0 0 18px;
    padding: 20px 14px;
    background: linear-gradient(#d8af58, #be8d34);
    color: #fff8ea;
    border-radius: 22px;
    text-align: center;
    line-height: 1.28;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    font-size: 0.98rem;
}

#navL a:hover .navBtnProjects,
#navR a:hover .navBtnProjects {
    background: linear-gradient(#e1bb69, #c6963d);
    color: #fffdf7;
}

/* EMAIL LINK */

#navR a.email-link,
.email-link {
    display: block;
    text-align: center;
    margin: 22px 0 8px;
    padding-top: 10px;
    font-size: 1.15rem;
    font-weight: bold;
    color: #f4d27a !important;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.18);
}

#navR a.email-link:hover,
.email-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.navSmallNote {
    margin-top: 10px;
    color: #1d140f;
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
}

/* CONTENT */

.content h1,
.content h2,
.content h3 {
    margin: 8px 0 12px;
    line-height: 1.15;
    text-align: center;
    color: #1f1812;
}

.content h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.content h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
}

.content h3 {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.content p {
    margin: 8px 0;
    line-height: 1.45;
    text-align: center;
}

.content a {
    color: #7b5625;
}

.content a:hover {
    color: #b27d27;
}

.likeGreen {
    color: #497b3f;
}

.greenHeaders {
    font-size: 1.3rem;
    line-height: 1.45;
    color: #2d241a;
    text-align: center;
    margin: 10px auto 16px;
}

.starring,
.ll-starring {
    color: #8a7358;
    margin: 8px auto 14px;
    line-height: 1.5;
    text-align: center;
}

/* IMAGES */

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

.content img {
    display: block;
    margin: 12px auto;
}

#mainPic,
.ll-main-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 12px auto;
    border-radius: 10px;
}

/* LEGACY PROJECTS / DYNAMIC DRIVE CAROUSEL */

.carousel-center {
    width: 100%;
    margin: 20px auto 50px;
    clear: both;
    text-align: center;
}

.carousel-shell {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.carousel-inner {
    width: 100%;
    position: relative;
    display: block;
    min-height: 185px;
    overflow: visible;
}

#Carousel {
    position: relative !important;
    width: 600px;
    height: 220px;
    margin: 0 auto;
    overflow: hidden;
}

#Carousel img {
    max-width: none;
}

.greenHeaders + .carousel-center {
    margin-top: 18px;
}

/* MODERN CAROUSEL */

.carousel-wrap {
    width: 100%;
    position: relative;
}

.modern-carousel {
    position: relative;
    width: 100%;
    padding: 0 46px;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s ease;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
}

.carousel-slide a {
    display: block;
    text-decoration: none;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0;
    border-radius: 12px;
    border: 4px solid #1b120d;
    background: #111;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #222;
    cursor: pointer;
    z-index: 5;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.carousel-btn:hover {
    background: #ffffff;
}

.carousel-btn.prev {
    left: 4px;
}

.carousel-btn.next {
    right: 4px;
}

/* LIQUID LADDER TOGGLE */

.ll-toggle {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px auto 18px;
}

.ll-tab {
    background: #4d6635;
    color: #f8f3e7;
    border: 1px solid #314321;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s ease;
}

.ll-tab:hover {
    background: #5f7c42;
    transform: translateY(-1px);
}

.ll-tab.active {
    background: #c9b27a;
    color: #2b2418;
    border-color: #9d8858;
}

.ll-panel {
    display: none;
    margin: 0 auto 18px;
}

.ll-panel.active {
    display: block;
}

/* SONG GRID */

.songGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 980px;
    margin: 12px auto 20px;
}

.songCard {
    background: #e2d3bb; /* slightly darker, still warm */
    border: 1px solid #c7b693;
    border-radius: 12px;
    padding: 14px 14px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease;
}

.songCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.songTitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(#d7ad57, #b7862e);
    color: #fff8ea;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.songTitle:hover {
    background: linear-gradient(#ddb764, #be8d34);
    color: #fffdf7;
}

.songPlay {
    font-size: 0.9rem;
    line-height: 1;
}

.songTitleText {
    display: inline-block;
}

.songMeta {
    background: #e9dfcf;
    color: #6a5b45;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
}

.songCard audio {
    width: 100%;
    height: 32px;
}

/* LEGACY SONG BLOCKS */

.songDiv {
    float: left;
    width: 210px;
    margin: 10px;
    padding: 12px;
    background: #fffaf2;
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.song_title {
    font-size: 18pt;
    color: #6a4d29;
}

.songNotes {
    font-size: 8pt;
    color: #9b7a3a;
}

.smallPrint {
    font-size: 0.85rem;
}

/* VIDEO */

video {
    clear: both;
    display: block;
    margin: 20px auto;
    max-width: 100%;
}

/* FOOTER */

footer {
    clear: both;
    text-align: center;
    padding: 18px 0 6px;
    color: #f2e5c7;
}

/* TABLET */

@media (max-width: 980px) {
    #navL,
    #navR {
        width: 170px;
    }

    #navL {
        margin-right: 14px;
    }

    #navR {
        margin-left: 14px;
    }

    .navBtnProjects {
        font-size: 0.94rem;
        padding: 18px 12px;
    }

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

    .carousel-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* PHONE / IPHONE */

@media (max-width: 760px) {
    html {
        padding: 0;
        background: #1f5f1f;
    }

    body,
    .container,
    .content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .container {
        display: flex;
        flex-direction: column;
        padding: 0 10px 20px;
    }

    header {
        order: 1;
        min-height: 96px;
        margin: 0 0 14px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    header h1 {
        text-align: center;
        font-size: 1.45rem;
        letter-spacing: 1px;
        padding: 26px 12px;
    }

    .content {
        order: 2;
        width: 100%;
        min-height: 0;
        padding: 20px 12px 24px;
        margin-bottom: 18px;
        overflow: visible;
    }

    #navL,
    #navR {
        float: none;
        width: 100%;
        margin: 0 auto 14px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    #navL {
        order: 3;
    }

    #navR {
        order: 4;
    }

    footer {
        order: 5;
    }

    #navL .likeGreen,
    #navR .likeGreen,
    .email-link,
    .navSmallNote {
        grid-column: 1 / -1;
        text-align: center;
    }

    #navL .likeGreen,
    #navR .likeGreen {
        padding-left: 0;
        margin-bottom: 4px;
    }

    #navL a,
    #navR a {
        width: 100%;
    }
.contact-note {
    color: #ffd27a;
    font-style: italic;
    opacity: 0.9;
}

    .navBtnProjects {
        margin: 0;
        padding: 14px 10px;
        border-radius: 18px;
        font-size: 0.95rem;
        min-height: 76px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .email-link {
        margin: 10px 0 4px;
        padding-top: 8px;
        font-size: 1.1rem;
    }

    .navSmallNote {
        font-size: 0.95rem;
    }

    .greenHeaders {
        font-size: 1.15rem;
    }

    /* Carousel overflow fix */
    .carousel-center,
    .carousel-shell,
    .carousel-wrap,
    .modern-carousel,
    .carousel-viewport {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-inner {
        min-height: 150px;
    }

    .modern-carousel {
        padding: 0 12px;
    }

    .carousel-track {
        gap: 0;
    }

    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel-slide img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }

    #Carousel {
        width: 100% !important;
        max-width: 320px;
        height: 170px;
        overflow: hidden;
    }

    #Carousel img {
        max-width: 100%;
        height: auto;
    }

    /* MP3/song cards: 2 per row on iPhone */
    .songGrid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
        margin: 16px auto 22px;
        padding: 0;
    }

    .songCard {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    .songTitle {
        width: 100%;
        max-width: 100%;
        margin: 0 0 10px;
        padding: 10px 8px;
        font-size: 0.88rem;
        line-height: 1.2;
        min-height: 52px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .songMeta {
        width: 100%;
        min-height: 0;
        padding: 8px;
        font-size: 0.78rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .songDiv {
        float: none;
        width: 100%;
        margin: 12px 0;
    }

    audio {
        width: 100%;
        max-width: 100%;
    }

    .ll-toggle {
        gap: 8px;
        margin: 10px auto 16px;
    }

    .ll-tab {
        font-size: 14px;
        padding: 9px 12px;
    }
}

/* Larger phones / landscape: 3 MP3 cards per row */

@media (min-width: 430px) and (max-width: 760px) {
    .songGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}