/* ==================================================================
 * Liafon Home (Corporate) — page-home.php styles
 * The classic light Liafon landing design: pink/peach hero gradient,
 * rotating dashed rings around the portrait, airy naturally-scrolling
 * sections. No cinematic background on this page (the home-automation
 * tour page keeps its own).
 * ================================================================== */

.lfh-root { position: relative; background: #fff; color: #1f0644;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.lfh-root h1, .lfh-root h2, .lfh-root h3, .lfh-head {
  font-family: 'Outfit', system-ui, sans-serif; }
.lfh-container { width: min(1200px, 92vw); margin-inline: auto; }
.lfh-root section[id] { position: relative; }
.lfh-sec { padding-block: clamp(3rem, 7vh, 5.5rem); }
.lfh-badge { display: inline-flex; align-items: center; gap: .45rem;
  border-radius: 999px; background: rgba(127,46,248,.1); color: #7f2ef8;
  padding: .4rem .95rem; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.lfh-badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 999px; background: #7f2ef8; }
.lfh-h2 { font-size: clamp(1.5rem, 2.6vw + .8vh, 2.55rem); font-weight: 800; line-height: 1.1; margin: .7rem 0 .6rem; }
.lfh-h2 em, .lfh-hero-h1 em { font-style: normal;
  background: linear-gradient(90deg, #7f2ef8, #a35cff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lfh-p { color: #616161; line-height: 1.55; margin: 0 0 clamp(.5rem, 1.4vh, 1rem); }
.lfh-btn { display: inline-flex; align-items: center; gap: .55rem;
  border-radius: 999px; background: linear-gradient(135deg, #7f2ef8, #6a1fe0);
  color: #fff; font-weight: 700; padding: .85rem 1.7rem; text-decoration: none;
  box-shadow: 0 18px 40px -14px rgba(127,46,248,.65); transition: transform .25s, box-shadow .25s; }
.lfh-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -14px rgba(127,46,248,.8); }
.lfh-btn-ghost { background: rgba(31,6,68,.06); color: #1f0644; box-shadow: none; }
.lfh-sec-head { text-align: center; margin-bottom: clamp(.9rem, 2.6vh, 2rem); }

/* ---------------- hero ---------------- */
.lfh-hero { background: linear-gradient(178deg, #ffc8dc 0%, #ffd9c9 38%, #ffe6cd 72%, #f6efff 100%); }
.lfh-hero-grid { display: grid; gap: clamp(1.2rem, 2.4vw, 2.5rem); align-items: center; }
@media (min-width: 64rem) { .lfh-hero-grid { grid-template-columns: 1.05fr .95fr; } }
.lfh-hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(.6rem, 1.6vh, 1.2rem); }
.lfh-hero-h1 { font-size: clamp(2rem, 3.4vw + 1.6vh, 3.6rem); font-weight: 800; line-height: 1.04; margin: 0 0 .8rem; }
.lfh-hero-h1 span, .lfh-hero-h1 em { display: block; }
.lfh-hero-sub { color: #4a3a63; font-weight: 600; margin: 0 0 clamp(.8rem, 2.2vh, 1.6rem); font-size: clamp(.85rem, 1vw + .3vh, 1.02rem); }
.lfh-hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.lfh-hero-art { position: relative; }
.lfh-hero-art::before { content: ""; position: absolute; right: -8%; top: 8%;
  width: 420px; height: 420px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,154,80,.4) 0%, rgba(255,205,160,.18) 45%, transparent 70%);
  animation: lfh-pulse 7s ease-in-out infinite; }
.lfh-hero-art::after { content: ""; position: absolute; left: -6%; bottom: -4%;
  width: 380px; height: 380px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(127,46,248,.22) 0%, transparent 68%);
  animation: lfh-pulse 7s ease-in-out infinite; animation-delay: 2s; }
@keyframes lfh-pulse { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
.lfh-rings { position: relative; }
.lfh-ring { position: absolute; border-radius: 999px; pointer-events: none; }
/* keep the decorative rings inside the viewport on phones */
.lfh-hero-art { overflow: visible; }
@media (max-width: 47.99rem) { .lfh-hero { overflow: hidden; } }
.lfh-ring-a { inset: -14px; border: 2px dashed rgba(127,46,248,.55); animation: lfh-spin 26s linear infinite; }
.lfh-ring-b { inset: 22px; border: 1px dashed rgba(127,46,248,.25); animation: lfh-spin-rev 34s linear infinite; }
@keyframes lfh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lfh-spin-rev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.lfh-rings img { position: relative; width: 100%; height: auto; border-radius: 999px;
  box-shadow: 0 40px 80px -30px rgba(31,6,68,.5); }

/* ---------------- about ---------------- */
.lfh-about { background: linear-gradient(180deg, #f3eaff 0%, #f8f3ff 40%, #fff 100%); }
.lfh-about-grid { display: grid; gap: clamp(1.2rem, 2.2vw, 2.5rem); align-items: center; }
@media (min-width: 64rem) { .lfh-about-grid { grid-template-columns: .92fr 1.08fr; } }
.lfh-collage { display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 1.4rem; overflow: hidden;
  border: 4px solid #fff; box-shadow: 0 30px 60px -24px rgba(127,46,248,.45); }
.lfh-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lfh-stat-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid rgba(127,46,248,.1); border-top: 0; padding: clamp(.55rem, 1.4vh, 1.1rem) 1rem; background: #fff; }
.lfh-stat-n { font-size: clamp(1.5rem, 2.2vh, 2.2rem); font-weight: 800; color: #7f2ef8; }
.lfh-stat-t { margin: .15rem 0 0; font-size: .85rem; color: #616161; }
.lfh-star { font-size: 1.6rem; color: #7f2ef8; }
.lfh-skill { margin-top: clamp(.5rem, 1.4vh, 1rem); }
.lfh-skill-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.lfh-skill-row .lfh-head { font-weight: 700; font-size: .95rem; }
.lfh-skill-pct { border-radius: 999px; background: #7f2ef8; color: #fff;
  font-size: .75rem; font-weight: 700; padding: .25rem .7rem; }
.lfh-skill-track { height: clamp(.5rem, 1vh, .85rem); border-radius: 999px; background: rgba(31,6,68,.08); overflow: hidden; }
.lfh-skill-track i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #7f2ef8, #a35cff); }

/* ---------------- services ---------------- */
.lfh-services { background: #fff; }
.lfh-services-grid { display: grid; gap: clamp(1.2rem, 2.2vw, 2.5rem); }
@media (min-width: 64rem) { .lfh-services-grid { grid-template-columns: .92fr 1.08fr; align-items: start; } }
.lfh-services-frame { position: relative; height: 460px; border-radius: 1.4rem; overflow: hidden;
  box-shadow: 0 36px 80px -30px rgba(31,6,68,.5); }
.lfh-services-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s; }
.lfh-services-frame img.on { opacity: 1; }
.lfh-services-frame-tint { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,6,68,.92), rgba(31,6,68,.25) 55%, transparent); }
.lfh-svc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  border-bottom: 1px solid rgba(31,6,68,.1); padding: clamp(.45rem, 1.2vh, .8rem) 1rem; transition: background .25s; }
.lfh-svc-row:hover, .lfh-svc-row.on { background: rgba(127,46,248,.05); }
.lfh-svc-n { font-size: clamp(1.1rem, 1.8vh, 1.4rem); font-weight: 800; color: rgba(31,6,68,.35); }
.lfh-svc-row.on .lfh-svc-n { color: #7f2ef8; }
.lfh-svc-t { display: block; font-weight: 800; font-size: 1.02rem; }
.lfh-svc-d { display: block; color: #616161; font-size: .88rem; margin-top: .15rem; }
.lfh-svc-arrow { color: #7f2ef8; opacity: 0; transform: translateX(-4px); transition: all .25s; }
.lfh-svc-row.on .lfh-svc-arrow { opacity: 1; transform: none; }

/* ---------------- portfolio ---------------- */
.lfh-portfolio { background: #fff; }
.lfh-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: clamp(.5rem, 1.4vh, 1.2rem); }
.lfh-chip { border: 1px solid rgba(31,6,68,.14); background: #fff; color: #1f0644;
  border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .25s; }
.lfh-chip.on, .lfh-chip:hover { background: #7f2ef8; border-color: #7f2ef8; color: #fff; }
.lfh-works { display: grid; gap: clamp(.6rem, 1.2vh, 1.2rem); grid-template-columns: repeat(2, 1fr); align-content: center; }
@media (min-width: 48rem) { .lfh-works { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .lfh-works { grid-template-columns: repeat(4, 1fr); }
  .lfh-works .lfh-work-img img { aspect-ratio: 16/8.5; }
  .lfh-work-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.lfh-work { display: block; border-radius: 1.6rem; overflow: hidden; background: #fff;
  border: 1px solid rgba(31,6,68,.08); text-decoration: none; color: inherit;
  box-shadow: 0 24px 50px -30px rgba(31,6,68,.35); transition: transform .3s; }
.lfh-work:hover { transform: translateY(-4px); }
.lfh-work.hide { display: none; }
.lfh-work-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lfh-work-body { padding: clamp(.5rem, 1.1vh, .9rem) .8rem clamp(.55rem, 1.2vh, 1.1rem); }
.lfh-work-cat { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7f2ef8; }
.lfh-work-body h3 { margin: .3rem 0; font-size: clamp(.88rem, 1.25vh, 1.05rem); font-weight: 800; }
.lfh-work-body p { margin: 0 0 .55rem; color: #616161; font-size: clamp(.78rem, 1.05vh, .88rem); line-height: 1.45; }
.lfh-work-cta { color: #7f2ef8; font-weight: 700; font-size: .88rem; }

/* ---------------- advisory ---------------- */
.lfh-advisory { background: #f6efff; }
.lfh-advisory-grid { display: grid; gap: clamp(1.2rem, 2.2vw, 2.5rem); align-items: center; }
@media (min-width: 64rem) { .lfh-advisory-grid { grid-template-columns: 1.05fr .95fr; } }
.lfh-skills { display: flex; flex-direction: column; gap: clamp(.55rem, 1.5vh, 1.1rem); margin-top: clamp(.7rem, 1.8vh, 1.4rem); }
.lfh-advisory-art { display: flex; align-items: center; }
.lfh-advisory-art img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 1.4rem; box-shadow: 0 36px 80px -34px rgba(31,6,68,.5); }

/* ---------------- team ---------------- */
.lfh-team { background: #fff; }
.lfh-team-grid { display: grid; gap: clamp(.7rem, 1.4vh, 1.3rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .lfh-team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .lfh-team-grid { grid-template-columns: repeat(6, 1fr); } }
.lfh-member { text-align: center; border: 1px solid rgba(31,6,68,.08); border-radius: 1.2rem;
  padding: clamp(.7rem, 1.6vh, 1.5rem) .6rem; background: #fff; transition: transform .3s; }
.lfh-member:hover { transform: translateY(-4px); }
.lfh-member-ava { width: clamp(3rem, 5.4vh, 4.2rem); height: clamp(3rem, 5.4vh, 4.2rem); margin: 0 auto clamp(.4rem, 1.2vh, .9rem); display: flex; align-items: center;
  justify-content: center; border-radius: 999px; font-size: 1.3rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #7f2ef8, #6a1fe0); }
.lfh-member h3 { margin: 0 0 .15rem; font-size: clamp(.85rem, 1.3vh, 1.05rem); font-weight: 800; }
.lfh-member p { margin: 0; color: #7f2ef8; font-size: clamp(.72rem, 1vh, .85rem); font-weight: 600; }

/* ---------------- testimonials ---------------- */
.lfh-testimonials { background: #faf8ff; }
.lfh-tst-grid { display: grid; gap: clamp(.8rem, 1.6vh, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .lfh-tst-grid { grid-template-columns: repeat(3, 1fr); } }
.lfh-tst { margin: 0; border: 1px solid rgba(31,6,68,.08); border-radius: 1.2rem; padding: clamp(.8rem, 1.8vh, 1.5rem); background: #fff; }
.lfh-tst blockquote { margin: clamp(.5rem, 1.3vh, 1rem) 0 clamp(.6rem, 1.4vh, 1.2rem); color: #4a3a63; line-height: 1.5; font-size: clamp(.8rem, 1.15vh, .95rem); }
.lfh-tst figcaption { display: flex; align-items: center; gap: .8rem; }
.lfh-tst-ava { width: clamp(2.2rem, 3.6vh, 2.8rem); height: clamp(2.2rem, 3.6vh, 2.8rem); display: flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #a35cff, #7f2ef8); }
.lfh-tst figcaption b { display: block; font-size: .95rem; }
.lfh-tst figcaption i { font-style: normal; color: #616161; font-size: .82rem; }

/* ---------------- blog ---------------- */
.lfh-blog { background: #fff; }
.lfh-blog-grid { display: grid; gap: clamp(.8rem, 1.6vh, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .lfh-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .lfh-blog-grid { grid-template-columns: repeat(3, 1fr); }
  .lfh-blog-grid .lfh-post:nth-child(n+4) { display: none; } }
.lfh-post { display: block; text-decoration: none; color: inherit; border: 1px solid rgba(31,6,68,.08);
  border-radius: 1.6rem; overflow: hidden; background: #fff; transition: transform .3s; }
.lfh-post:hover { transform: translateY(-4px); }
.lfh-post-img { position: relative; }
.lfh-post-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
@media (min-width: 64rem) { .lfh-post-img img { aspect-ratio: 16/7.5; } }
.lfh-post-cat { position: absolute; left: 1rem; top: 1rem; background: #fff; color: #7f2ef8;
  border-radius: 999px; padding: .3rem .8rem; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.lfh-post-body { padding: clamp(.6rem, 1.4vh, 1.1rem) .9rem clamp(.7rem, 1.5vh, 1.3rem); }
.lfh-post-body h3 { margin: 0 0 .45rem; font-size: clamp(.85rem, 1.25vh, 1rem); font-weight: 800; line-height: 1.3; }
.lfh-post-meta { display: flex; gap: .5rem; color: #616161; font-size: .8rem; margin-bottom: .8rem; }
.lfh-post-cta { color: #7f2ef8; font-weight: 700; font-size: .88rem; }

/* ---------------- cta ---------------- */
.lfh-cta { background: linear-gradient(120deg, #00152d 0%, #062148 100%); color: #fff; }
.lfh-cta .lfh-h2 em { background: linear-gradient(90deg, #a35cff, #c9a4ff); -webkit-background-clip: text; background-clip: text; }
.lfh-cta-flex { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.lfh-cta h2 { font-size: clamp(1.6rem, 2.8vw + 1vh, 2.7rem); font-weight: 800; margin: 0; }

/* ---------------- contact ---------------- */
.lfh-contact { background: #f6efff; }
.lfh-contact-grid { display: grid; gap: clamp(.7rem, 1.4vh, 1.3rem); grid-template-columns: 1fr; margin-bottom: clamp(.8rem, 2vh, 1.6rem); }
@media (min-width: 48rem) { .lfh-contact-grid { grid-template-columns: repeat(3, 1fr); } }
.lfh-ccard { display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid rgba(31,6,68,.08); border-radius: 1.2rem; padding: clamp(.7rem, 1.6vh, 1.5rem); transition: transform .3s; }
.lfh-ccard:hover { transform: translateY(-4px); }
.lfh-ccard-ic { display: inline-flex; width: clamp(2.2rem, 3.8vh, 3rem); height: clamp(2.2rem, 3.8vh, 3rem); align-items: center; justify-content: center;
  border-radius: .8rem; background: rgba(127,46,248,.1); color: #7f2ef8; font-size: 1.1rem; margin-bottom: clamp(.4rem, 1vh, .9rem); }
.lfh-ccard h3 { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 800; }
.lfh-ccard p { margin: 0; color: #616161; font-size: .88rem; line-height: 1.55; }
.lfh-map { border-radius: 1.6rem; overflow: hidden; border: 1px solid rgba(31,6,68,.1); }
.lfh-map iframe { width: 100%; height: 380px; border: 0; display: block; }


/* ------------- right-edge section nav lines (light page) --------- */
.lfh-scrolllines { position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: .8rem; }
/* phones/tablets: compact rail — still visible so every screen can jump */
@media (max-width: 63.99rem) {
  .lfh-scrolllines { right: .55rem; gap: .5rem; }
  .lfh-scrolllines button { gap: .35rem; padding: .15rem 0; }
  .lfh-scrolllines button span { font-size: .6rem; letter-spacing: .1em; }
  .lfh-scrolllines button i { width: 1.15rem; height: 2.5px; }
  .lfh-scrolllines button.on i { width: 1.7rem; }
  /* touch devices show the ACTIVE label over content — give it a chip */
  .lfh-scrolllines button span { padding: .18rem .45rem; border-radius: .45rem;
    background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}
.lfh-scrolllines button { display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  background: none; border: 0; padding: .2rem 0; cursor: pointer; }
.lfh-scrolllines button span { white-space: nowrap; font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: #1f0644; opacity: 0; transform: translateX(.4rem);
  transition: opacity .35s, transform .35s; }
.lfh-scrolllines button:hover span, .lfh-scrolllines button.on span { opacity: 1; transform: none; }
.lfh-scrolllines button i { display: block; width: 2.2rem; height: 3px; border-radius: 999px;
  background: rgba(31,6,68,.22); overflow: hidden; position: relative; transition: width .35s; }
.lfh-scrolllines button.on i { width: 3.2rem; }
.lfh-scrolllines button i b { position: absolute; inset-block: 0; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #c9a4ff, #7f2ef8); box-shadow: 0 0 12px rgba(127,46,248,.9); }

/* --------------------- reveal-on-scroll -------------------------- */
.lfh-reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.lfh-reveal.lfh-in { opacity: 1; transform: none; }
/* slightly smaller travel for big cards */
.lfh-collage.lfh-reveal, .lfh-services-preview.lfh-reveal, .lfh-advisory-art.lfh-reveal, .lfh-map.lfh-reveal { transform: translateY(36px) scale(.985); }
@media (prefers-reduced-motion: reduce) {
  .lfh-reveal { opacity: 1; transform: none; transition: none; }
}

/* smooth anchor scrolling for nav-line jumps */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ------------- one-section-per-screen snap (desktop) --------------
 * Sibling of sectionFit() in home.js: sections are sized to one
 * viewport by JS; this makes wheel steps settle on exactly one
 * section. Mobile keeps natural scrolling. */
html { scroll-snap-type: y proximity; }
@media (max-width: 63.99rem) { html { scroll-snap-type: none; } }
@media (min-width: 64rem) {
  .lfh-root section[id] {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}
