/* ============================================
   Connect I.T. - Corporate Website Styles
   Color Palette from Logo:
   - Primary: #7f1517 (deep maroon)
   - Secondary: #a6614d (terracotta)
   - Dark: #292828 (charcoal)
   - Light: #f9f9f9 (off-white)
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Brand Colors */
    --color-primary: #7f1517;
    --color-primary-dark: #5a0f11;
    --color-primary-light: #a62b2d;
    --color-secondary: #a6614d;
    --color-secondary-dark: #8a4d3b;
    --color-secondary-light: #c47d68;

    /* Neutrals */
    --color-dark: #292828;
    --color-dark-lighter: #3d3c3c;
    --color-gray: #6b6b6b;
    --color-gray-light: #9a9a9a;
    --color-light: #f9f9f9;
    --color-white: #ffffff;

    /* Semantic Colors */
    --color-text: #292828;
    --color-text-muted: #6b6b6b;
    --color-text-inverse: #ffffff;
    --color-background: #ffffff;
    --color-background-alt: #f9f9f9;
    --color-border: #e0e0e0;
    --color-focus: #7f1517;
    --color-error: #c41e3a;
    --color-success: #2e7d32;

    /* Typography */
    --font-family-primary: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    --a11y-bar-height: 44px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(41, 40, 40, 0.05);
    --shadow-md: 0 4px 6px rgba(41, 40, 40, 0.1);
    --shadow-lg: 0 10px 25px rgba(41, 40, 40, 0.15);
    --shadow-xl: 0 20px 50px rgba(41, 40, 40, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

/* High Contrast Mode */
.high-contrast {
    --color-primary: #990000;
    --color-primary-dark: #660000;
    --color-secondary: #b85a3c;
    --color-text: #000000;
    --color-text-muted: #333333;
    --color-background: #ffffff;
    --color-background-alt: #f0f0f0;
    --color-border: #000000;
}

/* Font Size Scaling */
.font-size-1 { font-size: 87.5%; }
.font-size-2 { font-size: 100%; }
.font-size-3 { font-size: 112.5%; }
.font-size-4 { font-size: 125%; }
.font-size-5 { font-size: 150%; }

/* ============================================
   Reset & Base Styles
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--a11y-bar-height) + var(--space-md));
}

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

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

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

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

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

/* ============================================
   Skip Link (Accessibility)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 10000;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
    color: var(--color-white);
}

/* ============================================
   Accessibility Controls Bar
   ============================================ */

.a11y-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--a11y-bar-height);
    background-color: var(--color-dark);
    color: var(--color-white);
    border-bottom: 1px solid var(--color-dark-lighter);
}

.a11y-controls-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-lg);
}

