/* ============================================
   CUSTOM STYLES FOR LOFT-ВЕЩЬ
   Bootstrap 5 Override + Custom Design
   ============================================ */

:root {
    /* Primary Colors */
    --primary-dark: #404040;
    --primary-gray: #747474;
    --primary-orange: #f6b26b;
    --primary-turquoise: #66c4bf;

    /* Secondary Colors */
    --bg-beige: rgba(120, 63, 4, 0.35);
    --bg-light-beige: #f5f1ed;
    --bg-white: rgba(255, 255, 255, 1);
    --text-dark: #0a0c12;
    --text-light: #ffffff;
    --border-gray: #a9a9a9;
    --accent-orange: #5b0f00;

    /* Typography */
    --font-lato: 'Lato', sans-serif;
    --font-comfortaa: 'Comfortaa', sans-serif;
}

/* ============ GENERAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-lato);
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-comfortaa);
    font-weight: 700;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 700;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

/* ============ BUTTONS ============ */
.btn {
    font-family: var(--font-comfortaa);
    font-weight: 700;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: var(--primary-orange);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-turquoise);
    border-color: var(--primary-turquoise);
}

.btn-primary:hover {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* ============ FORMS ============ */
.form-control {
    border: 1px solid var(--border-gray);
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-family: var(--font-comfortaa);
    font-size: 0.95rem;
    color: #3f322a;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-turquoise);
    background-color: #fffef0;
    box-shadow: 0 0 0 0.2rem rgba(102, 196, 191, 0.25);
    color: #3f322a;
}

.form-control::placeholder {
    color: #5b0f00;
    opacity: 0.7;
}

textarea.form-control {
    resize: none;
    font-family: var(--font-comfortaa);
}

/* ============ HEADER SECTION ============ */
.header-section {
    position: relative;
    width: 100%;
}

.header-background {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============ NAVIGATION ============ */
.navbar {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

/*.navbar.sticky-top {*/
/*    position: sticky !important;*/
/*    top: 0;*/
/*    z-index: 1030;*/
/*}*/

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.nav-link {
    font-family: var(--font-comfortaa);
    font-weight: 600;
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-orange);
    color: var(--text-dark) !important;
    border-radius: 2px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-turquoise);
}

/* Social Icons in Header */
.social-icons {
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-orange);
    color: var(--text-dark);
}

/* ============ HERO SECTION ============ */
.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.logo-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--text-light);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-light);
    font-family: var(--font-lato);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .header-background {
        height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .logo-circle {
        width: 120px;
        height: 120px;
    }
}

/* ============ BACKGROUND COLORS ============ */
.bg-beige {
    background-color: var(--bg-beige) !important;
}

.bg-light-beige {
    background-color: var(--bg-light-beige) !important;
}

/* ============ SECTIONS ============ */
.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============ CATEGORY CARDS ============ */
.category-card {
    padding: 2rem;
    background-color: transparent;
}

.category-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.category-description {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============ CAROUSELS ============ */
.carousel {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 400px;
    background-color: #f0f0f0;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(102, 196, 191, 0.7);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-orange);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* ============ SERVICE CARDS ============ */
.service-card {
    background: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-turquoise);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h4 {
    padding: 1rem 1.5rem 0;
    font-size: 1.1rem;
    color: var(--accent-orange);
}

.service-card p {
    padding: 0.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    flex-grow: 1;
}

/* ============ FORMS SECTION ============ */
.form-card {
    background: #ffffff;
    border: 2px solid var(--primary-dark);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-title {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 2px 2px 0 0;
    font-weight: 700;
}

.contact-form {
    margin-top: 1.5rem;
}

.contact-form .form-control {
    margin-bottom: 1rem;
}

/* ============ ABOUT SECTION ============ */
.about-item {
    padding: 1rem;
    border-left: 4px solid var(--primary-orange);
    background-color: rgba(246, 178, 107, 0.05);
}

.about-item h5 {
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.about-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============ CONTACT INFO ============ */
.contact-info {
    background-color: #ffffff;
    border: 1px solid var(--border-gray);
    padding: 2rem;
    border-radius: 4px;
}

.contact-info h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info p {
    margin: 0;
    font-size: 1.05rem;
}

.contact-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: scale(1.15);
    background-color: var(--primary-orange);
    color: var(--text-dark) !important;
}

/* ============ FOOTER ============ */
.footer-section {
    background-color: var(--primary-dark) !important;
    border-top: 3px solid var(--primary-orange);
    margin-top: 3rem;
}

.footer-section p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-icons {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-title {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 0.5rem 1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-accent-orange {
    color: var(--accent-orange);
}

.text-primary-orange {
    color: var(--primary-orange);
}

.text-turquoise {
    color: var(--primary-turquoise);
}

/* ============ ANIMATIONS ============ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInUp 0.6s ease-out;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
