/* Katie Boswell Consulting — brand overrides for Bootstrap 5.3
   Loaded after Bootstrap so these cascade over the defaults. */

:root {
    --cream: #f2efe9;
    --cream-warm: #ebe6dc;
    --charcoal: #1c1c20;
    --burgundy: #8b3a4a;
    --burgundy-dark: #72303d;
    --forest: #3d6b5e;
    --stone: #9a958d;

    --bs-primary: var(--burgundy);
    --bs-primary-rgb: 139, 58, 74;
    --bs-body-bg: var(--cream);
    --bs-body-color: var(--charcoal);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.6;
    --bs-link-color: var(--burgundy);
    --bs-link-color-rgb: 139, 58, 74;
    --bs-link-hover-color: var(--forest);
    --bs-link-hover-color-rgb: 61, 107, 94;
    --bs-border-color: rgba(154, 149, 141, 0.35);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: var(--cream);
    color: var(--charcoal);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 500;
    color: var(--charcoal);
    font-variation-settings: "SOFT" 50;
}

h1 {
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-variation-settings: "opsz" 75, "SOFT" 50;
}

.h1-indent {
    display: inline-block;
    padding-left: 1em;
}

h1 .pop {
    color: var(--forest);
    font-weight: 650;
}

h2 {
    letter-spacing: -0.015em;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--charcoal);
}

/* Section rhythm */
.section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section-alt {
    background-color: var(--cream-warm);
}

/* Navbar */
.navbar {
    background-color: rgba(242, 239, 233, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    padding-block: 0.9rem;
    border-bottom: 1px solid rgba(154, 149, 141, 0.18);
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--charcoal) !important;
    letter-spacing: -0.01em;
}

.navbar-logo {
    height: 2rem;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    display: block;
}

.navbar .nav-link {
    color: var(--charcoal);
    font-weight: 500;
    padding-inline: 1rem !important;
    position: relative;
    transition: color 0.15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--burgundy);
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.3rem;
    height: 1px;
    background-color: var(--burgundy);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
    transform: scaleX(1);
}

/* Pill buttons */
.btn {
    border-radius: 999px;
    padding: 0.7rem 1.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
    color: var(--cream);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    color: var(--cream);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(28, 28, 32, 0.25);
}

.btn-outline-dark {
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--cream);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(28, 28, 32, 0.25);
}

/* Images */
.img-rounded {
    border-radius: 8px;
}

.headshot {
    border-radius: 8px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

.hero-img {
    border-radius: 8px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

/* Service cards */
.service-card {
    background-color: var(--cream);
    border: 1px solid rgba(154, 149, 141, 0.28);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px rgba(28, 28, 32, 0.22);
}

.service-card .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.service-card .card-title {
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.service-card .card-blurb {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.service-card .card-detail {
    color: var(--charcoal);
    opacity: 0.88;
    font-size: 0.97rem;
}

.service-card .card-detail p {
    margin-bottom: 0.85rem;
}

.service-card .card-detail p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-email {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--burgundy);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-email:hover,
.contact-email:focus {
    color: var(--burgundy-dark);
    border-bottom-color: var(--burgundy);
}

/* Footer */
.site-footer {
    background-color: var(--charcoal);
    color: var(--cream);
    padding-block: 2.5rem;
}

.site-footer a {
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: rgba(242, 239, 233, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    text-decoration-color: var(--cream);
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--charcoal);
    color: var(--cream);
    padding: 0.5rem 1rem;
    z-index: 2000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline-offset: 4px;
}

@media (max-width: 767.98px) {
    .section {
        padding-block: 3.5rem;
    }

    .hero-img,
    .headshot {
        margin-bottom: 1.5rem;
    }
}
