/* ==========================================================================
   Inner pages: services list, about us, contact us
   (resources/views/website/services|aboutUs|contactUs + includes/sections/page-hero, consult-cta)
   Classes are prefixed with "pg". Look matches the projects page and home sections.
   ========================================================================== */

:root {
    --pg-primary: #421f61;
    --pg-violet: #6b3a93;
    --pg-deeper: #24103a;
    --pg-accent: #dea8e4;
    --pg-soft: #f7f2fa;
    --pg-line: rgba(66, 31, 97, 0.1);
    --pg-muted: rgba(66, 31, 97, 0.75);
    --pg-shadow: 0 12px 30px rgba(66, 31, 97, 0.08);
    --pg-shadow-hover: 0 22px 44px rgba(66, 31, 97, 0.16);
}

/* ---------- shared: page header ---------- */

.pg-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding-top: clamp(24px, 5vw, 56px);
    padding-bottom: clamp(28px, 4vw, 44px);
}

.pg-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.pg-crumbs a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.pg-crumbs [aria-current] {
    color: var(--pg-accent);
    font-weight: 700;
}

.pg-hero__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.3;
}

.pg-hero__lead {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.85;
}

.pg-hero__stats {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pg-hero__stats li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.pg-hero__stats strong {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

/* ---------- shared: sections, headings, buttons ---------- */

.pg-section {
    position: relative;
    padding-block: clamp(56px, 7vw, 100px);
}

.pg-section--soft {
    background: linear-gradient(180deg, var(--pg-soft) 0%, #fff 100%);
}

.pg-section--white {
    background: #fff;
}

.pg-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.pg-head--center {
    align-items: center;
    text-align: center;
}

.pg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--pg-soft);
    color: var(--pg-violet);
    font-size: 13px;
    font-weight: 700;
}

.pg-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pg-head--center .pg-eyebrow {
    align-self: center;
}

.pg-title {
    margin: 0;
    color: var(--pg-primary);
    font-weight: 800;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.4;
}

.pg-lead {
    margin: 0;
    max-width: 760px;
    color: var(--pg-muted);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.9;
}

.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 15px 26px;
    border-radius: 14px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pg-btn i {
    font-size: 18px;
}

.pg-btn:hover {
    transform: translateY(-2px);
}

.pg-btn--light {
    background: #fff;
    color: var(--pg-primary) !important;
    border-color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.pg-btn--light:hover {
    background: var(--pg-accent);
    border-color: var(--pg-accent);
}

.pg-btn--primary {
    background: var(--pg-primary);
    color: #fff !important;
    border-color: var(--pg-primary);
    box-shadow: 0 12px 26px rgba(66, 31, 97, 0.28);
}

.pg-btn--primary:hover {
    background: var(--pg-deeper);
}

html[dir="ltr"] .pg-flip {
    transform: scaleX(-1);
}

.pg-section a:focus-visible,
.pg-section button:focus-visible,
.pg-section input:focus-visible,
.pg-section textarea:focus-visible {
    outline: 3px solid var(--pg-accent);
    outline-offset: 3px;
}

/* ---------- shared: free consultation call to action ---------- */

.pg-cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
    padding: clamp(28px, 5vw, 60px);
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(222, 168, 228, 0.3), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(107, 58, 147, 0.55), transparent 50%),
        linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-deeper) 100%);
    box-shadow: 0 30px 60px rgba(36, 16, 58, 0.28);
}

.pg-cta__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: start;
}

.pg-cta__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.3;
}

.pg-cta__sub {
    margin: 0;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.3;
    background: linear-gradient(90deg, #fff 0%, var(--pg-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pg-cta__action {
    display: flex;
}

@media (min-width: 900px) {
    .pg-cta {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 40px;
    }
}

/* ---------- services list ---------- */

.pg-services {
    --pg-gap: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* an incomplete last row sits in the middle */
    gap: var(--pg-gap);
}

.pg-service {
    position: relative;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
    text-decoration: none;
    text-align: start;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.pg-service__num {
    position: absolute;
    top: 20px;
    inset-inline-end: 24px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(66, 31, 97, 0.15);
    transition: -webkit-text-stroke-color 0.3s ease;
}

.pg-service__icon {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--pg-soft);
    transition: background-color 0.3s ease;
}

.pg-service__icon img {
    position: absolute;
    width: 42px;
    height: 42px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.pg-service__icon img + img {
    opacity: 0;
}

.pg-service__title {
    margin: 6px 0 0;
    color: var(--pg-primary);
    font-weight: 800;
    font-size: clamp(19px, 1.7vw, 22px);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.pg-service__text {
    margin: 0;
    color: var(--pg-muted);
    font-size: 14.5px;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.pg-service__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--pg-primary);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s ease;
}

.pg-service__link i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.pg-service:hover {
    transform: translateY(-6px);
    background: var(--pg-primary);
    border-color: var(--pg-primary);
    box-shadow: 0 24px 48px rgba(66, 31, 97, 0.3);
}

.pg-service:hover .pg-service__icon {
    background: rgba(255, 255, 255, 0.12);
}

.pg-service:hover .pg-service__icon img:first-child {
    opacity: 0;
}

.pg-service:hover .pg-service__icon img + img {
    opacity: 1;
}

.pg-service:hover .pg-service__title,
.pg-service:hover .pg-service__link {
    color: #fff;
}

.pg-service:hover .pg-service__text {
    color: rgba(255, 255, 255, 0.82);
}

.pg-service:hover .pg-service__num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.25);
}

