* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

:root {
    --bg: #f8f9fa;
    --text: #333;
    --muted: #667085;
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --card-bg: #ffffff;
    --soft: #eef1f3;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 18px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

header .container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px;
}

header h1 {
    margin-bottom: 6px;
    font-size: 1.6rem;
    letter-spacing: 0.3px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
    background-color: rgba(255,255,255,0.12);
}

.section {
    padding: 60px 0;
}

.section .container {
    text-align: center;
}

.section:nth-child(even) {
    background-color: var(--soft);
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--muted);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.service-card a{
    text-decoration: none;
    color: white;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background-color: var(--primary-dark);
}

form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

label { font-weight: 600; color: var(--text); }

input, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,62,80,0.15);
}

footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
}

@media (min-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    header h1 { margin: 0; }
}

/* Services slider */
.services-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 8px 0 12px;
}
.services-controls .services-prev,
.services-controls .services-next {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.services-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}
.services-slider::-webkit-scrollbar { height: 8px; }
.services-slider::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
}

.services-track {
    display: flex;
    gap: 20px;
}

.service-card {
    scroll-snap-align: start;
    flex: 0 0 85%;
}




@media (min-width: 768px) {
    .service-card { flex: 0 0 48%; }
}
@media (min-width: 1024px) {
    .service-card { flex: 0 0 32%; }
}

/* Card image slider */
.card-slider {
    position: relative;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.card-slides {
    display: flex;
    transition: transform 0.35s ease;
}

.card-slides img {
    width: 100%;
    height: 210px;
    flex: 0 0 100%;
    object-fit: cover;
    background-repeat: no-repeat;
}

.card-prev, .card-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.card-prev { left: 8px; }
.card-next { right: 8px; }

.card-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 0;
}
.card-dots button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: #d0d5dd;
    cursor: pointer;
}
.card-dots button.active { background: var(--primary); }
