/* Vectron IT Solutions - Main Stylesheet */
/* Brand Colors: Primary #2C563B, Secondary #919191 */

:root {
    --primary-green: #2C563B;
    --primary-green-dark: #1e3d29;
    --secondary-gray: #919191;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark: #333333;
    --focus-outline: #2C563B;
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Focus Styles - Accessibility */
:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-green);
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

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

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-green);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: var(--transition-normal);
    display: block;
    border-radius: 2px;
}

/* Mobile menu animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 150px 0 100px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

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

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

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

section.alt-bg {
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--secondary-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card .icon svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

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

/* Microsoft Partner Badge */
.partner-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.partner-badge img {
    height: 60px;
}

.partner-badge p {
    color: var(--secondary-gray);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--secondary-gray);
    margin-bottom: 15px;
}

.about-image {
    background-color: var(--primary-green);
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.about-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Features List */
.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--secondary-gray);
    margin-bottom: 30px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details .icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details .icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
    stroke: var(--white);
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--primary-green-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 150px 0 80px;
    margin-top: 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Detail */
.service-detail {
    padding: 60px 0;
}

.service-detail h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.service-detail p {
    color: var(--secondary-gray);
    margin-bottom: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    opacity: 0.9;
    margin: 0 auto 30px;
    max-width: 600px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .about-image {
        order: -1;
        height: 300px;
    }
}

/* Cookie Banner - AVG/GDPR Compliant */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    color: var(--dark);
    padding: 25px 20px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--primary-green);
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner h4 {
    color: var(--primary-green);
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--secondary-gray);
}

.cookie-banner p a {
    color: var(--primary-green);
    text-decoration: underline;
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.cookie-banner .cookie-note {
    font-size: 0.8rem;
    color: var(--secondary-gray);
    margin-top: 10px;
    font-style: italic;
}

/* Form Notifications */
.form-notification {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.form-notification.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-notification p {
    margin: 0;
    flex: 1;
}

.form-notification button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0 0 15px;
    color: inherit;
}

.form-notification button:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-content p,
.legal-content li {
    color: var(--secondary-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

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

    .section-title h2 {
        font-size: 1.75rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        border-bottom: 1px solid var(--light-gray);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    /* Cookie Banner Mobile */
    .cookie-banner {
        padding: 20px 15px;
    }

    .cookie-banner .container {
        gap: 12px;
    }

    .cookie-banner h4 {
        font-size: 1rem;
    }

    .cookie-banner p {
        font-size: 0.85rem;
    }

    .cookie-banner .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-banner .btn {
        width: 100%;
        padding: 14px 20px;
        text-align: center;
    }

    /* Contact Form Mobile */
    .contact-form {
        padding: 25px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Hero Mobile */
    .hero {
        padding: 120px 0 80px;
    }

    .page-header {
        padding: 120px 0 60px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 30px 20px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .skip-link,
    .cookie-banner,
    .mobile-menu-btn,
    nav,
    .cta-section,
    .btn {
        display: none !important;
    }

    header {
        position: static;
        box-shadow: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .hero,
    .page-header {
        background: var(--light-gray) !important;
        color: #000 !important;
        margin-top: 0;
        padding: 40px 0;
    }

    .hero h1,
    .hero p,
    .page-header h1,
    .page-header p {
        color: #000 !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    footer {
        background: var(--light-gray) !important;
        color: #000 !important;
    }

    footer h4,
    footer p,
    footer li {
        color: #000 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #1a4028;
        --secondary-gray: #555555;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .service-card,
    .contact-form {
        border: 2px solid var(--dark);
    }
}

/* Selection Styles */
::selection {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Smooth Scrollbar (Webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}
