/* =============================================================
   ps.css — Professional Services (/professional-services)
   Prefixo: ps-
============================================================= */

html { scroll-behavior: smooth; }

/* -------------------------------------------------------------
   CONTAINERS
------------------------------------------------------------- */
.ps-hero            > .container,
.ps-services-bridge > .container,
.ps-benefits        > .container,
.ps-final-cta       > .container {
    max-width: 1400px !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

@media (max-width: 991px) {
    .ps-hero            > .container,
    .ps-services-bridge > .container,
    .ps-benefits        > .container,
    .ps-final-cta       > .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 575px) {
    .ps-hero            > .container,
    .ps-services-bridge > .container,
    .ps-benefits        > .container,
    .ps-final-cta       > .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* -------------------------------------------------------------
   HERO
------------------------------------------------------------- */
.ps-hero {
    padding-top: 20px;
    padding-bottom: 160px;
    position: relative;
    overflow: hidden;
}

/* 2 colunas: texto + formulário */
.ps-hero-wrap {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.ps-hero-left { flex: 1; min-width: 0; }

.ps-hero-right {
    flex: 0 0 360px;
    width: 360px;
}

/* Card branco do formulário */
.ps-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    position: sticky;
    top: 88px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.ps-form-wrap .frm-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #17479e !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
}

.ps-form-wrap .ag-field { margin-bottom: 8px; }

.ps-form-wrap .ag-form input:not([type="submit"]),
.ps-form-wrap .ag-form textarea,
.ps-form-wrap .ag-form select {
    width: 100%;
    display: block;
    border: 1px solid #cadbf2;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    padding: 9px 12px;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s;
    box-sizing: border-box;
}

.ps-form-wrap .ag-form input:not([type="submit"]):focus,
.ps-form-wrap .ag-form textarea:focus,
.ps-form-wrap .ag-form select:focus {
    outline: none;
    border-color: #17479e;
}

.ps-form-wrap .ag-form input:not([type="submit"])::placeholder,
.ps-form-wrap .ag-form textarea::placeholder { color: #aaa; }

.ps-form-wrap .ag-btn-submit {
    width: 100%;
    background: #ea7626;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    font-family: inherit;
    transition: background .2s;
    display: block;
    box-sizing: border-box;
}

.ps-form-wrap .ag-btn-submit:hover:not(:disabled) { background: #c9601a; }

.ps-form-wrap .ag-btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.ps-form-wrap .msgemail { margin-top: 4px; min-height: 0; }
.ps-form-wrap .msgemail .msg-email-erro {
    display: block;
    font-size: 12px;
    color: #d32f2f;
    line-height: 1.4;
}

.ps-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -140px;
    right: 3%;
    pointer-events: none;
}

.ps-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    bottom: 0;
    left: 8%;
    pointer-events: none;
}

/* Breadcrumb */
.ps-breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,.75);
    padding: 20px 0 32px;
}

.ps-breadcrumb a        { color: rgba(255,255,255,.75); text-decoration: none; }
.ps-breadcrumb a:hover  { color: #fff; }
.ps-breadcrumb strong   { color: #fff; font-weight: 600; }

/* Tag */
.ps-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: .3px;
}

.ps-hero-tag::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #7ec8ff;
    flex-shrink: 0;
}

/* Título + texto */
.ps-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.15;
    max-width: 760px;
}

.ps-hero-desc {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.88);
    max-width: 680px;
    margin: 0 0 14px;
}

.ps-hero-desc:last-of-type { margin-bottom: 36px; }

/* CTA hero */
.ps-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #17479e;
    border-radius: 99px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.ps-hero-cta:hover { background: #f0f5ff; color: #17479e; }
.ps-hero-cta svg  { transition: transform .15s; }
.ps-hero-cta:hover svg { transform: translateY(3px); }

/* -------------------------------------------------------------
   BRIDGE — Serviços (flutua sobre o hero)
------------------------------------------------------------- */
.ps-services-bridge {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 64px;
}

.ps-services-card {
    background: #fff;
    border-radius: 20px;
    padding: 56px 60px 52px;
    box-shadow: 0 8px 48px rgba(0,0,0,.11);
}

.ps-services-card > h2 {
    font-size: 30px;
    font-weight: 800;
    color: #17479e;
    margin: 0 0 40px;
    line-height: 1.3;
    max-width: 640px;
}

/* Grid de serviços */
.ps-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Card de serviço */
.ps-service-card {
    background: #f7f9fd;
    border: 1px solid #e0eaf8;
    border-radius: 16px;
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow .2s, transform .2s, border-color .2s, background .2s;
}

.ps-service-card:hover {
    background: #fff;
    border-color: #b8ccf0;
    box-shadow: 0 8px 28px rgba(23,71,158,.10);
    transform: translateY(-3px);
}

.ps-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e8f0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17479e;
    flex-shrink: 0;
    transition: background .2s;
}

