/* 
   Resul Kartal - White Goods & HVAC Service
   Premium Design System 
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* Color Palette - Premium & Trustworthy */
    --primary-color: #0c1e35;
    /* Deep Navy */
    --secondary-color: #c9a227;
    /* Muted Gold */
    --accent-color: #0066cc;
    /* Bright Blue for actions */
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #666;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --bg-dark: #07111e;

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 5rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    /* Revert to standard comfortable spacing */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.language-selector {
    margin-left: 1rem;
}

#language-select {
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
    background-color: var(--primary-color);
    color: var(--text-light);
    font-family: inherit;
    cursor: pointer;
}

#language-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* RTL Support */
body.rtl-mode {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
}

body.rtl-mode .nav-links {
    flex-direction: row-reverse;
}

body.rtl-mode .service-card {
    text-align: right;
}

body.rtl-mode .section-title[style*="text-align: left"] {
    text-align: right !important;
}

body.rtl-mode .about-text .section-title::after {
    left: auto;
    right: 0;
}

body.rtl-mode .footer-info,
body.rtl-mode .footer-contact,
body.rtl-mode .footer-column {
    text-align: right;
}

body.rtl-mode .footer-contact i,
body.rtl-mode .cta-phone i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Mobile Adjustments for Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Force single column for full width */
        gap: 2rem;
    }

    .services .container {
        max-width: 95%;
    }

    .service-card {
        text-align: center;
        height: auto;
        /* Allow card to grow with content */
    }

    .service-img-wrapper {
        min-height: auto;
        /* Let image scale naturally */
        height: auto;
    }

    .service-content {
        padding: 1rem;
        /* Slightly reduced padding for mobile */
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Updated to a modern kitchen/appliances image as requested */
    background: linear-gradient(rgba(12, 30, 53, 0.85), rgba(12, 30, 53, 0.7)),
        url('https://images.unsplash.com/photo-1556911220-e15b29be8c8f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    padding-top: 80px;
    /* Offset for fixed header */
    justify-content: center;
    /* Centers content horizontally/vertically depending on flex-direction */
    flex-direction: column;
    /* Stack content vertically */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Styled Hero Call Button */
.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    /* Reduced from 1.2rem 3rem */
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    font-size: 1.1rem;
    /* Reduced from 1.5rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Strong shadow */
    transition: var(--transition-fast);
    margin-top: 2rem;
    border: 2px solid var(--secondary-color);
}

.whatsapp-hero-btn {
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
    margin-left: 1rem;
    /* Space between buttons */
}

.whatsapp-hero-btn:hover {
    color: #25d366;
    background-color: transparent;
}

.hero-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-off-white);
}

.services .container {
    max-width: 90%;
    /* Much wider to fill space */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 columns for desktop */
    gap: 3rem;
    /* More space between cards */
}

.service-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
    text-align: left;
    /* Changed from center */
    border-bottom: none;
    /* Removing the old bottom border style */
    overflow: hidden;
    /* For image rounded corners */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-img-wrapper {
    width: 100%;
    height: auto;
    /* Let image define height to avoid white gaps */
    min-height: 200px;
    /* Minimum height for consistency */
    overflow: hidden;
    position: relative;
    background-color: transparent;
    border-radius: 12px 12px 0 0;
    /* Matches card border radius */
}

.service-img-wrapper img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    display: block;
    /* Removes bottom margin/gap */
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.35rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Brands Section */
.brands {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-light);
    text-align: center;
    padding-top: 8rem;
    /* Increased significantly from 5rem to shift title down */
    padding-bottom: 5rem;
}

/* Specific spacing for Brands title */
.brands .section-title {
    margin-bottom: 2rem;
    /* Reduced from 4rem for closer proximity */
}

.brands-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
    /* Extra vertical padding for the moving track */
}

.brands-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 20s linear infinite;
    opacity: 0.7;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    /* Changed to primary navy blue for better theme integration */
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.brand-item:hover {
    color: var(--secondary-color);
    /* Gold on hover */
    transform: scale(1.05);
    /* Slight pop */
}

/* About/Trust Section */
.about {
    padding: var(--section-spacing) 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

/* Reduced spacing for About section */
.about-text .section-title {
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: -20px 20px 0 var(--secondary-color);
}

/* Contact/Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #fff;
    /* Changed from var(--secondary-color) to white as requested */
    margin-bottom: 1rem;
    /* Reduced from 1.5rem for tighter spacing */
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu later */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        width: 100%;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    color: #FFF;
}






/* Mobile Adjustments for Services - Placed at end to override desktop */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        /* Force single column */
        gap: 2rem;
    }

    .services .container {
        max-width: 100%;
        /* Full width on mobile */
        padding: 0 1.5rem;
        /* Comfy side padding */
    }

    .service-card {
        text-align: center;
        height: auto !important;
        /* Allow card to grow naturally */
        min-height: auto;
    }

    .service-img-wrapper {
        height: auto;
        min-height: 200px;
        /* Ensure adequate image size */
    }

    .service-content {
        padding: 1.5rem;
    }
}