/* =========================================================
   Trinity FamilyCare — homepage-only styles
   (shared styles live in site.css)
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #eef5fb url('../img/slider/slide-1-2.jpg') center right / cover no-repeat;
  padding: 76px 0 124px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 32%, rgba(244,250,255,.62) 56%, rgba(40,182,246,.14) 100%),
    radial-gradient(720px 520px at 10% 14%, rgba(4,179,191,.10), transparent 60%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 54px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; box-shadow: var(--shadow-sm); padding: 9px 18px; border-radius: 50px;
  font-family: var(--ff-head); font-weight: 700; font-size: 14px; color: var(--navy);
}
.hero-tag .pill { background: var(--grad); color:#fff; font-size: 11px; padding: 3px 10px; border-radius: 50px; letter-spacing: .5px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 900; margin: 22px 0 20px; letter-spacing: -1px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 18px; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 38px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; margin-left: -14px; box-shadow: var(--shadow-sm); }
.avatars img:first-child { margin-left: 0; }
.hero-trust .stars { color: #ffb400; font-size: 15px; letter-spacing: 2px; }
.hero-trust b { color: var(--navy); font-family: var(--ff-head); }
.hero-trust small { display:block; color: var(--muted); font-size: 13.5px; }

/* Hero appointment form */
.hero-form {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 30px 30px 26px; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
}
.hero-form::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.hero-form .fhead { margin-bottom: 18px; }
.hero-form .fhead .badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-head); font-weight: 800;
  font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal);
  background: var(--grad-soft); padding: 6px 13px; border-radius: 50px; margin-bottom: 12px;
}
.hero-form .fhead .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.hero-form .fhead h3 { font-size: 23px; line-height: 1.2; }
.hero-form .fhead p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.hero-form .field { margin-bottom: 12px; }
.hero-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-form label { display: block; font-family: var(--ff-head); font-weight: 700; font-size: 12px; color: var(--navy); margin-bottom: 6px; }
.hero-form input, .hero-form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e4ebf4; border-radius: 11px;
  font-family: var(--ff-body); font-size: 14.5px; color: var(--navy); background: #f8fbff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.hero-form input::placeholder { color: #a7b0c0; }
