/*
Theme Name: Cremation Plus 2026
Theme URI: https://cremation.plus
Author: Cremation Plus
Description: Custom theme for Cremation Plus cremation services
Version: 1.0.0
Text Domain: cremation-plus-2026
*/

/* ── Variables ── */
:root {
  --navy: #0F2B45;
  --navy-light: #1A3D5C;
  --navy-muted: #2D5478;
  --teal: #1A8C8C;
  --teal-light: #2BB3A8;
  --teal-50: #F6F0F4;
  --teal-100: #D0F0EC;
  --plum: #8E5B7A;
  --plum-light: #B3849F;
  --plum-50: #F6F0F4;
  --plum-100: #E6D3DF;
  --cream: #FDFBF7;
  --cream-warm: #FBF6EE;
  --linen: #F5F0E8;
  --stone-100: #EEEAE4;
  --stone-200: #DDD8CF;
  --stone-300: #C4BCB0;
  --stone-400: #A69D91;
  --stone-500: #877E73;
  --stone-600: #6B6259;
  --stone-700: #4A433D;
  --stone-800: #2E2A26;
  --stone-900: #1A1816;
  --text: #2E2A26;
  --text-secondary: #5A5349;
  --text-muted: #6F675E;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset + Body ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
body { border-top: 5px solid var(--navy); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 76px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-brand .plus {
  color: var(--plum);
  font-weight: 600;
  margin-left: 1px;
}
.footer-brand-text .plus {
  color: white;
  font-weight: 900;
  font-size: calc(1em + 2px);
  letter-spacing: 0;
  margin-left: -0.35em;
  position: relative;
  top: -3px;
}
.nav-brand-icon {
  height: 33px;
  width: auto;
  object-fit: contain;
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: calc(0.9rem + 2px);
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--plum);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--plum);
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: #7A4D69;
  transform: translateY(-1px);
}
.nav-cta svg { width: 16px; height: 16px; }

/* ── Buttons ── */
.btn-plum {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--plum);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
}
.btn-plum:hover {
  background: #7A4D69;
  transform: translateY(-2px);
}
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 4px 16px rgba(15, 43, 69, 0.2);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 43, 69, 0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--stone-300);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--navy-light);
  color: var(--navy);
  background: #EEF3F7;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section Helpers ── */
.section-label {
  font-size: 1.05rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-heading em { font-style: italic; color: #5B7A5E; font-weight: 500; }
.section-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ── Footer Wave ── */
.footer-wave {
  display: block;
  width: 100%;
  margin-bottom: -1px;
  background: var(--cream);
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 72px clamp(20px, 4vw, 60px) 40px;
}
.footer-inner { max-width: 1320px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer h4 {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: var(--teal-50);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: white; }
.footer-gpl {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal-50);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-gpl:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: calc(0.78rem + 2px);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.8); }
.footer-legal { color: inherit !important; }
.footer-legal:hover { color: rgba(255,255,255,0.8) !important; }
.footer-credit { color: white !important; }
.footer-credit:hover { color: white !important; }

/* ── Responsive: Nav + Footer ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
