@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --forest: #315c4d;
    --forest-dark: #1f4137;
    --sage: #789486;
    --sage-light: #dfe8e1;
    --cream: #f6f2e9;
    --paper: #fffdf8;
    --ink: #24312c;
    --muted: #66736d;
    --line: #d9ddd7;
    --gold: #b9965d;
    --bs-primary: var(--forest);
    --bs-primary-rgb: 49, 92, 77;
}

html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { color: var(--ink); background: var(--paper); font-family: 'DM Sans', sans-serif; line-height: 1.7; }
h1, h2, h3 { font-family: 'Libre Baskerville', serif; }
h1 { font-size: clamp(3rem, 7vw, 5.65rem); line-height: 1.03; letter-spacing: -.045em; }
h1 em { color: #e3d3b8; font-weight: 400; }
h2 { font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1.16; letter-spacing: -.035em; }
h3 { font-size: 1.3rem; }
a { color: var(--forest); }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 9999; padding: .75rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }
.site-header { background: rgba(255, 253, 248, .94); border-bottom: 1px solid rgba(36, 49, 44, .08); backdrop-filter: blur(14px); }
.brand-mark { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand-mark strong { display: block; font-family: 'Libre Baskerville', serif; font-size: 1.36rem; letter-spacing: -.03em; }
.brand-mark small { display: block; margin-top: .27rem; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.brand-emblem { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: #fff; background: var(--forest); border-radius: 50% 50% 50% 14%; transform: rotate(-8deg); }
.brand-emblem i { transform: rotate(8deg); }
.nav-link { color: var(--ink); font-size: .92rem; font-weight: 600; padding: .75rem .8rem !important; }
.nav-link:hover, .nav-link:focus { color: var(--forest); }
.btn { border-radius: 999px; font-weight: 700; padding: .78rem 1.4rem; }
.btn-lg { padding: 1rem 1.55rem; font-size: .96rem; }
.btn-primary { --bs-btn-bg: var(--forest); --bs-btn-border-color: var(--forest); --bs-btn-hover-bg: var(--forest-dark); --bs-btn-hover-border-color: var(--forest-dark); --bs-btn-active-bg: var(--forest-dark); }
.btn-outline-primary { --bs-btn-color: var(--forest); --bs-btn-border-color: var(--forest); --bs-btn-hover-bg: var(--forest); --bs-btn-hover-border-color: var(--forest); }
.min-vh-75 { min-height: 75vh; }
.hero { position: relative; overflow: hidden; color: #fff; background: var(--forest-dark); }
.hero-image { position: absolute; inset: 0; background: url('../images/hero-memorial.jpg') center/cover no-repeat; transform: scale(1.01); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 52, 44, .96) 0%, rgba(25, 52, 44, .86) 40%, rgba(25, 52, 44, .22) 72%, rgba(25, 52, 44, .05) 100%); }
.hero .container { z-index: 1; }
.eyebrow, .section-label { color: var(--forest); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #e5dbc8; }
.eyebrow span { display: inline-block; width: 2.5rem; height: 1px; margin: 0 .75rem .22rem 0; background: var(--gold); }
.hero-copy { max-width: 41rem; margin-top: 1.5rem; color: rgba(255,255,255,.86); font-size: 1.16rem; line-height: 1.75; }
.hero .btn-light { color: var(--forest-dark); background: rgba(255,255,255,.92); border-color: transparent; }
.hero-note { margin-top: 1.5rem; color: rgba(255,255,255,.7); font-size: .87rem; }
.trust-strip { position: relative; z-index: 2; margin-top: -1px; background: var(--paper); box-shadow: 0 16px 50px rgba(39, 58, 50, .08); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: .85rem; min-height: 104px; padding: 1.25rem 2rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { color: var(--forest); font-family: 'Libre Baskerville', serif; font-size: 1.8rem; }
.trust-item i { color: var(--gold); font-size: 1.35rem; }
.trust-item span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.section-space { padding: 7rem 0; }
.bg-warm { background: var(--cream); }
.section-label { margin-bottom: 1rem; }
.section-intro { color: var(--muted); font-size: 1.05rem; }
.service-card { display: flex; flex-direction: column; padding: 2rem; background: var(--paper); border: 1px solid rgba(49,92,77,.1); border-radius: 1.2rem; box-shadow: 0 12px 36px rgba(39,58,50,.05); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(39,58,50,.11); }
.service-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.5rem; color: var(--forest); background: var(--sage-light); border-radius: 50%; font-size: 1.15rem; }
.service-card p { flex-grow: 1; color: var(--muted); font-size: .93rem; }
.service-card a { text-decoration: none; font-size: .88rem; font-weight: 700; }
.service-card a i { margin-left: .35rem; transition: transform .2s ease; }
.service-card a:hover i { transform: translateX(4px); }
.work-section { background: var(--paper); }
.work-carousel { overflow: hidden; background: var(--forest-dark); border-radius: 1.35rem; box-shadow: 0 24px 65px rgba(31,65,55,.18); }
.work-carousel .carousel-item { background: var(--forest-dark); }
.work-carousel .carousel-item img { height: min(68vh, 620px); object-fit: contain; background: var(--forest-dark); }
.work-carousel .carousel-item::after { content: ''; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(12,28,23,.78)); pointer-events: none; }
.work-carousel .carousel-caption { z-index: 2; right: auto; bottom: 2.2rem; left: 3rem; max-width: 31rem; padding: 0; text-align: left; }
.work-carousel .carousel-caption span, .work-carousel .carousel-caption strong { display: block; }
.work-carousel .carousel-caption span { margin-bottom: .35rem; color: #e0cda9; font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.work-carousel .carousel-caption strong { color: #fff; font-family: 'Libre Baskerville', serif; font-size: 1.28rem; line-height: 1.45; }
.work-carousel .carousel-control-prev, .work-carousel .carousel-control-next { width: 9%; }
.work-carousel .carousel-control-prev-icon, .work-carousel .carousel-control-next-icon { width: 2.7rem; height: 2.7rem; padding: .75rem; background-color: rgba(23,46,39,.68); background-size: 42%; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.work-carousel .carousel-indicators { z-index: 3; justify-content: flex-end; margin-right: 3rem; margin-bottom: 2.2rem; margin-left: 55%; }
.work-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border: 0; border-radius: 50%; }
.gallery-heading { margin: 4.5rem 0 1.5rem; }
.gallery-count { color: var(--muted); font-size: .88rem; }
.work-card { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: var(--cream); border: 0; border-radius: .85rem; box-shadow: 0 8px 24px rgba(39,58,50,.07); cursor: zoom-in; }
.work-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.work-card > span { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; color: #fff; background: rgba(31,65,55,.8); border: 1px solid rgba(255,255,255,.42); border-radius: 50%; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.035); filter: brightness(.86); }
.work-card:hover > span, .work-card:focus-visible > span { opacity: 1; transform: translateY(0); }
.work-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-extra { display: none; }
.work-gallery.gallery-expanded .gallery-extra { display: block; }
.gallery-modal .modal-content { overflow: hidden; background: var(--paper); border: 0; border-radius: 1rem; }
.gallery-modal .modal-header, .gallery-modal .modal-footer { border-color: var(--line); }
.gallery-modal .modal-body { position: relative; display: grid; place-items: center; min-height: 60vh; padding: 0; background: #172e27; }
.gallery-modal .modal-body img { display: block; max-width: 100%; max-height: 76vh; object-fit: contain; }
.gallery-modal-nav { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; color: #fff; background: rgba(23,46,39,.78); border: 1px solid rgba(255,255,255,.42); border-radius: 50%; transform: translateY(-50%); }
.gallery-modal-prev { left: 1rem; }
.gallery-modal-next { right: 1rem; }
.gallery-modal-counter { color: var(--muted); font-size: .85rem; }
.process-list { list-style: none; padding: 0; margin: 0; }
.process-list li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.process-list li:first-child { padding-top: 0; }
.process-list li:last-child { border-bottom: 0; }
.process-list > li > span { color: var(--gold); font-family: 'Libre Baskerville', serif; font-size: 1rem; }
.process-list h3 { margin-bottom: .35rem; }
.process-list p { margin: 0; color: var(--muted); }
.legacy-section { padding: 7rem 0; color: #fff; background: var(--forest-dark); overflow: hidden; }
.legacy-panel { position: relative; display: grid; align-content: center; min-height: 390px; padding: 3.5rem; background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.14); border-radius: 1.5rem; }
.legacy-panel::before { content: ''; position: absolute; inset: 1rem; border: 1px solid rgba(185,150,93,.45); border-radius: 1rem; }
.legacy-year { position: relative; color: #e7d6b9; font-family: 'Libre Baskerville', serif; font-size: clamp(4.5rem, 11vw, 8rem); line-height: 1; letter-spacing: -.07em; }
.legacy-panel p { position: relative; margin: 1.25rem 0 0; font-family: 'Libre Baskerville', serif; font-size: 1.2rem; }
.section-label.light { color: #d9c39e; }
.legacy-section h2 { color: #fff; }
.legacy-section .col-lg-6 > p:not(.section-label) { color: rgba(255,255,255,.72); }
.contact-section { background: var(--paper); }
.contact-list { margin: 2rem 0; }
.contact-list a { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; color: var(--ink); text-decoration: none; }
.contact-list a > span { display: grid; place-items: center; flex: 0 0 2.8rem; height: 2.8rem; color: var(--forest); background: var(--sage-light); border-radius: 50%; }
.contact-list small, .contact-list strong { display: block; }
.contact-list small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-list strong { font-size: .96rem; }
.visit-note { color: var(--muted); font-size: .86rem; }
.map-card { overflow: hidden; background: var(--cream); border: 1px solid rgba(49,92,77,.1); border-radius: 1.3rem; box-shadow: 0 20px 55px rgba(39,58,50,.1); }
.map-card iframe { display: block; width: 100%; height: 440px; border: 0; }
.map-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.35rem 1.5rem; }
.map-card-footer small, .map-card-footer strong { display: block; }
.map-card-footer small { margin-bottom: .18rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.map-card-footer strong { font-size: .9rem; }
.map-card-footer .btn { flex: 0 0 auto; }
.site-footer { padding: 3rem 0; color: rgba(255,255,255,.72); background: #172e27; font-size: .84rem; }
.brand-mark-light, .site-footer a { color: #fff; }
.brand-mark-light small { color: rgba(255,255,255,.55); }

@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0; }
    .hero-shade { background: linear-gradient(90deg, rgba(25,52,44,.96) 0%, rgba(25,52,44,.83) 66%, rgba(25,52,44,.52) 100%); }
    .section-space, .legacy-section { padding: 5rem 0; }
}
@media (max-width: 767.98px) {
    .min-vh-75 { min-height: 690px; }
    .hero-image { background-position: 62% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(25,52,44,.96), rgba(25,52,44,.78)); }
    .trust-item { min-height: 80px; border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
    .work-carousel .carousel-item img { height: 390px; }
    .work-carousel .carousel-caption { right: 1.25rem; bottom: 2.6rem; left: 1.25rem; }
    .work-carousel .carousel-caption strong { font-size: 1rem; }
    .work-carousel .carousel-indicators { justify-content: center; margin-right: 15%; margin-bottom: .75rem; margin-left: 15%; }
    .work-card > span { opacity: 1; transform: none; }
    .gallery-modal .modal-body { min-height: 45vh; }
    .gallery-modal-nav { width: 2.55rem; height: 2.55rem; }
    .map-card iframe { height: 350px; }
    .map-card-footer { align-items: stretch; flex-direction: column; }
    .map-card-footer .btn { width: 100%; }
    .legacy-panel { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
