/* ==========================================================================
   Hire PHP Developer — bespoke page design. Namespaced `.hpd-`.
   Visual language: code editor, backend architecture, API flows,
   database connections — dark and code-forward.
   ========================================================================== */

.hpd-page { background: var(--sap-white); overflow-x: clip; }
.hpd-page section { position: relative; }
.hpd-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sap-font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sap-primary); margin-bottom: 1.1rem; }
.hpd-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--sap-primary); display: inline-block; }
.hpd-mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* 1. HERO — dark, code editor */
.hpd-hero { position: relative; overflow: hidden; background: #0c0e12; color: #fff; padding: calc(var(--sap-header-height) + 5rem) 0 5.5rem; }
.hpd-hero__glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; top: -220px; right: -160px; background: var(--sap-primary); opacity: .18; filter: blur(100px); }
.hpd-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.hpd-hero__kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .6rem; border-radius: var(--sap-radius-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }
.hpd-hero__kicker span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sap-primary); box-shadow: 0 0 0 4px rgba(254,109,13,.2); flex-shrink: 0; }
.hpd-hero__title { font-family: var(--sap-font-heading); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1.6rem; color: #fff; }
.hpd-hero__title .accent { color: var(--sap-primary); }
.hpd-hero__text { font-size: 1.06rem; line-height: 1.7; color: rgba(255,255,255,.65); max-width: 520px; margin-bottom: 2.25rem; }
.hpd-hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.hpd-hero__secondary { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .95rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hpd-hero__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

.hpd-editor { background: #14181f; border-radius: var(--sap-radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.hpd-editor__bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: #1b2029; }
.hpd-editor__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hpd-editor__file { margin-left: .75rem; font-size: .72rem; color: rgba(255,255,255,.45); }
.hpd-editor__body { padding: 1.5rem; font-size: .82rem; line-height: 1.9; }
.hpd-editor__line { display: flex; gap: 1rem; }
.hpd-editor__num { color: rgba(255,255,255,.25); width: 1.25rem; text-align: right; flex-shrink: 0; }
.hpd-editor__code { color: rgba(255,255,255,.65); }
.hpd-editor__code .kw { color: var(--sap-primary); }
.hpd-editor__code .fn { color: #5FD68A; }
.hpd-editor__code .str { color: #E8C170; }

/* 2. PROBLEM — terminal list */
.hpd-problem { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hpd-problem__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hpd-problem__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hpd-problem__head .accent { color: var(--sap-primary); }
.hpd-problem__head p { color: var(--sap-muted); }
.hpd-terminal { max-width: 860px; margin: 0 auto; background: #12161c; border-radius: var(--sap-radius-lg); box-shadow: var(--sap-shadow-lg); overflow: hidden; }
.hpd-terminal__bar { display: flex; align-items: center; gap: .4rem; padding: .85rem 1.1rem; background: #1a1f27; border-bottom: 1px solid rgba(255,255,255,.06); }
.hpd-terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hpd-terminal__title { margin-left: .75rem; font-size: .78rem; color: rgba(255,255,255,.4); }
.hpd-terminal__body { padding: 1.5rem 1.75rem 1.75rem; }
.hpd-terminal__line { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.hpd-terminal__line:last-child { border-bottom: none; }
.hpd-terminal__status { font-weight: 700; font-size: .82rem; color: var(--sap-primary); }
.hpd-terminal__msg { color: rgba(255,255,255,.85); font-size: .92rem; }
.hpd-terminal__msg strong { display: block; font-family: var(--sap-font-heading); font-weight: 700; margin-bottom: .2rem; color: #fff; }
.hpd-terminal__msg span { color: rgba(255,255,255,.5); font-size: .84rem; }

/* 3. WHAT WE BUILD */
.hpd-shelf { padding: var(--sap-section-space) 0; background: var(--sap-white); }

.hpd-shelf__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.hpd-shelf__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hpd-shelf__head p { color: var(--sap-muted); }
.hpd-shelf__rail { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem .5rem 1rem; }
.hpd-shelf__rail { scrollbar-width: none; -ms-overflow-style: none; }
.hpd-shelf__rail::-webkit-scrollbar { display: none; }
.hpd-shelf__rail {
	mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
	-webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
}

.hpd-shelf-card { scroll-snap-align: start; flex: 0 0 auto; width: 230px; background: var(--sap-bg-tint); border-radius: var(--sap-radius-lg); padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease; }
.hpd-shelf-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); }
.hpd-shelf-card__icon { width: 42px; height: 42px; border-radius: var(--sap-radius-md); background: var(--sap-white); color: var(--sap-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hpd-shelf-card__icon svg { width: 21px; height: 21px; }
.hpd-shelf-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.hpd-shelf-card p { font-size: .82rem; color: var(--sap-muted); margin-bottom: 0; }

/* 4. BACKEND ARCHITECTURE */
.hpd-architecture { padding: var(--sap-section-space) 0; background: var(--sap-dark); color: #fff; }
.hpd-architecture__head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.hpd-architecture__head .hpd-eyebrow { color: var(--sap-accent); }
.hpd-architecture__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hpd-architecture__head p { color: rgba(255,255,255,.6); }
.hpd-arch-row { display: flex; align-items: center; justify-content: center; gap: .75rem; max-width: 900px; margin: 0 auto; flex-wrap: wrap; }
.hpd-arch-node { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--sap-radius-lg); padding: 1.5rem 1.75rem; text-align: center; }
.hpd-arch-node--highlight { background: var(--sap-gradient); border-color: transparent; }
.hpd-arch-node__icon { width: 38px; height: 38px; border-radius: var(--sap-radius-sm); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; color: var(--sap-primary); }
.hpd-arch-node--highlight .hpd-arch-node__icon { background: rgba(255,255,255,.2); color: #fff; }
.hpd-arch-node__icon svg { width: 19px; height: 19px; }
.hpd-arch-node h3 { font-size: .85rem; margin-bottom: 0; color: #fff; }
.hpd-arch-arrow { color: var(--sap-primary); }
.hpd-arch-arrow svg { width: 18px; height: 18px; }

/* 5. API DEVELOPMENT */
.hpd-api { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hpd-api__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hpd-api__content .hpd-eyebrow { color: var(--sap-primary); }
.hpd-api__content h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-bottom: 1rem; }
.hpd-api__content p { color: var(--sap-muted); line-height: 1.7; margin-bottom: 0; }
.hpd-api__panel { background: var(--sap-dark); border-radius: var(--sap-radius-lg); padding: 1.5rem; }
.hpd-api__row { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; }
.hpd-api__method { font-size: .68rem; font-weight: 800; padding: .25rem .55rem; border-radius: 4px; background: rgba(95,214,138,.15); color: #5FD68A; flex-shrink: 0; }
.hpd-api__method--post { background: rgba(254,109,13,.18); color: var(--sap-primary); }
.hpd-api__path { color: rgba(255,255,255,.7); font-size: .82rem; }

/* 6. DATABASE INTEGRATION */
.hpd-database { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hpd-database__head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hpd-database__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hpd-database__head p { color: var(--sap-muted); }
.hpd-db-diagram { display: flex; align-items: center; justify-content: center; gap: 1.5rem; max-width: 800px; margin: 0 auto; flex-wrap: wrap; }
.hpd-db-app { background: var(--sap-white); border: 1px solid var(--sap-border); border-radius: var(--sap-radius-lg); padding: 1.5rem 2rem; text-align: center; font-weight: 700; font-size: .9rem; }
.hpd-db-line { width: 40px; height: 2px; background: var(--sap-primary); }
.hpd-db-tables { display: flex; flex-direction: column; gap: .5rem; }
.hpd-db-table { background: var(--sap-white); border: 1px solid var(--sap-border); border-radius: var(--sap-radius-sm); padding: .5rem 1rem; font-size: .78rem; font-family: 'SFMono-Regular', Consolas, monospace; color: var(--sap-muted); }

/* 7. PROCESS */
.hpd-process { padding: var(--sap-section-space) 0; background: var(--sap-secondary); color: #fff; }
.hpd-process__head { max-width: 620px; margin: 0 auto 4rem; text-align: center; }
.hpd-process__head .hpd-eyebrow { color: var(--sap-accent); }
.hpd-process__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: #fff; }
.hpd-process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1080px; margin: 0 auto; }
.hpd-process__step { text-align: center; }
.hpd-process__num { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; background: var(--sap-gradient); color: #fff; font-family: var(--sap-font-heading); font-weight: 800; font-size: .8rem; }
.hpd-process__step h3 { font-size: .9rem; margin-bottom: .35rem; color: #fff; }
.hpd-process__step p { font-size: .76rem; color: rgba(255,255,255,.5); margin-bottom: 0; }

/* 8. WHY HIRE */
.hpd-why { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hpd-why__layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
.hpd-why__statement { font-family: var(--sap-font-heading); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; align-self: start; position: sticky; top: calc(var(--sap-header-height) + 2rem); }
.hpd-why__statement .accent { color: var(--sap-primary); }
.hpd-why__list { display: flex; flex-direction: column; }
.hpd-why-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--sap-border); }
.hpd-why-item:last-child { border-bottom: 1px solid var(--sap-border); }
.hpd-why-item__mark { color: var(--sap-primary); }
.hpd-why-item__mark svg { width: 20px; height: 20px; }
.hpd-why-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.hpd-why-item p { font-size: .88rem; color: var(--sap-muted); margin-bottom: 0; }

/* 9. ENGAGEMENT */
.hpd-engage { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hpd-engage__head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.hpd-engage__head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.hpd-engage__head p { color: var(--sap-muted); }
.hpd-engage__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hpd-engage-panel { border-radius: var(--sap-radius-lg); padding: 2.25rem; border: 1px solid var(--sap-border); background: var(--sap-white); }
.hpd-engage-panel--dark { background: var(--sap-dark); color: #fff; border-color: transparent; }
.hpd-engage-panel__tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sap-primary); margin-bottom: .8rem; }
.hpd-engage-panel h3 { font-size: 1.2rem; margin-bottom: .65rem; }
.hpd-engage-panel--dark h3 { color: #fff; }
.hpd-engage-panel p { color: var(--sap-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1.1rem; }
.hpd-engage-panel--dark p { color: rgba(255,255,255,.6); }
.hpd-engage-panel__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; color: var(--sap-primary); }
.hpd-engage-panel--dark .hpd-engage-panel__link { color: #fff; }
.hpd-engage-panel__link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.hpd-engage-panel:hover .hpd-engage-panel__link svg { transform: translateX(4px); }

/* 10. TECH */
.hpd-tech { padding: 3.5rem 0; background: #0c0e12; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.hpd-tech__label { text-align: center; color: rgba(255,255,255,.45); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.75rem; }
.hpd-tech__track { display: flex; gap: 3.5rem; width: max-content; animation: hpdMarquee 30s linear infinite; }
.hpd-tech__item { font-family: var(--sap-font-heading); font-weight: 700; font-size: 1.2rem; color: rgba(255,255,255,.35); white-space: nowrap; }
@keyframes hpdMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 11. FAQ */
.hpd-faq { padding: var(--sap-section-space) 0; background: var(--sap-white); }
.hpd-faq__layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 4rem; }
.hpd-faq__sticky { position: sticky; top: calc(var(--sap-header-height) + 2rem); align-self: start; }
.hpd-faq__sticky h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.hpd-faq__sticky p { color: var(--sap-muted); }
.hpd-faq__list { border-top: 1px solid var(--sap-border); }
.hpd-faq-item { border-bottom: 1px solid var(--sap-border); }
.hpd-faq-item__trigger { width: 100%; display: grid; grid-template-columns: 3rem 1fr 1.5rem; align-items: center; gap: 1.25rem; padding: 1.5rem 0; text-align: left; }
.hpd-faq-item__num { font-family: var(--sap-font-heading); font-weight: 800; color: var(--sap-primary); font-size: .85rem; }
.hpd-faq-item__q { font-size: 1.02rem; font-weight: 600; }
.hpd-faq-item__icon { width: 20px; height: 20px; color: var(--sap-muted); transition: transform .3s ease; flex-shrink: 0; }
.hpd-faq-item__trigger[aria-expanded="true"] .hpd-faq-item__icon { transform: rotate(45deg); color: var(--sap-primary); }
.hpd-faq-item__panel { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.hpd-faq-item__panel p { padding: 0 0 1.5rem 4.25rem; color: var(--sap-muted); font-size: .92rem; line-height: 1.7; margin-bottom: 0; max-width: 620px; }

/* 12. RELATED */
.hpd-related { padding: var(--sap-section-space) 0; background: var(--sap-bg-tint); }
.hpd-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hpd-related__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 0; }
.hpd-related__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hpd-related-card { background: var(--sap-white); border: 1px solid var(--sap-border); border-radius: var(--sap-radius-lg); padding: 1.6rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hpd-related-card:hover { transform: translateY(-4px); box-shadow: var(--sap-shadow-md); border-color: transparent; }
.hpd-related-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sap-bg-tint); color: var(--sap-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.hpd-related-card__icon svg { width: 20px; height: 20px; }
.hpd-related-card h3 { font-size: .95rem; margin-bottom: 0; line-height: 1.4; }

/* 13. FINAL CTA */
.hpd-final { position: relative; overflow: hidden; background: #0c0e12; color: #fff; text-align: center; padding: 6rem 0; }
.hpd-final__glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: var(--sap-primary); opacity: .16; filter: blur(120px); border-radius: 50%; }
.hpd-final__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hpd-final h2 { font-family: var(--sap-font-heading); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; color: #fff; margin-bottom: 1.25rem; }
.hpd-final p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 2.5rem; }
.hpd-final__actions { display: flex; align-items: center; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.hpd-final__secondary { color: #fff; font-weight: 700; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; }
.hpd-final__secondary:hover { border-color: var(--sap-primary); color: var(--sap-primary); }

/* Responsive */
@media (max-width: 1080px) {
	.hpd-hero__inner { grid-template-columns: 1fr; }
	.hpd-api__layout { grid-template-columns: 1fr; }
	.hpd-api__visual { order: -1; }
	.hpd-process__steps { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
	.hpd-why__layout { grid-template-columns: 1fr; }
	.hpd-why__statement { position: static; margin-bottom: 2rem; }
	.hpd-engage__grid { grid-template-columns: 1fr; }
	.hpd-faq__layout { grid-template-columns: 1fr; }
	.hpd-faq__sticky { position: static; margin-bottom: 2rem; }
	.hpd-related__rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.hpd-arch-row { flex-direction: column; }
	.hpd-arch-arrow { transform: rotate(90deg); }
	.hpd-db-diagram { flex-direction: column; }
	.hpd-db-line { width: 2px; height: 30px; }
	.hpd-process__steps { grid-template-columns: repeat(2, 1fr); }
	.hpd-related__rail { grid-template-columns: 1fr; }
	.hpd-faq-item__panel p { padding-left: 0; }
	.hpd-faq-item__trigger { grid-template-columns: 2.25rem 1fr 1.25rem; }
}
