/*
 * why-farizon.css
 * Styles for page-why-farizon.php template
 * Enqueue in functions.php for page_template = templates/page-why-farizon.php
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --wf-dark:       #191919;
    --wf-dark-2:     #222222;
    --wf-light:      #ffffff;
    --wf-bg:         #f9f9f9;
    --wf-card-bg:    #fdfdfd;
    --wf-gold:       #dfb66f;
    --wf-divider:    rgba(25, 25, 25, 0.10);
    --wf-divider-lt: rgba(255, 255, 255, 0.10);
    --wf-font:       Helvetica, Arial, sans-serif;
    --wf-pad:        120px;
    --wf-r-card:     8px;
    --wf-r-btn:      100px;
}

/* ============================================================
   RESET
   ============================================================ */
.wf-page *,
.wf-page *::before,
.wf-page *::after { box-sizing: border-box; }
.wf-page {
    font-family: var(--wf-font);
    color: var(--wf-dark);
    line-height: 1.5625;
}

/* ============================================================
   SHARED: SECTION TITLE
   ============================================================ */
.wf-section-title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1.1;
    color: var(--wf-dark);
    margin: 0;
    text-transform: capitalize;
}
.wf-section-title--light { color: var(--wf-light); }

.wf-section-desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: var(--wf-dark);
    max-width: 640px;
}

/* ============================================================
   SHARED: BUTTONS
   ============================================================ */

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.wf-hero {
    position: relative;
    min-height: 70vh;
    background-color: var(--wf-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wf-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(25, 25, 25, 0.72) 0%,
            rgba(25, 25, 25, 0.45) 25%,
            rgba(25, 25, 25, 0.2) 50%,
            transparent 70%
        ),
        linear-gradient(
            to top,
            rgba(25, 25, 25, 0.6) 0%,
            transparent 40%
        );
    pointer-events: none;
}

.wf-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 80px;
}

.wf-hero__content {
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wf-hero__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 58px;
    line-height: 1;
    color: var(--wf-light);
    margin: 0;
}

.wf-hero__subtitle {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: #ffffff;
}



/* ============================================================
   SECTION 1.5: INTRO (heading 1/3 + text 2/3)
   ============================================================ */
.wf-intro {
    padding: 100px 0;
    background-color: var(--wf-light);
}

.wf-intro__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.wf-intro__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1.15;
    color: var(--wf-dark);
    margin: 0;
    text-transform: capitalize;
}

.wf-intro__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: var(--wf-dark);
}


/* ============================================================
   STRATEGY SECTION
   ============================================================ */
.wf-strategy {
    position: relative;
    padding: 100px 0;
    background-color: var(--wf-dark);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.wf-strategy__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, #191919 0%, transparent 30%, transparent 75%, #191919 100%),
        linear-gradient(to bottom, #191919 0%, transparent 50%, transparent 70%, #191919 100%);
    pointer-events: none;
}

.wf-strategy .container {
    position: relative;
    z-index: 2;
}

.wf-strategy__content {
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wf-strategy__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1.1;
    color: var(--wf-light);
    margin: 0;
    text-transform: capitalize;
}

.wf-strategy__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   FULLWIDTH IMAGE SECTION
   ============================================================ */
.wf-fullimg {
    background-color: #191919;
    overflow: hidden;
    line-height: 0;
}

.wf-fullimg__wrap {
    width: 100%;
}

.wf-fullimg__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 80%;
    margin-left: auto;
}

/* ============================================================
   PRINCIPLES SECTION
   ============================================================ */
.wf-principles {
    padding: 100px 0;
    background-color: #191919;
}

.wf-principles__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    color: var(--wf-light);
    text-align: center;
    text-transform: capitalize;
    margin: 0 0 56px;
}

.wf-principles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wf-princ-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--wf-r-card);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    transition: background-color 0.25s ease;
}
.wf-princ-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
}

.wf-princ-card__icon-wrap {
    width: 39px;
    height: 39px;
    background-color: var(--wf-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wf-princ-card__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.wf-princ-card__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 16px;
    line-height: 25px;
    color: var(--wf-light);
    margin: 0;
}

.wf-princ-card__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 23px;
    color: #ffffff;
}


/* ============================================================
   APPROACH SECTION (50/50, white bg)
   ============================================================ */