.a11y-group {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.a11y-label {
    font-size: var(--font-size-sm);
    margin-right: var(--space-xs);
    display: none;
}

@media (min-width: 768px) {
    .a11y-label {
        display: inline;
    }
}

.a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-width: 36px;
    height: 32px;
    padding: 0 var(--space-sm);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.a11y-btn:hover, .a11y-btn:focus {
    background-color: rgba(255, 255, 255, 0.2);
}

.a11y-btn:active {
    background-color: rgba(255, 255, 255, 0.3);
}

.a11y-btn-text {
    display: none;
}

@media (min-width: 768px) {
    .a11y-btn-text {
        display: inline;
    }
}

.lang-btn {
    min-width: auto;
    padding: 0 var(--space-sm);
    gap: var(--space-xs);
}

.lang-flag {
    font-size: 1.1em;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: var(--a11y-bar-height);
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

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

.logo-img {
    height: 60px;
    width: auto;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: var(--space-sm);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition-fast);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: calc(var(--header-height) + var(--a11y-bar-height));
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu a {
    display: block;
    padding: var(--space-md);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-menu a:hover, .nav-menu a:focus {
    background-color: var(--color-background-alt);
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        gap: var(--space-sm);
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
    }

    .nav-menu a {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-base);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding-top: calc(var(--header-height) + var(--a11y-bar-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-alt) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.hero-tagline {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.hero-title {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-text);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

.hero-description {
    margin-top: var(--space-lg);
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    max-width: 540px;
}

@media (min-width: 992px) {
    .hero-description {
        margin-left: 0;
        margin-right: auto;
    }
}

.hero-cta {
    margin-top: var(--space-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-graphic {
        width: 400px;
        height: 400px;
    }
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-graphic::before {
        animation: none;
    }
}

.hero-logo-mark {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(127, 21, 23, 0.2));
}

@media (min-width: 768px) {
    .hero-logo-mark {
        width: 240px;
    }
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: var(--font-size-4xl);
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

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

.about-content {
    display: grid;
    gap: var(--space-3xl);
}

@media (min-width: 992px) {
    .about-content {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 576px) and (max-width: 991px) {
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background-color: var(--color-background-alt);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

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

.services-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

@media (prefers-reduced-motion: reduce) {
    .service-card:hover {
        transform: none;
    }
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.service-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

/* Approach Section */
.approach {
    background-color: var(--color-background);
}

.approach-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
}

.timeline-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    border-radius: 50%;
}

.timeline-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.timeline-content p {
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

/* Values Section */
.values {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.values .section-header h2 {
    color: var(--color-white);
}

.values .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.values-grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-item {
    text-align: center;
    padding: var(--space-lg);
}

.value-item h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.value-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--line-height-relaxed);
}


/* ============================================
   Data Center Section
   ============================================ */

.datacenter {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.datacenter .section-header h2 {
    color: var(--color-white);
}

.datacenter .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.datacenter-content {
    display: grid;
    gap: var(--space-3xl);
}

@media (min-width: 992px) {
    .datacenter-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.datacenter-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

.datacenter-text p:last-child {
    margin-bottom: 0;
}

.datacenter-features {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .datacenter-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-md);
    color: var(--color-secondary-light);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-item h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-white);
}

.feature-item p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   Software Development Section
   ============================================ */

.software {
    background-color: var(--color-background);
}

.software-content {
    max-width: 1000px;
    margin: 0 auto;
}

.software-intro {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.software-intro p {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    max-width: 800px;
    margin: 0 auto;
}

.software-grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.software-card {
    padding: var(--space-xl);
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
}

.software-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.software-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   Products Section
   ============================================ */

.products {
    background-color: var(--color-background-alt);
}

.products-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Uniform 2x2 grid for 4 products */
.products-grid-uniform {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .products-grid-uniform {
        grid-template-columns: repeat(2, 1fr);
    }
}

.products-grid-uniform .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid-uniform .product-card p {
    flex-grow: 1;
}

.products-grid-uniform .product-card .btn {
    margin-top: auto;
}

.product-card {
    background-color: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

@media (prefers-reduced-motion: reduce) {
    .product-card:hover {
        transform: none;
    }
}

.product-featured {
    border: 2px solid var(--color-primary);
    position: relative;
}

@media (min-width: 576px) {
    .product-featured {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .product-featured {
        grid-column: span 1;
        grid-row: span 2;
    }
}

.product-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.product-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
}

.product-features {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.product-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================
   Hosting & Infrastructure Section
   ============================================ */

.hosting-services {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.hosting-services .section-header h2 {
    color: var(--color-white);
}

.hosting-services .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.hosting-services .product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.hosting-services .product-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hosting-services .product-card h3 {
    color: var(--color-white);
}

.hosting-services .product-card p {
    color: rgba(255, 255, 255, 0.8);
}

.hosting-services .product-icon {
    color: var(--color-secondary-light);
}

/* ============================================
   Customers Section
   ============================================ */

.customers {
    background-color: var(--color-background);
}

.customers-content {
    max-width: 1000px;
    margin: 0 auto;
}

.customers-intro {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.customers-intro p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
    max-width: 800px;
    margin: 0 auto;
}

.customers-industries {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .customers-industries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .customers-industries {
        grid-template-columns: repeat(3, 1fr);
    }
}

.industry-item {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-background-alt);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.industry-item:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .industry-item:hover {
        transform: none;
    }
}

.industry-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    color: var(--color-primary);
}

.industry-icon svg {
    width: 100%;
    height: 100%;
}

.industry-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.industry-item p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.customers-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.customers-cta p {
    font-size: var(--font-size-lg);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

/* ============================================
   Registrar Page
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-2xl);
    margin-top: var(--header-height, 0);
}

.page-header h1 {
    color: var(--color-white);
    margin: 0 0 var(--space-sm);
    font-size: var(--font-size-4xl);
}

.page-header .page-subtitle {
    color: var(--color-white);
    opacity: 0.92;
    font-size: var(--font-size-lg);
    margin: 0;
}

.registrar-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.registrar-info-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.registrar-info-card h2 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--space-md);
    font-size: var(--font-size-2xl);
}

.registrar-info-card p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.registrar-meta {
    margin: 0;
    padding: 0;
}

.registrar-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
}

.registrar-meta-row:first-child {
    border-top: none;
    padding-top: 0;
}

.registrar-meta dt {
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 180px;
    flex-shrink: 0;
}

.registrar-meta dd {
    margin: 0;
    color: var(--color-text);
}

.registrar-meta dd a {
    color: var(--color-primary);
}

/* Pricelist */
.registrar-pricelist-section {
    background-color: var(--color-light);
}

.pricelist-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-xl);
}

.pricelist-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
    font-size: var(--font-size-base);
}

.pricelist-table thead {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.pricelist-table th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricelist-table td {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
}

.pricelist-table tbody tr:hover {
    background-color: var(--color-light);
}

.pricelist-table td:last-child {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.pricelist-notes p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.pricelist-notes a {
    color: var(--color-primary);
}

/* Templates */
.templates-intro {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 75ch;
}

.templates-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

.template-item {
    margin: 0;
}

.template-link {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.template-link:hover,
.template-link:focus-visible {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 21, 23, 0.12);
}

.template-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(127, 21, 23, 0.08);
    border-radius: var(--radius-sm);
}

.template-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.template-text strong {
    color: var(--color-text);
    font-size: var(--font-size-base);
    line-height: 1.3;
}

.template-text small {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.4;
}

.templates-source {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: 0;
}

.templates-source a {
    color: var(--color-primary);
}

/* Footer registrar block */
.footer-registrar {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    opacity: 0.85;
}

.footer-registrar a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}

.footer-registrar a:hover,
.footer-registrar a:focus-visible {
    opacity: 1;
    border-bottom-style: solid;
}

/* Active nav link */
.nav-menu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: var(--font-size-3xl);
    }

    .registrar-meta dt {
        min-width: auto;
        flex-basis: 100%;
    }

    .pricelist-table th,
    .pricelist-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }

    .templates-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Legal Document (Privacy / Terms pages)
   ============================================ */

.legal-document {
    max-width: 80ch;
    margin: 0 auto;
    color: var(--color-text);
    line-height: 1.7;
}

.legal-document h2 {
    color: var(--color-primary);
    font-size: var(--font-size-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.legal-document h3 {
    color: var(--color-text);
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.legal-document p {
    margin: 0 0 var(--space-md);
}

.legal-document a {
    color: var(--color-primary);
    word-break: break-word;
}

.legal-meta {
    background-color: var(--color-light);
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-sm);
}

.legal-intro {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2xl);
}

.legal-meta-list {
    margin: var(--space-md) 0 var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-light);
    border-radius: var(--radius-md);
}

.legal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
}

.legal-meta-row:first-child {
    border-top: none;
    padding-top: 0;
}

.legal-meta-list dt {
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 140px;
    flex-shrink: 0;
}

.legal-meta-list dd {
    margin: 0;
    color: var(--color-text);
}

.legal-list {
    list-style: disc;
    padding-left: var(--space-xl);
    margin: 0 0 var(--space-md);
}

.legal-list li {
    margin-bottom: var(--space-sm);
}

.third-party-list {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-md) 0 var(--space-xl);
}

.third-party-item {
    background-color: var(--color-light);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}

.third-party-item h3 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
}

.third-party-item p {
    font-size: var(--font-size-base);
    margin: 0;
}

@media (max-width: 768px) {
    .legal-meta-list dt {
        min-width: auto;
        flex-basis: 100%;
    }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-dark);
    color: var(--color-white);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    padding: var(--space-lg) 0;
    animation: cookie-consent-slide-up 0.3s ease-out;
}

@keyframes cookie-consent-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg);
    justify-content: space-between;
}

