:root {
    --bg-dark: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent-primary: #0284c7;
    --accent-secondary: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.8);
    --transition: 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 95%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Header & Nav */
header {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1000;
    position: sticky;
    top: 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

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

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-primary);
}

/* Base Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.section {
    position: relative;
    padding: 40px 0;
}

/* Typography */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-primary);
}

h2 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(2, 132, 199, 0.05);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding-top: 0;
}

.hero-top-encart {
    margin: 0 0 50px 0;
    padding: 30px 40px;
    border-radius: 20px;
    width: 100%;
    text-align: left;
}

.hero-top-encart h1 {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-encart-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* About Section Customization */
#about {
    padding-top: 0;
}
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 0px;
}
.about-image {
    flex: 0 0 185px;
}
.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text {
    flex: 1;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .about-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-top-encart h1 {
        font-size: 1.6rem;
    }
    .hero-top-encart {
        padding: 20px;
    }
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.text-content {
    flex: 1;
    z-index: 2;
}

.image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    z-index: 2;
    position: relative;
}

.image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    object-fit: cover;
}

.image-wrapper img:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Split Content Section */
.split-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.split-image {
    flex: 0 0 auto;
}

.split-text {
    flex: 1;
}

.risk-list {
    list-style: none;
    margin-bottom: 25px;
}

.risk-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.risk-list li::before {
    content: "🛡️";
    position: absolute;
    left: 0;
    top: 2px;
}

.risk-list strong {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .split-content {
        flex-direction: column;
    }
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    color: var(--accent-primary);
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    z-index: 2;
    position: relative;
}

.service-card {
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-wrapper {
    font-size: 2.2rem;
    margin-bottom: 0;
    line-height: 1;
}

.service-card h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SEO Cards Customizations */
#pages-seo .service-card {
    padding: 24px 30px;
    height: 100%;
}

#pages-seo .service-card a {
    display: flex !important;
    align-items: center;
    height: 100%;
}

#pages-seo .service-header {
    margin-bottom: 0;
    align-items: center;
    width: 100%;
}

#pages-seo .service-card h3 {
    font-weight: 400;
}

/* Contact */
.contact {
    text-align: center;
    padding: 30px 40px 60px 40px;
    border-radius: 24px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: flex;
    align-items: stretch;
    gap: 60px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.contact-logo {
    width: 180px;
}

.contact-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-text {
    /* flex removed as handled by parent flex-direction: column */
}

.contact-map {
    flex: 1.5;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

.contact-map iframe {
    width: 100%;
    height: calc(100% + 240px);
    margin-top: -120px;
    border: none;
}

.contact-info {
    margin: 10px 0;
}

.email {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 50px;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Decorative Blobs */
.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, rgba(2, 132, 199, 0) 70%);
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: -150px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
}

.shape-3 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 10%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(2, 132, 199, 0) 70%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .description {
        margin: 0 auto 30px;
    }

    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    .image-wrapper,
    .contact-logo {
        display: none !important;
    }

    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

    .contact-map {
        width: 100%;
        flex: auto;
    }
}
