/* =========================================================
   Protect Invest Plan — stylesheet
   Three-pillar palette: plum, sage, gold, cream
   ========================================================= */
:root {
  --pi-plum: #4a2545;
  --pi-plum-2: #5e3358;
  --pi-plum-3: #321830;
  --pi-sage: #a3b18a;
  --pi-sage-d: #6f805a;
  --pi-sage-l: #e7ecdf;
  --pi-gold: #d4a24c;
  --pi-gold-d: #b8862f;
  --pi-cream: #f8f5ef;
  --pi-ink: #2b1d2a;
  --pi-text: #5a5058;
  --pi-line: #e8e0d6;
  --pi-head: "Spectral", Georgia, "Times New Roman", serif;
  --pi-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--pi-body); color: var(--pi-text); background: #fff; font-size: 1.04rem; line-height: 1.75; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--pi-head); color: var(--pi-ink); font-weight: 600; line-height: 1.15; }
a { color: var(--pi-plum-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pi-gold-d); }
a[href^="tel:"] { white-space: nowrap; }
img { max-width: 100%; }
::selection { background: var(--pi-gold); color: var(--pi-ink); }
:focus-visible { outline: 3px solid var(--pi-gold); outline-offset: 2px; }

/* ---------- Photo frames ---------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pi-plum-3), var(--pi-plum-2) 55%, var(--pi-sage)); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
img.img-missing { opacity: 0; }
.ph:has(img.img-missing)::after { content: "\F42A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.2rem; color: rgba(255,255,255,.55); }

/* ---------- Generic ---------- */
.sec { padding: 100px 0; }
.bg-cream { background: var(--pi-cream); }
.bg-sage { background: var(--pi-sage-l); }
.over { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--pi-sage-d); margin-bottom: 1rem; }
.over::before, .over::after { content: ""; width: 18px; height: 1.5px; background: var(--pi-gold); }
.title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.1rem; }
.title em, h1 em, .news-plum h2 em { font-style: italic; font-weight: 500; color: var(--pi-plum-2); }
.lead2 { font-size: 1.14rem; color: #6a5f68; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 6px; padding: .76rem 1.5rem; transition: all .25s; white-space: nowrap; }
.btn-lg { padding: .92rem 1.8rem; font-size: 1.04rem; }
.btn-plum { background: var(--pi-plum); color: #fff; border: 2px solid var(--pi-plum); }
.btn-plum:hover, .btn-plum:focus { background: var(--pi-gold); border-color: var(--pi-gold); color: var(--pi-ink); }
.btn-plum-o { background: transparent; color: var(--pi-plum); border: 2px solid var(--pi-plum); }
.btn-plum-o:hover, .btn-plum-o:focus { background: var(--pi-plum); color: #fff; }
.btn-gold { background: var(--pi-gold); color: var(--pi-ink); border: 2px solid var(--pi-gold); }
.btn-gold:hover, .btn-gold:focus { background: #fff; border-color: #fff; color: var(--pi-plum); }
@media (max-width: 575.98px) { .btn { white-space: normal; } }

/* ---------- Utility bar + header ---------- */
.pip-util { background: var(--pi-plum-3); color: rgba(255,255,255,.75); font-size: .86rem; padding: .45rem 0; }
.pip-util a { color: rgba(255,255,255,.85); }
.pip-util a:hover { color: var(--pi-gold); }
.pip-util i { color: var(--pi-gold); margin-right: .4rem; }
.pill-tags { display: inline-flex; gap: .4rem; }
.pill-tags span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .15rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.pip-head { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--pi-line); transition: box-shadow .3s; }
.pip-head.scrolled { box-shadow: 0 10px 30px rgba(74,37,69,.1); }
.pip-head .navbar { padding: .85rem 0; }
.brand-logo { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font-family: var(--pi-head); font-weight: 700; font-size: 1.55rem; color: var(--pi-ink); line-height: 1; }
.brand-logo:hover { color: var(--pi-ink); }
.brand-logo .crest { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 10px 10px 50% 50%; background: var(--pi-plum); color: var(--pi-gold); font-size: 1.15rem; }
.pip-head .nav-link { font-weight: 600; color: var(--pi-ink); padding: .5rem .9rem !important; white-space: nowrap; position: relative; }
.pip-head .nav-link:hover { color: var(--pi-plum-2); }
.pip-head .nav-link.active { color: var(--pi-plum); }
.pip-head .nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--pi-gold); }
.navbar-toggler { border: 0; background: var(--pi-cream); color: var(--pi-plum); font-size: 1.5rem; width: 46px; height: 46px; border-radius: 10px; padding: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212,162,76,.5); }
@media (min-width: 992px) { .pip-head .navbar-toggler { display: none; } }
.offcanvas-header { border-bottom: 1px solid var(--pi-line); }
.offcanvas-title { font-family: var(--pi-head); font-weight: 700; font-size: 1.3rem; color: var(--pi-ink); }
.oc-contact { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--pi-line); font-size: .95rem; }
.oc-contact p { margin-bottom: .6rem; display: flex; gap: .6rem; overflow-wrap: anywhere; }
.oc-contact i { color: var(--pi-gold-d); }
@media (max-width: 991.98px) { .pip-head .offcanvas .nav-link { font-family: var(--pi-head); font-size: 1.3rem; padding: .6rem 0 !important; border-bottom: 1px solid var(--pi-line); } .pip-head .nav-link.active::after { left: auto; right: 0; top: 50%; bottom: auto; margin: -3px 0 0; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .pip-head .nav-link { padding: .5rem .55rem !important; } .pip-head .btn-plum { display: none; } }
@media (max-width: 400px) { .brand-logo { font-size: 1.3rem; } .brand-logo .crest { width: 36px; height: 36px; flex-basis: 36px; } }

/* ---------- Hero (triptych) ---------- */
.pip-hero { background: var(--pi-cream); padding: 80px 0 90px; position: relative; overflow: hidden; }
.pip-hero::before { content: ""; position: absolute; left: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(163,177,138,.35), transparent 70%); }
.hero-head { position: relative; max-width: 940px; margin: 0 auto 3.2rem; }
.pip-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); margin-bottom: 1.2rem; }
.pip-hero .lead2 { max-width: 640px; margin-bottom: 2rem; }
.tri-panel { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 7 / 8.4; color: #fff; isolation: isolate; }
.tri-panel .ph { position: absolute; inset: 0; z-index: -2; }
.tri-panel .ph img { transition: transform .7s; }
.tri-panel:hover .ph img { transform: scale(1.06); }
.tri-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(50,24,48,0) 35%, rgba(50,24,48,.88)); }
.tri-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; display: block; }
.tri-label i { width: 46px; height: 46px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--pi-gold); color: var(--pi-ink); font-size: 1.2rem; margin-bottom: .8rem; }
.tri-label b { display: block; font-family: var(--pi-head); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.tri-label small { display: block; font-size: .95rem; color: rgba(255,255,255,.85); margin-top: .3rem; }
.tri .col-md-4:nth-child(2) .tri-panel { transform: translateY(-24px); }
.tri .col-md-4:nth-child(2) .tri-label i { background: var(--pi-sage); }
.tri .col-md-4:nth-child(3) .tri-label i { background: #fff; color: var(--pi-plum); }
@media (max-width: 767.98px) { .tri .col-md-4:nth-child(2) .tri-panel { transform: none; } .tri-panel { aspect-ratio: 16 / 11; } }

/* ---------- Pillar cards ---------- */
.pillar-card { height: 100%; border-radius: 18px; padding: 2rem 1.7rem; background: var(--pi-cream); border-top: 4px solid var(--pi-plum); }
.pillar-card i { font-size: 2rem; color: var(--pi-plum); display: block; margin-bottom: .9rem; }
.pillar-card h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.pillar-card p { margin-bottom: .8rem; }
.pillar-card span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pi-sage-d); }
.pillar-card.invest { border-top-color: var(--pi-sage-d); background: var(--pi-sage-l); }
.pillar-card.invest i { color: var(--pi-sage-d); }
.pillar-card.plan { border-top-color: var(--pi-gold); }
.pillar-card.plan i { color: var(--pi-gold-d); }

