/* ============================================================
   Pompes Funèbres Baldini Leclaire — sober funeral theme
   Palette: warm cream + deep slate + muted olive accent
   ============================================================ */

:root {
  --cream-50: #fbf8f2;
  --cream-100: #f5efe4;
  --cream-200: #ece3d2;
  --cream-300: #ddd0b9;
  --ink-900: #1c2229;
  --ink-700: #2f3742;
  --ink-500: #5b6470;
  --ink-300: #8a93a0;
  --line: #e2dccd;
  --accent: #7d8866;
  --accent-dark: #5d6a4a;
  --accent-soft: #e8ecd9;
  --gold: #ac8f4a;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-soft: 0 1px 2px rgba(28, 34, 41, 0.04), 0 8px 24px rgba(28, 34, 41, 0.06);
  --shadow-lift: 0 1px 2px rgba(28, 34, 41, 0.05), 0 18px 48px rgba(28, 34, 41, 0.10);

  --font-serif: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.4rem); font-weight: 500; }
h1 em { font-style: italic; color: var(--accent-dark); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 1.5vw + 1rem, 2.05rem); margin-top: 1.4em; }
h3 { font-size: 1.25rem; margin-top: 1.2em; color: var(--ink-700); }
p { margin: 0 0 1em; }
.eyebrow, .hero-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 .8em;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--ink-900); color: var(--cream-50);
  padding: 8px 14px; border-radius: 4px;
  z-index: 100;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--gold); }

/* ============ Header ============ */
.site-header {
  background: var(--cream-50);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(251, 248, 242, 0.92);
}
.topbar {
  background: var(--ink-900);
  color: var(--cream-100);
  font-size: .82rem;
  padding: 8px 0;
}
.topbar a { color: var(--cream-50); }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar-inner { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.topbar-secondary { color: var(--cream-200); opacity: 0.85; }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-900); }
.brand:hover { text-decoration: none; color: var(--ink-900); }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; color: var(--ink-900); }
.brand-name b { font-weight: 600; }
.brand-tag { font-size: .72rem; color: var(--ink-500); letter-spacing: 0.04em; }

.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 2px;
  flex-wrap: nowrap;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 10px;
  color: var(--ink-700);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  transition: all .18s ease;
}
.primary-nav a:hover { color: var(--ink-900); background: var(--accent-soft); text-decoration: none; }
.primary-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 42px; height: 42px;
  padding: 10px 8px;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--ink-700);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--ink-900); color: var(--cream-50); }
.btn-primary:hover { background: var(--accent-dark); color: var(--cream-50); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn-outline:hover { background: var(--ink-900); color: var(--cream-50); text-decoration: none; }
.btn-light {
  background: var(--cream-50); color: var(--ink-900);
}
.btn-light:hover { background: var(--gold); color: var(--cream-50); text-decoration: none; }
.btn-large { padding: 16px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; margin-bottom: 10px; }

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.breadcrumb ol {
  list-style: none; padding: 12px 0; margin: 0;
  display: flex; gap: 6px; flex-wrap: wrap;
  color: var(--ink-500);
}
.breadcrumb li + li::before {
  content: '›'; margin-right: 6px; color: var(--ink-300);
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); }

/* ============ Hero ============ */
.hero {
  position: relative;
  color: var(--cream-50);
  background:
    linear-gradient(180deg, rgba(28,34,41,0.62) 0%, rgba(28,34,41,0.78) 100%),
    var(--hero-img) center/cover no-repeat,
    var(--ink-900);
  padding: 80px 0 90px;
}
.hero h1 { color: var(--cream-50); }
.hero h1 em { color: var(--cream-200); }
.hero-eyebrow { color: var(--cream-200); }
.hero-lead {
  font-size: 1.1rem;
  color: var(--cream-100);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 8px;
}
.hero-cta .btn-outline { color: var(--cream-50); border-color: var(--cream-200); }
.hero-cta .btn-outline:hover { background: var(--cream-50); color: var(--ink-900); }
.hero-permanence {
  margin-top: 22px;
  font-size: .9rem;
  color: var(--cream-200);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-permanence strong { color: var(--gold); font-weight: 600; letter-spacing: .03em; }

.hero-home { padding: 96px 0 100px; }
.hero-home h1 { font-size: clamp(2.4rem, 4vw + 1rem, 4rem); margin-bottom: .35em; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero-card {
  background: rgba(251, 248, 242, 0.95);
  color: var(--ink-700);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lift);
  border-top: 4px solid var(--accent);
}
.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: var(--ink-900);
}
.hero-card-address {
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 18px;
}
.hero-card-hours { margin: 0 0 16px; }
.hero-card-hours dt {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-dark);
  margin-top: 10px;
}
.hero-card-hours dd { margin: 4px 0 0; font-size: .9rem; }
.hero-card-link { font-size: .9rem; font-weight: 600; color: var(--accent-dark); }

.hero-page { padding: 64px 0 72px; }
.hero-page h1 { max-width: 22ch; }

/* ============ Section base ============ */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); margin: .2em 0 .4em; }
.section-head .lede { font-size: 1.08rem; color: var(--ink-500); }

