/*
Theme Name: Contour
Theme URI: https://contour.ddev.site
Author: Arsfer
Author URI: https://contour.ddev.site
Description: Custom WordPress theme for Contour marketing agency.
Version: 1.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.3
Text Domain: contour
*/

:root {
    --bg: #f4f8fc;
    --bg-accent: #e8f1fb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --line: #b9d3ee;
    --line-strong: #7fb1e4;
    --text: #1f3650;
    --muted: #5f7995;
    --blue: #58a8ff;
    --blue-strong: #2b82ea;
    --gold: #ffd67a;
    --shadow: 0 20px 60px rgba(102, 138, 180, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
            radial-gradient(circle at 20% 15%, rgba(126, 179, 234, 0.18), transparent 28%),
            radial-gradient(circle at 80% 35%, rgba(110, 179, 255, 0.14), transparent 24%),
            radial-gradient(circle at 50% 100%, rgba(173, 205, 241, 0.18), transparent 36%),
            linear-gradient(180deg, #fbfdff 0%, var(--bg) 56%, var(--bg-accent) 100%);
    min-height: 100vh;
}

.site {
    min-height: 100vh;
}

.site-content {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 18px 0 0;
}

.site-header__shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(127, 177, 228, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,251,255,0.72));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-branding {
    min-width: 0;
}

.site-branding__identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-branding__logo img,
.custom-logo {
    display: block;
    width: auto;
    max-height: 42px;
}

.site-branding__mark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #ffffff, #8ecbff);
    box-shadow:
            0 0 0 6px rgba(255,255,255,0.55),
            0 0 24px rgba(88, 168, 255, 0.35);
}

.site-branding__mark::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(127, 177, 228, 0.24);
    border-radius: 999px;
}

.site-branding__text {
    min-width: 0;
}

.site-title {
    display: inline-block;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-title:hover,
.site-title:focus-visible {
    color: var(--blue-strong);
}

.site-description {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.site-navigation {
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid rgba(127, 177, 228, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
}

.site-menu li {
    margin: 0;
}

.site-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition:
            background-color 180ms ease,
            color 180ms ease,
            transform 180ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.current-menu-item > a,
.current_page_item > a {
    background: rgba(88, 168, 255, 0.12);
    color: var(--blue-strong);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #6bb6ff, #2b82ea);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(73, 136, 212, 0.28);
    transition:
            transform 180ms ease,
            box-shadow 180ms ease,
            opacity 180ms ease;
}

.site-header__cta:hover,
.site-header__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(73, 136, 212, 0.32);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

.screen-reader-text:focus {
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    background: #ffffff;
    color: var(--text);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 100000;
}

@media (max-width: 980px) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-navigation {
        order: 3;
        flex: 1 0 100%;
        justify-content: flex-start;
    }

    .site-menu {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 12px;
    }

    .site-header__shell {
        width: min(100% - 20px, 100%);
    }

    .site-header__inner {
        padding: 14px;
        border-radius: 20px;
    }

    .site-title {
        font-size: 18px;
    }

    .site-description {
        font-size: 12px;
    }

    .site-header__cta {
        width: 100%;
        min-height: 44px;
    }

    .site-header__actions {
        width: 100%;
    }

    .site-navigation {
        justify-content: stretch;
    }

    .site-menu {
        width: 100%;
    }
}

.site-footer {
    padding: 28px 0 36px;
}

.site-footer__shell {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-footer__inner {
    padding: 26px 28px;
    border: 1px solid rgba(127, 177, 228, 0.28);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(247,251,255,0.72));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(180px, 0.8fr) auto;
    gap: 24px;
    align-items: center;
}

.site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.site-footer__mark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 4px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #ffffff, #ffd67a);
    box-shadow:
            0 0 0 6px rgba(255,255,255,0.55),
            0 0 24px rgba(255, 214, 122, 0.35);
}

.site-footer__mark::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(127, 177, 228, 0.24);
    border-radius: 999px;
}

.site-footer__brand-text {
    min-width: 0;
}

.site-footer__title {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.site-footer__text {
    margin: 12px 0 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.site-footer__contact-link {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__contact-link:hover,
.site-footer__contact-link:focus-visible {
    color: var(--blue-strong);
}

.site-footer__actions {
    display: flex;
    justify-content: flex-end;
}

.site-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #6bb6ff, #2b82ea);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(73, 136, 212, 0.28);
    transition:
            transform 180ms ease,
            box-shadow 180ms ease;
}

.site-footer__cta:hover,
.site-footer__cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(73, 136, 212, 0.32);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(127, 177, 228, 0.2);
}

.site-footer__copyright {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.site-footer__nav {
    min-width: 0;
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__menu li {
    margin: 0;
}

.site-footer__menu a {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
    color: var(--blue-strong);
}

@media (max-width: 980px) {
    .site-footer__top {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .site-footer__actions {
        justify-content: flex-start;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 20px 0 28px;
    }

    .site-footer__shell {
        width: min(100% - 20px, 100%);
    }

    .site-footer__inner {
        padding: 20px;
        border-radius: 22px;
    }

    .site-footer__cta {
        width: 100%;
        min-height: 46px;
    }
}