/* Tribute Funeral Services: website kit (Star Digital AI Marketing, Nov 2026)
   Same feeling, quieter and more assured. Navy and cream stay; the logo's steel leaf
   and slate become the secondary palette; the old orange becomes a muted gold. */

/* ---------- Fonts (self hosted, OFL) ---------- */
@font-face{font-family:"Cormorant Garamond";src:url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url(../fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url(../fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant Garamond";src:url(../fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2");font-weight:600;font-style:italic;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url(../fonts/nunito-sans-latin-wght-normal.woff2) format("woff2");font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url(../fonts/nunito-sans-latin-wght-italic.woff2) format("woff2");font-weight:200 1000;font-style:italic;font-display:swap}

/* ---------- Tokens ---------- */
:root{
  /* Navy (anchor, from the live site) */
  --tfs-navy-950:#061A2C; --tfs-navy-900:#0A2540; --tfs-navy-800:#0D3153; --tfs-navy-700:#1C4469;
  --tfs-navy-600:#335B80; --tfs-navy-100:#E3EAF1; --tfs-navy-50:#F1F5F8;
  /* Leaf (the logo's steel blue) */
  --tfs-leaf-700:#4F6E83; /* icons and small text on light, 5.4:1 on white */
  --tfs-leaf-500:#6A899D; /* logo colour, graphics only */
  --tfs-leaf-300:#B4C8D5; /* on navy, 7.7:1 */
  --tfs-leaf-100:#E4ECF1;
  --tfs-slate:#58595A;    /* logo grey */
  /* Gold (the old orange, softened) */
  --tfs-gold-700:#8A5521; /* hover, gold text, 6.2:1 on white */
  --tfs-gold-600:#9A6129; /* buttons with white text, 5.1:1 */
  --tfs-gold-400:#D9A56A; /* accents on navy, 6.0:1 */
  --tfs-gold-200:#E9D3B4; --tfs-gold-100:#F6EBDD;
  /* Surfaces */
  --tfs-white:#FFFFFF; --tfs-linen:#FBF8F3; --tfs-cream:#FFF4E6; --tfs-sand:#F3E6D3; --tfs-stone:#E3D7C6;
  /* Text */
  --tfs-ink:#1C2B3A;   /* 13.6:1 on linen */
  --tfs-muted:#4E5D6B; /* 6.4:1 on linen */
  --tfs-border:#7F8C99;/* form controls, 3:1 */
  --tfs-line:#E3D7C6;
  /* Type */
  --tfs-serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --tfs-sans:"Nunito Sans",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --tfs-h1:clamp(2.6rem,1.6rem + 3.4vw,4rem);
  --tfs-h2:clamp(2.1rem,1.5rem + 2vw,2.9rem);
  --tfs-h3:clamp(1.55rem,1.35rem + .6vw,1.85rem);
  --tfs-h4:1.3rem;
  --tfs-body:1.0625rem; /* 17px */
  /* Shape and depth */
  --tfs-r-sm:8px; --tfs-r:14px; --tfs-r-lg:22px; --tfs-r-xl:32px; --tfs-pill:999px;
  --tfs-shadow-sm:0 1px 2px rgba(13,49,83,.06),0 2px 8px rgba(13,49,83,.05);
  --tfs-shadow:0 2px 6px rgba(13,49,83,.06),0 12px 32px rgba(13,49,83,.08);
  --tfs-shadow-lg:0 8px 20px rgba(13,49,83,.10),0 28px 60px rgba(13,49,83,.12);
  --tfs-wrap:1200px; --tfs-gap:clamp(1.25rem,1rem + 1vw,2rem);
  --tfs-section:clamp(3.5rem,2.5rem + 4vw,6.5rem);
  --tfs-ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
.tfs, .tfs *{box-sizing:border-box}
.tfs{font-family:var(--tfs-sans);font-size:var(--tfs-body);line-height:1.7;color:var(--tfs-ink);background:var(--tfs-linen);-webkit-font-smoothing:antialiased}
.tfs h1,.tfs h2,.tfs h3,.tfs h4,.tfs .tfs-h1,.tfs .tfs-h2,.tfs .tfs-h3{font-family:var(--tfs-serif);font-weight:600;color:var(--tfs-navy-800);line-height:1.1;letter-spacing:-.005em;margin:0 0 .5em}
.tfs h1,.tfs .tfs-h1{font-size:var(--tfs-h1);line-height:1.04}
.tfs h2,.tfs .tfs-h2{font-size:var(--tfs-h2)}
.tfs h3,.tfs .tfs-h3{font-size:var(--tfs-h3)}
.tfs h4{font-size:var(--tfs-h4);font-family:var(--tfs-sans);font-weight:700;letter-spacing:0;line-height:1.35}
.tfs em.tfs-accent,.tfs .tfs-accent{font-style:italic;font-weight:500;color:var(--tfs-leaf-700)}
.tfs p{margin:0 0 1em}
.tfs a{color:var(--tfs-navy-700);text-underline-offset:.18em;text-decoration-thickness:1px}
.tfs a:hover{color:var(--tfs-gold-700)}
.tfs :focus-visible{outline:2px solid var(--tfs-gold-600);outline-offset:3px;border-radius:4px}
.tfs-wrap{max-width:var(--tfs-wrap);margin:0 auto;padding:0 clamp(1.1rem,.6rem + 2vw,2rem)}
.tfs-section{padding:var(--tfs-section) 0}
.tfs-lead{font-size:1.2rem;line-height:1.65;color:var(--tfs-muted)}
.tfs-eyebrow{display:inline-flex;align-items:center;gap:.6em;font:700 .8rem/1 var(--tfs-sans);letter-spacing:.16em;text-transform:uppercase;color:var(--tfs-gold-700);margin-bottom:1rem}
.tfs-eyebrow::before{content:"";width:28px;height:1px;background:currentColor;opacity:.7}
.tfs-on-dark .tfs-eyebrow{color:var(--tfs-gold-400)}
.tfs-icon{width:1.4em;height:1.4em;flex:none;color:var(--tfs-leaf-700)}

/* ---------- Surfaces ---------- */
.tfs-bg-white{background:var(--tfs-white)} .tfs-bg-linen{background:var(--tfs-linen)}
.tfs-bg-cream{background:var(--tfs-cream)} .tfs-bg-sand{background:var(--tfs-sand)}
.tfs-on-dark{background:var(--tfs-navy-800);color:#E8EEF3}
.tfs-on-dark h1,.tfs-on-dark h2,.tfs-on-dark h3{color:#fff}
.tfs-on-dark p{color:#D3DEE7}
.tfs-on-dark a{color:#fff}
.tfs-on-dark .tfs-icon{color:var(--tfs-leaf-300)}
.tfs-deep{background:var(--tfs-navy-900)}

/* ---------- Buttons ---------- */
.tfs-btn{--b:var(--tfs-gold-600);--bh:var(--tfs-gold-700);--t:#fff;display:inline-flex;align-items:center;justify-content:center;gap:.55em;min-height:50px;padding:.8em 1.6em;border-radius:var(--tfs-pill);border:1.5px solid var(--b);background:var(--b);color:var(--t)!important;font:700 1rem/1.2 var(--tfs-sans);letter-spacing:.01em;text-decoration:none;cursor:pointer;transition:background .2s var(--tfs-ease),border-color .2s,transform .2s var(--tfs-ease),box-shadow .2s}
.tfs-btn:hover{background:var(--bh);border-color:var(--bh);transform:translateY(-1px);box-shadow:var(--tfs-shadow-sm)}
.tfs-btn svg{width:1.15em;height:1.15em;color:currentColor}
.tfs-btn--navy{--b:var(--tfs-navy-800);--bh:var(--tfs-navy-950)}
.tfs-btn--ghost{background:transparent;--t:var(--tfs-navy-800);border-color:var(--tfs-navy-800)}
.tfs-btn--ghost:hover{background:var(--tfs-navy-800);--t:#fff}
.tfs-btn--light{--b:#fff;--bh:var(--tfs-cream);--t:var(--tfs-navy-800)}
.tfs-btn--outline-light{background:transparent;--t:#fff;border-color:rgba(255,255,255,.7)}
.tfs-btn--outline-light:hover{background:#fff;--t:var(--tfs-navy-800);border-color:#fff}
.tfs-btn--sm{min-height:40px;padding:.55em 1.15em;font-size:.92rem}
.tfs-btn--block{width:100%}
.tfs-link{display:inline-flex;align-items:center;gap:.4em;font-weight:700;color:var(--tfs-navy-700);text-decoration:none}
.tfs-link svg{width:1.1em;height:1.1em;transition:transform .2s var(--tfs-ease)}
.tfs-link:hover svg{transform:translateX(3px)}

/* ---------- Badges and chips ---------- */
.tfs-badge{display:inline-flex;align-items:center;gap:.4em;padding:.35em .8em;border-radius:var(--tfs-pill);font:700 .78rem/1.2 var(--tfs-sans);letter-spacing:.02em;background:var(--tfs-leaf-100);color:var(--tfs-navy-800)}
.tfs-badge--gold{background:var(--tfs-gold-100);color:var(--tfs-gold-700)}
.tfs-badge--line{background:transparent;border:1px solid var(--tfs-line);color:var(--tfs-muted)}

/* ---------- Leaf flourish and wave ---------- */
.tfs-flourish{display:block;width:64px;height:auto;color:var(--tfs-leaf-500);margin:0 0 1rem}
.tfs-center .tfs-flourish{margin-inline:auto}
.tfs-wave{display:block;width:100%;height:44px;color:var(--tfs-cream)}

/* ---------- Trust strip ---------- */
.tfs-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border-radius:var(--tfs-r-lg);box-shadow:var(--tfs-shadow);overflow:hidden}
.tfs-trust__item{display:flex;gap:.9rem;align-items:flex-start;padding:1.4rem 1.5rem}
.tfs-trust__item + .tfs-trust__item{border-left:1px solid var(--tfs-line)}
.tfs-trust__item .tfs-icon{width:2rem;height:2rem;margin-top:.15rem}
.tfs-trust__big{display:block;font:600 1.6rem/1 var(--tfs-serif);color:var(--tfs-navy-800);margin-bottom:.3rem}
.tfs-trust__label{display:block;font-size:.9rem;line-height:1.4;color:var(--tfs-muted)}
@media (max-width:900px){.tfs-trust{grid-template-columns:1fr 1fr}.tfs-trust__item:nth-child(3){border-left:0}.tfs-trust__item:nth-child(n+3){border-top:1px solid var(--tfs-line)}}
@media (max-width:420px){.tfs-trust__item{padding:1.1rem;gap:.6rem}.tfs-trust__big{font-size:1.35rem}}

/* ---------- Cards ---------- */
.tfs-grid{display:grid;gap:var(--tfs-gap)}
.tfs-grid--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:980px){.tfs-grid--3{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.tfs-grid--3{grid-template-columns:1fr}}
.tfs-card{position:relative;display:flex;flex-direction:column;background:#fff;border-radius:var(--tfs-r-lg);padding:1.8rem;box-shadow:var(--tfs-shadow-sm);border:1px solid rgba(227,215,198,.6);transition:transform .3s var(--tfs-ease),box-shadow .3s}
a.tfs-card{text-decoration:none;color:inherit}
a.tfs-card:hover{transform:translateY(-3px);box-shadow:var(--tfs-shadow)}
.tfs-card__icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:var(--tfs-cream);margin-bottom:1.1rem}
.tfs-card__icon .tfs-icon{width:28px;height:28px}
.tfs-card h3{font-size:1.6rem;margin-bottom:.35rem}
.tfs-card p{color:var(--tfs-muted);font-size:.98rem;margin-bottom:1.2rem}
.tfs-card__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:1rem;border-top:1px solid var(--tfs-line)}
.tfs-card__price{font-size:.9rem;color:var(--tfs-muted)}
.tfs-card__price strong{font:600 1.35rem/1 var(--tfs-serif);color:var(--tfs-navy-800)}
.tfs-card__leaf{position:absolute;right:1.1rem;top:1.1rem;width:46px;color:var(--tfs-leaf-100);pointer-events:none}

/* ---------- Pricing transparency card ---------- */
.tfs-price{display:grid;grid-template-columns:auto 1fr auto;gap:1.6rem;align-items:center;background:var(--tfs-cream);border:1px solid var(--tfs-gold-200);border-radius:var(--tfs-r-lg);padding:1.6rem 2rem}
.tfs-price__amount{font:600 3rem/1 var(--tfs-serif);color:var(--tfs-navy-800)}
.tfs-price__amount small{display:block;font:700 .75rem/1.3 var(--tfs-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--tfs-gold-700);margin-bottom:.4rem}
.tfs-price p{margin:0;color:var(--tfs-muted);font-size:.98rem}
.tfs-price p strong{color:var(--tfs-ink)}
@media (max-width:760px){.tfs-price{grid-template-columns:1fr;gap:1rem;padding:1.4rem}}

/* ---------- Create a tribute (Tribute Memorials) ---------- */
.tfs-memorial{position:relative;display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;overflow:hidden;border-radius:var(--tfs-r-xl);padding:clamp(2rem,1.5rem + 3vw,4rem)}
.tfs-memorial__leaf{position:absolute;right:-60px;bottom:-70px;width:420px;color:rgba(180,200,213,.12)}
.tfs-memorial__card{position:relative;background:#fff;color:var(--tfs-ink);border-radius:var(--tfs-r-lg);box-shadow:var(--tfs-shadow-lg);padding:1.5rem;transform:rotate(-1.5deg)}
.tfs-memorial__photo{aspect-ratio:4/3;border-radius:var(--tfs-r);background:linear-gradient(160deg,#DCE6EC,#B4C8D5 60%,#9DB5C5);display:grid;place-items:center;margin-bottom:1rem}
.tfs-memorial__photo svg{width:84px;color:#fff}
.tfs-memorial__name{font:600 1.7rem/1.1 var(--tfs-serif);color:var(--tfs-navy-800);margin:0}
.tfs-memorial__dates{font-size:.9rem;color:var(--tfs-muted);margin:.2rem 0 .8rem}
.tfs-memorial__actions{display:flex;gap:.5rem;flex-wrap:wrap}
.tfs-memorial ul{list-style:none;padding:0;margin:1.2rem 0 1.8rem;display:grid;gap:.6rem}
.tfs-memorial li{display:flex;gap:.7rem;align-items:center;color:#E8EEF3}
.tfs-memorial li .tfs-icon{color:var(--tfs-gold-400);width:1.3em;height:1.3em}
@media (max-width:880px){.tfs-memorial{grid-template-columns:1fr;gap:2rem}.tfs-memorial__card{transform:none;max-width:420px}}

/* ---------- CTA band ---------- */
.tfs-cta{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:2rem;border-radius:var(--tfs-r-xl);padding:2.4rem clamp(1.5rem,1rem + 3vw,3.5rem)}
.tfs-cta h2{margin:0 0 .3rem}
.tfs-cta p{margin:0}
.tfs-cta__actions{display:flex;gap:.8rem;flex-wrap:wrap;flex:none}
.tfs-cta__leaf{position:absolute;left:-40px;top:-50px;width:240px;color:rgba(180,200,213,.12)}
@media (max-width:820px){.tfs-cta{flex-direction:column;align-items:flex-start}}

/* ---------- FAQ ---------- */
.tfs-faq{border-top:1px solid var(--tfs-line)}
.tfs-faq details{border-bottom:1px solid var(--tfs-line)}
.tfs-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem 0;font:600 1.4rem/1.25 var(--tfs-serif);color:var(--tfs-navy-800)}
.tfs-faq summary::-webkit-details-marker{display:none}
.tfs-faq summary::after{content:"";flex:none;width:30px;height:30px;border-radius:50%;background:var(--tfs-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D3153' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;transition:transform .25s var(--tfs-ease)}
.tfs-faq details[open] summary::after{transform:rotate(45deg)}
.tfs-faq details > div{padding:0 0 1.3rem;color:var(--tfs-muted);max-width:68ch}

/* ---------- Header ---------- */
.tfs-topbar{background:var(--tfs-navy-900);color:#D3DEE7;font-size:.88rem}
.tfs-topbar .tfs-wrap{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:40px}
.tfs-topbar a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:.4em}
.tfs-topbar .tfs-icon{color:var(--tfs-gold-400);width:1.1em;height:1.1em}
.tfs-topbar__left,.tfs-topbar__right{display:flex;gap:1.4rem;align-items:center}
.tfs-header{background:rgba(255,255,255,.97);border-bottom:1px solid var(--tfs-line)}
.tfs-header .tfs-wrap{display:flex;align-items:center;gap:2rem;min-height:92px}
.tfs-header__logo img{display:block;height:70px;width:auto}
.tfs-nav{display:flex;gap:1.6rem;margin-left:auto}
.tfs-nav a{font-weight:600;font-size:.98rem;color:var(--tfs-navy-800);text-decoration:none;display:inline-flex;align-items:center;gap:.25em}
.tfs-nav a svg{width:.9em;height:.9em;opacity:.7}
.tfs-header__actions{display:flex;gap:.6rem;align-items:center}
.tfs-header__phone{display:flex;flex-direction:column;line-height:1.15;text-decoration:none;text-align:right}
.tfs-header__phone small{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--tfs-gold-700)}
.tfs-header__phone strong{font:600 1.45rem/1.1 var(--tfs-serif);color:var(--tfs-navy-800)}
@media (max-width:1100px){.tfs-nav{display:none}}

/* ---------- Mobile header and call bar ---------- */
.tfs-mhead{display:flex;align-items:center;justify-content:space-between;padding:.7rem 1.1rem;background:#fff;border-bottom:1px solid var(--tfs-line)}
.tfs-mhead img{height:46px;width:auto;display:block}
.tfs-mhead button{width:46px;height:46px;border-radius:50%;border:1px solid var(--tfs-line);background:var(--tfs-linen);display:grid;place-items:center;color:var(--tfs-navy-800)}
.tfs-mhead button svg{width:22px;height:22px}
.tfs-callbar{position:sticky;bottom:0;display:grid;grid-template-columns:1.25fr 1fr;gap:.5rem;padding:.6rem .7rem calc(.6rem + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--tfs-line);box-shadow:0 -6px 20px rgba(13,49,83,.08);z-index:50}
.tfs-callbar .tfs-btn{min-height:48px;padding:.6em .8em;font-size:.95rem}

/* ---------- Enquiry popup ---------- */
.tfs-modal{background:#fff;border-radius:var(--tfs-r-xl);box-shadow:var(--tfs-shadow-lg);padding:2rem;max-width:560px;position:relative}
.tfs-modal__close{position:absolute;right:1rem;top:1rem;width:40px;height:40px;border-radius:50%;border:0;background:var(--tfs-linen);display:grid;place-items:center;color:var(--tfs-navy-800)}
.tfs-modal__close svg{width:18px;height:18px}
.tfs-modal h2{font-size:2rem;margin:0 0 .3rem}
.tfs-modal__urgent{display:flex;gap:.8rem;align-items:center;background:var(--tfs-cream);border-radius:var(--tfs-r);padding:.9rem 1rem;margin:1rem 0 1.3rem;font-size:.95rem}
.tfs-modal__urgent a{font-weight:800;color:var(--tfs-navy-800);white-space:nowrap}
.tfs-choice{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-bottom:1.2rem}
.tfs-choice label{display:flex;gap:.6rem;align-items:center;border:1.5px solid var(--tfs-line);border-radius:var(--tfs-r);padding:.8rem .9rem;font-weight:600;font-size:.95rem;cursor:pointer;color:var(--tfs-navy-800)}
.tfs-choice label .tfs-icon{width:1.3em;height:1.3em}
.tfs-choice label.is-on{border-color:var(--tfs-navy-800);background:var(--tfs-navy-50);box-shadow:inset 0 0 0 1px var(--tfs-navy-800)}
.tfs-field{display:grid;gap:.35rem;margin-bottom:.8rem}
.tfs-field label{font-weight:700;font-size:.9rem;color:var(--tfs-navy-800)}
.tfs-field input,.tfs-field textarea{font:inherit;font-size:1rem;border:1.5px solid var(--tfs-border);border-radius:var(--tfs-r-sm);padding:.75rem .9rem;background:#fff;color:var(--tfs-ink)}
.tfs-row2{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
@media (max-width:520px){.tfs-choice,.tfs-row2{grid-template-columns:1fr}.tfs-modal{padding:1.5rem}}

/* ---------- Footer ---------- */
.tfs-footer{background:var(--tfs-navy-900);color:#C9D6E1;font-size:.95rem}
.tfs-footer a{color:#fff;text-decoration:none}
.tfs-footer h4{color:#fff;font:700 .8rem/1 var(--tfs-sans);letter-spacing:.14em;text-transform:uppercase;margin:0 0 1rem}
.tfs-footer__credit a{display:inline-flex;align-items:center;gap:.4em}

/* Lining figures for prices, phone numbers and stats set in the serif.
   Kept last: the `font` shorthand above resets font-variant-numeric. */
.tfs h1,.tfs h2,.tfs h3,.tfs .tfs-h1,.tfs .tfs-h2,.tfs .tfs-h3,.tfs-trust__big,.tfs-price__amount,.tfs-card__price strong,.tfs-header__phone strong,.tfs-faq summary,.tfs-memorial__name{font-variant-numeric:lining-nums proportional-nums}
/* Leaf line flourishes keep the mark's proportions */
.tfs-flourish,.tfs-card__leaf,.tfs-memorial__leaf,.tfs-cta__leaf,.tfs-hero__leaf,.tfs-lbanner__leaf,.tfs-pbanner__leaf{height:auto;aspect-ratio:1.31}
/* White card inside a dark band keeps light-surface colours */
.tfs-on-dark .tfs-memorial__card p,.tfs-memorial__card .tfs-memorial__dates{color:var(--tfs-muted)}
.tfs-on-dark .tfs-memorial__card .tfs-memorial__name{color:var(--tfs-navy-800)}
.tfs-on-dark .tfs-memorial__card .tfs-eyebrow{color:var(--tfs-gold-700)}
.tfs-memorial__photo{aspect-ratio:16/9}
