/**
 * Flix Theme - Front Page
 *
 * Styles for the homepage. Loaded only on the front page.
 */

/* ================================
   Hero Section
   ================================ */
.hero-section {
    border-bottom: 1px solid var(--gray-200);
    padding: 56px 0px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.hero-text{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 64px;
    gap: 24px;
}

.hero-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 56px;
    line-height: 120%;
    color: var(--gray-900);
    width: 330px;
    margin-bottom: 0px;
}

.hero-description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.hero-form {
    width: 400px;
}

/* Hero CF7 Form — layout overrides */
.hero-form .wpcf7-form .hidden-fields-container {
    display: none;
}

.hero-contact-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-contact-form p {
    display: contents;
}

.hero-contact-form br {
    display: none;
}

.hero-contact-form .wpcf7-form-control-wrap {
    flex: 1;
}

.hero-contact-form input[type="tel"] {
    width: 227px;
    height: 50px;
    border-radius: 8px;
    padding: 9px 13px;
    background: var(--base-white);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: var(--second-family);
    color: var(--gray-900);
}

.hero-contact-form input[type="tel"]::placeholder {
    font-family: var(--third-family);
    color: var(--gray-500);
}

.hero-contact-form .wpcf7-submit {
    width: auto;
    border-radius: 12px;
    font-family: var(--second-family);
    padding: 14px 28px;
    white-space: nowrap;
}

.hero-contact-form .wpcf7-submit:hover {
    background: var(--color-primary-dark);
}

.hero-form .wpcf7-form .wpcf7-response-output {
    display: block;
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.hero-form__consent {
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 12px;
    margin-bottom: 0px;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.hero-image-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hero-image-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
}

.hero-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-200);
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   Home Calculator Section
   ================================ */

.home-calculator-section{
    background: var(--base-white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
   }
.home-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    background: var(--base-white);
}

.home-calculator__form{
    padding: 112px 64px;
    padding-right: 80px;
}

.home-calculator__form .section-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.home-calculator__form .section-description {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 150%;
    color: var(--gray-700);
    text-align: start;
    margin-bottom: 48px;
}

.calculator-field {
    margin-bottom: var(--spacing-md);
}

.calculator-field label {
    display: block;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 143%;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.calculator-field input,
.calculator-field select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--gray-500);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background: var(--base-white);
    transition: var(--transition);
}

.calculator-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z' fill='%236B7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.calculator-field input:focus,
.calculator-field select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--blue-100);
}

.calculator-fields__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.home-calculator__result {
    padding: 128px 45px;
    display: flex;
    align-items: flex-start;
    border: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    background-image: url('../../img/calculator_background_results.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-top: none;
    border-bottom: none;
}

.calculator-result-card {
    background: var(--base-white);
    border-radius: 16px;
    text-align: center;
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.calculator-results__top{
    padding: 32px;
    text-align: start;
    justify-content: start;
    background-color: var(--gray-100);
    border-radius: 16px;

}

.calculator-result-card__header {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #000;
    margin-bottom: 12px;
}

.calculator-result-card__price {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: var(--gray-900);
}

.calculator-results__bottom{
    padding: 32px;
}

.calculator-result-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.calculator-result-card__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.calculator-result-card__detail-label {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #000;
}

.calculator-result-card__detail-value {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 38px;
    line-height: 120%;
    color: var(--gray-900);
}

.calculator-result-card .btn {
    width: auto;
    margin-bottom: var(--spacing-md);
}

.calculator-result-card__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border-radius: 12px;
    background: var(--gray-50);
    margin-bottom: 0px;


    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: var(--gray-500);
    text-align: start;
}

.calculator-result-card__disclaimer-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ================================
   Reviews Section
   ================================ */

.reviews-slider-section{
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

/* ================================
   Features Section
   ================================ */

.features-section{
    background: var(--base-white);
    border-bottom: 1px solid var(--gray-200);
}

.feature-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    text-align: center;
    gap: 20px;
    position: relative;
}

/* Horizontal connecting line between icons */
.feature-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 44px);
    width: calc(100% - 88px);
    height: 1px;
    background: var(--gray-200);
}
.feature-card__icon {
    border: 1px solid var(--main-color-100);
    border-radius: 10px;
    padding: 10px;
    width: 56px;
    height: 56px;
    position: relative;
    background: var(--blue-50);
    margin-bottom: 4px;
}
.feature-card__icon img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--base-white);
    font-family: var(--third-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 4px 8px;
}

.feature-card__duration img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}


.feature-card__title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 0;
}

.feature-card__description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--gray-700);
}

/* ================================
   Lead Form Section
   ================================ */
/* ================================
   Recent Work Section
   ================================ */
.recent-work-section {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.recent-work-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 80px;
}

.recent-work-header__text{
    max-width: 768px;
}

.recent-work-header__text .section-description {
    margin: 0;
    text-align: start;
}

.recent-work-header .link-with-arrow {
    flex-shrink: 0;
}

/* ================================
   FAQ Section
   ================================ */
.faq-list {
    max-width: 768px;
    margin: 0 auto;
}

.faq-item {
    border-top: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--base-white);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 22px 0px 22px 0px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
    color: var(--gray-900);
    text-align: left;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
}

.faq-item__question:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

