/*
Theme Name: EFAROVAC
Theme URI: https://www.efarovac.com/
Description: Custom Blocksy child theme for EFAROVAC
Author: EFARO
Template: blocksy
Version: 1.0.0
Text Domain: efarovac
*/


/* =========================================================
   EFAROVAC – Local Fonts
   ========================================================= */

   @font-face {
    font-family: 'EFAROVAC Inter';
    src: url('fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EFAROVAC Inter';
    src: url('fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EFAROVAC Inter';
    src: url('fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EFAROVAC Inter';
    src: url('fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   EFAROVAC – Global Typography
   ========================================================= */

   body,
   button,
   input,
   select,
   textarea {
       font-family: 'EFAROVAC Inter', Arial, sans-serif;
   }
   
   h1,
   h2,
   h3,
   h4,
   h5,
   h6 {
       font-family: 'EFAROVAC Inter', Arial, sans-serif;
   }

   /* =========================================================
   EFAROVAC – Hero
   ========================================================= */

.efarovac-hero {
    padding-top: 96px;
    padding-bottom: 96px;
}

.efarovac-hero p,
.efarovac-hero h1 {
    margin-top: 0;
}

/* Technical eyebrow */
.efarovac-hero .wp-block-column > p:first-child {
    margin-bottom: 28px;
    color: #7DD8F2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* Main headline */
.efarovac-hero h1 {
    margin-bottom: 26px;
}

/* Intro */
.efarovac-hero h1 + p {
    max-width: 680px;
    margin-bottom: 28px;
}

/* =========================================================
   EFAROVAC – Hero Visual Slider
   ========================================================= */

   .efarovac-hero-visual {
    position: relative;
    display: block;
    width: 100%;
    min-height: 500px;
}

/* All slides occupy exactly the same space */
.efarovac-hero-visual .wp-block-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 2.5s ease,
        visibility 2.5s ease;
}

/* Active slide */
.efarovac-hero-visual .wp-block-image.is-active {
    opacity: 1;
    visibility: visible;
}

/* Images */
.efarovac-hero-visual .wp-block-image img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 781px) {
    .efarovac-hero-visual {
        min-height: 360px;
        margin-top: 48px;
    }

    .efarovac-hero-visual .wp-block-image img {
        height: 360px;
    }
}

/* Accessibility: disable animation when requested */
@media (prefers-reduced-motion: reduce) {
    .efarovac-hero-visual .wp-block-image {
        transition: none;
    }
}

/* =========================================================
   EFAROVAC – BUILT TO ADAPT
   ========================================================= */

.efarovac-adapt {
    padding-top: 64px !important;
    padding-bottom: 96px !important;
}

/* Small section label */
.efarovac-adapt .efarovac-section-label {
    margin: 0;
    color: #7dd8f2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Main headline */
.efarovac-adapt > h2 {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Intro */
.efarovac-adapt .efarovac-section-intro {
    width: 100%;
    max-width: none !important;
    margin-top: 8px;
    margin-right: 0;
    margin-bottom: 16px;
    margin-left: 0;
    text-align: left;
}

/* Feature rows */
.efarovac-adapt .efarovac-feature-row {
    gap: 64px;
    margin-top: 0;
    margin-bottom: 0;
}

/* Feature columns */
.efarovac-adapt .efarovac-feature-row > .wp-block-column {
    position: relative;
    padding-top: 24px;
    padding-bottom: 30px;
    border-top: 1px solid #34434a !important;
}

/* Cyan accent */
.efarovac-adapt .efarovac-feature-row > .wp-block-column::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background-color: #159fe5;
    z-index: 2;
}

/* Inner feature container */
.efarovac-adapt .efarovac-feature {
    padding: 0;
    border: 0;
}

/* Prevent Gutenberg constrained layout from indenting content */
.efarovac-adapt .efarovac-feature > * {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left;
}

/* Feature headings */
.efarovac-adapt .efarovac-feature h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
    line-height: 1.15;
}

/* Feature descriptions */
.efarovac-adapt .efarovac-feature p {
    margin-top: 0;
    margin-bottom: 0;
    color: #b8c7cd;
}

/* Mobile */
@media (max-width: 781px) {

    .efarovac-adapt {
        padding-top: 48px !important;
        padding-bottom: 64px !important;
    }

    .efarovac-adapt .efarovac-feature-row {
        gap: 0;
    }

    .efarovac-adapt .efarovac-feature h3 {
        font-size: 22px;
    }
}

/* =========================================================
   EFAROVAC – PLATFORM PREVIEW
   ========================================================= */

.efarovac-platform-preview {
    padding-top: 80px !important;
    padding-bottom: 96px !important;
}

/* Section label */
.efarovac-platform-preview .efarovac-section-label {
    margin: 0 0 12px 0;
    color: #7dd8f2;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Headline */
.efarovac-platform-preview > h2 {
    margin-top: 0;
    margin-bottom: 22px;
}

/* Intro */
.efarovac-platform-preview .efarovac-platform-intro {
    margin-top: 0;
    margin-bottom: 34px;
    text-align: left;
}

/* Main screenshot / feature layout */
.efarovac-platform-preview .efarovac-platform-layout {
    gap: 26px;
    align-items: stretch;
}

/* Screenshot */
.efarovac-platform-preview .efarovac-platform-screen {
    margin: 0;
}

.efarovac-platform-preview .efarovac-platform-screen img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #34434a;
}

/* Right-hand features */
.efarovac-platform-preview .efarovac-platform-feature {
    position: relative;
    padding: 18px 0 22px 0;
    border-top: 1px solid #34434a;
}

.efarovac-platform-preview .efarovac-platform-feature:first-child {
    padding-top: 18px;
}

/* Cyan technical accent */
.efarovac-platform-preview .efarovac-platform-feature::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: #159fe5;
}

/* Feature headline */
.efarovac-platform-preview .efarovac-platform-feature h3 {
    margin: 0 0 14px 0;
    font-size: 24px;
    line-height: 1.15;
}

/* Feature text */
.efarovac-platform-preview .efarovac-platform-feature p {
    margin: 0;
    color: #b8c7cd;
    line-height: 1.65;
}

/* Mobile */
@media (max-width: 781px) {
    .efarovac-platform-preview {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    .efarovac-platform-preview .efarovac-platform-layout {
        gap: 36px;
    }
}