/* Carburetor Doctor Canada — Revision 06
   Adjust --logo-height, --navbar-height, and --hero-height independently.
   CSS is organized by component, with four-space indentation.
*/

:root {
    --turquoise: #47b7b6;
    --light-turquoise: #5cf7f6;
    --dark-turquoise: #122e2e;
    --red: #dc0209;
    --gold: #edd23d;
    --black: #161616;
    --cream: #f6f2e9;
    --paper: #fffdf8;
    --dusty-blue: #d8e5ea;
    --section-background: var(--dusty-blue);
    --header-black: #111315;
    --hero-black: #1b1e20;
    --logo-height: 90px;
    --navbar-height: 122px;
    --hero-height: 340px;
    --hero-image-height-tablet: 330px;
    --hero-image-height-mobile: 260px;
    --header-divider-height: 2px;
    --header-divider-background: var(--gold);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    letter-spacing: -2px;
}

h1 em,
h2 em {
    color: var(--turquoise);
    font-style: normal;
}

h2 {
    margin: 21px 0 0;
    font-size: clamp(40px, 4.5vw, 62px);
    font-weight: 900;
    line-height: 1.1;
}

.wrap {
    max-width: 1260px;
    margin: auto;
    padding: 0 34px;
}

/* Links within body copy */
main :is(p, li, dd, .prose) a:not(.btn):not(.text-link) {
    color: #087578;
}

main :is(p, li, dd, .prose) a:not(.btn):not(.text-link):hover,
main :is(p, li, dd, .prose) a:not(.btn):not(.text-link):focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-band :is(p, li, dd, small) a:not(.btn):not(.text-link) {
    color: var(--light-turquoise);
}

.contact-band :is(p, li, dd, small) a:not(.btn):not(.text-link):hover,
.contact-band :is(p, li, dd, small) a:not(.btn):not(.text-link):focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 10;
    background: var(--header-black);
    border-bottom: 0;
}

.site-navbar {
    min-height: var(--navbar-height);
    padding: 10px 0;
}

.site-navbar .brand {
    display: block;
    width: auto;
    margin-right: 24px;
    flex-shrink: 0;
}

.site-navbar .brand img {
    width: auto;
    height: var(--logo-height);
    max-width: none;
    object-fit: contain;
}

.site-navbar .navbar-nav {
    gap: 2px;
}

.site-navbar .nav-button {
    display: block;
    padding: 13px 15px;
    border-radius: 3px;
    color: #f2f0e9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}

.site-navbar .nav-button:hover,
.site-navbar .nav-button:focus-visible {
    background: var(--turquoise);
    color: var(--black);
    box-shadow: inset 0 -2px 0 var(--red);
    transform: translateY(-2px);
}

.site-navbar .nav-button:active {
    background: var(--red);
    color: #fff;
    transform: translateY(0);
}

.site-navbar .navbar-toggler {
    border-color: #9aadae;
    background: #f4f1e8;
}

.header-contact {
    display: inline-block;
    padding: 15px 19px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-contact span {
    margin-left: 13px;
    color: var(--gold);
}

/* Vintage print-texture divider between navigation and hero */
.site-header::after {
    display: block;
    height: var(--header-divider-height);
    background-color: var(--header-divider-background);
    background-image: url("../img/worn-dots.png");
    background-position: left top;
    background-repeat: repeat;
    content: "";
}

/* Shared controls */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--light-turquoise);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.eyebrow .rule {
    display: inline-block;
    width: 25px;
    height: 3px;
    background: var(--red);
}

.eyebrow.dark {
    color: #327b7a;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 19px 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-gold {
    background: var(--gold);
    color: var(--black);
}

.btn:hover {
    filter: brightness(1.1);
}

.text-link {
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.text-link:hover {
    color: var(--red);
}

.text-link span {
    margin-left: 10px;
}

.dark-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--dark-turquoise);
}

/* Compact hero and Bootstrap carousel */
.hero {
    overflow: hidden;
    background: var(--hero-black);
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    min-height: var(--hero-height);
    margin: 0.8em auto;
}

.hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 27px 32px 24px 0;
}

.hero .eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
}