/* ============ Services grid ============ */
.section-services { background: var(--cream-100); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  color: var(--ink-700);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--ink-700);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--ink-900);
}
.card p { font-size: .95rem; flex: 1; }
.card-link {
  margin-top: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: .9rem;
}
.card:hover .card-link { color: var(--ink-900); }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  object-fit: cover;
  width: 100%; height: 100%;
  max-height: 560px;
}
.about-text h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); }
.bullets { padding-left: 0; list-style: none; margin: 18px 0 24px; }
.bullets li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
}
.bullets li:last-child { border-bottom: none; }
.bullets li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 14px; height: 2px;
  background: var(--accent);
}

/* ============ Promise / quote band ============ */
.section-promise {
  background: var(--ink-900);
  color: var(--cream-100);
  padding: 72px 0;
}
.promise-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.promise-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem);
  color: var(--cream-50);
  line-height: 1.5;
  margin: 0 0 32px;
}
.promise-cta .btn-primary {
  background: var(--cream-50); color: var(--ink-900);
}
.promise-cta .btn-primary:hover { background: var(--gold); color: var(--ink-900); }

/* ============ Prose pages ============ */
.section-prose { padding: 72px 0 96px; background: var(--cream-50); }
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: flex-start;
}
.prose {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink-700);
}
.prose h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: .35em;
  margin-top: 2em;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { color: var(--ink-900); font-style: italic; }
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 1em 0;
}
.prose ul li, .prose ol li {
  margin: .4em 0;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 26px;
  border-left: 4px solid var(--accent);
  background: var(--cream-100);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink-900);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose-aside { position: sticky; top: 100px; }
.aside-card {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin-bottom: 18px;
}
.aside-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--ink-900);
}
.aside-card h3 {
  margin: 14px 0 4px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-dark);
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: normal;
}
.aside-card p { font-size: .92rem; margin: 0 0 12px; }
.aside-card-muted { background: var(--cream-50); }

/* ============ Contact page ============ */
.section-contact { padding: 60px 0 96px; background: var(--cream-50); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: flex-start;
}
.contact-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-card {
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.contact-card h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}
.contact-card p { font-size: .93rem; margin: 0 0 8px; }
.contact-card .contact-big {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 0 0 8px;
}
.contact-card .contact-big a { color: var(--ink-900); }
.contact-card.contact-card-quote {
  grid-column: 1 / -1;
  background: var(--ink-900);
  color: var(--cream-100);
  border-color: var(--ink-900);
  padding: 28px 26px;
}
.contact-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  margin: 0;
  color: var(--cream-50);
}

.contact-form {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
}
.contact-form h2 { margin: 0 0 6px; font-size: 1.5rem; }
.form-intro { color: var(--ink-500); margin: 0 0 22px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-700);
}
.form-row .req { color: var(--gold); }
.form-row input,
.form-row textarea {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  background: var(--cream-50);
  font: inherit; color: var(--ink-900);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-consent label {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: .88rem; line-height: 1.5;
}
.form-consent input { width: auto; margin-top: 4px; }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--ink-500); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-200);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-col h2.footer-title {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.brand-footer { color: var(--cream-50); }
.brand-footer .brand-name { color: var(--cream-50); }
.brand-footer .brand-mark {
  background: rgba(251, 248, 242, 0.08);
  color: var(--cream-100);
}
.footer-tag {
  font-size: .9rem;
  color: var(--cream-200);
  opacity: 0.78;
  margin-top: 18px;
  max-width: 28ch;
}
.footer-address { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.footer-address span { color: var(--cream-100); }
.footer-phone {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--cream-50);
  font-weight: 500;
  margin-top: 4px;
}
.footer-phone:hover { color: var(--gold); text-decoration: none; }
.footer-meta {
  font-size: .82rem;
  margin-top: 14px;
  color: var(--cream-200);
  opacity: 0.85;
}
.footer-meta strong { color: var(--gold); font-weight: 600; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin: 0 0 8px; }
.footer-nav a { color: var(--cream-100); font-size: .9rem; }
.footer-nav a:hover { color: var(--gold); text-decoration: none; }
.footer-permanence p { font-size: .9rem; margin: 0 0 16px; color: var(--cream-200); opacity: 0.85; }
.footer-bar {
  border-top: 1px solid rgba(251, 248, 242, 0.08);
  padding: 18px 0;
  font-size: .82rem;
  color: var(--cream-200);
  opacity: 0.7;
}
.footer-bar-inner {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-bar a { color: var(--cream-200); }
.footer-bar a:hover { color: var(--gold); text-decoration: none; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-image { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-grid { grid-template-columns: 1fr; gap: 36px; }
  .prose-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .header-inner { padding: 16px 24px; flex-wrap: wrap; gap: 14px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .nav-toggle { display: flex; }
  .primary-nav {
    flex-basis: 100%;
    display: none;
    margin-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { display: block; padding: 12px 12px; }

  .topbar-secondary { display: none; }
  .topbar-inner { justify-content: center; }

  .section { padding: 60px 0; }
  .hero { padding: 60px 0 72px; }
  .hero-home { padding: 72px 0 80px; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bar-inner { justify-content: center; text-align: center; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-cta, .breadcrumb { display: none; }
  body { background: white; color: black; }
  .hero { background: white !important; color: black; padding: 20px 0; }
  .hero h1, .hero-eyebrow, .hero-lead { color: black; }
}