.hero-form input:focus, .hero-form select:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(4,179,191,.12);
}
.hero-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2304B3BF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px;
}
.hero-form .btn { width: 100%; justify-content: center; margin-top: 7px; }
.hero-form .note { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 13px; font-size: 12.5px; color: var(--muted); }
.hero-form .note svg { width: 15px; height: 15px; stroke: var(--teal); flex-shrink: 0; }
.hero-form .form-success { display: none; text-align: center; padding: 26px 6px 10px; }
.hero-form.sent .appt-form { display: none; }
.hero-form.sent .form-success { display: block; }
.hero-form .form-success .ok { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 12px 26px rgba(7,108,236,.32); }
.hero-form .form-success .ok svg { width: 34px; height: 34px; stroke: #fff; }
.hero-form .form-success h3 { font-size: 22px; margin-bottom: 8px; }
.hero-form .form-success p { font-size: 14.5px; }

/* ---------- Stats strip (overlap offset; card styles come from site.css) ---------- */
.stats { margin-top: -50px; position: relative; z-index: 5; }

/* ---------- Services ---------- */
.services { padding: 110px 0 90px; }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; background: #fff; border: 1px solid #eef2f8; border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .svc-media { position: relative; }
.card .svc-img { aspect-ratio: 16 / 11; overflow: hidden; }
.card .svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.card:hover .svc-img img { transform: scale(1.07); }
.card .svc-icon {
  position: absolute; left: 24px; bottom: -28px; z-index: 2;
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 12px 24px rgba(7,108,236,.32);
  border: 3px solid #fff; transition: transform .35s;
}
.card:hover .svc-icon { transform: translateY(-3px) rotate(-6deg); }
.card .svc-icon svg { width: 26px; height: 26px; stroke: #fff; }
.card .svc-body { padding: 44px 26px 28px; }
.card .svc-body h3 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.card .svc-body p { font-size: 14.5px; color: var(--body); line-height: 1.65; margin-bottom: 16px; }
.card .svc-more { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-family: var(--ff-head); font-weight: 700; font-size: 14px; }
.card .svc-more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .svc-more svg { transform: translateX(5px); }

/* ---------- Conditions marquee ---------- */
.conditions { padding: 0 0 30px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 50px;
  background: var(--grey-1); color: var(--navy); font-family: var(--ff-head); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.pill-tag .d { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Why choose / about ---------- */
.about { padding: 100px 0; background: linear-gradient(180deg, #f6fbff, #fff); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-visual { position: relative; }
.about-visual .main { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; max-width: 420px; }
.about-visual .main img { width:100%; height:100%; object-fit: cover; }
.exp-badge {
  position: absolute; right: -14px; bottom: 36px; background: var(--grad); color: #fff;
  border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow-md); text-align: center;
}
.exp-badge .n { font-family: var(--ff-head); font-weight: 900; font-size: 40px; line-height: 1; }
.exp-badge .t { font-size: 13.5px; opacity: .92; margin-top: 4px; max-width: 120px; }
.heart-pop { position: absolute; left: -22px; top: 28px; background:#fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: 14px 18px; display:flex; align-items:center; gap: 10px; }
.heart-pop svg { width: 30px; height: 30px; fill: var(--red); }
.heart-pop b { font-family: var(--ff-head); color: var(--navy); font-size:14px; display:block; }
.heart-pop small { color: var(--muted); font-size: 12px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 30px 0 32px; }
.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.feature .tick svg { width: 14px; height: 14px; stroke: var(--teal); }
.feature b { font-family: var(--ff-head); color: var(--navy); font-size: 16px; display: block; }
.feature small { font-size: 13.5px; color: var(--body); }
.provider { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background:#fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid #eef2f8; }
.provider .sig { font-family: var(--ff-head); font-weight: 900; color: var(--teal); font-size: 22px; }
.provider b { font-family: var(--ff-head); color: var(--navy); }
.provider small { display:block; color: var(--muted); font-size: 13px; }

/* ---------- Process ---------- */
.process { padding: 100px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 54px; }
.step { text-align: center; position: relative; padding: 0 8px; }
.step .ring { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); border: 2px dashed #cfe0f5; position: relative; }
.step .ring svg { width: 36px; height: 36px; stroke: var(--teal); }
.step .n { position: absolute; top: -6px; right: 50%; transform: translateX(46px); width: 28px; height: 28px; border-radius:50%; background: var(--grad); color:#fff; font-family:var(--ff-head); font-weight:800; font-size:13px; display:grid; place-items:center; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }
.steps .step:not(:last-child)::after { content:''; position:absolute; top: 46px; left: calc(50% + 60px); width: calc(100% - 30px); height:2px; background-image: linear-gradient(90deg, #cfe0f5 50%, transparent 50%); background-size: 12px 2px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 100px 0; background: var(--navy); color: #cfd8e8; overflow: hidden; position: relative; }
.testimonials::before { content:''; position:absolute; inset:0; background: radial-gradient(700px 400px at 90% 10%, rgba(40,182,246,.14), transparent 60%); }
.testimonials .eyebrow { background: rgba(255,255,255,.08); color: var(--sky); }
.testimonials .sec-title { color:#fff; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; position: relative; }
.t-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 32px 30px; backdrop-filter: blur(6px); transition: transform .3s, background .3s; }
.t-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.t-card .quote { font-size: 44px; font-family: Georgia, serif; color: var(--teal); line-height: .6; height: 22px; }
.t-card .stars { color:#ffb400; letter-spacing: 2px; margin: 6px 0 14px; font-size: 15px; }
.t-card p { color: #dce4f1; font-size: 15.5px; }
.t-card .who { display:flex; align-items:center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.10); }
.t-card .who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.t-card .who b { font-family: var(--ff-head); color:#fff; display:block; font-size:15px; }
.t-card .who small { color: var(--muted); font-size: 13px; }

/* ---------- CTA (homepage variant with phone) ---------- */
.cta { padding: 90px 0; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 30px; padding: 64px 56px;
  background: var(--grad); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-box::before { content:''; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%; background: rgba(255,255,255,.10); }
.cta-box::after { content:''; position:absolute; left:-40px; bottom:-80px; width:220px; height:220px; border-radius:50%; background: rgba(255,255,255,.08); }
.cta-box h2 { color:#fff; font-size: clamp(26px, 3.4vw, 40px); position: relative; }
.cta-box p { position: relative; opacity: .92; margin-top: 10px; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; position: relative; flex-wrap: wrap; }
.cta-phone { display:flex; align-items:center; gap:14px; position: relative; }
.cta-phone .ic { width: 56px; height:56px; border-radius:50%; background: rgba(255,255,255,.18); display:grid; place-items:center; }
.cta-phone .ic svg { width: 26px; height:26px; stroke:#fff; }
.cta-phone small { display:block; opacity:.85; font-size:13px; }
.cta-phone b { font-family: var(--ff-head); font-size: 24px; }

/* ---------- Responsive (homepage) ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-form { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero { background-position: center; }
  .hero::before { background: linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 45%, rgba(244,250,255,.7) 100%); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 460px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
  .steps .step::after { display: none; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sec-top { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 44px 30px; text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .hero-form .row2 { grid-template-columns: 1fr; }
  .hero-form { padding: 26px 22px 24px; }
  .hero { padding: 40px 0 84px; }
}
