* {
    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;        
}

body {
    padding-bottom: 50px !important;
}

main, .container, .content {
    margin-bottom: 40px !important;
}

/* 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: 20px 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;
}

/* Vékony zöld csík a fekete fejléc alatt */
nav, header a, .nav-links {
    border-bottom: none !important;
}

/* Header elrendezés */
header {
    background-color: #000000 !important;
    border-bottom: 6px solid #4da838 !important; 
    padding: 12px 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Téglalap alakú logó */
.logo-wrapper {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.header-logo {
    height: 50px !important; 
    width: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important; 
    background: #ffffff !important; 
    padding: 4px 8px !important;
    border-radius: 6px !important; 
}

/* Navigáció igazítása */
.nav-links {
    display: flex !important;
    gap: 20px !important;
    border-bottom: none !important;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: none !important;
}

/* 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-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: color 0.2s ease-in-out !important;
}

.nav-link:hover,
.nav-link:active,
.nav-link:focus {
    color: #4da838 !important; 
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important; 
    box-sizing: border-box !important;
}

.about-section {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 30px 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.about-section, section {
    padding-top: 5px !important; 
}

.about-section h1, h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

h1, h2 {
    margin-bottom: 10px !important;
}

h3 {
    margin-bottom: 0px !important;
}

p{
    margin-bottom: 10px !important;
}

ul, ol {
    list-style-position: outside !important; 
    padding-left: 20px !important;            
}

ul ul, ol ol {
    padding-left: 20px !important;            
}

li {
    margin-bottom: 8px;                       
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #000;
    position: relative;
}
/* Kártyák megjelenése */
.services-grid > a.service-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    border: 1px solid #d1d5db !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.services-grid > div,
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.services-grid > div:hover,
.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(36, 115, 87, 0.15) !important; 
}

/* Fejléc kép + overlay + felirat */
.card-header-bg {
    position: relative !important;
    height: 140px !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-header-bg::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    z-index: 1 !important;
}

.card-header-bg h3 {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 10px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6) !important;
}

.card-body-description {
    flex-grow: 1 !important;
    padding: 20px !important;
    background: #ffffff !important;
    color: #334155 !important;
}

.card-body-description p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .services-grid, .grid-container, .cards-wrapper {
        flex-direction: column !important;
    }
    .services-grid > div, .services-grid > section {
        width: 100% !important;
    }
}

.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) {

    .services-grid {
        grid-template-columns: 1fr; /* Mobilon 1 oszlop legyen, így egymás alá kerülnek */
        gap: 20px;
        padding: 10px;
    }
    .brand-container {
        justify-content: center;
    }
    
    .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;
    }

}
/* Asztali nézet: 3 oszlop */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 30px auto !important;
}

/* Telefonos / Mobil nézet (768px szélesség alatt): 1 oszlop */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important; /* 1 oszlopba rendezi a kártyákat */
        gap: 20px !important;
        padding: 0 15px !important;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

/* Világosszürke kis ablak */
.modal-box {
    background-color: #e0e0e0;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 85%;
}

/* Times New Roman félkövér szöveg */
.modal-text {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    font-size: 20px;
    color: #111;
    margin-bottom: 20px;
}

/* OK gomb */
.modal-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.modal-btn:hover {
    background-color: #333;
}
