/* ============================================
   Home Page Styles — Unitrier
   Faithful reproduction of the Figma design
   ============================================ */

:root {
    --navy: #032645;          /* dark cards / titles */
    --near-black: #090C17;    /* dark section background */
    --banner-blue: #00418D;   /* numbers banner */
    --blue: #01A1FF;          /* accent / highlights */
    --green: #00B86D;         /* CTA buttons */
    --card-gray: #717372;     /* muted card text */
    --case-gray: #454545;     /* case description */
}

/* Highlighted words inside headings */
.hl { color: var(--blue); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    min-height: 660px;
    padding: 70px 0;
    color: var(--text-white);
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(90deg, var(--bg-dark) 0%, rgba(9, 12, 23, 0.85) 38%, rgba(9, 12, 23, 0.25) 60%, rgba(9, 12, 23, 0) 78%),
        url('../images/home/hero-banner.png');
    background-repeat: no-repeat, no-repeat;
    background-position: center, center right;
    background-size: cover, cover;
}

.hero-inner {
    width: 100%;
    min-width: 0;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    max-width: 140px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
}

/* ============================================
   Partners Section (carrossel banner)
   ============================================ */
.partners {
    background-color: var(--navy);
    line-height: 0;
}

.partners-banner {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   Services Section (Varejista, nós otimizamos)
   ============================================ */
.services {
    padding: 90px 0;
    background-color: var(--bg-light);
}

.services-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.services-intro h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 22px;
}

.services-lead {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.services-desc {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    max-width: 460px;
}

.services-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.service-card {
    flex: 0 0 calc(33.333% - 11px);
    background-color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 6px 18px rgba(3, 38, 69, 0.05);
}

.service-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: rgba(1, 161, 255, 0.12);
    color: var(--blue);
    margin-bottom: 14px;
}

.service-ic svg {
    width: 18px;
    height: 18px;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.4;
}

.service-card h3 strong {
    font-weight: 700;
}

/* ============================================
   Cases Section (A excelência ...)
   ============================================ */
.cases {
    padding: 90px 0 48px;
    background-color: var(--bg-light);
}

.cases-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 56px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    background-color: var(--text-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(3, 38, 69, 0.08);
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(3, 38, 69, 0.14);
}

.case-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.case-content {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-label {
    font-size: 15px;
    color: var(--blue);
    margin-bottom: 6px;
}

.case-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

.case-content p {
    font-size: 15px;
    color: var(--case-gray);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link .arrow {
    font-size: 13px;
}

.cases-cta {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   Numbers Section (blue banner straddling into dark)
   ============================================ */
.numbers {
    padding: 56px 0 0;
    background: linear-gradient(to bottom,
        var(--bg-light) 0,
        var(--bg-light) 42%,
        var(--near-black) 42%,
        var(--near-black) 100%);
}

.numbers-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    text-align: center;
    max-width: 820px;
    margin: 0 auto 16px;
}

.numbers-lead {
    font-size: 20px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 48px;
}

.numbers-lead strong { font-weight: 700; }

.numbers-banner {
    background-color: var(--banner-blue);
    border-radius: 16px;
    padding: 48px 56px 32px;
    box-shadow: 0 24px 60px rgba(0, 65, 141, 0.35);
}

.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 24px;
}

.number-card {
    flex: 0 0 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-white);
}

.number-value {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 8px;
}

.number-label {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.92;
}

.numbers-disclaimer {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 32px;
    line-height: 1.5;
}

/* ============================================
   Approach / Wheel Section (dark)
   ============================================ */
.approach {
    padding: 80px 0 90px;
    background-color: var(--near-black);
    color: var(--text-white);
}

.approach-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.approach-text h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 460px;
}

.approach-text p {
    font-size: 18px;
    opacity: 0.9;
}

.approach-text p strong { font-weight: 700; }

