/*
    TEMPLATE04 - Cars & Coffee / Electrified Motors
    Look & feel adapted from the "Oranssi" reference design supplied for this build:
    royal blue + charcoal + white blocks, heavy tightly-tracked display type,
    monospace UI lettering, pill buttons.

    Written from scratch - no third-party CSS/JS, which also means this template
    needs no rows in 00_template_cdnjs the way template98 did.
*/

/* ---------------------------------------------------------------- tokens */
:root {
    --blue:        #2547a0;
    --blue-dark:   #1d3a85;
    --ink:         #212020;
    --ink-soft:    #2c2b2b;
    --paper:       #ffffff;
    --pill:        #bfbfbf;
    --pill-hover:  #d8d8d8;
    --line:        rgba(255, 255, 255, .22);
    --line-dark:   rgba(33, 32, 32, .16);

    --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono:    'Space Mono', 'Courier New', monospace;

    --gutter: clamp(20px, 5vw, 90px);
    --section-y: clamp(56px, 8vw, 132px);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .98;
    margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- shared */
.wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section { padding: var(--section-y) 0; }

.section--blue  { background: var(--blue); color: #fff; }
.section--ink   { background: var(--ink);  color: #fff; }
.section--paper { background: var(--paper); color: var(--ink); }

/* stacked two-line section heading, as in the reference design */
.section-title {
    font-size: clamp(38px, 5.4vw, 76px);
    margin-bottom: clamp(28px, 4vw, 54px);
}
.section-title span { display: block; }

/* pill button */
.btn {
    display: inline-block;
    background: var(--pill);
    color: #000;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 15px 26px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}
.btn:hover { background: var(--pill-hover); transform: translateY(-1px); }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 14px;
}

/* ------------------------------------------------------------ top banner */
/*
    Referral/promo strip above the header. Text + URL both come from the
    featured custom link in admin -> Profile -> Links, so the client can edit
    it without a deploy.
*/
.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--pill);
    color: #000;
    padding: 11px 20px;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    transition: background .2s ease;
}
.topbar:hover { background: var(--pill-hover); }
.topbar__arrow { transition: transform .2s ease; }
.topbar:hover .topbar__arrow { transform: translateX(4px); }

@media (max-width: 620px) {
    .topbar { font-size: 11px; letter-spacing: .1em; padding: 10px 14px; }
}

/* ---------------------------------------------------------------- header */
.site-header {
    background: var(--blue);
    color: #fff;
    position: relative;
    z-index: 40;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}
.brand {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(22px, 2.3vw, 30px);
    letter-spacing: -.04em;
    line-height: 1;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 34px);
}
.site-nav a.navlink {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .88;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: opacity .2s ease, border-color .2s ease;
}
.site-nav a.navlink:hover,
.site-nav a.navlink.is-current { opacity: 1; border-bottom-color: rgba(255,255,255,.7); }

.social { display: flex; align-items: center; gap: 14px; }
.social a { opacity: .85; transition: opacity .2s ease; display: block; }
.social a:hover { opacity: 1; }
.social svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 0;
}

/* ---------------------------------------------------------------- hero */
.hero { background: var(--blue); color: #fff; }
.hero__head {
    padding-top: clamp(24px, 4vw, 60px);
    padding-bottom: clamp(28px, 4.5vw, 64px);
}
.hero__title {
    font-size: clamp(46px, 9vw, 132px);
    text-align: right;
    text-transform: uppercase;
    line-height: .92;
}
.hero__sub {
    text-align: right;
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .8;
}

/* --------------------------------------------------------- slideshow */
.slideshow {
    position: relative;
    padding-bottom: clamp(40px, 6vw, 96px);
}
.slideshow__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, .18);
}
.slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    pointer-events: none;
}
.slideshow__slide.is-active { opacity: 1; pointer-events: auto; }
.slideshow__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slideshow__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 22px 26px;
    background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
    color: #fff;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    width: 100%;
}
.slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .78);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease;
    z-index: 3;
}
.slideshow__nav:hover { background: #fff; }
.slideshow__nav--prev { left: clamp(10px, 2vw, 28px); }
.slideshow__nav--next { right: clamp(10px, 2vw, 28px); }
.slideshow__nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.slideshow__dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}
.slideshow__dots button {
    width: 9px; height: 9px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.slideshow__dots button.is-active { background: #fff; transform: scale(1.25); }

/* single image, no slider needed */
.hero__still { padding-bottom: clamp(40px, 6vw, 96px); }
.hero__still img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------------------------------------------------------------- videos */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.6vw, 22px);
}
.vcard {
    background: #fff;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease;
}
.vcard:hover { transform: translateY(-4px); }
.vcard__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #ddd;
    overflow: hidden;
}
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.16);
    transition: background .25s ease;
}
.vcard:hover .vcard__play { background: rgba(0,0,0,.34); }
.vcard__play svg { width: 54px; height: 54px; }
.vcard__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.vcard__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}
.vcard__date {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .6;
    margin-top: auto;
}
.section-cta { margin-top: clamp(28px, 3.6vw, 46px); }

