/* Utah Bernese Mountain Dogs — modern boutique-breeder design. */

:root {
    --ink: #1c2430;
    --ink-soft: #4a5568;
    --brand-deep: #2f4f7c;
    --brand: #7c93c4;
    --brand-tint: #eef1f8;
    --accent: #c98a4b;
    --teal: #2f8fa3;
    --surface: #fbfaf7;
}

body {
    color: var(--ink);
    background: var(--surface);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
}

h1, h2, h3, h4, .bernese-page-title, .bernese-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

a { color: var(--brand-deep); }
a:hover { color: var(--teal); }

/* ---- Header photo banner ---- */
.bernese-banner {
    position: relative;
    height: 260px;
    overflow: hidden;
}
.bernese-banner-strip {
    display: flex;
    height: 100%;
    width: 100%;
    filter: saturate(1.05);
}
.bernese-banner-strip img {
    flex: 1 1 0;
    height: 100%;
    width: 0;
    object-fit: cover;
    object-position: center 25%;
}
.bernese-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 25, 45, .55) 0%, rgba(15, 25, 45, .78) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.bernese-banner-title {
    font-family: 'Fraunces', Georgia, serif;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.bernese-banner-subtitle {
    color: rgba(255, 255, 255, .92);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: .35rem;
}
@media (max-width: 767.98px) {
    .bernese-banner { height: 170px; }
    .bernese-banner-title { font-size: 2rem; letter-spacing: .05em; }
    .bernese-banner-subtitle { font-size: .75rem; }
}

/* ---- Nav bar ---- */
.bernese-nav {
    background: var(--brand-deep);
    box-shadow: 0 2px 10px rgba(15, 25, 45, .15);
}
.bernese-nav-list { display: flex; }
.bernese-nav-list .nav-item { flex: 1 1 0; }
.bernese-nav-list .nav-link {
    color: rgba(255, 255, 255, .88);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 1rem .5rem;
    border-right: 1px solid rgba(255, 255, 255, .12);
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.bernese-nav-list .nav-item:last-child .nav-link { border-right: 0; }
.bernese-nav-list .nav-link:hover,
.bernese-nav-list .nav-link:focus {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
@media (max-width: 991.98px) {
    .bernese-nav-list { flex-direction: column; }
    .bernese-nav-list .nav-link { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}

/* ---- Page title ---- */
.bernese-page-title {
    font-size: 2.4rem;
    text-align: center;
}
.bernese-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: .9rem auto 0;
    border-radius: 2px;
}

/* ---- Body content rhythm ---- */
.page-content h2, .bernese-section-title {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 1.75rem;
}
.page-content img { border-radius: .5rem; }
.page-content > .block-text,
.page-content > .block-columns,
.page-content > .block-team,
.page-content > .block-gallery,
.page-content > .block-testimonials,
.page-content > .block-accordion,
.page-content > .block-html,
.page-content > .block-contact,
.page-content > .block-image {
    margin-bottom: 3.5rem;
}
.block-text-content, .page-content p { color: var(--ink-soft); }

/* ---- Dog profile grid (team block) ---- */
.block-team h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--teal);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: .25rem;
}
.block-team p.text-muted { font-family: 'Inter', sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.block-team img.rounded-circle {
    width: 150px !important;
    height: 150px !important;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(15, 25, 45, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.block-team .col-sm-4:hover img.rounded-circle { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15, 25, 45, .28); }
@media (min-width: 576px) {
    .block-team .col-sm-4 { flex: 0 0 auto; width: 25%; }
}

.hero {
    background: linear-gradient(135deg, var(--brand-tint), #fff);
    border: 1px solid var(--brand-tint);
    border-radius: 1rem;
}

.widget-title { text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: #6c757d; }

/* ---- Gallery ---- */
.block-gallery img {
    box-shadow: 0 4px 16px rgba(15, 25, 45, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}
.block-gallery img:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(15, 25, 45, .2); }

/* ---- Testimonials ---- */
.block-testimonials blockquote.card {
    border: 0 !important;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 25, 45, .07);
    position: relative;
    padding-top: 2rem !important;
}
.block-testimonials blockquote.card::before {
    content: '\201C';
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.5rem;
    color: var(--brand);
    position: absolute;
    top: -.5rem;
    left: 1rem;
    line-height: 1;
    opacity: .5;
}
.block-testimonials footer { font-family: 'Inter', sans-serif; font-weight: 600; color: var(--teal); }

/* ---- Accordion ---- */
.block-accordion .accordion-item { border: 0; margin-bottom: .75rem; border-radius: .5rem; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 25, 45, .06); }
.block-accordion .accordion-button { font-weight: 600; font-family: 'Inter', sans-serif; }
.block-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-tint);
    color: var(--brand-deep);
    box-shadow: none;
}
.block-accordion .accordion-button:focus { box-shadow: none; border-color: var(--brand); }

/* ---- Buttons ---- */
.btn-brand {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: .65rem 1.6rem;
    border-radius: .5rem;
    letter-spacing: .02em;
}
.btn-brand:hover { background-color: #b3763b; border-color: #b3763b; color: #fff; }

/* ---- Puppy showcase card: photo on top, details below ---- */
.puppy-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 25, 45, .14);
}
.puppy-card-photo { width: 100%; height: 380px; position: relative; }
.puppy-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.puppy-card-body { padding: 2.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.puppy-card-body h3 { font-size: 2.1rem; color: var(--teal); margin-bottom: .5rem; }
.puppy-card-body p { font-size: 1.05rem; color: var(--ink-soft); max-width: 560px; }
@media (max-width: 767.98px) {
    .puppy-card-photo { height: 260px; }
}
.puppy-status {
    display: inline-block;
    align-self: center;
    background: #3fa34d;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.puppy-status.puppy-status-reserved { background: var(--accent); }
.puppy-status.puppy-status-sold { background: #999; }
@media (max-width: 767.98px) { .puppy-card-body { padding: 1.75rem; } }

/* ---- Profile card (parent-dog bios) ---- */
.profile-card {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 25, 45, .1);
    margin-bottom: 1.75rem;
}
.profile-card.reverse { flex-direction: row-reverse; }
.profile-card-photo { flex: 1 1 260px; min-height: 240px; }
.profile-card-photo img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }
.profile-card-body { flex: 2 1 320px; padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.profile-card-body h3 { font-size: 1.6rem; color: var(--teal); margin-bottom: .2rem; }
.profile-card-body p { color: var(--ink-soft); margin: 0; }
.profile-card-role {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .4rem;
}
@media (max-width: 767.98px) {
    .profile-card, .profile-card.reverse { flex-direction: column; }
    .profile-card-body { padding: 1.5rem 1.75rem; }
}

/* ---- Feature grid: icon-badge cards (replaces raw emoji) ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.feature-item {
    background: #fff;
    border-radius: .875rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(15, 25, 45, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 25, 45, .14); }
.feature-item .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto .9rem;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-size: 1.4rem;
}
.feature-item h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.feature-item p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---- Pull quote ---- */
.pull-quote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    color: var(--brand-deep);
    position: relative;
    padding: 1.5rem 3rem;
    margin: 2.5rem auto;
    max-width: 720px;
}
.pull-quote::before, .pull-quote::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto .75rem;
}
.pull-quote::after { margin: .75rem auto 0; }