/* Circular wheel diagram — radius scales with wheel size */
.wheel {
    --wheel-size: 520px;
    --radius: 208px;
    position: relative;
    width: var(--wheel-size);
    height: var(--wheel-size);
    max-width: 100%;
    margin: 0 auto;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 43%;
    height: 43%;
    transform: translate(-50%, -50%);
    background: var(--text-white);
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.wheel-mark {
    display: flex;
    gap: 8px;
}

.wheel-mark span {
    display: block;
    width: 14px;
    height: 46px;
    background: #E2E2E2;
    border-radius: 8px;
}

.wheel-mark span:last-child {
    height: 32px;
    align-self: flex-start;
}

.wheel-label {
    font-size: clamp(15px, 2.6vw, 22px);
    font-weight: 700;
    color: #0D2248;
    text-align: center;
    line-height: 1.15;
    max-width: 70%;
}

.badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20%;
    height: 20%;
    margin: -10% 0 0 -10%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: clamp(8px, 1.5vw, 12px);
    font-weight: 500;
    line-height: 1.15;
    padding: 6px;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

/* 12 badges around the ring — translate out then keep upright.
   Colours run as a gradient clockwise from the top. */
.badge.b1  { transform: rotate(0deg)    translateY(calc(var(--radius) * -1)) rotate(0deg);    background: #4C9FFF; }
.badge.b2  { transform: rotate(30deg)   translateY(calc(var(--radius) * -1)) rotate(-30deg);  background: #2E8FFF; }
.badge.b3  { transform: rotate(60deg)   translateY(calc(var(--radius) * -1)) rotate(-60deg);  background: #1180FF; }
.badge.b4  { transform: rotate(90deg)   translateY(calc(var(--radius) * -1)) rotate(-90deg);  background: #0071F3; }
.badge.b5  { transform: rotate(120deg)  translateY(calc(var(--radius) * -1)) rotate(-120deg); background: #0067DE; }
.badge.b6  { transform: rotate(150deg)  translateY(calc(var(--radius) * -1)) rotate(-150deg); background: #0057BB; }
.badge.b7  { transform: rotate(180deg)  translateY(calc(var(--radius) * -1)) rotate(-180deg); background: #00428F; }
.badge.b8  { transform: rotate(210deg)  translateY(calc(var(--radius) * -1)) rotate(-210deg); background: #002E63; }
.badge.b9  { transform: rotate(240deg)  translateY(calc(var(--radius) * -1)) rotate(-240deg); background: #001B3B; }
.badge.b10 { transform: rotate(270deg)  translateY(calc(var(--radius) * -1)) rotate(-270deg); background: #00142B; }
.badge.b11 { transform: rotate(300deg)  translateY(calc(var(--radius) * -1)) rotate(-300deg); background: #000B18; }
.badge.b12 { transform: rotate(330deg)  translateY(calc(var(--radius) * -1)) rotate(-330deg); background: #66ADFF; }

/* ============================================
   Portfolio Section (De ponta a ponta — dark)
   ============================================ */
.portfolio {
    padding: 40px 0 100px;
    background-color: var(--near-black);
    color: var(--text-white);
}

.portfolio-title {
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    max-width: 760px;
    margin: 0 auto 14px;
}

.portfolio-lead {
    font-size: 18px;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 48px;
}

.portfolio-lead strong { font-weight: 700; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.portfolio-card {
    background-color: var(--text-white);
    border-radius: 12px;
    padding: 26px 22px 28px;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--blue);
    color: #fff;
    margin-bottom: 22px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.portfolio-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 16px;
}

.portfolio-card ul {
    margin-bottom: 22px;
    flex-grow: 1;
}

.portfolio-card li {
    position: relative;
    font-size: 12px;
    color: var(--card-gray);
    line-height: 1.6;
    padding-left: 14px;
}

.portfolio-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
}

.portfolio-card .card-link {
    margin-top: auto;
}

/* ============================================
   Flow / Timeline Section (Do diagnóstico — light)
   ============================================ */
.flow {
    padding: 90px 0;
    background-color: var(--bg-light);
}

.flow-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    color: var(--navy);
    max-width: 720px;
    margin: 0 auto 16px;
}

.flow-lead {
    font-size: 18px;
    text-align: center;
    color: var(--text-dark);
    max-width: 560px;
    margin: 0 auto 60px;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.flow-step {
    position: relative;
    background: var(--text-white);
    border-radius: 12px;
    padding: 28px 18px 20px;
    box-shadow: 0 10px 26px rgba(3, 38, 69, 0.08);
    text-align: left;
}

.step-badge {
    position: absolute;
    top: -22px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(1, 161, 255, 0.18);
}

.step-ic {
    display: block;
    color: var(--navy);
    margin: 18px 0 14px;
}

.step-ic svg {
    width: 22px;
    height: 22px;
}

.flow-step h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.flow-phases {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 22px;
    margin-top: -18px;
    padding-top: 40px;
}

.phase {
    background: var(--navy);
    color: var(--text-white);
    border-radius: 12px;
    padding: 34px 32px;
}

.phase h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.phase p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.92;
}

.phase p strong { font-weight: 700; opacity: 1; }

.flow-cta {
    text-align: center;
    margin-top: 48px;
}

.flow-note {
    text-align: center;
    font-size: 13px;
    color: var(--card-gray);
    margin-top: 40px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 560px;
        padding: 60px 0;
        background-image:
            linear-gradient(90deg, var(--bg-dark) 0%, rgba(9, 12, 23, 0.9) 55%, rgba(9, 12, 23, 0.55) 100%),
            url('../images/home/hero-banner.png');
    }
    .stat-label { max-width: none; }

    .services-inner,
    .approach-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .approach-text { text-align: center; }
    .approach-text h2 { max-width: none; }

    .cases-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .numbers { background: var(--bg-light); }
    .numbers-banner {
        background-color: var(--banner-blue);
        margin-bottom: 0;
    }
    .numbers {
        padding-bottom: 0;
    }
    .numbers-grid { grid-template-columns: repeat(3, 1fr); }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px 20px;
        padding: 0;
    }
    .flow-phases {
        grid-template-columns: 1fr;
        margin-top: 24px;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        background-image:
            linear-gradient(180deg, rgba(9, 12, 23, 0.92), rgba(9, 12, 23, 0.92)),
            url('../images/home/hero-banner.png');
    }
    .hero-title { font-size: 32px; }
    .hero-stats { flex-direction: column; gap: 24px; }

    .service-card { flex-basis: calc(50% - 8px); }

    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .numbers-banner { padding: 32px 24px 24px; }
    .number-value { font-size: 38px; }

    .portfolio-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

    .services-intro h2,
    .cases-title,
    .numbers-title,
    .flow-title,
    .portfolio-title,
    .approach-text h2 {
        font-size: 28px;
    }

    .flow-steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .wheel { --wheel-size: 440px; --radius: 176px; }
}

@media (max-width: 480px) {
    .service-card { flex-basis: 100%; }
    .wheel { --wheel-size: 300px; --radius: 120px; }
}

@media (max-width: 360px) {
    .wheel { --wheel-size: 280px; --radius: 112px; }
}
