/* =========================================================
   Sunrise Counseling — custom theme on top of Bootstrap 5
   Palette: warm sunrise cream, deep teal, sage, peach gold
   ========================================================= */

:root {
  --cream: #FBF6EE;
  --cream-2: #F4ECE0;
  --warm-white: #FFFFFF;
  --ink: #1E2A29;
  --ink-soft: #3E4A49;
  --muted: #6C7774;

  --teal: #2C5F5D;
  --teal-deep: #1E4847;
  --teal-soft: #3E7876;
  --sage: #8FA99C;
  --sage-soft: #C8D5CB;

  --peach: #E89670;
  --gold: #D4A36B;
  --coral: #D97757;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(32, 44, 43, 0.06);
  --shadow-md: 0 12px 40px rgba(32, 44, 43, 0.10);
  --shadow-lg: 0 30px 80px rgba(32, 44, 43, 0.18);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, .serif {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--teal); }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--coral); }

::selection { background: var(--peach); color: #fff; }

/* ---------- Announcement bar ---------- */
.announcement {
  background: linear-gradient(90deg, var(--teal-deep), var(--teal) 60%, var(--teal-soft));
  color: #fff;
  font-size: .9rem;
  padding: .55rem 0;
}
.announcement-link {
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.announcement-link:hover { color: #fff; border-color: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(30,42,41,.06);
  padding: .85rem 0;
  transition: box-shadow .25s var(--ease), padding .25s var(--ease), background .25s var(--ease);
}
.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding: .55rem 0;
  background: rgba(251, 246, 238, 0.95);
}
.navbar-brand .brand-text { line-height: 1.1; display: inline-flex; flex-direction: column; }
.brand-name { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.brand-sub { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }

.navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .96rem;
  padding: .5rem 1rem;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: .35rem;
  height: 2px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--teal); }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; padding: .72rem 1.4rem; font-weight: 500; letter-spacing: .01em; transition: all .25s var(--ease); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }

.btn-sunrise {
  background: linear-gradient(135deg, var(--peach), var(--coral));
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 119, 87, .28);
  border: 0;
}
.btn-sunrise:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(217, 119, 87, .38);
  filter: saturate(110%);
}
.btn-sunrise:active { transform: translateY(0); }

.btn-outline-teal {
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow.eyebrow-light { color: var(--sage-soft); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 0 4px rgba(232, 150, 112, .2);
}

.section { padding: 6.5rem 0; position: relative; }
.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.section-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }
.lead-copy { font-size: 1.12rem; color: var(--ink-soft); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 150, 112, .35), transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(212, 163, 107, .22), transparent 50%),
    linear-gradient(180deg, #FFF6EA 0%, var(--cream) 70%);
}
.hero-sun {
  position: absolute;
  top: -220px; right: -180px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 214, 168, .95), rgba(255, 214, 168, 0) 62%);
  z-index: -1;
  filter: blur(8px);
  animation: sunDrift 18s ease-in-out infinite alternate;
}
@keyframes sunDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.05); }
}

.display-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: .6rem 0 1.25rem;
}
.display-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
  position: relative;
}
.display-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .08em;
  height: 10px;
  background: linear-gradient(90deg, rgba(232,150,112,.35), rgba(212,163,107,.35));
  z-index: -1;
  border-radius: 4px;
  transform: skewY(-1deg);
}

.hero-copy .lead-copy { max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 2rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.25rem 1.8rem;
  color: var(--ink-soft); font-size: .95rem; margin: 0;
}
.hero-trust i { color: var(--teal); margin-right: .4rem; }

.hero-visual { position: relative; aspect-ratio: 5/5.4; max-width: 520px; margin-left: auto; }
.hero-frame {
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); }

