/* Example minimal styles */

:root {
    --primary-color: #ccbdf3; /* Replace with your brand color */
    --secondary-color: #eae4f1; /* Light background */
    --accent-color: #2e2048; /* Dark text */
    --font-primary: "Roboto", sans-serif; /* Replace with your chosen font */
    --font-secondary: "Roboto", sans-serif; /* For headings */
    --spacing: 20px; /* Base spacing unit */
    --section-titles: #31225a;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--secondary-color);
    color: var(--accent-color);
    line-height: 1.6;
}

h2 {
    font-family: var(--font-secondary);
    color: var(--section-titles);
    margin: var(--spacing) 0;
}

h1,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin: var(--spacing) 0;
}

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

a:hover {
    color: darken(var(--primary-color), 10%);
}

.section-title {
    font-family: var(--font-secondary);
    color: var(--section-titles);
    margin: var(--spacing) 0;
}

section h2 {
    color: var(--section-titles); /* Set your desired color */
    text-align: center;
}

header {
    background-color: var(--primary-color);
    padding: var(--spacing);
    text-align: center;
}

header h1 {
    margin: 0;
    color: white;
}

nav {
    margin-top: var(--spacing);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing);
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    height: 50vh;
    background-image: url("/images/hero.jpg"); /* Path to your image */
    background-size: cover; /* Ensures the image covers the whole section */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents tiling */
    color: white; /* Makes text readable over the image */
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(
        0,
        0,
        0,
        0.5
    ); /* Adds a dark overlay for better text contrast */
    z-index: 1;
}

.hero h1,
.hero p,
.hero a {
    position: relative;
    z-index: 2; /* Ensures text and button appear above the overlay */
}

/* Change the font color for all h2 inside sections */

.card {
    border: 1px solid #ddd;
    padding: var(--spacing);
    border-radius: 8px;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing);
    flex-wrap: wrap;
    margin: var(--spacing);
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-button img {
    width: 20px;
    height: 20px;
}

.social-button:hover {
    background-color: darken(var(--secondary-color), 10%);
}

footer {
    background-color: var(--accent-color);
    color: white;
    padding: var(--spacing);
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
}

/* General styles for service cards */
.service-card {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    margin-bottom: var(--spacing-lg);
}

.service-card .service-image {
    flex: 1;
    max-width: 50%;
}

.service-card .service-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
}

.service-card .service-text {
    flex: 1;
    max-width: 50%;
}

.service-text {
    margin: 40px;
}

.service-card.reverse {
    flex-direction: row-reverse;
}

/* Adjust margins for smaller screens */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .service-card {
        flex-direction: column;
    }

    .service-card.reverse {
        flex-direction: column;
    }

    .service-card .service-image img {
        height: 150px; /* Reduce height for smaller screens */
    }
    .service-image {
        max-width: 100%;
    }
    .service-text {
        max-width: 100%;
        margin: 10px;
    }
    .hero {
        padding: 50px 20px;
        height: 60vh; /* Reduce height for mobile devices */
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
}