.cookie-consent-text {
    flex: 1 1 320px;
    min-width: 0;
}

.cookie-consent-text h2 {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    margin: 0 0 var(--space-xs);
}

.cookie-consent-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
}

.cookie-consent-actions .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.cookie-consent-actions .btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-consent-actions .btn-secondary:hover,
.cookie-consent-actions .btn-secondary:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
}

.cookie-consent-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent-link:hover,
.cookie-consent-link:focus-visible {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 auto;
    }
}

/* Footer privacy link styling */
.footer-legal a {
    color: inherit;
    opacity: 0.85;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    font-size: var(--font-size-sm);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    opacity: 1;
    border-bottom-style: solid;
}

/* ============================================
   EU Funding Banner
   ============================================ */

.eu-funding {
    background-color: var(--color-white);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border, #e5e5e5);
}

.eu-funding-link {
    display: block;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.eu-funding-link:hover,
.eu-funding-link:focus-visible {
    transform: scale(1.02);
    opacity: 0.9;
}

.eu-funding-banner {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
    .eu-funding-link {
        transition: none;
    }
    .eu-funding-link:hover,
    .eu-funding-link:focus-visible {
        transform: none;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        align-items: start;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
}

.footer-logo {
    height: 44px;
    width: auto;
}

.footer-motto {
    font-style: italic;
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-relaxed);
}

.footer-nav h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-base);
    transition: color var(--transition-fast);
}