/* ---------- Service cards ---------- */
.pillar-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; padding: .32rem .8rem; border-radius: 999px; background: var(--pi-plum); color: #fff; }
.pillar-tag.invest { background: var(--pi-sage-d); }
.pillar-tag.plan { background: var(--pi-gold); color: var(--pi-ink); }
.svc-card { background: #fff; border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(74,37,69,.07); transition: transform .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(74,37,69,.14); }
.svc-img { position: relative; }
.svc-img .ph { aspect-ratio: 8 / 5.4; }
.svc-img .ph img { transition: transform .6s; }
.svc-card:hover .svc-img .ph img { transform: scale(1.06); }
.svc-img .pillar-tag { position: absolute; left: 1rem; top: 1rem; }
.svc-body { position: relative; padding: 2.2rem 1.7rem 1.8rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.svc-body .ic { position: absolute; top: -28px; right: 1.5rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--pi-gold); color: var(--pi-ink); font-size: 1.4rem; box-shadow: 0 10px 24px rgba(184,134,47,.35); }
.svc-body h3 { font-size: 1.6rem; margin-bottom: .55rem; }
.svc-body p { flex: 1; margin-bottom: 1.3rem; }
.svc-body .btn { white-space: normal; }

/* ---------- About ---------- */
.about-art { position: relative; padding: 0 0 60px 0; }
.about-art .main { border-radius: 20px; aspect-ratio: 9 / 7.6; width: 90%; }
.about-quote { position: absolute; right: 0; bottom: 0; width: 62%; margin: 0; background: var(--pi-plum); color: #fff; font-family: var(--pi-head); font-style: italic; font-size: 1.3rem; line-height: 1.35; padding: 1.6rem 1.7rem; border-radius: 18px; box-shadow: 0 20px 44px rgba(74,37,69,.3); }
.about-quote i { display: block; color: var(--pi-gold); font-size: 1.8rem; line-height: 1; margin-bottom: .3rem; }
@media (max-width: 575.98px) { .about-art .main { width: 100%; } .about-quote { position: relative; width: auto; margin: -40px 16px 0; font-size: 1.12rem; } .about-art { padding-bottom: 0; } }
.leaf { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.leaf li { position: relative; padding-left: 2rem; margin-bottom: .6rem; font-weight: 600; color: var(--pi-ink); }
.leaf li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .15rem; width: 22px; height: 22px; border-radius: 50%; background: var(--pi-sage-l); color: var(--pi-sage-d); display: grid; place-items: center; font-size: 1rem; line-height: 1; }

/* ---------- Life calculator ---------- */
.calc-plum { background: var(--pi-plum); color: rgba(255,255,255,.8); }
.calc-plum .title { color: #fff; }
.calc-plum .title em { color: var(--pi-gold); }
.calc-plum .over { color: var(--pi-sage); }
.calc-plum .lead2 { color: rgba(255,255,255,.78); }
.calc-ph { border-radius: 18px; aspect-ratio: 7 / 5.2; margin-top: 1.6rem; }
.life-card { background: #fff; border-radius: 22px; padding: 2.2rem; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.life-card .form-label { font-weight: 600; color: var(--pi-ink); font-size: .95rem; }
.life-card .input-group-text { background: var(--pi-cream); color: var(--pi-plum); font-weight: 700; }
.life-out { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px dashed var(--pi-line); }
.lo-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; background: var(--pi-cream); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: 1.1rem; }
.lo-top span { font-weight: 700; color: var(--pi-ink); }
.lo-top b { font-family: var(--pi-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--pi-plum); line-height: 1; }
.lo-list { list-style: none; padding: 0; margin: 0; }
.lo-list li { display: grid; grid-template-columns: 14px 1fr auto; column-gap: .7rem; align-items: center; padding: .45rem 0; color: var(--pi-ink); font-size: .97rem; }
.lo-list b { font-weight: 700; }
.lo-list .bar { grid-column: 2 / 4; display: block; height: 7px; border-radius: 999px; background: var(--pi-line); margin-top: .35rem; overflow: hidden; }
.lo-list .bar em { display: block; height: 100%; border-radius: 999px; transition: width .5s; }
.sw { width: 12px; height: 12px; border-radius: 4px; }
.sw.s1, .b1 { background: var(--pi-plum); } .sw.s2, .b2 { background: var(--pi-gold); } .sw.s3, .b3 { background: var(--pi-sage-d); } .sw.s4 { background: #c9bfc7; }
.lo-list .minus { border-top: 1px solid var(--pi-line); margin-top: .4rem; padding-top: .7rem; }
.lo-list .minus b { color: var(--pi-sage-d); }
.lo-note { margin: 1rem 0 .4rem; color: var(--pi-ink); }
.lo-fine { font-size: .85rem; color: #8a7f88; }
@media (max-width: 575.98px) { .life-card { padding: 1.5rem 1.2rem; } }

/* ---------- Zigzag process ---------- */
.zig { position: relative; max-width: 900px; margin: 0 auto; }
.zig::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--pi-sage); }
.zig-item { position: relative; width: 50%; padding: 0 3rem 2.4rem 0; }
.zig-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 3rem; }
.zig-item .zn { position: absolute; top: 0; right: -24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--pi-plum); color: var(--pi-gold); font-family: var(--pi-head); font-size: 1.4rem; font-weight: 700; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.zig-item:nth-child(even) .zn { right: auto; left: -24px; background: var(--pi-gold); color: var(--pi-ink); }
.zc { background: var(--pi-cream); border-radius: 16px; padding: 1.5rem 1.6rem; }
.zig-item:nth-child(odd) .zc { text-align: right; }
.zc h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.zc p { margin: 0; }
@media (max-width: 767.98px) {
  .zig::before { left: 23px; }
  .zig-item, .zig-item:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 1.8rem 4.2rem; }
  .zig-item .zn, .zig-item:nth-child(even) .zn { left: 0; right: auto; }
  .zig-item:nth-child(odd) .zc { text-align: left; }
}

/* ---------- Testimonials ---------- */
.t-card { height: 100%; margin: 0; background: #fff; border-radius: 18px; padding: 2rem 1.9rem; border-top: 5px solid var(--pi-plum); display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(74,37,69,.07); }
.row > div:nth-child(2) > .t-card { border-top-color: var(--pi-gold); }
.row > div:nth-child(3) > .t-card { border-top-color: var(--pi-sage-d); }
.t-card .q { font-size: 2.4rem; color: var(--pi-gold); line-height: 1; }
.t-card blockquote { flex: 1; margin: .4rem 0 1.2rem; }
.t-card blockquote p { font-family: var(--pi-head); font-style: italic; font-size: 1.28rem; line-height: 1.5; color: var(--pi-ink); margin: 0; }
.t-card figcaption { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--pi-line); padding-top: 1rem; }
.t-card .nm { font-weight: 700; color: var(--pi-plum); }
.stars { color: var(--pi-gold); font-size: .82rem; letter-spacing: .15em; }

/* ---------- Blog ---------- */
.more { font-weight: 700; color: var(--pi-plum); }
.more i { display: inline-block; transition: transform .25s; }
a:hover .more i { transform: translateX(5px); }
.blog-wide { display: block; background: var(--pi-cream); border-radius: 20px; overflow: hidden; color: var(--pi-text); }
.blog-wide .ph { height: 100%; min-height: 320px; }
.bw-txt { padding: 2.6rem; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bw-txt h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 1rem 0 .7rem; }
.blog-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--pi-line); border-radius: 20px; overflow: hidden; color: var(--pi-text); }
.blog-card .ph { aspect-ratio: 9 / 5.2; }
.bc-txt { padding: 1.7rem 1.8rem 1.9rem; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.bc-txt h3 { font-size: 1.55rem; margin: .9rem 0 .5rem; }
.bc-txt .ex { display: block; flex: 1; margin-bottom: 1rem; }
.blog-wide .ph img, .blog-card .ph img { transition: transform .6s; }
.blog-wide:hover .ph img, .blog-card:hover .ph img { transform: scale(1.05); }
.blog-wide:hover h3, .blog-card:hover h3 { color: var(--pi-plum-2); }
@media (max-width: 575.98px) { .bw-txt { padding: 1.7rem 1.4rem; } .blog-wide .ph { min-height: 220px; } }

/* ---------- FAQ ---------- */
.acc-pip .accordion-item { border: 0; border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(74,37,69,.05); }
.acc-pip .accordion-button { font-family: var(--pi-head); font-weight: 600; font-size: 1.18rem; color: var(--pi-ink); background: #fff; padding: 1.15rem 1.4rem; box-shadow: none; gap: 1rem; }
.acc-pip .accordion-button:not(.collapsed) { color: var(--pi-plum); background: #fff; }
.acc-pip .accordion-button::after { background-image: none; content: "\F282"; font-family: "bootstrap-icons"; width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: var(--pi-cream); color: var(--pi-plum); font-size: .9rem; transition: transform .3s; margin-left: auto; }
.acc-pip .accordion-button:not(.collapsed)::after { transform: rotate(180deg); background: var(--pi-gold); color: var(--pi-ink); }
.acc-pip .accordion-button:focus { box-shadow: none; }
.acc-pip .accordion-body { padding: 0 1.4rem 1.3rem; }
.faq-art { position: relative; }
.faq-art .ph { border-radius: 200px 200px 20px 20px; aspect-ratio: 8 / 9; }
.faq-card { position: absolute; left: -20px; bottom: 30px; display: flex; align-items: center; gap: .9rem; background: #fff; padding: 1rem 1.3rem; border-radius: 14px; box-shadow: 0 18px 40px rgba(74,37,69,.2); }
.faq-card i { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--pi-plum); color: var(--pi-gold); font-size: 1.2rem; }
.faq-card b { display: block; color: var(--pi-ink); }
.faq-card a { font-weight: 700; }
@media (max-width: 575.98px) { .faq-card { left: 12px; right: 12px; bottom: 16px; } }

/* ---------- Newsletter ---------- */
.news-plum { background: var(--pi-plum-3); background-image: radial-gradient(circle at 85% 20%, rgba(212,162,76,.18), transparent 40%); color: rgba(255,255,255,.78); padding: 80px 0; }
.news-plum .over { color: var(--pi-sage); }
.news-plum h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .6rem; }
.news-plum h2 em { color: var(--pi-gold); }
.news-field { display: flex; gap: .5rem; background: #fff; border-radius: 10px; padding: .4rem; }
.news-field .form-control { border: 0; box-shadow: none; }
@media (max-width: 400px) { .news-field { flex-direction: column; } }

/* ---------- CTA ---------- */
.cta-sage { padding: 90px 0; background: #fff; }
.cta-card { background: var(--pi-sage-l); border-radius: 24px; padding: 3.2rem 3rem; border-left: 8px solid var(--pi-gold); position: relative; overflow: hidden; }
.cta-card::after { content: "\F531"; font-family: "bootstrap-icons"; position: absolute; right: -20px; bottom: -60px; font-size: 13rem; color: rgba(74,37,69,.05); line-height: 1; pointer-events: none; }
.cta-card h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
@media (max-width: 575.98px) { .cta-card { padding: 2.2rem 1.4rem; } }

/* ---------- Page banner ---------- */
.pip-banner { background: var(--pi-cream); padding: 70px 0; position: relative; overflow: hidden; }
.pip-banner h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: .9rem; }
.pip-banner.post h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.crumbs i { font-size: .7rem; color: var(--pi-gold-d); }
.crumbs .cur { color: var(--pi-ink); }
.banner-art { position: relative; padding: 18px; }
.banner-art .ph { border-radius: 160px 20px 160px 20px; aspect-ratio: 8 / 6; position: relative; z-index: 1; }
.banner-art .ring { position: absolute; inset: 0; border: 2px solid var(--pi-sage); border-radius: 170px 24px 170px 24px; }

/* ---------- Services page ---------- */
.svc-block { padding: 3rem 0; border-bottom: 1px solid var(--pi-line); scroll-margin-top: 110px; }
.svc-block:first-child { padding-top: 0; }
.svc-block:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-block-img { position: relative; }
.svc-block-img .ph { border-radius: 20px; aspect-ratio: 9 / 6.4; }
.svc-block-img .pillar-tag { position: absolute; left: 1.2rem; top: 1.2rem; }
.ic-lg { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: var(--pi-plum); color: var(--pi-gold); font-size: 1.5rem; margin-bottom: 1rem; }
.svc-block h2 { font-size: clamp(2rem, 3.2vw, 2.6rem); margin-bottom: .8rem; }

/* ---------- About page ---------- */
.mv-card { background: #fff; border-radius: 20px; padding: 2.4rem 2.2rem; height: 100%; border-left: 6px solid var(--pi-plum); }
.mv-card.alt { border-left-color: var(--pi-gold); }
.mv-card .ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--pi-sage-l); color: var(--pi-plum); font-size: 1.4rem; margin-bottom: 1rem; }
.mv-card h3 { font-size: 1.9rem; }

/* ---------- Blog post ---------- */
.post-photo { border-radius: 20px; aspect-ratio: 2 / 1; margin-bottom: 2.2rem; }
.post-text p { margin-bottom: 1.35rem; font-size: 1.1rem; }
.post-text h2 { font-size: 2rem; margin: 2.3rem 0 1rem; }
.post-text .pip-note { position: relative; background: var(--pi-sage-l); border-radius: 16px; padding: 1.6rem 1.7rem 1.6rem 4.6rem; font-family: var(--pi-head); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--pi-ink); margin: 2rem 0; }
.post-text .pip-note::before { content: "\F531"; font-family: "bootstrap-icons"; font-style: normal; position: absolute; left: 1.4rem; top: 1.5rem; width: 40px; height: 40px; border-radius: 10px; background: var(--pi-plum); color: var(--pi-gold); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.post-text a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--pi-line); padding-top: 1.8rem; margin-top: 2.4rem; }
.side-box { background: var(--pi-cream); border-radius: 20px; padding: 1.8rem; margin-bottom: 1.6rem; }
.side-box h3 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.side-box .sp { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; color: var(--pi-ink); font-weight: 600; line-height: 1.35; }
.side-box .sp:last-child { margin-bottom: 0; }
.side-box .sp:hover { color: var(--pi-plum-2); }
.side-box .sp .ph { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed rgba(74,37,69,.18); color: var(--pi-ink); font-weight: 600; }
.side-box li a i { color: var(--pi-gold-d); }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover { color: var(--pi-plum-2); }
.side-box.plum { background: var(--pi-plum); color: rgba(255,255,255,.8); }
.side-box.plum h3 { color: #fff; }

/* ---------- Contact ---------- */
.c-tile { display: flex; gap: 1rem; align-items: flex-start; background: var(--pi-cream); border-radius: 18px; padding: 1.6rem; height: 100%; }
.c-tile > i { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 14px; background: var(--pi-plum); color: var(--pi-gold); font-size: 1.3rem; }
.c-tile h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.c-tile p { margin: 0; }
.c-tile a { font-weight: 700; overflow-wrap: anywhere; }
.form-box { background: #fff; border: 1px solid var(--pi-line); border-radius: 22px; padding: 2.5rem; box-shadow: 0 20px 44px rgba(74,37,69,.07); height: 100%; }
.form-box .form-label { font-weight: 600; color: var(--pi-ink); }
.form-control, .form-select { border-radius: 8px; border-color: #ddd3c6; padding: .74rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--pi-plum-2); box-shadow: 0 0 0 .2rem rgba(94,51,88,.14); }
.form-check-input:checked { background-color: var(--pi-plum); border-color: var(--pi-plum); }
@media (max-width: 575.98px) { .form-box { padding: 1.7rem 1.2rem; } }
.map-frame { height: 100%; min-height: 420px; border-radius: 22px; overflow: hidden; border: 6px solid var(--pi-sage-l); }
.map-frame iframe { width: 100%; height: 100%; min-height: 408px; border: 0; display: block; }
.unsub-ic { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; display: grid; place-items: center; background: var(--pi-plum); color: var(--pi-gold); font-size: 1.5rem; }
.rounded-photo { border-radius: 20px; aspect-ratio: 9 / 5.2; }

/* ---------- Form status ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.success { background: #e9f1e1; color: #3f5a28; border: 1px solid #cbdcb8; }
.form-status.error { background: #fbe9ec; color: #8f1f37; border: 1px solid #f2c4ce; }

/* ---------- Legal ---------- */
.legal-nav { position: sticky; top: 110px; background: var(--pi-cream); border-radius: 18px; padding: 1.6rem; }
.legal-nav h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.legal-nav a { display: flex; gap: .6rem; padding: .38rem 0; color: var(--pi-ink); font-weight: 600; font-size: .95rem; }
.legal-nav a span { color: var(--pi-gold-d); font-weight: 700; }
.legal-nav a:hover { color: var(--pi-plum-2); }
@media (max-width: 1199.98px) { .legal-nav { position: static; } }
.legal-body h2 { font-size: 1.8rem; margin: 2.2rem 0 .9rem; scroll-margin-top: 110px; display: flex; align-items: baseline; gap: .8rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .n { font-family: var(--pi-body); font-size: .85rem; font-weight: 700; color: var(--pi-gold-d); }
.legal-body ul { padding-left: 1.3rem; }

/* ---------- Footer ---------- */
.foot { background: var(--pi-plum-3); color: rgba(255,255,255,.68); padding: 80px 0 0; font-size: .97rem; }
.foot .brand-logo { color: #fff; }
.foot .brand-logo .crest { background: var(--pi-gold); color: var(--pi-plum-3); }
.foot-pillars { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.foot-pillars span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.foot-pillars i { color: var(--pi-gold); }
.foot h4 { color: #fff; font-size: 1.35rem; margin-bottom: 1.1rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .55rem; }
.foot a { color: rgba(255,255,255,.75); }
.foot a:hover { color: var(--pi-gold); }
.foot .cl { display: flex; gap: .7rem; align-items: flex-start; overflow-wrap: anywhere; }
.foot .cl i { color: var(--pi-gold); margin-top: .2rem; }
.foot-field { display: flex; gap: .4rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .3rem; }
.foot-field .form-control { background: transparent; border: 0; color: #fff; box-shadow: none; }
.foot-field .form-control::placeholder { color: rgba(255,255,255,.5); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding: 1.4rem 0; font-size: .92rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.3rem; }
@media (max-width: 767.98px) { .foot-legal { justify-content: center; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 12px; border: 0; background: var(--pi-plum); color: var(--pi-gold); font-size: 1.2rem; z-index: 1040; box-shadow: 0 10px 24px rgba(74,37,69,.3); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--pi-gold); color: var(--pi-ink); }

/* ---------- Reveal ---------- */
.rise-up { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rise-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rise-up { opacity: 1; transform: none; transition: none; } }

@media (max-width: 767.98px) {
  .sec { padding: 70px 0; }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .pip-hero { padding: 56px 0 70px; }
}
