/*=== NEBESNI.COM
      style.css
      Version: 1.0 ===*/

/*=== 1. GOOGLE FONTS ===*/
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/*=== 2. CSS VARIABLES ===*/
:root {
    /* Основни цветове */
    --primary: #1F2D3D;
    --secondary: #B99652;
    /* Неутрални */
    --white: #FFFFFF;
    --light: #F8F7F4;
    --gray: #777777;
    --dark: #2F2F2F;
    /* Фон */
    --background: #FAFAF8;
    /* Размери */
    --container: 1280px;
    --radius: 18px;
    --header-height: 95px;
    /* Сенки */
    --shadow-sm: 0 8px 25px rgba(0, 0, 0, .08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .15);
    /* Преход */
    --transition: .35s ease;

    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
}

/*=== 3. RESET ===*/
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: var(--dark);
    background: var(--background);
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input,
textarea,
select {
    font: inherit;
}

section {
    padding: 110px 0;
}

/*=== 4. CONTAINER ===*/
.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

/*=== 5. TYPOGRAPHY ===*/
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

p {
    color: var(--gray);
}

/*=== 6. SECTION HEADER ===*/
.section-header {
    max-width: 760px;
    margin: 0 auto 70px;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--secondary);
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title {
    margin-bottom: 20px;
    color: var(--primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

/*=== 7. HEADER ===*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all .35s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*=== 8. LOGO ===*/
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo img {
    height: 72px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: .08em;
    transition: var(--transition);
}

.logo-subtitle {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    letter-spacing: .20em;
    text-transform: uppercase;
    transition: var(--transition);
}

.header.scrolled .logo-title {
    color: var(--primary);
}

.header.scrolled .logo-subtitle {
    color: var(--gray);
}

/*=== 9. NAVIGATION ===*/
.navigation ul {
    display: flex;
    align-items: center;
    gap: 42px;
}

.navigation a {
    position: relative;
    font-size: .95rem;
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition);
}

.header.scrolled .navigation a {
    color: var(--primary);
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.navigation a:hover::after,
.navigation a.active::after {
    width: 100%;
}

/*=== 10. HEADER RIGHT ===*/
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/*=== 11. PHONES ===*/
.phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.phones a {
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    transition: var(--transition);
}

.header.scrolled .phones a {
    color: var(--primary);
}

.phones a:hover {
    color: var(--secondary);
}

/*=== 12. BUTTON ===*/
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 170px;
    height: 50px;
    padding: 0 28px;
    background: var(--secondary);
    color: #ffffff;
    border-radius: 999px;
    font-size: .90rem;
    font-weight: 700;
    letter-spacing: .05em;
    transition: var(--transition);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(185, 150, 82, .35);
}

/*=== 13. HERO ===*/
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

/*=== HERO VIDEO ===*/
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*=== HERO OVERLAY ===*/
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(rgba(22, 30, 40, .62),
            rgba(22, 30, 40, .70));
}

/*=== HERO CONTENT ===*/
.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 720px;
    color: #fff;
}

.subtitle {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25em;
}

.hero h1 {
    margin-bottom: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .05em;
}

.hero h2 {
    margin-bottom: 32px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.hero p {
    max-width: 620px;
    margin-bottom: 42px;
    color: rgba(255, 255, 255, .92);
    font-size: 1.15rem;
    line-height: 2;
}

/*=== HERO BUTTONS ===*/
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 58px;
    padding: 0 34px;
    border-radius: 999px;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(185, 150, 82, .35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 58px;
    padding: 0 34px;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary);
}

#backToTop,
.back-to-top{
    position:fixed;
    left:30px;
    bottom:30px;
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:50%;
    background:var(--secondary);
    color:var(--white);
    cursor:pointer;
    box-shadow:var(--shadow-lg);
    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:all .35s ease;
    z-index:9999;
}

#backToTop.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#backToTop:hover{
    background:#a78545;
    transform:translateY(-4px);
}