.hero h1 {
    margin: 15px 0 12px;
    font-size: clamp(32px, 3.4vw, 49px);
    line-height: 1.07;
    letter-spacing: -1.3px;
    font-weight: 900;
}

.hero-copy > p {
    max-width: 530px;
    margin-bottom: 9px;
    color: #d6d9d9;
    font-size: 14px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.hero-actions .btn {
    padding: 12px 15px;
}

.hero .text-link {
    color: #f4f4f0;
}

.hero-image {
    position: relative;
    min-height: var(--hero-height);
    overflow: hidden;
    background: #d9d8d0;
}

.hero-image .carousel,
.hero-image .carousel-inner,
.hero-image .carousel-item {
    height: 100%;
}

.hero-image .carousel {
    position: absolute;
    inset: 0;
}

.hero-image .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image .carousel-control-prev,
.hero-image .carousel-control-next {
    width: 11%;
}

.hero-image .carousel-indicators {
    bottom: 32px;
    margin-bottom: 10px;
}

.image-label {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 11px 17px;
    background: rgba(22, 22, 22, .86);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    pointer-events: none;
}

.image-label span {
    color: var(--gold);
}

/* Specialties ticker */
.ticker {
    padding: 20px 0;
    background: var(--turquoise);
    color: var(--dark-turquoise);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-align: center;
}

.ticker b {
    margin: 0 18px;
    color: var(--red);
}

/* Restoration process */
.section {
    padding-top: 105px;
    padding-bottom: 105px;
}

.process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.process-right {
    padding-top: 14px;
}

.process-right p {
    color: #53534e;
    font-size: 15px;
    line-height: 1.8;
}

.process-right .lead {
    color: var(--black);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

/* Customer gallery */
.gallery-section {
    padding: 94px 0 90px;
    background: var(--section-background);
}

.section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 38px;
}

.section-top > p {
    width: 310px;
    max-width: 100%;
    margin-bottom: 6px;
    color: #66635b;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-card {
    margin: 0;
    background: var(--paper);
    box-shadow: 0 6px 22px rgba(18, 46, 46, .05);
}

.gallery-card img {
    width: 100%;
    height: 220px;
    padding: 10px;
    background: #f7f7f2;
    object-fit: contain;
}

.gallery-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 19px;
}

.gallery-card strong {
    font-size: 14px;
}

.gallery-card span,
.product-meta span {
    color: #76756f;
    font-size: 11px;
}

.gallery-note {
    margin: 20px 0 0;
    color: #77736a;
    font-size: 11px;
}

/* Available units */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    border: 1px solid #e6dfd2;
    background: var(--paper);
    box-shadow: 0 6px 22px rgba(18, 46, 46, .05);
}

.product-photo {
    height: 285px;
    background: #eceae3;
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
}

.product-meta div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-meta strong {
    font-size: 17px;
}

.product-meta > a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #bfcac4;
    color: var(--dark-turquoise);
    font-size: 20px;
}

