/* Jennings Funeral Directors, Raheny. One stylesheet for every page. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/lora-latin.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ebgaramond-latin.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lato-latin.woff2") format("woff2"); }

:root {
  --mint: #cbe7e3;        /* the dove in the logo */
  --mint-soft: #e6f2ef;
  --sage: #5f8c82;        /* deeper mint for buttons and links (readable on white) */
  --sage-dark: #4a7168;
  --blush: #f6e6df;
  --powder: #e3ecf4;
  --cream: #faf6f0;
  --text: #3d3936;        /* warm charcoal, like the logo lettering */
  --muted: #716b66;
  --line: #e8e1d8;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; color: var(--text); }
h1 { font-size: clamp(38px, 5.6vw, 58px); }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 24px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 600; color: var(--sage); margin-bottom: 10px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--sage); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--sage-dark); }
.btn.soft { background: #fff; color: var(--sage-dark); box-shadow: inset 0 0 0 2px var(--mint); }
.btn.soft:hover { background: var(--mint-soft); }

/* Top bar and header */
.topbar { background: var(--mint-soft); font-size: 14px; color: var(--text); font-weight: 500; }
.topbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--text); font-weight: 600; text-decoration: none; }
.topbar .m { display: none; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; gap: 22px; min-height: 92px; position: relative; }
header.site .logo { text-decoration: none; }
/* The logo: vector dove plus real text. Everything is sized in em, so set font-size to resize it. */
.lockup { display: inline-flex; flex-direction: column; align-items: center; color: #5e5a57; font-size: 27px; }
.lockup .dove { width: 1.14em; height: auto; margin-bottom: .07em; }
.lockup .name { font-family: "EB Garamond", Georgia, serif; font-size: 1em; line-height: .95; letter-spacing: .07em; padding-left: .07em; }
.lockup .name .j { font-size: 1.22em; }
.lockup .sub { font-family: Lato, sans-serif; font-size: .345em; letter-spacing: .2em; padding-left: .2em; margin-top: .05em; color: #7a7571; white-space: nowrap; }
nav.main { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.main a { padding: 8px 11px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 15.5px; font-weight: 500; }
nav.main a:hover { color: var(--sage-dark); }
nav.main a[aria-current] { color: var(--sage-dark); box-shadow: inset 0 -2px 0 var(--mint); border-radius: 0; }
header.site .btn { padding: 11px 20px; font-size: 15px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: 22px; cursor: pointer; }

/* Home: hero with the Raheny sketch */
.hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sketch { background: #fff; border-radius: 22px; padding: 14px; box-shadow: 0 18px 40px rgba(61,57,54,.10); border: 1px solid var(--line); }
.sketch img { border-radius: 14px; }
.badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 10px 16px 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.badge img { width: 44px; }
.badge strong { color: var(--text); }

/* Three pastel reassurance cards */
.pillars { padding: 64px 0; }
.pillars .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-radius: 18px; padding: 28px; }
.pillar:nth-child(1) { background: var(--mint-soft); }
.pillar:nth-child(2) { background: var(--blush); }
.pillar:nth-child(3) { background: var(--powder); }
.pillar .big { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); }

/* How we can help */
.help { background: var(--cream); padding: 70px 0; }
.help .head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.help .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--text); display: block; }
.tile:hover { border-color: var(--mint); box-shadow: 0 8px 22px rgba(61,57,54,.07); }
.tile .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--mint-soft); display: grid; place-items: center; color: var(--sage); font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.tile h3 { font-size: 22px; margin-bottom: 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tile .more { display: inline-block; margin-top: 12px; color: var(--sage-dark); font-weight: 600; font-size: 15px; }

/* Areas we serve, quote, other homes */
.areas { padding: 72px 0 56px; }
.areas .head { text-align: center; max-width: 660px; margin: 0 auto 26px; }
.areas .head p { color: var(--muted); margin: 0; }
.places { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.places li { padding: 8px 18px; border-radius: 999px; background: var(--powder); font-weight: 500; }
.places li:nth-child(3n+2) { background: var(--blush); }
.places li:nth-child(3n) { background: var(--mint-soft); }
.places li.home-area { background: var(--sage); color: #fff; }
.quote { background: var(--blush); padding: 60px 0; text-align: center; }
.quote blockquote { margin: 0 auto 18px; max-width: 760px; }
.quote blockquote p { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 34px); font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
.quote cite { font-style: normal; color: var(--muted); }
.qmark-line { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 600px; margin: 8px auto 0; color: var(--muted); font-size: 15.5px; text-align: left; }
.qmark-line img { width: 64px; flex: none; }
.qmark-line p { margin: 0; }
.other { padding: 22px 0; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.other p { margin: 0; }

/* Our funeral homes, with the drawings */
.homes { padding: 72px 0; }
.homes .head { text-align: center; margin-bottom: 34px; }
.homes .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.home img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.home .body { padding: 20px 22px 24px; }
.home h3 { margin-bottom: 2px; }
.home p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.home .tel { font-weight: 600; text-decoration: none; color: var(--sage-dark); font-size: 18px; }

/* Inner pages */
.page-head { background: linear-gradient(180deg, var(--cream), #fff); padding: 50px 0 34px; }
.page-head h1 { margin-bottom: .25em; }
.page-head p { font-size: 19px; color: var(--muted); max-width: 40em; margin: 0; }
.section { padding: 26px 0 64px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.prose { max-width: 44em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 1.3em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.panel h3 { font-size: 22px; }
.panel p:last-child { margin-bottom: 0; }
.panel.mint { background: var(--mint-soft); border-color: transparent; }
.panel.blush { background: var(--blush); border-color: transparent; }
.side { display: grid; gap: 18px; }
.review { border-left: 3px solid var(--mint); padding: 4px 0 4px 20px; margin: 1.6em 0; }
.review p { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.45; margin: 0 0 8px; }
.review cite { font-style: normal; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 12px; }
.cards .panel h3 { margin-bottom: 6px; }
.cards .panel p { color: var(--muted); font-size: 16px; }
.big-tel { font-family: var(--serif); font-weight: 600; font-size: 30px; text-decoration: none; color: var(--sage-dark); display: inline-block; margin: 2px 0 4px; }
.map { width: 100%; height: 380px; border: 0; border-radius: 18px; margin-top: 26px; background: var(--cream); }

/* Coffins */
.coffins { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.coffin { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px; text-align: center; cursor: zoom-in; font: inherit; color: inherit; }
.coffin:hover { border-color: var(--mint); box-shadow: 0 8px 22px rgba(61,57,54,.07); }
.coffin img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.coffin span { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 19px; }
dialog.zoom { border: 0; border-radius: 18px; padding: 18px 18px 14px; max-width: min(960px, 94vw); }
dialog.zoom::backdrop { background: rgba(40,37,35,.6); }
dialog.zoom img { width: 100%; }
dialog.zoom .bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; }
dialog.zoom .bar strong { font-family: var(--serif); font-size: 22px; }
dialog.zoom button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 9px 18px; background: var(--mint-soft); color: var(--sage-dark); cursor: pointer; }

/* Call band and footer */
.cta { background: var(--mint); text-align: center; padding: 60px 0; }
.cta p { color: #2f4e48; font-size: 18px; margin: 0 0 22px; }
.cta .btn { background: #fff; color: var(--sage-dark); }
footer.site { background: #3d3936; color: #d9d3cc; padding: 46px 0 26px; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; }
footer.site h4 { color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; }
footer.site a { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 16px; font-size: 13px; color: #b5aea7; }
footer.site .lockup { font-size: 24px; color: #fff; margin-bottom: 14px; }
footer.site .lockup .sub { color: #d9d3cc; }
footer.site .foot-qmark { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; max-width: 260px; }
footer.site .foot-qmark img { width: 46px; flex: none; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 16px; margin: 0; }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px 12px; }
  nav.main a[aria-current] { box-shadow: none; background: var(--mint-soft); border-radius: 8px; }
}
@media (max-width: 920px) {
  .hero .wrap, .pillars .grid, .homes .grid, .split { grid-template-columns: 1fr; }
  .help .grid { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  header.site .lockup { font-size: 23px; }
}
@media (max-width: 520px) {
  .help .grid, footer.site .cols { grid-template-columns: 1fr; }
  header.site .btn { padding: 10px 14px; font-size: 14px; }
  .topbar .where { display: none; }
  .topbar .m { display: inline; }
  .topbar .wrap { justify-content: center; }
  .coffins { grid-template-columns: 1fr 1fr; gap: 10px; }
  .coffin span { font-size: 16px; }
}
