* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff; /* Sima fehér háttér */
    color: #333;
    line-height: 1.6;
    padding-top: 100px;
}

a {
    text-decoration: none;
    color: inherit;
}

.brand-link {
    text-decoration: none; 
    color: inherit;        
}

/* Logó és solving kft*/
.brand-container {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

.logo-img {
    width: 45px;            
    height: 45px;            
    border-radius: 50%;      
    object-fit: cover;       
    border: 2px solid #fff;  
}

/*A felső fekete sáv, a menüpontok(kezdőlap, rólunk stb) stílusa.*/
header {
   position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000; /* A fekete fejléc felül */
    color: #fff; /*Rajta a szín */
    padding: 30px 5%; 
    z-index: 1000; /* Emiatt marad ez a felső sáv mindig felül ha a gombokra nyomogatsz */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Solving Kft felirat a fejlécen bal felül*/
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

/* A fejlécen lévő menüpontok */
nav ul li a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

/*Ha a pontokra mész az egérrel akk ilyen színű lesz
Most nekem ez a szín tetszett, de itt tudsz csinálni másikat, ha ez nem jó: https://kiszamolo.com/szinkod/
és itt a HEX kódot másold ide*/
nav ul li a:hover {
    color: #0055ff;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #000;
    position: relative;
}

/* SZOLGÁLTATÁSOK GOMBJAI */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.service-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card-header-bg {
    height: 160px;
    background-color: #333; /*Háttér, ha nincs kép */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.card-header-bg h3 {
    position: relative;
    color: #fff;
    font-size: 1.4rem;
    text-align: center;
    padding: 0 15px;
    z-index: 1;
}

/* Rövid összefoglalók rész a gombok alján(a kép alatt)*/
.card-body-description {
    padding: 20px;
    border: 2px solid #000000;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
    color: #444;
    font-size: 0.95rem;
}

/* KAPCSOLAT */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 20px;
}

.contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    background-color: #000;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Ha a beküldéshez viszed az egeret világosabb szürke lesz a gomb*/
.submit-btn:hover {
    background-color: #333;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* TELEFONOS/TABLETES WEB */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 15px 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 0;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    @media (max-width: 768px) {
    
    .brand-container {
        justify-content: center;
    }

}
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* Mobilon 1 oszlop legyen, így egymás alá kerülnek */
        gap: 20px;
        padding: 10px;
    }
}
}