/* ============================================================
   VELIZ — Main Stylesheet
   Структура: Reset → Variables → Base → Layout → Components →
              Sections → Animations → Responsive
   ============================================================ */

/* --- Reset & Box Model --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- CSS Variables --- */
:root {
    /* Colors */
    --c-dark:         #111318;
    --c-dark-2:       #1C2030;
    --c-dark-3:       #14181F;
    --c-accent:       #C9953A;
    --c-accent-hover: #B07E25;
    --c-accent-glow:  rgba(201, 149, 58, 0.22);
    --c-accent-dim:   rgba(201, 149, 58, 0.08);
    --c-bg:           #F6F3EE;
    --c-bg-card:      #FDFBF8;
    --c-text:         #252525;
    --c-text-mid:     #5C5C5C;
    --c-text-on-dark: rgba(246, 243, 238, 0.78);
    --c-white:        #F6F3EE;
    --c-border:       rgba(37, 37, 37, 0.11);
    --c-border-dark:  rgba(246, 243, 238, 0.09);
    --c-success:      #4CAF88;

    /* Typography */
    --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --f-body:    'Manrope', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container:    1200px;
    --gutter:       32px;
    --section-py:   100px;

    /* Misc */
    --radius:     3px;
    --radius-lg:  6px;
    --transition: 0.22s ease;
    --shadow-lg:  0 16px 48px rgba(17, 19, 24, 0.14);
}

/* --- Base --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--f-body);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

abbr[title] {
    text-decoration: none;
    color: var(--c-accent);
}

/* --- Container --- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* --- Sections --- */
.section {
    padding-block: var(--section-py);
}

.section--dark {
    background-color: var(--c-dark-3);
}

.section-header {
    margin-bottom: 56px;
}

/* --- Typography Utilities --- */
.section-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 10px;
}

.section-label--accent { color: var(--c-accent); }

