/* ==========================================================================
   Vistrics Solutions — Pure PHP Site Stylesheet
   ========================================================================== */

/* --- Reset & base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue:        #1a5bb5;
    --blue-dark:   #143f80;
    --blue-light:  #2d7ff9;
    --blue-pale:   #e8f1fc;
    --dark:        #1a1a2e;
    --gray:        #6b7280;
    --gray-light:  #f3f4f6;
    --white:       #ffffff;
    --accent:      #ff6b35;
    --radius:      8px;
    --shadow:      0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
    --transition:  all 0.3s ease;
}

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

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-light); }

img { max-width: 100%; height: auto; display: block; }

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

/* --- Header --- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    flex-wrap: wrap;
}
.logo img { height: 50px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--blue);
    border-radius: 2px;
    transition: var(--transition);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}
.main-nav a.active,
.main-nav a:hover { color: var(--blue); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
}
.main-nav .nav-cta a {
    background: var(--blue);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius);
}
.main-nav .nav-cta a:hover { background: var(--blue-dark); color: var(--white); }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.hero-eyebrow {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--white);
    color: var(--blue);
}
.btn-primary:hover { background: var(--blue-pale); color: var(--blue-dark); }
.btn-blue {
    background: var(--blue);
    color: var(--white);
}
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover { background: #e55a28; color: var(--white); }

/* --- Section general --- */
.section { padding: 70px 0; }
.section-light { background: var(--gray-light); }
.section-blue { background: var(--blue-pale); }
.section-center { text-align: center; }

.section-eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark);
}
.section-center .section-title { margin-bottom: 50px; }

/* --- Services grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.service-card img {
    width: 64px;
    margin: 0 auto 18px;
}
.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}
.service-card p {
    color: var(--gray);
    font-size: 15px;
}

/* --- About section --- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-section img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.about-text h2 { font-size: 32px; margin-bottom: 20px; }
.about-text p { color: var(--gray); margin-bottom: 16px; }

/* --- Features (Why Choose Us) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}
.feature-card p { color: var(--gray); font-size: 15px; }
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--blue-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: var(--blue);
}

/* --- Projects showcase --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-card-body { padding: 20px; }
.project-card .category {
    font-size: 13px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.project-card h3 { font-size: 18px; margin-top: 6px; }

/* --- CTA section --- */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.cta-section h2 { font-size: 32px; margin-bottom: 25px; }

/* --- Blog listing --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: inherit;
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body { padding: 22px; }
.blog-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
}
.blog-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: var(--gray); font-size: 14px; }
.blog-card .read-more {
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    display: inline-block;
}

/* --- Blog post detail --- */
.post-detail { max-width: 800px; margin: 0 auto; }
.post-detail .post-meta {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}
.post-detail .post-hero-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 30px;
}
.post-detail h1 { font-size: 36px; margin-bottom: 16px; }
.post-detail .post-body p { margin-bottom: 18px; color: #374151; font-size: 16px; }
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}
.related-posts { margin-top: 50px; }
.related-posts h3 { font-size: 22px; margin-bottom: 24px; }

/* --- Project detail --- */
.project-detail { max-width: 900px; margin: 0 auto; }
.project-detail h1 { font-size: 36px; margin-bottom: 20px; }
.project-detail .project-hero-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 30px;
}
.project-detail .project-body p { margin-bottom: 18px; color: #374151; font-size: 16px; }
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}
.project-gallery img {
    width: 100%;
    border-radius: var(--radius);
    height: 160px;
    object-fit: cover;
}

/* --- Team grid --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.team-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue-pale);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--blue);
}
.team-card h4 { font-size: 17px; margin-bottom: 8px; }
.team-card p { color: var(--gray); font-size: 14px; }

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}
.testimonial-card .quote-mark {
    font-size: 48px;
    color: var(--blue-pale);
    line-height: 1;
    margin-bottom: 10px;
}
.testimonial-card p { color: var(--gray); font-size: 15px; margin-bottom: 20px; font-style: italic; }
.testimonial-card h4 { font-size: 16px; color: var(--dark); }

/* --- Contact form --- */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}
.contact-info h2 { font-size: 28px; margin-bottom: 24px; }
.contact-info ul { list-style: none; }
.contact-info li {
    margin-bottom: 16px;
    color: var(--gray);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info li a { color: var(--gray); }
.contact-info li a:hover { color: var(--blue); }
.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26,91,181,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-message {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 15px;
}
.form-message.success { background: #d1fae5; color: #065f46; }
.form-message.error { background: #fee2e2; color: #991b1b; }

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo img { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.5); }

/* --- Page header (non-home pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 { font-size: 40px; font-weight: 700; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .services-grid,
    .features-grid,
    .projects-grid,
    .blog-grid,
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .about-section,
    .contact-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 36px; }
}

@media (max-width: 600px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .main-nav li { width: 100%; }
    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    .header-inner { flex-wrap: wrap; }
    .services-grid,
    .features-grid,
    .projects-grid,
    .blog-grid,
    .testimonials-grid,
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .section-title { font-size: 26px; }
    .project-gallery { grid-template-columns: 1fr; }
}