.faq-item__question:hover {
    background: var(--gray-50);
    padding: 22px 16px 22px 16px;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--gray-400);
}

.faq-item__question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    display: none;
    padding: 22px 0px 24px 0px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--gray-700);
    max-height: 100% !important;
    transition: all 0.3s ease;
}

.faq-item__answer p {
    margin: 0;
}

.faq-item.active .faq-item__answer {
    display: flex;
}

.faq-cta {
    margin-top: var(--spacing-xl);
}

.faq-cta p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

/* ================================
   Stats Section
   ================================ */
.stats-section {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.stats-layout__content{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
}

.stats-layout__content .section-title {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: #000;
    margin-bottom: 0px;
}

.stats-layout__content .section-description {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 150%;
    color: var(--gray-700);
    margin-bottom: 0px;
    text-align: start;
}

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

.stat-item__value {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: var(--blue-600);
    margin-bottom: 8px;
}

.stat-item__label {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: var(--gray-700);
}

.stats-layout__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.stats-layout__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================
   Blog Section
   ================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* Mixed feed badge variants */
.post-card__badge--promotion {
    background: var(--yellow-300);
    border: 1px solid var(--yellow-400);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--third-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: var(--gray-900);
}

.post-card__badge--promotion svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.post-card__badge--category-blog {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: var(--third-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: var(--gray-900);
}

/* ================================
   Final CTA Section
   ================================ */

.final-cta-section{
    background: var(--base-white);
    border-bottom: 1px solid var(--gray-200);
    padding: 48px 0px;
}

.final-cta-section-block{
    border-radius: 24px;
    padding: 48px 24px;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 24px;

}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ================================
   Responsive - Tablet (1024px)
   ================================ */
@media (max-width: 1024px) {
    .recent-work-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    .hero-text {
        padding-left: 0;
    }
    .hero-title {
        font-size: 38px;
        width: 100%;
    }
    .hero-form {
        width: 100%;
    }
    .hero-contact-form {
        flex-direction: column;
    }
    .hero-contact-form .wpcf7-form-control-wrap,
    .hero-contact-form input[type="tel"] {
        width: 100% !important;
    }
    .hero-contact-form .wpcf7-submit {
        width: 100%;
    }
    .home-calculator {
        grid-template-columns: 1fr;
    }
    .home-calculator__form {
        padding: 80px 40px;
    }
    .home-calculator__result {
        padding: 40px;
    }
    .calculator-result-card {
        position: static;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Hide line on even cards (2nd, 4th) — they sit at row ends */
    .feature-card:nth-child(2n)::after {
        display: none;
    }
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================
   Responsive - Mobile (768px)
   ================================ */
@media (max-width: 768px) {
    /* Hero Mobile */
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-content {
        gap: 48px;
    }
    .hero-text {
        gap: 20px;
    }
    .hero-description {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .hero-form__consent {
        font-size: 12px;
    }
    .hero-image {
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
    }
    .hero-image img {
        width: 100%;
        display: block;
    }
    .hero-image-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-item:first-child {
        grid-column: auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .feature-card {
        align-items: flex-start;
        text-align: left;
        padding: 0 0 0 24px;
        gap: 20px;
        border-left: 1px solid var(--gray-200);
    }
    .feature-card__title {
        text-align: left;
        margin-bottom: 0;
    }
    .feature-card__description {
        text-align: left;
    }
    /* Remove connecting pseudo-element on mobile */
    .feature-card:not(:last-child)::after {
        display: none;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    /* Recent Work — move link after grid */
    .recent-work-section > .container {
        display: flex;
        flex-direction: column;
    }
    .recent-work-header {
        display: contents;
    }
    .recent-work-header__text {
        order: 1;
        margin-bottom: 32px;
    }
    .recent-work-section .projects-grid {
        order: 2;
    }
    .recent-work-header .link-with-arrow {
        order: 3;
        margin-top: 32px;
        align-self: center;
    }
    /* Calculator Mobile */
    .home-calculator {
        grid-template-columns: 1fr;
    }
    .home-calculator__form {
        padding: 48px var(--spacing-sm) 16px;
    }
    .home-calculator__form .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .home-calculator__form .section-description {
        font-size: 16px;
        margin-bottom: 32px;
    }
    .home-calculator__result {
        padding: 16px;
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
        border-top: 1px solid var(--gray-200);
    }
    .calculator-result-card {
        position: static;
    }
    .calculator-result-card__price {
        font-size: 32px;
    }
    .calculator-result-card__detail-value {
        font-size: 24px;
    }
    .calculator-results__top,
    .calculator-results__bottom {
        padding: 24px;
    }
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: row;
    }
    .cta-buttons .btn {
        width: auto;
    }
    /* Hero actions stacking */
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    /* Stat items */
    .stat-item__value {
        font-size: 2rem;
    }

    .stats-layout__content .section-title{
        font-size: 32px;
    }

    stats-layout__content{
        gap: 20px;
    }
    .stat-item__value{
        font-size: 36px;
    }

    .stat-item__label{
        font-size: 16px;
    }
}

/* ================================
   Responsive - Small Mobile (480px)
   ================================ */
@media (max-width: 480px) {
    .hero-title {

    }
    .stat-item__value {
        font-size: 1.75rem;
    }

    .reviews-slider-section > .container > .reviews-section .container{
        padding: 0px;
}