.ps-service-card:hover .ps-service-icon {
    background: #17479e;
    color: #fff;
}

.ps-service-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #17479e;
    margin: 0;
    line-height: 1.3;
}

.ps-service-card p {
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    margin: 0;
    flex: 1;
}

/* CTA dentro do card de serviços */
.ps-services-footer {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.ps-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #17479e;
    color: #fff;
    border-radius: 99px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .12s;
}

.ps-cta-primary:hover {
    background: #1256bf;
    color: #fff;
    transform: translateY(-1px);
}

.ps-cta-primary svg { transition: transform .15s; }
.ps-cta-primary:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------
   BENEFÍCIOS
------------------------------------------------------------- */
.ps-benefits {
    background: #f4f7fc;
    padding: 80px 0;
}

.ps-benefits-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ps-benefits-text h2 {
    font-size: 30px;
    font-weight: 800;
    color: #17479e;
    line-height: 1.3;
    margin: 0 0 20px;
}

.ps-benefits-text p {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
    margin: 0;
}

/* Lista de resultados */
.ps-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ps-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e0eaf8;
    border-radius: 14px;
    padding: 18px 20px;
    transition: box-shadow .2s, border-color .2s;
}

.ps-benefit-item:hover {
    box-shadow: 0 4px 18px rgba(23,71,158,.09);
    border-color: #b8ccf0;
}

.ps-benefit-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f0fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17479e;
    flex-shrink: 0;
    margin-top: 1px;
}

.ps-benefit-item span {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

/* -------------------------------------------------------------
   FINAL CTA
------------------------------------------------------------- */
.ps-final-cta {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.ps-final-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -80px;
    right: 5%;
    pointer-events: none;
}

.ps-final-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
}

.ps-final-cta-inner p {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin: 0;
}

.ps-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #17479e;
    border-radius: 99px;
    padding: 15px 36px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}

.ps-cta-white:hover { background: #f0f5ff; color: #17479e; }
.ps-cta-white svg   { transition: transform .15s; }
.ps-cta-white:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------
   RESPONSIVO
------------------------------------------------------------- */
@media (max-width: 1199px) {
    .ps-hero h1              { font-size: 42px; }
    .ps-hero-right           { flex: 0 0 320px; width: 320px; }
    .ps-services-card        { padding: 48px 48px 44px; }
    .ps-services-card > h2   { font-size: 26px; }
}

@media (max-width: 991px) {
    .ps-hero                 { padding-bottom: 80px; }
    .ps-hero h1              { font-size: 34px; }
    .ps-hero-wrap            { flex-direction: column; }
    .ps-hero-right           { width: 100%; flex: none; }
    .ps-form-wrap            { position: static; }
    .ps-services-bridge      { margin-top: -60px; }
    .ps-services-card        { padding: 36px 28px 32px; }
    .ps-services-card > h2   { font-size: 22px; margin-bottom: 28px; }
    .ps-services-grid        { grid-template-columns: 1fr 1fr; gap: 16px; }
    .ps-benefits-inner       { grid-template-columns: 1fr; gap: 40px; }
    .ps-benefits-text h2     { font-size: 24px; }
    .ps-final-cta-inner p    { font-size: 18px; }
}

@media (max-width: 575px) {
    .ps-hero h1              { font-size: 28px; }
    .ps-hero-desc            { font-size: 15px; }
    .ps-services-grid        { grid-template-columns: 1fr; gap: 14px; }
    .ps-services-card        { padding: 28px 20px 24px; }
    .ps-services-card > h2   { font-size: 20px; }
    .ps-final-cta-inner p    { font-size: 16px; }
}