/* Contact and footer */
.contact-band {
    padding: 85px 0;
    border-top: 7px solid var(--turquoise);
    background: var(--dark-turquoise);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.contact-grid h2 {
    margin-top: 25px;
}

.contact-grid p {
    max-width: 460px;
    color: #d0dedb;
    font-size: 17px;
    line-height: 1.8;
}

.contact-grid small {
    display: block;
    margin-top: 16px;
    color: #a4b7b2;
}

footer {
    margin-top: auto;
    padding: 27px 0;
    background: var(--black);
    color: #bbb;
    font-size: 11px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

footer a {
    color: var(--light-turquoise);
}

/* Responsive layout */
@media (max-width: 1100px) {
    .site-navbar .nav-button {
        padding: 11px 9px;
        font-size: 10px;
    }

    .hero h1 {
        font-size: clamp(30px, 3.4vw, 43px);
    }
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding: 12px 0 20px;
    }

    .site-navbar .nav-button {
        padding: 13px 15px;
    }

    .site-navbar .header-contact {
        margin-top: 12px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-copy {
        padding: 38px 0 35px;
    }

    .hero h1 {
        font-size: clamp(35px, 5vw, 49px);
    }

    .hero-image {
        height: var(--hero-image-height-tablet);
        min-height: 0;
    }
}

@media (max-width: 900px) {
    .process {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ticker {
        line-height: 2;
    }
}

@media (max-width: 620px) {
    .wrap {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 45px);
    }

    .hero-copy {
        padding: 30px 0;
    }

    .hero-image {
        height: var(--hero-image-height-mobile);
    }

    .image-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero-actions {
        gap: 14px;
    }

    .section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .process,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-top {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .gallery-grid {
        gap: 10px;
    }

    .gallery-card img {
        height: 145px;
    }

    .gallery-card figcaption {
        padding: 12px;
    }

    .gallery-card strong {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-navbar .nav-button {
        transition: none;
    }
}

/* Interior pages: shared banner and editorial layout */
.page-banner {
    background: var(--hero-black);
    color: #fff;
}

.page-banner-inner {
    padding-top: 58px;
    padding-bottom: 64px;
}

.page-banner h1 {
    max-width: 850px;
    margin: 16px 0 14px;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1.08;
}

.page-banner h1 em {
    color: var(--turquoise);
    font-style: normal;
}

.page-banner p {
    max-width: 680px;
    margin-bottom: 0;
    color: #d5dcdd;
    font-size: 16px;
    line-height: 1.65;
}

/* Shared restoration and available-unit gallery */
.archive-section {
    padding-top: 68px;
    padding-bottom: 90px;
}

.archive-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--dark-turquoise);
}

.archive-heading p {
    margin-bottom: 13px;
    font-size: 20px;
    font-weight: 800;
}

.archive-heading span,
.archive-disclaimer {
    color: #66665f;
    font-size: 12px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.archive-card {
    min-width: 0;
    background: var(--paper);
    border: 1px solid #dddcd4;
    box-shadow: 0 7px 22px rgba(22, 22, 22, .06);
}

.archive-card-image {
    aspect-ratio: 4 / 3;
    padding: 12px;
    background: var(--dusty-blue);
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.archive-card-body {
    display: flex;
    min-height: 137px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.archive-card-label {
    color: #60716e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.archive-card h2 {
    margin: 10px 0 15px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.25;
}

.archive-card-note,
.archive-card-action {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
}

.archive-card-action {
    color: #176d70;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.archive-card-action:hover {
    color: var(--red);
}

.archive-disclaimer {
    margin-top: 24px;
}

/* About, contact, legal and reusable article pages */
.editorial-section {
    padding-top: 80px;
    padding-bottom: 95px;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 80px;
}

.editorial-aside h2 {
    margin-top: 20px;
}

.prose {
    max-width: 740px;
    color: #40413d;
    font-size: 16px;
    line-height: 1.85;
}

.prose p {
    margin-bottom: 22px;
}

.prose .lead {
    color: var(--black);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.55;
}

.prose h2 {
    margin: 34px 0 12px;
    font-size: 26px;
    letter-spacing: -.5px;
}

.prose-narrow {
    max-width: 790px;
    margin: 0 auto;
}

.fine-print {
    color: #6c6c67;
    font-size: 13px;
}

.contact-detail {
    margin: 25px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--turquoise);
    background: var(--paper);
}

.contact-detail p {
    margin: 6px 0 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 55px;
    max-width: 1000px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #5c6969;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.post-figure {
    margin: 30px 0;
}

.post-figure img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: var(--dusty-blue);
}

.post-figure figcaption {
    margin-top: 8px;
    color: #696b66;
    font-size: 12px;
}

.prose blockquote {
    margin: 30px 0;
    padding: 12px 24px;
    border-left: 5px solid var(--red);
    font-size: 19px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 991.98px) {
    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editorial-grid {
        gap: 35px;
    }
}

@media (max-width: 620px) {
    .page-banner-inner {
        padding-top: 40px;
        padding-bottom: 45px;
    }

    .archive-section,
    .editorial-section {
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .archive-grid {
        gap: 12px;
    }

    .archive-card-body {
        min-height: 150px;
        padding: 13px;
    }

    .archive-card h2 {
        font-size: 16px;
    }

    .archive-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .editorial-grid,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .post-meta {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