.wf-approach {
    padding: 100px 0;
    background-color: var(--wf-light);
}

.wf-approach__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.wf-approach__text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wf-approach__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1.15;
    color: var(--wf-dark);
    margin: 0;
    text-transform: capitalize;
}

.wf-approach__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: var(--wf-dark);
}

.wf-approach__media {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.wf-approach__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   TECHNOLOGIES SECTION
   bg: #191919, centered header + 3 alternating sub-sections
   ============================================================ */
.wf-tech {
    background-color: #191919;
    padding-bottom: 80px;
}

/* Centered header */
.wf-tech__header {
    padding-top: 100px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.wf-tech__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 38px;
    line-height: 1.15;
    color: var(--wf-light);
    margin: 0;
    text-transform: capitalize;
    max-width: 760px;
}

.wf-tech__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: #ffffff;
    max-width: 640px;
}

/* Sub-section: grid of text + media */
.wf-tech-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 80px;
    /* text col uses container padding; media col bleeds to right edge */
}

/* Default: text left, media right */
/* Text block gets left container padding */
.wf-tech-sub__text {
    padding-left: max(120px, calc((100vw - 1512px) / 2 + 120px));
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Media: no right padding → bleeds to right */
.wf-tech-sub__media {
    position: relative;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    aspect-ratio: 4 / 3;
    justify-self: stretch;
    align-self: stretch;
    max-height: 350px;
}

.wf-tech-sub__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, #191919 0%, transparent 25%, transparent 75%, #191919 100%),
        linear-gradient(to bottom, #191919 0%, transparent 20%, transparent 80%, #191919 100%);
    pointer-events: none;
    z-index: 1;
}

/* Reversed: media left (no left padding), text right */
.wf-tech-sub--media-left {
    direction: rtl;
}
.wf-tech-sub--media-left > * {
    direction: ltr;
}

/* When reversed, media bleeds to LEFT edge */
.wf-tech-sub--media-left .wf-tech-sub__media {
    border-radius: 0 12px 12px 0;
}

/* Reversed text has left padding (container) */
.wf-tech-sub--media-left .wf-tech-sub__text {
    padding-left: 120px;
    padding-right: max(120px, calc((100vw - 1512px) / 2 + 120px));
}

.wf-tech-sub__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-tech-sub__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 18px;
    line-height: 25px;
    color: var(--wf-light);
    margin: 0;
}

.wf-tech-sub__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: #ffffff;
}

@media (min-width: 1800px) {
    .wf-tech-sub__media {
        max-height: 500px;
    }
}
/* ============================================================
   RESPONSIVE — TABLET (≤ 1100px)
   ============================================================ */