/* ---- Stat bar ---- */
.stat-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    background: var(--brand-deep);
    border-radius: 1rem;
    padding: 2.25rem 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
}
.stat-bar .stat-number {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.stat-bar .stat-label {
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .75);
}

/* ---- CTA banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--brand-deep), #17304f);
    color: #fff;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2.5rem;
}
.cta-banner h3 { color: #fff; margin-bottom: .5rem; font-size: 1.6rem; }
.cta-banner p { color: rgba(255, 255, 255, .82); margin-bottom: 1.5rem; }

/* ---- Badge / seal ---- */
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--brand-tint);
    border-radius: 999px;
    padding: .6rem 1.4rem;
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-deep);
    box-shadow: 0 3px 12px rgba(15, 25, 45, .08);
    margin: .3rem;
}
.cert-badge .bi { color: var(--accent); }

/* ---- Video gallery + lightbox ---- */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .video-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-gallery { grid-template-columns: 1fr; } }

.video-card {
    display: block;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 0;
    border-radius: .9rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 25, 45, .08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
}
.video-card:hover, .video-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 25, 45, .16);
}
.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--ink) center / cover no-repeat;
}
.video-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 28, 0) 55%, rgba(10, 16, 28, .55));
}
.video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.video-card-play span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--brand-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 16px rgba(15, 25, 45, .3);
    transition: background .2s ease, transform .2s ease;
}
.video-card:hover .video-card-play span { background: var(--accent); color: #fff; transform: scale(1.08); }
.video-card-title {
    padding: .9rem 1.1rem 1.05rem;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}
.video-card-title small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: .76rem;
    color: var(--ink-soft);
    margin-top: .2rem;
}

/* ---- Review cards (testimonial + photo) ---- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
    background: #fff;
    border-radius: .9rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 25, 45, .08);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.review-card-photo { aspect-ratio: 4 / 3; background: var(--brand-tint); }
.review-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-card-body { padding: 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.review-card-quote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.06rem;
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 .9rem;
    flex: 1;
}
.review-card-quote::before { content: "\201C"; color: var(--accent); }
.review-card-quote::after { content: "\201D"; color: var(--accent); }
.review-card-by {
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand-deep);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---- Footer ---- */
.bernese-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .6);
    text-align: center;
    padding: 1rem 1rem;
    font-size: .8rem;
    font-family: 'Inter', sans-serif;
}
.bernese-footer a { color: rgba(255, 255, 255, .6); }
