:root {
    --ink: #22302f;
    --muted: #687571;
    --paper: #fbf8f1;
    --cream: #fffefa;
    --sage: #77927f;
    --cedar: #9a5f55;
    --gold: #c99d52;
    --blush: #f4dfd4;
    --sky: #dbeaf0;
    --navy: #284458;
    --line: #e7ddd0;
    --shadow: 0 18px 48px rgba(58, 69, 63, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(219, 234, 240, 0.8), transparent 32rem),
        linear-gradient(180deg, var(--cream), var(--paper));
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 157, 82, 0.55);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 72px);
    background: rgba(255, 254, 250, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(34, 48, 47, 0.06);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-decoration: none;
    color: var(--navy);
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--cream);
    background: linear-gradient(135deg, var(--sage), var(--navy));
    border-radius: 14px;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
}

.nav a {
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
}

.nav a:hover {
    background: var(--sky);
}

.hero {
    min-height: 72vh;
    display: grid;
    align-items: end;
    padding: clamp(48px, 8vw, 110px) clamp(18px, 5vw, 72px);
    background:
        linear-gradient(90deg, rgba(40, 68, 88, 0.76), rgba(119, 146, 127, 0.3)),
        url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: var(--cream);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 12.5ch;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
}

h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.08;
    color: var(--navy);
}

h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 253, 248, 0.9);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    color: var(--cream);
    background: linear-gradient(135deg, var(--cedar), var(--gold));
    box-shadow: 0 12px 24px rgba(154, 95, 85, 0.22);
}

.secondary {
    color: var(--cream);
    border-color: rgba(255, 253, 248, 0.65);
    background: rgba(255, 254, 250, 0.08);
    backdrop-filter: blur(8px);
}

.notice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 18px clamp(18px, 5vw, 72px);
    color: var(--cream);
    background: linear-gradient(90deg, var(--sage), var(--navy));
    font-family: Arial, sans-serif;
}

.monthly-special {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 18px clamp(18px, 5vw, 72px);
    color: var(--ink);
    background: linear-gradient(90deg, #f9e4b7, var(--blush));
    border-bottom: 1px solid var(--line);
    font-family: Arial, sans-serif;
}

.slogan-section {
    padding: clamp(48px, 8vw, 90px) clamp(18px, 7vw, 110px);
    background:
        linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(244, 223, 212, 0.66)),
        var(--cream);
    text-align: center;
}

.slogan-section p {
    max-width: 980px;
    margin: 0 auto;
    color: var(--navy);
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.04;
}

.discount-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px clamp(18px, 5vw, 72px);
    color: var(--navy);
    background: linear-gradient(90deg, var(--sky), var(--blush));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: Arial, sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    text-align: center;
}

.section,
.split-section,
.contact-section {
    padding: clamp(58px, 8vw, 102px) clamp(18px, 5vw, 72px);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.split-section p,
.contact-section p {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 210px;
    padding: 28px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.flower-card:hover,
.obituary-card:hover,
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(58, 69, 63, 0.16);
}

.service-card:nth-child(3n + 1) {
    border-top: 5px solid var(--sage);
}

.service-card:nth-child(3n + 2) {
    border-top: 5px solid var(--gold);
}

.service-card:nth-child(3n) {
    border-top: 5px solid var(--blush);
}

.service-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.service-card h3,
.flower-card h3,
.obituary-card h3,
.price-row h3 {
    color: var(--navy);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    background:
        linear-gradient(135deg, rgba(244, 223, 212, 0.58), rgba(255, 254, 250, 0.95)),
        var(--cream);
}

.gift-list,
.partner-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gift-list article,
.partner-list article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(58, 69, 63, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.gift-list article:hover,
.partner-list article:hover,
.theme-list article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(58, 69, 63, 0.14);
}

.gift-section {
    background: linear-gradient(135deg, var(--sky), var(--paper));
}

.partner-list {
    max-width: 820px;
}

.call-section {
    background:
        linear-gradient(135deg, rgba(219, 234, 240, 0.75), rgba(255, 254, 250, 0.96)),
        var(--cream);
}

.theme-section {
    background: linear-gradient(135deg, var(--paper), var(--blush));
}

.obituary-section,
.flower-section,
.crematorium-section {
    background: var(--cream);
}

.flower-grid,
.obituary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.flower-card,
.obituary-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: var(--shadow);
}

.flower-card p,
.obituary-card p {
    color: var(--muted);
}

.obituary-dates {
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.theme-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.theme-list article {
    min-height: 104px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    color: var(--ink);
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 26px rgba(58, 69, 63, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.theme-list article:nth-child(2) {
    color: var(--cream);
    background: var(--ink);
}

.theme-list article:nth-child(3) {
    color: var(--cream);
    background: #6e4b82;
}

.theme-list article:nth-child(4) {
    color: var(--cream);
    background: #8f332c;
}

.theme-list article:nth-child(5) {
    color: var(--ink);
    background: linear-gradient(135deg, #ef5350, #ffca28, #66bb6a, #42a5f5, #ab47bc);
}

.shop-hero {
    padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
    color: var(--cream);
    background:
        linear-gradient(90deg, rgba(40, 68, 88, 0.82), rgba(154, 95, 85, 0.36)),
        url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.shop-hero .section-heading {
    margin-bottom: 0;
}

.shop-hero h1 {
    max-width: 12ch;
}

.shop-hero p:not(.eyebrow) {
    max-width: 680px;
    color: rgba(255, 253, 248, 0.9);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pricing-card {
    padding: 28px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.pricing-card h2 {
    margin-bottom: 22px;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.price-list {
    display: grid;
    gap: 14px;
}

.price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.price-row h3 {
    font-size: 1.05rem;
}

.price-row p {
    margin: 0;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
}

.price-row strong {
    color: var(--navy);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    text-align: right;
    white-space: nowrap;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    background:
        linear-gradient(135deg, rgba(119, 146, 127, 0.16), rgba(255, 254, 250, 0.95)),
        var(--cream);
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    box-shadow: var(--shadow);
    font-family: Arial, sans-serif;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px;
    color: var(--ink);
    background: var(--cream);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 157, 82, 0.14);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 26px clamp(18px, 5vw, 72px);
    color: var(--cream);
    background: linear-gradient(90deg, var(--navy), var(--ink));
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-grid,
    .gift-list,
    .partner-list,
    .pricing-grid,
    .theme-list,
    .flower-grid,
    .obituary-grid,
    .split-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: 10ch;
    }
}

@media (max-width: 520px) {
    .nav {
        gap: 10px;
        font-size: 0.86rem;
    }

    .hero {
        min-height: 72vh;
    }

    .button {
        width: 100%;
    }

    .price-row {
        grid-template-columns: 1fr;
    }

    .price-row strong {
        text-align: left;
    }
}
