/* 
   Tepih Servis Vračar - Main Stylesheet
   Created: May 2025
*/

/* Base styles and CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --primary-blue: #1a5276;
    --secondary-blue: #2980b9;
    --light-blue: #d4e6f1;
    --accent-yellow: #f1c40f;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --background: #ffffff;
    --footer-bg: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--accent-yellow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--light-blue);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-blue);
}

/* About Section */
.about {
    background-color: var(--background);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Services */
.services {
    background-color: var(--light-blue);
}

.service-card {
    background-color: var(--background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Price List */
.price-list {
    list-style: none;
    margin: 2rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--light-blue);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-weight: 600;
}

.price-value {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* Before/After */
.before-after {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.before-after-item {
    flex: 1 1 45%;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.before-after-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.before-after-label {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
}

/* Contact */
.contact {
    background-color: var(--light-blue);
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-icon {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin: 2rem 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Video */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin: 2rem 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-section {
    flex: 1 1 300px;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
}

.footer-link a {
    color: var(--light-blue);
}

.footer-link a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .phone-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-blue);
        padding: 1rem 0;
        box-shadow: 0 5px 10px var(--shadow-color);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .before-after-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