@media (max-width: 1100px) {
    :root { --wf-pad: 60px; }

    .wf-hero__title { font-size: 48px; }

    .wf-intro__inner { grid-template-columns: 1fr; gap: 32px; }
    .wf-intro__title { font-size: 30px; }

    .wf-strategy__content { max-width: 60%; }
    .wf-strategy__title { font-size: 30px; }
    .wf-principles__grid { grid-template-columns: 1fr; gap: 12px; }
    .wf-approach__inner { grid-template-columns: 1fr; gap: 40px; }
    .wf-approach__title { font-size: 30px; }

    .wf-tech__title { font-size: 30px; }
    .wf-tech-sub { grid-template-columns: 1fr; direction: ltr; margin-bottom: 48px; }
    .wf-tech-sub--media-left { direction: ltr; }
    .wf-tech-sub__text { padding-right: 0; }
    .wf-tech-sub--media-left .wf-tech-sub__text { padding-left: 0; }
    .wf-tech-sub__media { border-radius: 12px; }
    .wf-tech-sub--media-left .wf-tech-sub__media { border-radius: 12px; }
    .wf-stat {
        border-right: none;
        margin-right: 0;
        padding-right: 0;
        border-bottom: 1px solid var(--wf-divider-lt);
        padding-bottom: 32px;
    }
    .wf-stat:nth-child(even) { border-bottom: none; padding-bottom: 0; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
    :root { --wf-pad: 24px; }

    /* Hero */
    .wf-hero { min-height: 75vh; }
    .wf-hero__content { max-width: 100%; }

    /* Intro */
    .wf-intro { padding: 64px 0; }
    .wf-intro__inner { grid-template-columns: 1fr; gap: 24px; }
    .wf-intro__title { font-size: 28px; }
    .wf-hero .container { padding-bottom: 60px; }
    .wf-hero__title { font-size: 36px; }
    .wf-hero__subtitle { font-size: 16px; }

    /* Strategy */
    .wf-strategy { padding: 64px 0; }
    .wf-strategy__content { max-width: 100%; }
    .wf-strategy__title { font-size: 28px; }

    /* Principles */
    .wf-principles { padding: 64px 0; }
    .wf-principles__title { font-size: 28px; margin-bottom: 32px; }
    .wf-principles__grid { grid-template-columns: 1fr; }
    .wf-princ-card { padding: 28px 20px; }

    /* Tech */
    .wf-tech { padding-bottom: 48px; }
    .wf-tech__header { padding-top: 64px; padding-bottom: 48px; }
    .wf-tech__title { font-size: 26px; }
    .wf-tech-sub { margin-bottom: 32px; }
    .wf-tech-sub__title { font-size: 16px; }

    /* Approach */
    .wf-approach { padding: 64px 0; }
    .wf-approach__title { font-size: 26px; }

    /* Advantages */
    .wf-section-title { font-size: 28px; }

    /* Stats */
    .wf-stat { border-bottom: none; padding-bottom: 0; }
    .wf-stat__value { font-size: 36px; }

    /* Media block */

    /* Reviews */

    /* CTA */
    .wf-cta { padding: 32px 0 48px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
    .wf-hero__title { font-size: 30px; }
    .wf-stat__value { font-size: 28px; }
}

/* ============================================================
   CTA SECTION
   Dark card, 50/50: title+desc+btn left, image right
   ============================================================ */
.wf-cta {
    padding: 60px 0 80px;
    background-color: #191919;
}

.wf-cta__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #222222;
    border-radius: 16px;
    overflow: hidden;
    min-height: 380px;
}

.wf-cta__left {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.wf-cta__title {
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    color: var(--wf-light);
    margin: 0;
    text-transform: capitalize;
}

.wf-cta__desc {
    font-family: var(--wf-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.wf-cta-btn {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 28px;
    border-radius: 100px;
    border: none;
    background-color: #ffffff;
    color: #000000;
    font-family: var(--wf-font);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    align-self: flex-start;
    white-space: nowrap;
}
.wf-cta-btn:hover {
    background-color: rgba(255, 255, 255, 0.88);
    border-color: transparent;
}

.wf-cta__media {
    position: relative;
    overflow: hidden;
}

.wf-cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 450px;
}

@media (max-width: 1400px) {
    .wf-tech-sub__text,
    .wf-tech-sub--media-left .wf-tech-sub__text {
        padding: 0 40px;
    }
}

@media (max-width: 1100px) {
    .wf-cta__card { grid-template-columns: 1fr; border-radius: 12px; }
    .wf-cta__left { padding: 48px 40px; }
    .wf-cta__media { min-height: 300px; }
    .wf-cta__title { font-size: 28px; }
     .wf-tech-sub__text,
    .wf-tech-sub--media-left .wf-tech-sub__text {
        padding: 0 24px;
    }
    
}

@media (max-width: 767px) {
    .wf-cta { padding: 32px 0 48px; }
    .wf-cta__left { padding: 32px 24px; }
    .wf-cta__title { font-size: 24px; }
    .wf-cta__media { min-height: 220px; }
    .wf-cta-btn { align-self: stretch; justify-content: center; }
    .wf-tech-sub__media { margin-top: 40px; }
    .wf-fullimg__img { max-width: 100%; }
    .wf-strategy__overlay { margin-top: 20vh; }
    .wf-strategy .container { margin-bottom: 50%; }
    .wf-strategy { background-position: center 20vh; }
    .wf-tech__title { text-align: left; }
    .wf-tech__desc { text-align: left; }
    .wf-hero__overlay { background: linear-gradient(to right, rgba(25, 25, 25, 0.72) 0%, rgba(25, 25, 25, 0.45) 25%, rgba(25, 25, 25, 0.2) 100%, transparent 70%), linear-gradient(to top, rgba(25, 25, 25, 0.6) 0%, transparent 40%); }
}
