/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90A4;
    --secondary-color: #78B9CC;
    --accent-color: #F4A261;
    --accent-hover: #E76F51;
    --text-dark: #2C3E50;
    --text-light: #5D6D7E;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-light: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    margin-top: 70px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    animation: fadeInUp 1.4s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.contact-card a {
    color: var(--text-light);
    text-decoration: none;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

/* ===== Form extras ===== */
.form-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-check input {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form-check label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-check a {
    color: var(--primary-color);
}

.form-message {
    margin-top: 0.5rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-message.success {
    background-color: #E6F4EA;
    color: #1E7E34;
    border: 1px solid #B7E1C1;
}

.form-message.error {
    background-color: #FDECEA;
    color: #B02A37;
    border: 1px solid #F5C2C7;
}

/* ===== Blog preview (home) ===== */
.blog-preview {
    background-color: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-card > a {
    display: block;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.post-card h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.post-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-preview-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Blog index page ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 130px 0 70px;
    margin-top: 70px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
}

.blog-list {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.blog-list .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== Article (single post) ===== */
.article {
    padding: 40px 0 80px;
    background-color: var(--white);
}

.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header .post-card-tag {
    background-color: var(--accent-color);
}

.article-header h1 {
    font-size: 2.3rem;
    color: var(--text-dark);
    line-height: 1.25;
    margin: 0.8rem 0;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.08rem;
    color: #34404D;
    line-height: 1.85;
}

.article-body h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 2.2rem 0 1rem;
}

.article-body h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin: 1.6rem 0 0.8rem;
}

.article-body p {
    margin-bottom: 1.3rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.3rem 1.4rem;
}

.article-body li {
    margin-bottom: 0.6rem;
}

.article-body strong {
    color: var(--text-dark);
}

.article-body a {
    color: var(--primary-color);
}

.article-body blockquote {
    border-left: 4px solid var(--secondary-color);
    background: var(--bg-light);
    padding: 1rem 1.4rem;
    margin: 1.6rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.disclaimer-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.4rem;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.disclaimer-box strong {
    color: var(--text-dark);
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 2.2rem;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.article-cta p {
    margin-bottom: 1.4rem;
    opacity: 0.95;
}

/* ===== Related posts ===== */
.related-posts {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.related-posts h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .article-body {
        font-size: 1rem;
    }
}
