/**
 * DIPHP IT — homepage component styles.
 * Loaded after style.css (see inc/enqueue.php).
 *
 * @package DIPHP_IT
 */

/* =========================================================
   HERO SLIDER
   ========================================================= */
.diphp-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; color: #fff; }
.diphp-hero__track { position: relative; width: 100%; height: 100%; }
.diphp-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.diphp-hero__slide.is-active { opacity: 1; visibility: visible; }
.diphp-hero__media { position: absolute; inset: 0; }
.diphp-hero__media img, .diphp-hero__video { width: 100%; height: 100%; object-fit: cover; }
.diphp-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.75) 100%); }
.diphp-hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.diphp-hero__title { font-size: clamp(2.2rem, 5vw, 4rem); color: #fff; margin-bottom: 20px; }
.diphp-hero__subtitle { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 32px; }
.diphp-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.diphp-btn-outline--light { border-color: rgba(255,255,255,0.4); color: #fff; }
.diphp-btn-outline--light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }
.diphp-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.diphp-hero__arrow--prev { left: 24px; }
.diphp-hero__arrow--next { right: 24px; }
.diphp-hero__pagination { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.diphp-hero__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.diphp-hero__dot.is-active { background: #fff; width: 28px; border-radius: 6px; }
.diphp-hero__scroll-cue { position: absolute; bottom: 24px; right: 24px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 20px; z-index: 3; }
.diphp-hero__scroll-cue::before { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: diphp-scroll-cue 1.6s infinite; }
@keyframes diphp-scroll-cue { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 14px); } }

@media (max-width: 640px) {
	.diphp-hero__arrow { display: none; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.diphp-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.diphp-about__media { position: relative; }
.diphp-about__media img { border-radius: var(--diphp-radius-lg); }
.diphp-about__badge { position: absolute; bottom: -20px; right: -20px; padding: 20px 24px; border-radius: var(--diphp-radius-md); text-align: center; box-shadow: var(--diphp-shadow-lg); }
.diphp-about__badge-number { display: block; font-family: var(--diphp-font-heading); font-size: 32px; font-weight: 700; color: var(--diphp-color-primary); }
.diphp-about__badge-label { font-size: 13px; color: var(--diphp-color-text); }
.diphp-about__vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 32px; }
.diphp-about__vm-card { background: var(--diphp-color-light); padding: 20px; border-radius: var(--diphp-radius-md); }
.diphp-about__vm-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--diphp-color-primary); }
.diphp-about__vm-card p { margin: 0; font-size: 14px; }