.hero-card {
  position: absolute;
  bottom: -28px; left: -34px;
  background: #fff;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
  font-size: .92rem;
  border: 1px solid rgba(30,42,41,.04);
}
.hero-card-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .6rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-soft);
  overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  top: -24px; right: -18px;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
}
.hero-badge i { font-size: 1.4rem; color: var(--peach); }
.hero-badge small { display: block; opacity: .75; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.hero-badge strong { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -.01em; }

.insurance-strip {
  margin-top: 4.5rem;
  padding: 1.2rem 0;
  background: rgba(255,255,255,.6);
  border-top: 1px solid rgba(30,42,41,.06);
  border-bottom: 1px solid rgba(30,42,41,.06);
}
.strip-label {
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem;
  color: var(--muted); font-weight: 600;
}
.strip-item {
  font-family: 'Fraunces', serif; font-weight: 500; color: var(--ink); font-size: 1.05rem;
}
.strip-divider {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
}

/* ---------- About ---------- */
.about-section { background: linear-gradient(180deg, var(--cream), #fff 80%); }

.about-images {
  position: relative;
  aspect-ratio: 1/1.05;
}
.about-img-main,
.about-img-accent {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.about-img-main {
  width: 78%; height: 70%; top: 0; right: 0;
}
.about-img-accent {
  width: 54%; height: 50%; bottom: 0; left: 0;
  border: 8px solid #fff;
}
.about-quote {
  position: absolute;
  top: 58%; right: -18px;
  max-width: 220px;
  background: var(--teal);
  color: #fff;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  line-height: 1.3;
}
.about-quote i { font-size: 1.6rem; color: var(--peach); display: block; margin-bottom: .4rem; }
.about-quote p { margin: 0; }

.story-card {
  margin-top: 2rem;
  padding: 1.8rem 2rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--peach);
  box-shadow: var(--shadow-sm);
}
.story-title { font-size: 1.5rem; margin-bottom: 1rem; }
.story-card p { color: var(--ink-soft); }
.signature { font-family: 'Fraunces', serif; font-style: italic; color: var(--teal); margin-bottom: 0; }

/* ---------- Services ---------- */
.services-section { background: var(--cream); position: relative; }
.services-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(232,150,112,.08), transparent 30%),
    radial-gradient(circle at 90% 100%, rgba(44,95,93,.06), transparent 35%);
}
.services-section .container { position: relative; }

.service-card {
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(30,42,41,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--peach), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,150,112,.16), rgba(212,163,107,.16));
  color: var(--coral);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.service-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

.lifespan {
  margin-top: 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lifespan::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,150,112,.35), transparent 65%);
}
.lifespan-title {
  font-size: 1.8rem; color: #fff;
  text-align: center; margin-bottom: 2rem;
  position: relative;
}
.lifespan-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 1.6rem;
  border-radius: var(--radius);
  height: 100%;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lifespan-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.lifespan-card i { font-size: 1.7rem; color: var(--peach); display: block; margin-bottom: .6rem; }