/*=== 14. INFORMATION BAR ===*/
.info-bar {
    background: var(--white);
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.info-item {
    padding: 35px 30px;
    text-align: center;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-sm);
}

.info-item img {
    width: 58px;
    margin: 0 auto 24px;
}

.info-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.info-item p {
    font-size: .95rem;
}

/*=== 15. SERVICES ===*/
.services {
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .8s;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31, 45, 61, .18);
    opacity: 0;
    transition: .4s;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-content {
    padding: 35px;
}

.service-icon {
    width: 52px;
    margin-bottom: 20px;
}

.service-content h3 {
    margin-bottom: 18px;
}

.service-content p {
    margin-bottom: 28px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary);
}

.service-link::after {
    content: "→";
    transition: var(--transition);
}

.service-card:hover .service-link::after {
    transform: translateX(8px);
}

/*=== 16. PROCESS ===*/

.process {
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.process-item {
    position: relative;
    padding: 40px 30px;
    border-radius: var(--radius);
    background: var(--light);
    transition: var(--transition);
}

.process-item:hover {
    transform: translateY(-8px);
}

.step-number {
    width: 62px;
    height: 62px;
    margin-bottom: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

/*=== 17. QUOTE ===*/
.quote {
    position: relative;
    color: var(--white);
    text-align: center;
    background:
        linear-gradient(rgba(20, 28, 36, .82),
            rgba(20, 28, 36, .82)),
        url("../img/quote-bg.webp") center/cover;
}

.quote-box {
    max-width: 850px;
    margin: auto;
}

.quote-text {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    color: var(--white);
    font-weight: 700;
}

.quote-subtitle {
    margin-bottom: 40px;
    color: rgba(255, 255, 255, .92);
    font-size: 1.15rem;
}

/*=========================================================
    18. GALLERY
=========================================================*/

.gallery {

    background: var(--background);

}

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(12, 1fr);

    grid-auto-rows: 220px;

    gap: 20px;

}

.gallery-item {

    position: relative;

    overflow: hidden;

    border-radius: var(--radius);

    cursor: pointer;

    box-shadow: var(--shadow-sm);

}

.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .8s;

}

.gallery-item:hover img {

    transform: scale(1.08);

}

.gallery-item::after {

    content: "";

    position: absolute;

    inset: 0;

    background: rgba(31, 45, 61, .22);

    opacity: 0;

    transition: var(--transition);

}

.gallery-item:hover::after {

    opacity: 1;

}

/* Masonry */

.gallery-item.large {

    grid-column: span 6;

    grid-row: span 2;

}

.gallery-item.medium {

    grid-column: span 3;

}

.gallery-item.small {

    grid-column: span 3;

}

/*=== 18. GALLERY ===*/
.gallery {
    background: var(--background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .8s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31, 45, 61, .22);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Masonry */
.gallery-item.large {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery-item.medium {
    grid-column: span 3;
}

.gallery-item.small {
    grid-column: span 3;
}

/*=== 19. ABOUT ===*/
.about {
    background: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    display: block;
}

.about-content h2 {
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.9;
}

/*=== 20. CONTACTS ===*/
.contacts {
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
}

.contact-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-item {
    margin-bottom: 28px;
}

.contact-item h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.contact-map {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
}

/*=== 21. FOOTER ===*/
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, .85);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 24px;
    color: var(--white);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--secondary);
}

.footer-motto {
    margin-top: 20px;
    color: rgba(255, 255, 255, .9);
    font-style: italic;
}

.footer-bottom {
    margin-top: 70px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
}

/*=== 22. BACK TO TOP ===*/
#backToTop {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-5px);
}

/*=== 23. SCROLLBAR ===*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a78545;
}

/*=== 24. TEXT SELECTION ===*/
::selection {
    background: var(--secondary);
    color: var(--white);
}

/*=== 25. ANIMATIONS ===*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.fade-up {
    animation: fadeUp .8s ease forwards;
}

/*=== 26. UTILITIES ===*/
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}