@media (max-width: 900px) {
	.diphp-about__grid { grid-template-columns: 1fr; gap: 40px; }
	.diphp-about__vm-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.diphp-why__card { padding: 36px 28px; }
.diphp-why__icon { width: 56px; height: 56px; border-radius: var(--diphp-radius-md); background: rgba(var(--diphp-color-primary-rgb), 0.1); color: var(--diphp-color-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.diphp-why__icon svg { width: 26px; height: 26px; }

/* =========================================================
   SERVICES
   ========================================================= */
.diphp-service-card { overflow: hidden; }
.diphp-service-card__thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.diphp-service-card__body { padding: 28px; }
.diphp-service-card__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--diphp-gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.diphp-service-card__icon svg { width: 22px; height: 22px; }
.diphp-service-card__title { font-size: 19px; margin-bottom: 10px; }
.diphp-service-card__title a { color: inherit; }
.diphp-service-card__desc { font-size: 14px; margin-bottom: 20px; }
.diphp-service-card__footer { display: flex; align-items: center; justify-content: space-between; }
.diphp-service-card__link { font-weight: 600; font-size: 14px; }
.diphp-service-card__wa { width: 36px; height: 36px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; }
.diphp-service-card__wa svg { width: 16px; height: 16px; }
.diphp-service-card--featured { border: 2px solid var(--diphp-color-primary); }

/* =========================================================
   PRICING
   ========================================================= */
.diphp-pricing-card { position: relative; padding: 40px 32px; text-align: center; }
.diphp-pricing-card--highlight { border: 2px solid var(--diphp-color-primary); transform: scale(1.03); }
.diphp-pricing-card__ribbon { position: absolute; top: 18px; right: -34px; background: var(--diphp-gradient-primary); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 40px; transform: rotate(45deg); }
.diphp-pricing-card__name { font-size: 20px; margin-bottom: 6px; }
.diphp-pricing-card__tagline { font-size: 13px; margin-bottom: 20px; }
.diphp-pricing-card__price { margin-bottom: 24px; }
.diphp-pricing-card__amount { font-family: var(--diphp-font-heading); font-size: 40px; font-weight: 700; color: var(--diphp-color-secondary); }
.diphp-pricing-card__currency { font-size: 16px; vertical-align: top; position: relative; top: 8px; }
.diphp-pricing-card__period { font-size: 13px; color: var(--diphp-color-text); }
.diphp-pricing-card__features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: grid; gap: 12px; font-size: 14px; }
.diphp-pricing-card__features li { display: flex; align-items: center; gap: 8px; }
.diphp-pricing-card__features svg { width: 16px; height: 16px; color: var(--diphp-color-success); flex-shrink: 0; }
.diphp-pricing-card__btn { width: 100%; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.diphp-portfolio__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.diphp-portfolio__filter { padding: 10px 20px; border-radius: var(--diphp-radius-full); border: 1px solid rgba(15,23,42,0.12); background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.diphp-portfolio__filter.is-active { background: var(--diphp-gradient-primary); color: #fff; border-color: transparent; }
.diphp-portfolio-item { position: relative; border-radius: var(--diphp-radius-md); overflow: hidden; }
.diphp-portfolio-item.is-hidden { display: none; }
.diphp-portfolio-item__link { position: relative; display: block; }
.diphp-portfolio-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform var(--diphp-transition); }
.diphp-portfolio-item:hover img { transform: scale(1.08); }
.diphp-portfolio-item__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.9) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; opacity: 0; transition: opacity var(--diphp-transition); }
.diphp-portfolio-item:hover .diphp-portfolio-item__overlay { opacity: 1; }
.diphp-portfolio-item__overlay h3 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.diphp-portfolio-item__zoom { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; }
.diphp-portfolio-item__zoom svg { width: 16px; height: 16px; }

/* =========================================================
   PARTNERS (marquee)
   ========================================================= */
.diphp-partners__label { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(51,65,85,0.6); margin-bottom: 32px; }
.diphp-partners__marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.diphp-partners__track { display: flex; gap: 64px; width: max-content; animation: diphp-marquee 30s linear infinite; }
.diphp-partners__item { display: flex; align-items: center; justify-content: center; height: 60px; }
.diphp-partners__item img { max-height: 40px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: all var(--diphp-transition); }
.diphp-partners__item img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes diphp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.diphp-testimonials__slider { position: relative; }
.diphp-testimonials__track { display: flex; gap: 24px; overflow-x: hidden; scroll-behavior: smooth; }
.diphp-testimonial-card { flex: 0 0 100%; max-width: 100%; padding: 40px; border-radius: var(--diphp-radius-lg); }
.diphp-testimonial-card__rating { color: rgba(255,255,255,0.3); font-size: 18px; margin-bottom: 16px; }
.diphp-testimonial-card__rating .is-filled { color: var(--diphp-color-warning); }
.diphp-testimonial-card__text { font-size: 17px; margin-bottom: 24px; }
.diphp-testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.diphp-testimonial-card__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.diphp-testimonial-card__author strong { display: block; color: #fff; }
.diphp-testimonial-card__author span { font-size: 13px; color: rgba(255,255,255,0.65); }
.diphp-testimonials__nav { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
.diphp-testimonials__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; cursor: pointer; }

@media (min-width: 768px) {
	.diphp-testimonial-card { flex: 0 0 calc(33.333% - 16px); }
}

/* =========================================================
   STATISTICS
   ========================================================= */
.diphp-stat-card { text-align: center; padding: 36px 20px; }
.diphp-stat-card__icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--diphp-color-primary); }
.diphp-stat-card__icon svg { width: 100%; height: 100%; }
.diphp-stat-card__number { font-family: var(--diphp-font-heading); font-size: 40px; font-weight: 700; color: var(--diphp-color-secondary); }
.diphp-stat-card__label { font-size: 14px; margin-top: 6px; }

/* =========================================================
   TEAM
   ========================================================= */
.diphp-team-card { overflow: hidden; text-align: center; }
.diphp-team-card__photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.diphp-team-card__body { padding: 24px; }
.diphp-team-card__position { display: block; font-size: 13px; color: var(--diphp-color-primary); margin: 4px 0 16px; }
.diphp-team-card__social { display: flex; justify-content: center; gap: 10px; }
.diphp-team-card__social a { width: 32px; height: 32px; border-radius: 50%; background: var(--diphp-color-light); display: flex; align-items: center; justify-content: center; }
.diphp-team-card__social svg { width: 14px; height: 14px; }

/* =========================================================
   FAQ
   ========================================================= */
.diphp-faq__container { max-width: 820px; }
.diphp-faq__search { margin-bottom: 32px; }
.diphp-faq__search input { width: 100%; padding: 16px 20px; border-radius: var(--diphp-radius-full); border: 1px solid rgba(15,23,42,0.12); font-size: 15px; }
.diphp-faq__item { border-bottom: 1px solid rgba(15,23,42,0.08); }
.diphp-faq__item.is-hidden { display: none; }
.diphp-faq__question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 4px; background: none; border: none; text-align: left; font-family: var(--diphp-font-heading); font-size: 16px; font-weight: 600; color: var(--diphp-color-secondary); cursor: pointer; }
.diphp-faq__toggle { font-size: 22px; color: var(--diphp-color-primary); transition: transform var(--diphp-transition); }
.diphp-faq__question[aria-expanded="true"] .diphp-faq__toggle { transform: rotate(45deg); }
.diphp-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.diphp-faq__answer-inner { padding: 0 4px 22px; font-size: 14px; }
.diphp-faq__no-results { text-align: center; padding: 24px; }

/* =========================================================
   HOME BLOG
   ========================================================= */
.diphp-section-header--split { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; margin-bottom: 40px; }

/* =========================================================
   CTA
   ========================================================= */
.diphp-cta { padding: 0 0 100px; }
.diphp-cta__inner { background: var(--diphp-gradient-dark); border-radius: var(--diphp-radius-lg); padding: 72px 48px; text-align: center; color: #fff; }
.diphp-cta__inner h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.diphp-cta__inner p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 16px auto 32px; }
.diphp-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
	.diphp-cta__inner { padding: 48px 24px; }
	.diphp-section-header--split { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =========================================================
   LIGHTBOX (Portfolio popup gallery)
   ========================================================= */
.diphp-lightbox { position: fixed; inset: 0; z-index: 100010; background: rgba(15,23,42,0.92); display: flex; align-items: center; justify-content: center; padding: 40px; }
.diphp-lightbox[hidden] { display: none; }
.diphp-lightbox__image { max-width: 100%; max-height: 90vh; border-radius: var(--diphp-radius-md); }
.diphp-lightbox__close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; font-size: 24px; cursor: pointer; }
