/*
 * Home page (site/home.php). Built on app.css tokens and components (.btn, .card, .input,
 * .form-group), so it shares buttons, colours, fonts and light/dark mode with every other
 * page; this file only lays out the home sections (prefix hm-).
 */
body { background: var(--bg-primary); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.hm-section { padding: 5rem 0; }
.hm-section--tint { background: var(--bg-secondary); }
.hm-center { text-align: center; margin-top: 2.5rem; }
.hm-kicker { display: inline-block; font: 700 .75rem/1 var(--font-primary); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
.hm-head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.hm-head h2, .hm-about h2, .hm-contact h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 .75rem; }
.hm-head p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin: 0; }
.hm-lead { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }
.hm-grad { background: linear-gradient(120deg, var(--primary) 0%, #a855f7 60%, #ec4899 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hm-hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden;
           background: radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
                       radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, #ec4899 10%, transparent), transparent 70%); }
.hm-hero__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hm-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hm-eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text-secondary); }
.hm-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); }
.hm-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; margin: 1.1rem 0 1.1rem; }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hm-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--text-secondary); font-size: .9rem; }
.hm-trust i { color: var(--primary); margin-right: .35rem; }
.hm-hero__art { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hm-tile { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.hm-tile img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.hm-tile span { position: absolute; left: .6rem; bottom: .6rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(15, 23, 42, .78); color: #fff; font: 600 .76rem/1.2 var(--font-primary); }
.hm-tile--0 { grid-column: 1 / -1; }
.hm-tile--3 { display: none; }
@media (max-width: 600px) { .hm-tile--1, .hm-tile--2 { display: none; } }
.sf { margin-top: 0; }

/* Two paths */
.hm-paths { padding: 1rem 0 1rem; }
.hm-paths__grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .hm-paths__grid { grid-template-columns: 1fr 1fr; } }
.hm-path { display: flex; flex-direction: column; gap: .35rem; padding: 1.75rem; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hm-path:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.hm-path__icon { width: 3rem; height: 3rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; background: linear-gradient(135deg, var(--primary), #8b5cf6); margin-bottom: .5rem; }
.hm-path--alt .hm-path__icon { background: linear-gradient(135deg, #0ea5e9, #10b981); }
.hm-path__kicker { font: 700 .72rem/1 var(--font-primary); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.hm-path h2 { font-size: 1.45rem; margin: .1rem 0 .2rem; }
.hm-path p { color: var(--text-secondary); line-height: 1.6; margin: 0 0 .5rem; }
.hm-path__more { margin-top: auto; font-weight: 600; color: var(--primary); }

/* Products */
.hm-subhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 2.25rem 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.hm-subhead:first-of-type { margin-top: 0; }
.hm-subhead h3 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.hm-subhead h3 i { color: var(--primary); }
.hm-subhead p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.hm-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hm-card { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text-primary); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.hm-card__img { display: block; border-bottom: 1px solid var(--border); background: var(--bg-tertiary); }
.hm-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.hm-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.hm-card__top { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-bottom: .2rem; }
.hm-card__icon { width: 2.1rem; height: 2.1rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); margin-right: auto; }
.hm-card strong { font: 700 1.1rem/1.25 var(--font-primary); }
.hm-card em { font-style: normal; color: var(--primary); font-weight: 600; font-size: .88rem; }
.hm-card__text { color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }
.hm-card__foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.hm-card__go { margin-top: auto; padding-top: .5rem; font-weight: 600; font-size: .9rem; color: var(--primary); }
.hm-card__foot .hm-card__go { padding-top: 0; margin-top: 0; }
.hm-price { font: 700 1rem/1.2 var(--font-primary); }
.hm-price small { font-weight: 500; font-size: .76rem; color: var(--text-muted); }
.hm-chip { font: 600 .7rem/1 var(--font-primary); padding: .32rem .55rem; border-radius: 999px; background: var(--bg-tertiary); color: var(--text-secondary); }
.hm-chip--soon { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #b45309; }
:root[data-theme="dark"] .hm-chip--soon { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hm-chip--soon { color: #fbbf24; } }

/* Services */
.hm-services { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .hm-services { grid-template-columns: repeat(3, 1fr); } }
.hm-service { padding: 1.6rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.hm-service__icon { width: 2.75rem; height: 2.75rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 1.15rem; margin-bottom: .9rem; }
.hm-service h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.hm-service p { color: var(--text-secondary); line-height: 1.6; font-size: .95rem; margin: 0 0 .9rem; }
.hm-service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .9rem; }
.hm-service li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--success); margin-right: .5rem; font-size: .8rem; }
.hm-process { margin-top: 3rem; }
.hm-process h3 { text-align: center; font-size: 1.2rem; margin: 0 0 1.25rem; }
.hm-process ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .hm-process ol { grid-template-columns: repeat(4, 1fr); } }
.hm-process li { position: relative; padding: 1.25rem; border-radius: 14px; border: 1px dashed var(--border); background: var(--bg-primary); }
.hm-process li span { display: inline-flex; width: 1.9rem; height: 1.9rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--primary); color: #fff; font: 700 .85rem/1 var(--font-primary); margin-bottom: .6rem; }
.hm-process li strong { display: block; font-family: var(--font-primary); margin-bottom: .25rem; }
.hm-process li p { margin: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.55; }

/* Values + stats */
.hm-values { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hm-value { padding: 1.4rem; border-radius: 16px; background: var(--bg-secondary); border: 1px solid var(--border); }
.hm-value i { font-size: 1.3rem; color: var(--primary); margin-bottom: .7rem; }
.hm-value h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.hm-value p { margin: 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }
.hm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; padding: 1.75rem; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #312e81, #4f46e5 55%, #7c3aed); }
@media (min-width: 760px) { .hm-stats { grid-template-columns: repeat(4, 1fr); } }
.hm-stats div { text-align: center; }
.hm-stats strong { display: block; font: 800 2rem/1.1 var(--font-primary); }
.hm-stats span { font-size: .88rem; opacity: .85; }

/* Work */
.hm-work-intro { max-width: 70ch; margin: -.5rem auto 1.75rem; text-align: center; color: var(--text-secondary); }
.hm-work { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hm-work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .hm-work { grid-template-columns: repeat(4, 1fr); } }
.hm-site { display: flex; flex-direction: column; gap: .6rem; padding: 1.35rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); }
.hm-site strong { display: block; font-family: var(--font-primary); color: var(--text-primary); font-size: 1.05rem; }
.hm-site small { color: var(--text-muted); font-size: .82rem; }
.hm-site p { margin: 0; font-size: .92rem; line-height: 1.6; }
.hm-site__head { display: flex; gap: .75rem; align-items: center; }
.hm-site a { margin-top: auto; font-weight: 600; font-size: .9rem; }
.hm-work-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1.5rem; color: var(--text-secondary); font-size: .92rem; }
.hm-work-more span { display: inline-flex; gap: .45rem; align-items: center; }
.hm-work-more i { color: var(--primary); }
.hm-avatar { flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary), #ec4899); }

/* About */
.hm-about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hm-about { grid-template-columns: 1.1fr 1fr; } }
.hm-about p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }
.hm-about .btn-ghost { padding-left: 0; color: var(--primary); }
.hm-about__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.hm-about__facts li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-secondary); font-size: .92rem; color: var(--text-secondary); }
.hm-about__facts i { color: var(--primary); font-size: 1.1rem; margin-top: .15rem; width: 1.2rem; text-align: center; }
.hm-about__facts strong { display: block; color: var(--text-primary); font-family: var(--font-primary); }

/* Contact */
.hm-contact { background: var(--bg-secondary); }
.hm-contact__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .hm-contact__grid { grid-template-columns: 1fr 1.15fr; } }
.hm-contact__list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
.hm-contact__list li { display: flex; gap: .9rem; align-items: center; }
.hm-contact__list li > i { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--primary); flex-shrink: 0; }
.hm-contact__list small { display: block; color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hm-social { display: flex; gap: .5rem; }
.hm-social a { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); }
.hm-social a:hover { color: var(--primary); border-color: var(--primary); }
.hm-form { padding: 1.75rem; border-radius: 18px; }
.hm-form__row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .hm-form__row { grid-template-columns: 1fr 1fr; } }
.hm-form .form-group { margin-bottom: 1rem; }
.hm-form .input { width: 100%; }
.hm-form__count { text-align: right; font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.hm-form__count.is-near { color: var(--accent); }
.hm-form__note { text-align: center; font-size: .82rem; color: var(--text-muted); margin: .75rem 0 0; }
.form-message { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .92rem; }
.form-message.success { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.form-message.error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

/* WhatsApp button */
.hm-wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 800; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #fff; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); text-decoration: none; transition: transform .2s ease; }
.hm-wa:hover { transform: scale(1.08); color: #fff; }

@media (max-width: 600px) { .hm-section { padding: 3.5rem 0; } .hm-hero { padding: 2.5rem 0 2rem; } .hm-hero__cta .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .hm-card, .hm-path, .hm-wa { transition: none; } }
