/* ==========================================================================
   VB AUTOMATION — Design System CSS
   Style: Minimal Flat Dark
   Version: 2026.1
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Custom Font --- */
@font-face {
  font-family: 'Britannic Becker Ultra';
  src: url('../assets/fonts/britannic-becker-ultra-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Brand Colors */
  --red-light: #DD1010;
  --red-mid: #CC0000;
  --red-dark: #9D0000;
  --gray-light: #C8C8C6;
  --gray-mid: #A0A0A0;
  --gray-dark: #606060;

  /* Surfaces */
  --bg-base: #ffffff;
  --bg-elevated: #f5f5f5;
  --bg-card: #ffffff;
  --bg-input: #f8f8f8;

  /* Text */
  --text-heading: #1a1a1a;
  --text-body: #333333;
  --text-muted: #666666;
  --text-subtle: #777777;
  --text-link: #CC0000;

  /* Accent */
  --accent-gradient: linear-gradient(135deg, #DD1010, #9D0000);

  /* Borders */
  --border-default: #e0e0e0;
  --border-hover: #DD1010;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-brand: 'Britannic Becker Ultra', 'Outfit', sans-serif;

  /* Font Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1440px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-overlay: 40;
  --z-modal: 100;
  --z-toast: 1000;
}


/* ==========================================================================
   2. CSS RESET + BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(221, 16, 16, 0.3);
  color: var(--text-heading);
}

:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 2px;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
}

small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

strong {
  font-weight: 600;
  color: var(--text-heading);
}


/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */

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

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-red { color: var(--red-light); }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

.mx-auto { margin-left: auto; margin-right: auto; }

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

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 50ch;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--red-light);
  margin-bottom: var(--space-6);
}

.section-divider-center {
  width: 48px;
  height: 2px;
  background: var(--red-light);
  margin: 0 auto var(--space-6);
}


/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(221, 16, 16, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-default);
}

.btn-outline:hover {
  border-color: var(--red-light);
  color: var(--red-light);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-lg);
}


/* ==========================================================================
   6. NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  z-index: var(--z-sticky);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform 0.3s ease;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar.transparent {
  background: transparent;
}

.navbar.transparent .nav-logo-text,
.navbar.transparent .nav-links a,
.navbar.transparent .nav-hamburger span {
  color: #fff;
}

.navbar.transparent .nav-hamburger span {
  background: #fff;
}

.navbar.transparent .nav-links a.active {
  color: #fff;
}

.nav-logo-light {
  display: none;
}

.navbar.transparent .nav-logo-dark {
  display: none;
}

.navbar.transparent .nav-logo-light {
  display: block;
}

.navbar.transparent .nav-dropdown-menu {
  background: rgba(20, 20, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar.transparent .nav-dropdown-menu a {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.transparent .nav-dropdown-menu a:hover {
  color: #fff;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-default);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo svg {
  height: 36px;
  width: auto;
}

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

.nav-logo.nav-logo-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-logo.nav-logo-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--transition-base);
}


.nav-logo-text {
  font-family: var(--font-brand);
  font-size: var(--text-xl);
  color: var(--text-heading);
  letter-spacing: 0.02em;
}

.nav-logo-text .vb {
  color: var(--red-light);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-heading);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red-light);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  color: var(--text-heading);
  padding-left: var(--space-8);
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: var(--z-overlay);
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--nav-height) + var(--space-6)) var(--space-6) var(--space-6);
  gap: var(--space-4);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  width: 100%;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-default);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text-heading);
}

.nav-mobile .nav-mobile-cta {
  margin-top: var(--space-4);
  text-align: center;
  border-bottom: none;
  color: #fff;
}


/* ==========================================================================
   LOGO HEADER (home page)
   ========================================================================== */

.logo-header {
  background: #fff;
  padding: var(--space-4) var(--space-6) var(--space-3);
  text-align: center;
}

.logo-header-inner {
  max-width: 560px;
  margin: 0 auto;
}

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

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero.hero-banner {
  min-height: 55vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 0 var(--space-6);
}

.hero-logo {
  margin-bottom: var(--space-8);
}

.hero-logo svg {
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  height: auto;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.hero-content h1 .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto var(--space-8);
  max-width: 50ch;
}

.hero-btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero with subtler effect */
.hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(221, 16, 16, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero Home (logo on dark bg) */
.hero.hero-home {
  min-height: 32vh;
  padding: var(--space-8) 0;
}

.hero-home .hero-bg {
  filter: blur(3px);
  transform: scale(1.02);
}

.hero-home .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-home .hero-content {
  max-width: none;
  width: 100%;
  padding: 0 var(--space-8);
  position: relative;
}

.hero-home .hero-logo-img {
  max-width: 100%;
  width: 40vw;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(0, 0, 0, 0.4));
}

/* Home Solutions 2x2 Grid */
.home-solutions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  height: calc(100vh - 32vh);
  box-sizing: border-box;
}

.home-solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  transition: all var(--transition-base);
  color: inherit;
}

.home-solution-block:hover {
  border-color: var(--red-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.home-solution-image {
  overflow: hidden;
}

.home-solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.home-solution-block:hover .home-solution-image img {
  transform: scale(1.05);
}

.home-solution-text {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-solution-text .service-card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-4);
  color: var(--red-light);
}

.home-solution-text h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  transition: color var(--transition-base);
}

