/* KMR site theme, built on Bootstrap 5.3 */

:root {
    --kmr-primary: #35a49c;
    --kmr-accent: #79cdc0;
    --kmr-featured: #099;
    --kmr-footer: #077;
    --kmr-text: #777;
    --kmr-heading: #222;
    --bs-body-font-family: 'Lato', sans-serif;
    --bs-body-color: var(--kmr-text);
    --bs-body-bg: #f7f7f7;
    --bs-body-font-size: 16px;
    --bs-body-font-weight: 300;
    --bs-body-line-height: 1.6;
    --bs-heading-color: var(--kmr-heading);
    --bs-link-color-rgb: 53, 164, 156;
    --bs-link-hover-color-rgb: 121, 205, 192;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--kmr-heading);
    margin: 0 0 20px;
}

h2 { font-size: 32px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

a { text-decoration: none; }

.text-bold { font-weight: 900; }
.color-white { color: #fff; }
.bg-white { background-color: #fff; }
.mar-bot20 { margin-bottom: 20px; }
.mar-bot40 { margin-bottom: 40px; }

/* ---------- Navigation ---------- */

.site-nav {
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 80px;
    transition: background-color 0.3s, min-height 0.3s;
}

.site-nav.scrolled {
    background-color: #000;
    min-height: 60px;
}

.site-nav .nav-link {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
    color: var(--kmr-accent);
}

.site-nav .navbar-toggler {
    color: #fff;
    border: 0;
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .site-nav { background-color: #000; min-height: 60px; }
    .site-nav .navbar-collapse { text-align: center; padding-bottom: 1rem; }
}

/* ---------- Sections ---------- */

section.section {
    padding: 80px 0 60px;
}

section.featured {
    padding: 100px 0 20px;
    background: var(--kmr-featured);
    color: #fdfdfd;
}

section.featured .slogan {
    color: #fff;
    font-size: 48px;
    font-weight: 900;
}

.section-heading {
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

/* ---------- Quotes / parallax ---------- */

.parallax {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
}

@media (min-width: 1025px) and (hover: hover) {
    .parallax { background-attachment: fixed; }
}

#parallax1 { background-image: url(../img/table.jpg); }
#parallax2 { background-image: url(../img/sundial.jpg); }

.bigquote {
    font-family: Georgia, serif;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.parallax figcaption { color: #fff; }

/* ---------- Portfolio ---------- */

.portfolio-filter .btn {
    background-color: #eee;
    color: #555;
    border: 0;
    border-radius: 0;
    padding: 4px 12px;
    margin: 0 0 5px 5px;
    font-weight: 300;
}

.portfolio-filter .btn:hover,
.portfolio-filter .btn.active {
    background-color: #44bcdd;
    color: #fff;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.portfolio-desc {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: var(--kmr-primary);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.portfolio-item:hover .portfolio-desc,
.portfolio-item:focus-within .portfolio-desc {
    opacity: 1;
}

.portfolio-desc h3 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.portfolio-desc a,
.portfolio-desc button {
    color: #fff;
}

.portfolio-desc p {
    color: #fff;
    font-size: 12px;
    margin: 0;
}

.portfolio-desc button {
    background: none;
    border: 0;
    padding: 0;
}

.portfolio-grid > [hidden] { display: none; }

/* lightbox */
.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }

.lightbox img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox button {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: #fff;
    color: #222;
}

/* ---------- Contact ---------- */

.contact-links a { color: var(--kmr-primary); }
.contact-links a:hover { color: var(--kmr-accent); }

/* ---------- Footer & scroll-up ---------- */

.site-footer {
    background: var(--kmr-footer);
    padding: 40px 0 30px;
}

.scrollup {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 1030;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 18px;
    color: #fff;
    background: var(--kmr-primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scrollup.visible { opacity: 0.5; pointer-events: auto; }
.scrollup:hover { opacity: 1; color: #fff; }

/* ---------- Gift list labels ---------- */

.label-Vinyl { background-color: #ccc; }
.label-CD { background-color: #6cc; }
.label-Book { background-color: #6c6; }
.label-Card { background-color: #66c; }
.label-Drink { background-color: #c66; }
.label-Kitchen { background-color: #c6c; }
.label-Clothing { background-color: #cc6; }
.label-Stationary { background-color: #3c9; }
.label-Tech { background-color: #0ff; }

/* ---------- 404 ---------- */

body.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background-color: var(--kmr-featured);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
}

.not-found h1 { color: #fff; }
.not-found .code { font-size: 6em; padding: 0.5em; }

.not-found a {
    display: inline-block;
    border: 2px solid #fff;
    padding: 0.5em 1em;
    color: #fff;
}

.not-found a:hover { border-color: #000; color: #000; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .parallax { background-attachment: scroll; }
}
