/* =========================================================================
   aws-cards.css — page-scoped styles for /aws-hosting.
   Loaded ONLY by services/aws.blade.php. No global side-effects.
   Every selector is prefixed with .awz so we cannot collide with .phx-*.
   ========================================================================= */

.awz-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}
.awz-rows.is-open .awz-row:first-child { /* keep first row open by default */ }

.awz-row {
    background: #fff;
    border: 1px solid #e7eaf3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(13, 26, 56, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.awz-row:hover { border-color: #d3dbed; box-shadow: 0 8px 24px rgba(13, 26, 56, 0.06); }

.awz-row__trigger {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font: inherit;
    color: #0b1020;
    transition: background 0.2s ease;
}
.awz-row__trigger:hover,
.awz-row__trigger:focus,
.awz-row.is-open .awz-row__trigger {
    background: linear-gradient(90deg, #fff5ee 0%, #ffffff 90%);
    outline: none;
}

.awz-row__icon {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(242, 108, 49, 0.10);
    color: #F26C31;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.awz-row--blue   .awz-row__icon { background: rgba(31, 95, 191, 0.10); color: #1f5fbf; }
.awz-row--green  .awz-row__icon { background: rgba(31, 157, 85, 0.10); color: #1f9d55; }
.awz-row--purple .awz-row__icon { background: rgba(111, 66, 193, 0.10); color: #6f42c1; }
.awz-row--orange .awz-row__icon { background: rgba(242, 108, 49, 0.10); color: #F26C31; }
.awz-row--teal   .awz-row__icon { background: rgba(15, 150, 167, 0.10); color: #0f96a7; }
.awz-row--pink   .awz-row__icon { background: rgba(214, 51, 132, 0.10); color: #d63384; }

.awz-row__title {
    flex: 1 1 auto;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.35;
    color: #0b1020;
}

.awz-row__chev {
    flex: 0 0 auto;
    color: #F26C31;
    font-size: 14px;
    transition: transform 0.25s ease;
}
.awz-row.is-open .awz-row__chev { transform: rotate(90deg); }

.awz-row__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 22px;
    border-top: 0 solid transparent;
}
.awz-row.is-open .awz-row__body {
    max-height: 480px;
    opacity: 1;
    padding: 14px 22px 20px 82px; /* align body under the title with the icon column */
    border-top: 1px solid #eef0f6;
}

.awz-row__body p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #5a6478;
}

@media (max-width: 760px) {
    .awz-row__body,
    .awz-row.is-open .awz-row__body { padding-left: 22px; }
    .awz-row__trigger { padding: 14px 18px; gap: 12px; }
    .awz-row__title   { font-size: 15px; }
}

/* =========================================================================
   STAT COUNTER GRID — used by Azure / GCP / DigitalOcean / Cloud VPS
   "by the numbers" sections. Replaces the bare `.phx-stat` block style
   with a stunning 4-column grid that auto-stacks on small screens.
   Each card has its own brand-tinted gradient + animated accent stripe.
   ========================================================================= */

.phx-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.phx-stat-grid .phx-stat {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 28px 26px 26px;
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid #e7ebf3;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform .3s cubic-bezier(.22,1,.36,1),
                box-shadow .3s cubic-bezier(.22,1,.36,1),
                border-color .3s ease;
    isolation: isolate;
}

/* Animated brand accent stripe on the left edge */
.phx-stat-grid .phx-stat::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff5b2e 0%, #ff8e63 50%, #ffd1c2 100%);
    opacity: .85;
    transition: width .3s ease;
}

.phx-stat-grid .phx-stat:hover {
    transform: translateY(-6px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.05),
        0 18px 40px rgba(15, 23, 42, 0.10);
    border-color: rgba(255, 91, 46, 0.35);
}
.phx-stat-grid .phx-stat:hover::before {
    width: 6px;
}

/* Floating decorative blob in the corner */
.phx-stat-grid .phx-stat::after {
    content: "";
    position: absolute;
    right: -32px; top: -32px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 91, 46, 0.10) 0%, rgba(255, 91, 46, 0) 70%);
    z-index: -1;
    transition: transform .5s ease;
}
.phx-stat-grid .phx-stat:hover::after {
    transform: scale(1.25);
}

/* Brand-tinted variants — set by adding `phx-stat--brand` on a stat */
.phx-stat-grid .phx-stat--blue::before   { background: linear-gradient(180deg, #1f5fbf 0%, #5a8de0 100%); }
.phx-stat-grid .phx-stat--green::before  { background: linear-gradient(180deg, #1f9d55 0%, #5cc185 100%); }
.phx-stat-grid .phx-stat--purple::before { background: linear-gradient(180deg, #6f42c1 0%, #9c7ad8 100%); }
.phx-stat-grid .phx-stat--orange::before { background: linear-gradient(180deg, #ff5b2e 0%, #ff8e63 100%); }
.phx-stat-grid .phx-stat--teal::before   { background: linear-gradient(180deg, #0f96a7 0%, #4abcc9 100%); }
.phx-stat-grid .phx-stat--pink::before   { background: linear-gradient(180deg, #d63384 0%, #e57bb1 100%); }

.phx-stat-grid .phx-stat__num {
    font-family: "Inter Tight", "Inter", system-ui, sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ff5b2e 0%, #ff8e63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.phx-stat-grid .phx-stat__label {
    font-size: 14.5px;
    line-height: 1.5;
    color: #475569;
    font-weight: 500;
}

/* Responsive — collapse to 2 cols on tablet, 1 col on phones */
@media (max-width: 991px) {
    .phx-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .phx-stat-grid .phx-stat       { min-height: 150px; padding: 24px 22px; }
    .phx-stat-grid .phx-stat__num  { font-size: 38px; }
}
@media (max-width: 540px) {
    .phx-stat-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   BOTTOM CTA BAR — sleek one-line horizontal strip shown at the bottom
   of every cloud-services page. Compact row layout: icon + headline on
   the left, primary CTA + ghost CTA on the right. Light, brand-tinted
   palette that matches the rest of the page (no dark navy).
   ========================================================================= */

.phx-bottom-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 56px auto 0;
    padding: 18px 22px;
    border-radius: 16px;
    color: #0b1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 142, 99, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(31, 95, 191, 0.10) 0%, transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #e7ebf3;
}

/* Soft brand accent stripe on the left edge */
.phx-bottom-cta::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff5b2e 0%, #ff8e63 100%);
    z-index: 0;
}

.phx-bottom-cta__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.phx-bottom-cta__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 91, 46, 0.12) 0%, rgba(255, 142, 99, 0.18) 100%);
    border: 1px solid rgba(255, 91, 46, 0.25);
    color: #f26c31;
    font-size: 22px;
}

.phx-bottom-cta__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.phx-bottom-cta__title {
    font-family: var(--phx-font-display, "Inter Tight", system-ui, sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #0b1020;
    margin: 0 0 2px;
}

.phx-bottom-cta__sub {
    font-size: 13.5px;
    line-height: 1.4;
    color: #5a6478;
    margin: 0;
}

.phx-bottom-cta__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phx-bottom-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 1px solid transparent;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.phx-bottom-cta__btn--primary {
    background: linear-gradient(135deg, #ff5b2e 0%, #ff8e63 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(255, 91, 46, 0.30);
}
.phx-bottom-cta__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 91, 46, 0.45);
}

.phx-bottom-cta__btn--ghost {
    background: #fff;
    color: #0b1020 !important;
    border-color: #e2e8f0;
}
.phx-bottom-cta__btn--ghost:hover {
    background: #f5f7fb;
    border-color: #d3dbed;
    transform: translateY(-2px);
}

/* Tablet — keep horizontal, allow wrap */
@media (max-width: 760px) {
    .phx-bottom-cta { padding: 16px 18px; gap: 16px; }
    .phx-bottom-cta__icon { width: 42px; height: 42px; font-size: 18px; }
    .phx-bottom-cta__title { font-size: 15.5px; }
    .phx-bottom-cta__sub { font-size: 12.5px; }
    .phx-bottom-cta__btn { padding: 9px 14px; font-size: 12.5px; }
}

/* Mobile — stack vertically */
@media (max-width: 520px) {
    .phx-bottom-cta { flex-direction: column; align-items: stretch; padding: 16px; }
    .phx-bottom-cta__left { gap: 12px; }
    .phx-bottom-cta__right { width: 100%; }
    .phx-bottom-cta__right .phx-bottom-cta__btn { flex: 1 1 0; justify-content: center; }
}