.footer-nav a:hover, .footer-nav a:focus {
    color: var(--color-white);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-contact li {
    font-size: var(--font-size-base);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-contact address {
    font-style: normal;
    line-height: var(--line-height-relaxed);
}

.footer-legal {
    grid-column: 1 / -1;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-legal p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Scroll Animations
   ============================================ */

/* Base animation state */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: none !important;
    filter: none !important;
}

/* Fade up (default) */
.animate-fade-up {
    transform: translateY(60px);
}

/* Fade in from left */
.animate-fade-left {
    transform: translateX(-60px);
}

/* Fade in from right */
.animate-fade-right {
    transform: translateX(60px);
}

/* Scale up with blur */
.animate-scale {
    transform: scale(0.9);
    filter: blur(10px);
}

/* Zoom in */
.animate-zoom {
    transform: scale(0.8);
}

/* Slide up with rotation */
.animate-rotate {
    transform: translateY(40px) rotate(-3deg);
}

/* Clip reveal from bottom */
.animate-reveal {
    clip-path: inset(100% 0 0 0);
}

.animate-reveal.animated {
    clip-path: inset(0 0 0 0);
}

/* Staggered animations for child elements */
.animate-children > *:nth-child(1) { transition-delay: 0.05s; }
.animate-children > *:nth-child(2) { transition-delay: 0.1s; }
.animate-children > *:nth-child(3) { transition-delay: 0.15s; }
.animate-children > *:nth-child(4) { transition-delay: 0.2s; }
.animate-children > *:nth-child(5) { transition-delay: 0.25s; }
.animate-children > *:nth-child(6) { transition-delay: 0.3s; }

/* Section headers - text reveal */
.section-header.animate-on-scroll h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.section-header.animate-on-scroll .section-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.section-header.animated h2,
.section-header.animated .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects - enhanced */
.service-card,
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover,
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Stat counter animation */
.stat-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

/* Timeline animation */
.timeline-item.animate-on-scroll {
    transform: translateX(-30px);
}

.timeline-item.animate-on-scroll:nth-child(even) {
    transform: translateX(30px);
}

/* Hero parallax text */
.hero-content {
    transition: transform 0.1s linear;
}

/* Button pulse on scroll */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(127, 21, 23, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(127, 21, 23, 0); }
}

.hero-cta .btn-primary.animated {
    animation: pulse-glow 2s ease-in-out 1;
}

/* Floating animation for hero graphic */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-graphic {
    animation: float 6s ease-in-out infinite;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .section-header.animate-on-scroll h2,
    .section-header.animate-on-scroll .section-subtitle {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
        transition: none;
    }
    .hero-graphic {
        animation: none;
    }
    .service-card:hover,
    .product-card:hover,
    .stat-card:hover {
        transform: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .a11y-controls,
    .header,
    .skip-link,
    .nav-toggle {
        display: none !important;
    }

    .hero {
        padding-top: var(--space-xl);
        min-height: auto;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    body {
        font-size: 12pt;
    }
}
