/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */
:root {
  --color-primary: #059669;
  --color-secondary: #DC2626;
  --color-text-dark: #1F2937;
  --color-text-medium: #374151;
  --color-text-light: #6B7280;
  --bg-light: #F4EADE;
  --bg-medium: #E2D5C6;
  --bg-dark: #000000;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ========================================
   FONT DEFINITIONS - Satoshi font family
   ======================================== */

/* Satoshi Regular - 400 weight */
@font-face {
  font-family: 'Satoshi';
  src: url('../../assets/fonts/Satoshi-Regular.woff2') format('woff2'),
       url('../../assets/fonts/Satoshi-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Satoshi Medium - 500 weight */
@font-face {
  font-family: 'Satoshi';
  src: url('../../assets/fonts/Satoshi-Medium.woff2') format('woff2'),
       url('../../assets/fonts/Satoshi-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Satoshi Bold - 600 weight */
@font-face {
  font-family: 'Satoshi';
  src: url('../../assets/fonts/Satoshi-Bold.woff2') format('woff2'),
       url('../../assets/fonts/Satoshi-Bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Satoshi Bold - 700 weight */
@font-face {
  font-family: 'Satoshi';
  src: url('../../assets/fonts/Satoshi-Bold.woff2') format('woff2'),
       url('../../assets/fonts/Satoshi-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   TAILWIND FRAMEWORK OVERRIDES
   ======================================== */

/* Improved text colors for better contrast */
.text-gray-700 {
  color: var(--color-text-medium);
}

.text-gray-800 {
  color: var(--color-text-dark);
}

/* ========================================
   BASE STYLES - Global typography
   ======================================== */

/* Global font family */
body {
  font-family: 'Satoshi', sans-serif;
  background-color: var(--bg-light);
}

html {
  scroll-behavior: smooth;
}

/* ========================================
   RESPONSIVE LAYOUT - Mobile/Desktop
   ======================================== */

/* Responsive text layout for mobile/desktop versions */
@media (min-width: 768px) {
  .section-left-col .d-none { 
    display: block !important; 
  }
  .section-left-col .d-md-none { 
    display: none !important; 
  }
}

/* ========================================
   CUSTOM COMPONENTS - Project specific
   ======================================== */

/* Hero title - Main page large title */
.hero-title {
  font-size: clamp(2rem, 10vh, 9rem);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Solutions title - Secondary page title */
.solutions-title {
  font-size: clamp(2rem, 10vh, 8rem);
  line-height: 1.1;
  font-weight: 700;
}

/* Hero description text */
.hero-description {
  font-size: clamp(1rem, 3vh, 2.5rem);
  line-height: 1.6;
}

/* Hero button */
.hero-button {
  font-size: clamp(0.875rem, 2vh, 1.25rem);
  padding: clamp(0.5rem, 1.5vh, 1rem) clamp(1rem, 3vh, 2rem);
}

/* Section width container */
.section-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Content boxes with consistent styling */
.content-box {
  background-color: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Background sections */
.bg-light {
  background-color: var(--bg-light);
}

.bg-medium {
  background-color: var(--bg-medium);
}

/* ========================================
   SCROLL POSITIONING - Anchor offset
   ======================================== */

/* Sticky positioning for navbar */
.sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background-color: var(--bg-light) !important;
  width: 100% !important;
  max-width: 100vw !important;
}

/* Z-index utilities */
.z-50 {
  z-index: 50;
}

.z-10 {
  z-index: 10;
}

/* Offset for anchor links to account for sticky navigation */
[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 70px;
  }
}

/* ========================================
   UTILITY CLASSES - Reusable components
   ======================================== */

.text-container {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.section-margin {
  margin: 2rem 0;
}

.content-width {
  width: 80%;
  margin: 0 auto;
}

.section-padding-left {
  padding-left: 10%;
}

.services-section-padding {
  padding-left: 3%;
  padding-right: 3%;
}

/* Jednakowe marginesy dla nawigacji i footera */
.nav-footer-margin {
  padding-left: 8rem;
  padding-right: 8rem;
}

/* Image heights */
.hero-image-height {
  height: 85vh;
}

.section-image-height {
  height: 350px;
}

/* Image filters */
.image-overlay {
  filter: blur(2px) brightness(0.7);
}

.no-filter {
  filter: none !important;
}

/* Section background image with text overlay */
.section-bg-image {
  filter: blur(3px);
  opacity: 0.7;
  max-width: 100%;
  width: 100%;
  object-fit: cover;
}

.section-bg-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Section image container */
.section-image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

/* Text shadows */
.text-shadow-dark {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Margins and spacing */
.margin-top-3 {
  margin-top: 3rem;
}

.width-96 {
  width: 96%;
}

/* Line heights */
.line-height-1-8 {
  line-height: 1.8;
}

/* Padding bottom */
.pb-44 {
  padding-bottom: 11rem;
}

/* Gap classes */
.gap-40 {
  gap: 10rem;
}

/* Height classes */
.h-64 {
  height: 16rem;
}

.h-75 {
  height: 300px;
}

/* Top positioning */
.top-36 {
  top: 9rem;
}

/* Padding left */
.pl-20 {
  padding-left: 5rem;
}

/* Remove all focus outlines and borders */
*:focus,
*:active,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

a:focus,
a:active,
a:focus-visible,
button:focus,
button:active,
button:focus-visible,
input:focus,
input:active,
input:focus-visible,
textarea:focus,
textarea:active,
textarea:focus-visible,
select:focus,
select:active,
select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Firefox specific */
:-moz-focusring {
  outline: none !important;
}

/* Menu items specific */
.menu-item:focus,
.menu-item:active,
.menu-item:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
  .content-width {
    width: 90%;
  }
  
  /* Footer - fix overflow caused by negative margins */
  .flex-wrap.-m-8 {
    margin: 0 !important;
  }
  
  .flex-wrap.-m-8 > * {
    padding: 1rem !important;
  }
  
  /* Team competencies - fix overflow */
  .flex-wrap.-m-5 {
    margin: 0 !important;
  }
  
  .flex-wrap.-m-5 > * {
    padding: 0.75rem !important;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 8vh, 4rem);
  }
  
  /* Hero image height fix for mobile */
  .hero-image-height,
  .hero-image-container img {
    height: 50vh !important;
  }
  
  /* German version - smaller font for long word "Unternehmen" */
  html[lang="de"] .hero-title {
    font-size: clamp(2.5rem, 7vh, 3.5rem);
  }
  
  .solutions-title {
    font-size: clamp(1.5rem, 8vh, 3.5rem);
  }
  
  /* Sekcja dziedziny - pełna szerokość tła jak w o_nas */
  section[id="Kluczowe dziedziny"] .section-width,
  section[id="Key-domains"] .section-width,
  section[id="Schluesselbereiche"] .section-width {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }
  
  /* Usunięcie dodatkowych paddingów z poszczególnych dziedzin */
  #efektywnosc > div,
  #automatyzacja > div,
  #dane > div,
  #technologia > div,
  #efficiency > div,
  #automation > div,
  #data > div,
  #technology > div,
  #effizienz > div,
  #automatisierung > div,
  #daten > div,
  #technologie > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Footer mobile optimizations */
  .footer-mobile .nav-footer-margin {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .footer-mobile .text-4xl {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .footer-mobile .text-light {
    font-size: clamp(0.75rem, 3.5vw, 0.875rem);
    line-height: 1.5;
    word-break: break-word;
  }
  
  .footer-mobile .max-w-xs {
    max-width: 100%;
  }
  
  .footer-mobile .p-8 {
    padding: 1rem;
  }
  
  .footer-mobile .flex {
    flex-wrap: wrap;
  }
  
  .footer-mobile svg {
    flex-shrink: 0;
  }
  
  /* Mobile navigation logo centering */
  .navbar-menu .mb-8 {
    margin-bottom: 3rem;
    margin-top: 2rem;
  }
  
  /* Mobile placeholder font size */
  [data-mobile-placeholder]::placeholder {
    font-size: 14px !important;
  }
  
  /* Contact form textarea - increase height on mobile */
  #contactForm textarea {
    min-height: 180px;
  }
  
  /* German version - even more height due to longer text */
  html[lang="de"] #contactForm textarea {
    min-height: 200px;
  }
  
  /* Footer full width */
  .footer-mobile .section-width {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
  }
}

/* Footer full width on desktop */
.footer .section-width {
  max-width: none !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

.footer-solutions .section-width {
  max-width: none !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Desktop placeholder font size */
@media (min-width: 768px) {
  [data-mobile-placeholder]::placeholder {
    font-size: 18px !important;
  }
}

/* ========================================
   COOKIE BANNER - GDPR compliance
   ======================================== */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #F4EADE;
  border-top: 2px solid #4A5568;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  padding: 1rem;
  pointer-events: auto;
}

@media (max-width: 767px) {
  #cookieBanner {
    bottom: 0;
    padding: 0.75rem;
    max-height: none;
    overflow-y: visible;
  }
  
  .desktop-only {
    display: none;
  }
  
  .cookie-banner-content {
    gap: 1rem;
  }
  
  .cookie-text h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-text p {
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  
  .cookie-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  #cookieBanner {
    padding: 1.5rem;
  }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-text h3 {
  font-size: 1.125rem;
  color: #1F2937;
}

.cookie-text p {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cookie-text p {
    font-size: 0.9375rem;
  }
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.cookie-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.9375rem;
  width: 100%;
  text-align: center;
}

.cookie-btn-primary {
  background-color: #4A5568;
  color: white;
}

.cookie-btn-primary:hover {
  background-color: #374151;
}

.cookie-btn-secondary {
  background-color: white;
  color: #1F2937;
  border: 1px solid #D1D5DB;
}

.cookie-btn-secondary:hover {
  background-color: #F3F4F6;
}

/* Cookie Settings Panel */
#cookieSettings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
}

.cookie-settings-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.cookie-settings-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #F4EADE;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
  .cookie-settings-panel {
    width: 95%;
    padding: 0.75rem;
    max-height: 90vh;
    top: 50%;
  }
  
  .cookie-settings-panel h2 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 0.75rem;
  }
  
  .cookie-settings-panel p {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    line-height: 1.4;
  }
  
  .cookie-category {
    padding: 0.625rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-category-title {
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    margin-bottom: 0.25rem;
  }
  
  .cookie-category-desc {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    line-height: 1.3;
  }
  
  .cookie-toggle-label {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
  }
  
  .cookie-settings-buttons .cookie-btn {
    padding: 0.5rem 0.75rem;
    font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
  }
}

@media (max-width: 360px) {
  .cookie-settings-panel {
    width: 98%;
    padding: 0.5rem;
    max-height: 95vh;
  }
  
  .cookie-settings-panel h2 {
    font-size: 0.9375rem;
  }
  
  .cookie-category {
    padding: 0.5rem;
  }
  
  .cookie-toggle-switch {
    width: 40px;
    height: 22px;
  }
  
  .cookie-toggle-slider:before {
    height: 16px;
    width: 16px;
  }
  
  input:checked + .cookie-toggle-slider:before {
    transform: translateX(18px);
  }
}

.cookie-category {
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #E5E7EB;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-category-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.cookie-category-desc {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.5;
}

.cookie-toggle-disabled {
  background-color: #E5E7EB;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
}

.cookie-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
}

/* Toggle Switch */
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D1D5DB;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
  background-color: #4A5568;
}

input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-settings-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-settings-buttons .cookie-btn {
  width: 100%;
}

@media (min-width: 640px) {
  .cookie-settings-buttons {
    flex-direction: row;
  }
  
  .cookie-settings-buttons .cookie-btn {
    width: auto;
    flex: 1;
  }
}

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .cookie-text {
    flex: 1;
    margin-right: 2rem;
  }
  
  .cookie-buttons {
    flex-direction: row;
    flex-shrink: 0;
    width: auto;
  }
  
  .cookie-btn {
    width: auto;
    white-space: nowrap;
  }
}

/* ========================================
   INLINE STYLES MOVED TO CSS
   ======================================== */

/* Mobile menu z-index */
.navbar-menu {
  z-index: 999999;
}



/* Video and image filters */
.video-brightness {
  filter: brightness(70%);
  width: 100%;
  height: 85vh;
  object-fit: cover;
}

/* Text shadows */
.text-shadow-hero {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-shadow-hero-desc {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Service sections */
.service-bg-transparent {
  background-color: transparent;
}

.service-margin-top {
  margin-top: 1rem;
}

.service-image-height {
  height: 270px;
}

/* Form inputs - remove outline */
.form-input-no-outline {
  outline: none;
}

/* Honeypot field */
.honeypot {
  display: none;
}

/* Footer styles */
.footer-bg {
  background-color: #282523;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 4rem 0 3rem 0;
}

.footer-container {
  max-width: 1200px;
}

.footer-spacing {
  margin-bottom: 2rem;
}

.footer-flex {
  justify-content: left;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-icon-spacing {
  margin-left: 1rem;
}

.footer-svg-spacing {
  margin-left: 1.5%;
}

/* Service text responsive */
@media (min-width: 1024px) {
  .service-text-1 {
    margin-top: 2rem !important;
  }
}

/* ========================================
   RECAPTCHA BADGE - Hide completely
   ======================================== */
.grecaptcha-badge {
  visibility: hidden !important;
  display: none !important;
}