.pg-service:hover .pg-service__link i {
    transform: translateX(-4px);
}

html[dir="ltr"] .pg-service:hover .pg-service__link i {
    transform: scaleX(-1) translateX(-4px);
}

@media (min-width: 640px) {
    .pg-services {
        --pg-gap: 22px;
    }

    .pg-service {
        flex-basis: calc((100% - var(--pg-gap)) / 2);
    }
}

@media (min-width: 1024px) {
    .pg-services {
        --pg-gap: 26px;
    }

    .pg-service {
        flex-basis: calc((100% - 2 * var(--pg-gap)) / 3);
    }
}

/* ---------- about ---------- */

.pg-about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

.pg-about__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: start;
}

.pg-about__desc,
.pg-about__desc * {
    color: var(--pg-muted) !important;
    font-size: clamp(15px, 1.35vw, 17px) !important;
    line-height: 1.95 !important;
    background: none !important;
    text-align: start !important;
}

.pg-about__desc p {
    margin: 0 0 12px !important;
}

.pg-about__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pg-stat {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(222, 168, 228, 0.3), transparent 55%),
        linear-gradient(135deg, var(--pg-primary), var(--pg-deeper));
    color: #fff;
    box-shadow: 0 18px 36px rgba(36, 16, 58, 0.22);
}

.pg-stat__value {
    flex-shrink: 0;
    min-width: 110px;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    line-height: 1;
    direction: ltr;
    text-align: center;
}

.pg-stat__value span {
    color: var(--pg-accent);
}

.pg-stat__label {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 1024px) {
    .pg-about {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
        gap: 56px;
    }
}

/* why choose us cards (about page) */
.pg-why {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.pg-why__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 26px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
    text-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-why__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pg-shadow-hover);
}

.pg-why__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-violet));
    box-shadow: 0 12px 24px rgba(66, 31, 97, 0.25);
}

.pg-why__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.pg-why__title {
    margin: 0;
    color: var(--pg-primary);
    font-weight: 800;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
}

.pg-why__text {
    margin: 0;
    color: var(--pg-muted);
    font-size: 15px;
    line-height: 1.9;
}

@media (min-width: 640px) {
    .pg-why {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .pg-why {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ---------- contact ---------- */

.pg-contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.pg-contact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
    text-decoration: none;
    text-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

a.pg-contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(107, 58, 147, 0.3);
    box-shadow: var(--pg-shadow-hover);
}

.pg-contact-card__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-violet));
    color: #fff;
    font-size: 20px;
}

.pg-contact-card__icon--wa {
    background: #25d366;
}

.pg-contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pg-contact-card__label {
    color: var(--pg-violet);
    font-size: 13px;
    font-weight: 700;
}

.pg-contact-card__value {
    color: var(--pg-primary);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.pg-contact-card__hint {
    color: var(--pg-muted);
    font-size: 13px;
}

@media (min-width: 640px) {
    .pg-contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .pg-contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}

.pg-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.pg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
    text-align: start;
}

.pg-form__title {
    margin: 0;
    color: var(--pg-primary);
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 30px);
}

.pg-form__lead {
    margin: 0 0 4px;
    color: var(--pg-muted);
    font-size: 15px;
    line-height: 1.8;
}

.pg-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.pg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pg-field label {
    color: var(--pg-primary);
    font-size: 14px;
    font-weight: 700;
}

.pg-field input,
.pg-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(66, 31, 97, 0.18);
    background: var(--pg-soft);
    color: var(--pg-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.pg-field textarea {
    min-height: 140px;
    resize: vertical;
}

.pg-field input::placeholder,
.pg-field textarea::placeholder {
    color: rgba(66, 31, 97, 0.45);
}

.pg-field input:focus,
.pg-field textarea:focus {
    border-color: var(--pg-violet);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(107, 58, 147, 0.12);
}

.pg-field .error {
    color: #d63384;
    font-size: 13px;
}

.pg-form .alert {
    margin: 0;
}

.pg-form__submit {
    align-self: flex-start;
}

.pg-map {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--pg-line);
    box-shadow: var(--pg-shadow);
    background: var(--pg-soft);
}

.pg-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.pg-map__card {
    position: absolute;
    z-index: 1;
    bottom: 16px;
    inset-inline: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(36, 16, 58, 0.18);
    text-decoration: none;
    text-align: start;
}

.pg-map__card img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}

.pg-map__card strong {
    display: block;
    color: var(--pg-primary);
    font-size: 15px;
}

.pg-map__card span {
    display: block;
    color: var(--pg-muted);
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .pg-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .pg-contact {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 28px;
    }

    .pg-map__card {
        inset-inline-end: auto;
        max-width: 360px;
    }
}

@media (max-width: 480px) {
    .pg-btn,
    .pg-form__submit {
        width: 100%;
    }

    .pg-map__card img {
        width: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-service, .pg-why__card, .pg-contact-card, .pg-btn, .pg-service__icon img {
        transition: none !important;
    }
}

/* contact form anti-bot field: kept off-screen (not display:none, which some bots skip) */
.pg-form__hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
}