.home-solution-block:hover .home-solution-text h3 {
  color: var(--red-light);
}

.home-solution-text p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.home-solution-text .btn {
  align-self: flex-start;
}

/* Page-level hero (smaller, for inner pages) */
.hero-page {
  min-height: 40vh;
  padding-top: var(--nav-height);
}

.hero-page .hero-content {
  padding-top: var(--space-16);
}


/* ==========================================================================
   8. SERVICE CARDS (Minimal Flat)
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.service-card {
  padding: var(--space-8) var(--space-6);
  cursor: pointer;
  transition: all var(--transition-base);
  border-left: 2px solid transparent;
}

.service-card:hover {
  border-left-color: var(--red-light);
  padding-left: calc(var(--space-6) + 8px);
}

.service-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-6);
  color: var(--gray-dark);
  transition: color var(--transition-base);
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-card-icon {
  color: var(--red-light);
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  transition: color var(--transition-base);
}

.service-card:hover h3 {
  color: var(--red-light);
}

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

.service-card .card-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--red-light);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover .card-link {
  opacity: 1;
}


/* ==========================================================================
   9. VALUE CARDS (About page)
   ========================================================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.value-card {
  padding: var(--space-10) var(--space-8);
  transition: all var(--transition-base);
  border-left: 2px solid transparent;
}

.value-card:hover {
  border-left-color: var(--red-light);
  padding-left: calc(var(--space-6) + 8px);
}

.value-card h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-base);
}

.value-card:hover h4 {
  color: var(--red-light);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}


/* ==========================================================================
   10. CONTENT SECTIONS (Service pages)
   ========================================================================== */

.content-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
}

.content-section.reversed {
  direction: rtl;
}

.content-section.reversed > * {
  direction: ltr;
}

.content-text h3 {
  margin-bottom: var(--space-4);
}

.content-text p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.content-text ul {
  margin-top: var(--space-4);
}

.content-text ul li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--red-light);
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Competence list */
.competence-list {
  margin-top: var(--space-8);
}

.competence-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.competence-item:last-child {
  border-bottom: none;
}

.competence-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--red-light);
  fill: none;
  stroke-width: 1.5;
  margin-top: 2px;
}

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


/* ==========================================================================
   11. CONTACT FORM
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-info-item a:hover {
  color: var(--red-light);
}

.map-embed {
  margin-top: var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3) contrast(0.95);
}


/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.footer {
  background: #363636;
  color: #ccc;
  border-top: none;
  padding: var(--space-16) 0 var(--space-8);
}

.footer h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.footer-brand p {
  color: #aaa;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top-color: #505050;
}

.footer-bottom p {
  color: #888;
}

.footer-social a {
  color: #aaa;
}

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

.footer-logo-white {
  filter: brightness(0) invert(1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 35ch;
}

.footer-links a {
  display: block;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-default);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--red-light);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   13. SCROLL ANIMATIONS
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

/* Mobile (default) */
@media (max-width: 767px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

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

  .section-padding { padding: var(--space-12) 0; }
  .section-padding-lg { padding: var(--space-16) 0; }

  /* Navbar mobile */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

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

  /* Hero mobile */
  .hero { min-height: auto; }
  .hero-page { min-height: 35vh; }
  .hero.hero-home { min-height: 30vh; }

  .hero-content h1 {
    font-size: var(--text-3xl);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Service cards mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero.hero-home {
    min-height: 30vh;
    padding: var(--space-6) 0;
  }

  .hero-home .hero-logo-img {
    width: 70vw;
  }

  .home-solutions {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    padding: var(--space-3);
    gap: var(--space-3);
    box-sizing: border-box;
  }

  .home-solution-block {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-solution-image {
    height: 180px;
  }

  .home-solution-text {
    padding: var(--space-4) var(--space-3);
  }

  .home-solution-text h3 {
    font-size: var(--text-base);
  }

  .home-solution-text p {
    font-size: var(--text-sm);
  }

  /* Values mobile */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Content sections mobile */
  .content-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .content-section.reversed {
    direction: ltr;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero.hero-home {
    min-height: 28vh;
  }

  .hero-home .hero-logo-img {
    width: 50vw;
  }

  .home-solutions {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    height: calc(100vh - 28vh);
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }

  .home-solution-block {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-content h1 {
    font-size: var(--text-4xl);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-hamburger { display: none; }
}

/* Large desktop */
@media (min-width: 1440px) {
  .container {
    padding: 0 var(--space-10);
  }
}


/* ==========================================================================
   LEGAL / PRIVACY PAGE
   ========================================================================== */

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-default);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-body);
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  list-style: disc;
  margin-bottom: var(--space-2);
  line-height: 1.8;
  color: var(--text-body);
}

.legal-content a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--red-dark);
}


/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */

.error-page {
  min-height: calc(100vh - var(--nav-height) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) 0;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.error-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.error-message {
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

@media (max-width: 767px) {
  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: var(--text-2xl);
  }
}


/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-heading);
  color: #ffffff;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  z-index: var(--z-toast);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: var(--text-sm);
  color: #cccccc;
  max-width: none;
}

.cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner a:hover {
  color: var(--red-light);
}

.cookie-btn {
  background: var(--red-mid);
  color: #ffffff;
  border: none;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.cookie-btn:hover {
  background: var(--red-dark);
}

@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    text-align: center;
  }
}
