/* ========================================
   Scandiwavedesign - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #2C5F8D;
    --ocean-blue: #4A90A4;
    --light-blue: #89B5C9;
    --wood-brown: #8B6F47;
    --light-wood: #C4A57B;
    --forest-green: #3A7D44;
    --sage-green: #8BA888;
    --white: #FFFFFF;
    --cream: #F9F7F4;
    --dark-text: #2C3E50;
    --gray-text: #6C757D;
    --shadow: rgba(44, 95, 141, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--ocean-blue);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-description {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px var(--shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px var(--shadow);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--ocean-blue);
    font-size: 1.8rem;
}

.navbar-brand:hover {
    color: var(--ocean-blue);
}

.nav-link {
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 16px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--ocean-blue), var(--forest-green));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--ocean-blue);
}

.nav-link:hover::after {
    width: 70%;
}

/* Hero Section - COMPACT VERSION */
.hero-section {
    margin-top: 76px;
}

.hero-compact .hero-slide {
    height: 50vh;
    min-height: 400px;
}

.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide-1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ocean-blue) 100%);
}

.slide-2 {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
}

.slide-3 {
    background: linear-gradient(135deg, var(--wood-brown) 0%, var(--light-wood) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(44, 95, 141, 0.5);
    border-radius: 50%;
    padding: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--ocean-blue), var(--primary-blue));
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 141, 0.4);
}

.btn-outline-primary {
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--ocean-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 95, 141, 0.3);
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 15px;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-badge i {
    font-size: 1.5rem;
}

.feature-box {
    padding: 20px;
    background-color: var(--cream);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
}

.feature-icon {
    color: var(--ocean-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-box h5 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-box p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Products Section */
.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 95, 141, 0.2);
}

.product-card.featured {
    border: 3px solid var(--ocean-blue);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--wood-brown);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.special {
    background: linear-gradient(135deg, var(--ocean-blue), var(--primary-blue));
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--forest-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--ocean-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin: 10px 0 15px 0;
}

.product-description {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.product-features li {
    color: var(--dark-text);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-features i {
    color: var(--forest-green);
    margin-right: 8px;
    font-size: 0.85rem;
}

/* Process Section */
.process-step {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--cream);
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--primary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--shadow);
}

.process-icon {
    margin: 30px 0 20px 0;
}

.process-icon i {
    font-size: 3rem;
    color: var(--forest-green);
}

.process-step h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 95, 141, 0.9), rgba(58, 125, 68, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2.5rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-info-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--primary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
}

.contact-info-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info-card p {
    color: var(--gray-text);
    margin-bottom: 5px;
}

.contact-info-card a {
    color: var(--ocean-blue);
    font-weight: 500;
}

.contact-info-card a:hover {
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e4a6a 100%);
    color: var(--white);
    padding: 60px 0 30px 0;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--forest-green);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 40px 0 30px 0;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--primary-blue));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 5px 15px var(--shadow);
    }
    
    .hero-compact .hero-slide {
        height: 60vh;
    }
}

@media (max-width: 767px) {
    .hero-compact .hero-slide {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .footer {
        padding: 40px 0 20px 0;
    }

    .about-badge {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .btn-lg {
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    .product-image {
        height: 220px;
    }

    .gallery-item img {
        height: 200px;
    }
}