.empty-note {
    font-size: 13px;
    letter-spacing: .06em;
    opacity: .65;
    border: 1px dashed currentColor;
    padding: 26px;
}

/* ---------------------------------------------------------------- gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.8vw, 26px);
}
.gallery__item { display: block; cursor: zoom-in; }
.gallery__item figure { margin: 0; }
.gallery__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity .25s ease;
}
.gallery__item:hover img { opacity: .84; }
.gallery__item figcaption {
    margin-top: 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, .93);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox__close {
    position: absolute;
    top: 22px; right: 26px;
    background: none; border: 0;
    color: #fff;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
}
.lightbox__cap {
    position: absolute;
    bottom: 24px; left: 0; right: 0;
    text-align: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- about band */
.about-band { background: var(--blue); color: #fff; }
.about-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}
.about-band__photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.about-band__title {
    font-size: clamp(30px, 3.6vw, 52px);
    margin-bottom: 20px;
}
.about-band__bio { max-width: 62ch; }

/* ---------------------------------------------------------------- inner pages */
.page-head { background: var(--blue); color: #fff; padding: clamp(44px, 6vw, 96px) 0; }
.page-head__title {
    font-size: clamp(40px, 6.4vw, 92px);
    text-transform: uppercase;
}

.prose {
    max-width: 74ch;
    font-size: 15.5px;
    line-height: 1.85;
}
.prose h2 { font-size: 28px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 1.6em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}
.about-layout__photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* ---------------------------------------------------------------- contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(30px, 5vw, 78px);
    align-items: start;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line-dark);
}
.contact-list li:first-child { border-top: 1px solid var(--line-dark); }
.contact-list .label {
    display: block;
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .55;
    margin-bottom: 5px;
}
.contact-list .value {
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.02em;
    word-break: break-word;
}
.contact-list .value a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* shared sub_contact.php form, restyled to match this design */
#contact-form form { display: block; }
#contact-form .contact-field-holder { margin-bottom: 16px; }
#contact-form label {
    display: block;
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 6px;
}
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    font-family: var(--mono);
    font-size: 15px;
    color: var(--ink);
    background: #f4f4f4;
    border: 1px solid transparent;
    border-radius: 0;
    padding: 14px 16px;
    transition: border-color .2s ease, background .2s ease;
}
#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
}
#contact-form textarea { min-height: 170px; resize: vertical; }
#contact-form button,
#contact-form input[type="submit"],
#contact-form .button {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease;
}
#contact-form button:hover,
#contact-form input[type="submit"]:hover { background: var(--blue); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #fff; padding: clamp(46px, 6vw, 88px) 0 34px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: clamp(26px, 4vw, 60px);
    align-items: start;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.site-footer__title { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 18px; }
.site-footer dl { margin: 0; display: grid; gap: 14px; }
.site-footer dt {
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .55;
}
.site-footer dd { margin: 4px 0 0; font-size: 16px; }
.site-footer dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    letter-spacing: .1em;
    opacity: .65;
}
.site-footer__legal a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blue-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px var(--gutter) 26px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a.navlink { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
    .site-nav .social { padding-top: 18px; }
    .site-nav .btn { margin-top: 18px; }

    .hero__title { text-align: left; }
    .hero__sub   { text-align: left; }

    .about-band__inner,
    .about-layout,
    .contact-layout,
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); }

    .about-band__photo img,
    .about-layout__photo img { aspect-ratio: 4/3; }

    .slideshow__nav { width: 42px; height: 42px; }
}

@media (max-width: 620px) {
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .gallery   { grid-template-columns: repeat(2, 1fr); }
    .slideshow__frame { aspect-ratio: 4/3; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