.lifespan-card h4 { color: #fff; font-size: 1.25rem; margin-bottom: .4rem; }
.lifespan-card p { color: rgba(255,255,255,.82); margin: 0; font-size: .95rem; }

/* ---------- Team ---------- */
.team-section { background: linear-gradient(180deg, #fff, var(--cream)); }

.team-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo { overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-body { padding: 1.8rem 1.8rem; display: flex; flex-direction: column; }
.team-body h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.team-body .credentials { font-size: .85rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: .04em; }
.team-body .role { color: var(--coral); font-weight: 500; margin-bottom: .9rem; font-size: .95rem; }
.team-body p { color: var(--ink-soft); font-size: .97rem; }
.team-link {
  margin-top: auto; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: .2rem;
}
.team-link:hover i { transform: translateX(4px); }
.team-link i { transition: transform .25s var(--ease); }

/* ---------- Rates ---------- */
.rates-section { background: var(--cream); }

.insurance-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.insurance-pill {
  padding: .55rem 1rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(44,95,93,.15);
  font-size: .92rem;
  color: var(--teal);
  font-weight: 500;
}
.insurance-pill i { color: var(--coral); margin-right: .2rem; }

.fine-print {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.7);
  border-radius: 12px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.fine-print i { color: var(--teal); margin-right: .4rem; }

.rate-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem;
  height: 100%;
  position: relative;
  border: 1px solid rgba(30,42,41,.05);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.rate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rate-card.featured {
  background: linear-gradient(160deg, #fff 0%, #FFF6EA 100%);
  border-color: rgba(232,150,112,.3);
}
.rate-tag {
  position: absolute; top: -12px; left: 1.5rem;
  background: var(--peach); color: #fff;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.rate-label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); font-weight: 600; }
.rate-amount { font-family: 'Fraunces', serif; font-size: 3rem; font-weight: 500; color: var(--teal); line-height: 1; margin: .4rem 0 .1rem; }
.rate-period { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.rate-card ul { list-style: none; padding: 0; margin: 0; }
.rate-card li { padding: .4rem 0; font-size: .94rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }
.rate-card li i { color: var(--coral); }

.consult-card {
  background: var(--teal);
  color: #fff;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.consult-card h4 { color: #fff; font-size: 1.25rem; margin: 0 0 .25rem; }
.consult-card p { color: rgba(255,255,255,.85); font-size: .95rem; }
.consult-card .btn-sunrise { flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq-section { background: #fff; }

.faq-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid rgba(30,42,41,.08);
  background: transparent;
  border-radius: 0;
}
.faq-accordion .accordion-item:first-of-type { border-top: 1px solid rgba(30,42,41,.08); }
.faq-accordion .accordion-button {
  padding: 1.35rem 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--teal); background: transparent; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button::after {
  background-image: none;
  content: '+';
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--peach);
  width: auto; height: auto;
  margin-left: auto;
  transition: transform .3s var(--ease);
  display: flex; align-items: center;
}
.faq-accordion .accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.faq-accordion .accordion-body {
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 65ch;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: 7rem 0;
}
.contact-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
  filter: saturate(90%);
}
.contact-section::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(30,72,71,.93) 0%, rgba(44,95,93,.9) 50%, rgba(30,42,41,.88) 100%);
}

.contact-section .section-title em { color: var(--peach); }
.contact-lead { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 36ch; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.contact-item:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateX(4px); }
.contact-item i {
  font-size: 1.2rem;
  color: var(--peach);
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(232,150,112,.15);
  border-radius: 10px;
  flex-shrink: 0;
}
.contact-item span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; opacity: .7; margin-bottom: .1rem; }
.contact-item strong { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.08rem; line-height: 1.3; }

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.3rem 2.3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form-title { font-size: 1.6rem; margin-bottom: 1.3rem; }
.contact-form .form-label { font-size: .88rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .3rem; }
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 12px;
  border: 1px solid rgba(30,42,41,.12);
  padding: .75rem .95rem;
  background: var(--cream);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44,95,93,.08);
}
.form-note { font-size: .8rem; color: var(--muted); margin: .7rem 0 0; text-align: center; }

.form-success {
  display: none;
  position: absolute; inset: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  align-items: center; justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  flex-direction: column;
}
.form-success i { color: var(--teal); font-size: 3rem; }
.form-success strong { font-family: 'Fraunces', serif; font-size: 1.4rem; display: block; margin-bottom: .3rem; color: var(--ink); }
.contact-form.submitted .form-success { display: flex; }

/* ---------- Footer ---------- */
.site-footer {
  background: #18201F;
  color: rgba(255,255,255,.72);
  padding: 4rem 0 2rem;
}
.footer-brand { color: #fff; text-decoration: none; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-tag { color: rgba(255,255,255,.6); max-width: 36ch; font-size: .95rem; }
.site-footer h5 {
  color: #fff; font-family: 'Inter', sans-serif; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .2em; margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; font-size: .95rem; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--peach); }
.site-footer hr { border-color: rgba(255,255,255,.08); margin: 2.5rem 0 1.25rem; }
.site-footer small { color: rgba(255,255,255,.55); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s;
  z-index: 1020;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--coral); color: #fff; transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
  }
  .navbar .nav-link { padding: .7rem .5rem; }
  .navbar .nav-link::after { display: none; }

  .hero { padding: 3rem 0 2rem; }
  .hero-visual { margin: 3rem auto 0; max-width: 440px; }
  .hero-card { left: -10px; bottom: -20px; }
  .hero-badge { top: -18px; right: -6px; }

  .section { padding: 4.5rem 0; }

  .about-quote { right: 0; }
  .story-card { padding: 1.4rem 1.5rem; }

  .team-card { grid-template-columns: 1fr; }
  .team-photo img { min-height: 320px; }

  .lifespan { padding: 1.8rem; }
}

@media (max-width: 575.98px) {
  .display-title { font-size: 2.4rem; }
  .hero-badge { padding: .6rem .8rem; top: -12px; }
  .hero-badge strong { font-size: .88rem; }
  .rate-amount { font-size: 2.4rem; }
  .contact-form { padding: 1.5rem; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