.section-title {
    font-family: var(--f-display);
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 600;
    color: var(--c-dark);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.section-title--light { color: var(--c-white); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 34px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn--primary {
    background-color: var(--c-accent);
    color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--c-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--c-accent-glow);
    outline: none;
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--full {
    width: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 200;
    padding-block: 22px;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
    background-color: rgba(17, 19, 24, 0.97);
    backdrop-filter: blur(12px);
    padding-block: 14px;
    box-shadow: 0 1px 0 rgba(246, 243, 238, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.logo__name {
    font-family: var(--f-display);
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    line-height: 1;
}

.logo__tagline {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-accent);
    line-height: 1;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
    color: #fff;
    outline: none;
}

.nav__link--cta {
    background-color: var(--c-accent);
    color: #fff;
    padding: 9px 20px;
    border-radius: var(--radius);
}

.nav__link--cta:hover {
    background-color: var(--c-accent-hover);
    color: #fff;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--c-dark);
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg:before{
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__grid {
    position: absolute;
    inset: 0;
    
}

.hero__glow {
    position: absolute;
    inset: 0;
    background: url(/img/main-img.png);
    background-size: cover;
    background-repeat: no-repeat;

}

/* Content */
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    padding-top: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s ease forwards;
}

.hero__title {
    font-family: var(--f-display);
    font-size: clamp(44px, 7vw, 62px);
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s ease forwards;
    text-align: center;
}

.hero__subtitle {
    font-size: 16px;
    font-weight: 300;
    color: var(--c-text-on-dark);
    max-width: 540px;
    line-height: 1.72;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s ease forwards;
    text-align: center;
}

.hero .btn {
    opacity: 0;
    animation: fadeUp 0.7s 0.65s ease forwards;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll span {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, transparent, rgba(201, 149, 58, 0.55));
    margin-inline: auto;
    animation: pulse 2s infinite ease-in-out;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
}

.about .section-title {
    margin-bottom: 24px;
}

.about__desc {
    font-size: 15.5px;
    color: var(--c-text-mid);
    margin-bottom: 14px;
    line-height: 1.7;
}

.about__stats {
    display: flex;
    gap: 36px;
    list-style: none;
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid var(--c-border);
}

.about__stat strong {
    display: block;
    font-family: var(--f-display);
    font-size: 38px;
    font-weight: 700;
    color: var(--c-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.about__stat span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-mid);
}

/* Image block */
.about__visual {
    position: relative;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    line-height: 0;
}

.about__image img {
    width: 100%;
    height: auto;
    display: block;
}

.about__image svg {
    width: 100%;
    height: auto;
    display: block;
}

.about__accent-border {
    position: absolute;
    inset: -14px -14px auto auto;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border: 1.5px solid var(--c-accent);
    border-radius: var(--radius-lg);
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
}


/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--c-border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    gap: 10px;
}

.service-card {
    padding: 80px 44px;
    transition: background-color var(--transition);
}

.service-card:nth-child(even) {
    border-right: none;
}

.service-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.service-card:hover {
    background-color: rgba(201, 149, 58, 0.04);
}

.service-card__icon {
    width: 42px;
    height: 42px;
    color: var(--c-accent);
    margin-bottom: 20px;
    position: relative;
    z-index: 9;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-family: var(--f-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--c-white);
    line-height: 1.28;
    margin-bottom: 12px;
    position: relative;
    z-index: 9;
}

.service-card__desc {
    font-size: 14.5px;
    color: var(--c-text-on-dark);
    line-height: 1.68;
    position: relative;
    z-index: 9;
}


/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 40px;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advantage-item__icon {
    width: 56px;
    height: 56px;
    color: var(--c-accent);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.advantage-item__icon svg {
    width: 100%;
    height: 100%;
}

.advantage-item__title {
    font-family: var(--f-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--c-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.advantage-item__text {
    font-size: 14px;
    color: var(--c-text-mid);
    line-height: 1.68;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 88px;
    align-items: start;
}

.contact__desc {
    font-size: 15px;
    color: var(--c-text-on-dark);
    line-height: 1.72;
    margin-bottom: 40px;
}

.contact__details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact__detail-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--c-border-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

.contact__detail:hover .contact__detail-icon {
    border-color: var(--c-accent);
}

.contact__detail-icon svg {
    width: 16px;
    height: 16px;
    color: var(--c-accent);
}

.contact__detail-label {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 3px;
}

.contact__detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-white);
    text-decoration: none;
    transition: color var(--transition);
}

.contact__detail-value:hover {
    color: var(--c-accent);
}


/* ============================================================
   FORM
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 243, 238, 0.5);
}

.form-input {
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--c-white);
    background-color: rgba(246, 243, 238, 0.04);
    border: 1px solid var(--c-border-dark);
    border-radius: var(--radius);
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--transition), background-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(246, 243, 238, 0.22);
}

.form-input:focus {
    border-color: var(--c-accent);
    background-color: rgba(201, 149, 58, 0.04);
}

.form-input.is-error {
    border-color: #E05252;
}

.form-textarea {
    resize: vertical;
    min-height: 104px;
    line-height: 1.6;
}

.form-error {
    font-size: 11.5px;
    color: #E05252;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.form-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--c-success);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    padding: 14px 16px;
    border: 1px solid rgba(76, 175, 136, 0.22);
    border-radius: var(--radius);
    background-color: rgba(76, 175, 136, 0.06);
}

.form-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Hide native hidden attribute items properly */
[hidden] {
    display: none !important;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--c-dark);
    padding-block: 24px;
    border-top: 1px solid rgba(246, 243, 238, 0.05);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer__copy {
    font-size: 12px;
    color: rgba(246, 243, 238, 0.28);
    letter-spacing: 0.03em;
}

.footer__back {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: opacity var(--transition);
}

.footer__back:hover {
    opacity: 0.7;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.32s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1060px) {
    :root { --section-py: 80px; }

    .about__inner {
        gap: 56px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Large mobile / small tablet */
@media (max-width: 800px) {
    :root {
        --section-py: 64px;
        --gutter: 20px;
    }

    /* Header: hide nav, show only logo + cta */
    .nav .nav__link:not(.nav__link--cta) {
        display: none;
    }

    /* Hero */
    .hero__content {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* About */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__visual {
        order: -1;
    }

    .about__accent-border {
        display: none;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: none;
        padding: 32px;
    }

    .service-card:last-child {
        border-bottom: none;
    }

    /* Contact */
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Form row */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .hero__title {
        font-size: 38px;
    }

    .about__stats {
        flex-wrap: wrap;
        gap: 20px 28px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


.raveal_1 {
    background: url(/img/pribyrannya.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

.raveal_2 {
    background: url(/img/promyslove.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

.raveal_3 {
    background: url(/img/fasad.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

.raveal_4 {
    background: url(/img/teh-obslugovuvannya.png);
    background-size: cover;
    background-position: center;
    position: relative;
}

article.service-card.reveal:after{
    content: '';
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}