/* Global Styles & Variables */
/* Fonts now loaded in HTML head for performance */

:root {
  --font-main: 'Inter', sans-serif;
  
  --clr-navy-900: #0a1128;
  --clr-navy-800: #0f1c3f;
  --clr-navy-700: #142856;
  
  --clr-accent: #f97316; /* Orange */
  --clr-accent-hover: #ea580c;
  
  --clr-white: #ffffff;
  --clr-gray-50: #f8fafc;
  --clr-gray-100: #f1f5f9;
  --clr-gray-200: #e2e8f0;
  --clr-gray-400: #94a3b8;
  --clr-gray-600: #475569;
  --clr-gray-800: #1e293b;
  --clr-gray-900: #0f172a;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  --transition: all 0.3s ease-in-out;
  --radius: 4px;
}

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

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--clr-gray-800);
  background-color: var(--clr-white);
  overflow-x: hidden;
  width: 100%;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--clr-navy-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--clr-gray-600);
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 3rem 0;
}

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

.section-bg-dark {
  background-color: var(--clr-navy-900);
  color: var(--clr-white);
}

.section-bg-dark h2,
.section-bg-dark p {
  color: var(--clr-white);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--clr-accent);
  color: var(--clr-white);
}
.btn-primary:hover {
  background-color: var(--clr-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--clr-navy-900);
  color: var(--clr-white);
}
.btn-dark:hover {
  background-color: var(--clr-navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--clr-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--clr-white);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--clr-navy-900);
  border: 1px solid var(--clr-gray-200);
}
.btn-outline-dark:hover {
  border-color: var(--clr-navy-900);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 1000;
  transition: var(--transition);
  padding: 0.75rem 2rem;
  background-color: rgba(22, 28, 40, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.05);
}

.header.transparent {
  background-color: rgba(22, 28, 40, 0.4);
  box-shadow: none;
}




.header .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
}
.header .nav-link:hover,
.header .nav-link.active {
  color: var(--clr-white) !important;
}

.header .logo-text {
  color: var(--clr-white) !important;
}

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

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--clr-navy-900);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-gray-600);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-navy-900);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-accent);
  transition: var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mobile-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
}

.lang-switcher {
  display: none !important;
}

.lang-switch {
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-dropdown {
  position: absolute;
  top: 150%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  transform: translateY(-10px);
  z-index: 100;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: var(--clr-white);
  color: var(--clr-navy-900);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header.transparent .lang-dropdown button {
  background-color: var(--clr-white);
  color: var(--clr-navy-900);
}

.lang-dropdown button:hover {
  transform: scale(1.1);
}

.lang-dropdown button.active {
  display: none !important;
}


/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}
.service-card {
  text-align: center;
  padding: 3rem;
  background-color: var(--clr-white);
  border-radius: var(--radius);
  transition: var(--transition);
}
.service-icon {
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--clr-accent);
}
.service-card p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS (CONSOLIDATED)
   ========================================== */

@media (max-width: 992px) {
  /* Global Layout Optimization */
  .section, section { 
    padding: 1.5rem 0; 
    text-align: center !important;
  }
  .container { padding: 0 1.25rem; }
  
  /* Centering & Spacing (Universal) */
  h1, h2, h3, h4, p, span, li, a, .badge, .main-intro-text, .secondary-intro-text, .big-quote, .value-p, .value-title { 
    text-align: center !important; 
    margin-left: auto !important; 
    margin-right: auto !important; 
    font-size: 0.92rem; /* Globally smaller body text on mobile */
    display: block; /* Standardizing for block-level behavior for centering */
    width: fit-content;
  }
  h1 { font-size: 2.5rem !important; } /* Reduced from huge size */
  h2 { font-size: 1.8rem !important; }
  h3 { font-size: 1.45rem !important; }
  p { line-height: 1.6 !important; }
  
  /* Grid Overrides (Force 1 column) */
  .grid-2, .grid-3, .footer-grid, .blog-grid, .services-header {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  
  [style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* Header & Mobile Menu */
  .header {
    top: 1rem; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); border-radius: 50px; padding: 0.75rem 1.5rem;
    background-color: rgba(22, 28, 40, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
  }
  .header.transparent {
    background-color: rgba(22, 28, 40, 0.6);
  }
  .header-container { overflow: visible !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
  .logo { display: none !important; }
  .logo-text { font-size: 0.75rem !important; white-space: nowrap !important; letter-spacing: -0.02em !important; }
  .header-actions .btn { display: inline-block !important; padding: 0.4rem 1rem !important; font-size: 0.85rem !important; }
  .header-actions { gap: 0.5rem !important; margin-left: 0 !important; }
  .lang-switcher { margin-right: 0.75rem !important; }
  .mobile-toggle { 
    display: block !important; 
    color: var(--clr-white) !important;
    background: none; border: none; font-size: 1.5rem !important;
    z-index: 1001; position: relative;
    margin-left: 0.5rem;
  }
  
  .nav-links {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    transform: translateX(100%);
    visibility: hidden;
    background-color: var(--clr-navy-900);
    flex-direction: column; justify-content: flex-start; align-items: center;
    padding-top: 6rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    z-index: 999;
  }
  .nav-links.active { transform: translateX(0); visibility: visible; }
  .nav-link { font-size: 1.4rem; color: var(--clr-white) !important; margin: 0.75rem 0; }

  /* Hero & Section Centering */
  h1 { font-size: 1.8rem !important; line-height: 1.3 !important; margin-bottom: 2rem !important; }
  h2 { font-size: 1.6rem !important; }
  .page-hero, .article-hero, .contact-hero, .about-intro-section, .magazin-hero { padding-top: 10rem !important; margin-top: 0 !important; }
  .home-hero { padding-top: 9rem !important; margin-top: 0 !important; }
  .hero-btn-group { justify-content: center !important; margin-top: 2.5rem !important; }
  .status-card { margin: 2.5rem auto 0 !important; text-align: left; }
  
  /* Blog & Featured */
  .featured-post { flex-direction: column; }
  .featured-post img, .featured-content { width: 100% !important; height: auto !important; }
  .blog-card { height: auto !important; text-align: center; }
  .blog-image img { border-radius: 15px; }
  
  /* UX Polish */
  .container { width: 100% !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  
  /* Service Cards Mobile Padding */
  /* Service Cards */
  /* Service Cards */
  .service-card { padding: 2.5rem !important; text-align: center !important; }
  .service-icon { margin-bottom: 1rem; }
  
  /* Contact Info Styling Mobile */
  .info-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 2rem !important;
  }
  .info-card div {
    align-items: center !important;
    text-align: center !important;
  }
  .info-card .info-icon { margin-bottom: 1rem; margin-right: 0 !important; }
  
  /* Footer */
  .footer { padding-top: 2rem; }
  .footer-col { text-align: center !important; margin-bottom: 1.5rem; }
  .footer-col h4 { margin-top: 0.5rem; margin-bottom: 0.75rem !important; font-size: 1rem; }
  .footer-links { display: flex; flex-direction: column; align-items: center; }
  .footer-links li { margin: 0.4rem 0 !important; font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; padding-top: 1rem; }

  /* Hero Button Styling Mobile */
  .hero-btn-outline {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.82rem !important;
    margin: 1.5rem auto 0 !important;
    display: inline-flex !important;
    width: fit-content !important;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2rem !important; }
  .btn { width: 100%; }
  .cookie-banner { padding: 1rem !important; }
}

/* Footer & Other Components */
.footer {
  background-color: var(--clr-gray-50); padding: 5rem 0 2rem; border-top: 1px solid var(--clr-gray-200);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem;
}
.footer-col h4 { font-size: 1rem; margin-bottom: 1.5rem; color: var(--clr-navy-900); }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--clr-gray-600); font-size: 0.9rem; }
.footer-links a:hover { color: var(--clr-accent); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--clr-gray-200);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--clr-gray-400); flex-wrap: wrap; gap: 1rem;
}
.footer-bottom > div:nth-child(2) {
  display: none !important;
}

.badge {
  display: inline-block; padding: 0.25rem 0.75rem; background-color: rgba(249, 115, 22, 0.1);
  color: var(--clr-accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; border-radius: 50px; margin-bottom: 1rem;
}

.page-hero { padding: 10rem 0 5rem; background-color: var(--clr-gray-50); }
.page-hero h1 { max-width: 800px; margin-bottom: 1.5rem; }
.page-hero p { font-size: 1.1rem; max-width: 600px; }



/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--clr-white);
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
  min-width: 300px;
}
.cookie-icon {
  background: var(--clr-navy-900);
  color: var(--clr-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--clr-navy-900);
}
.cookie-text p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--clr-gray-600);
  line-height: 1.5;
}
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-content {
  background: var(--clr-white);
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius);
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.cookie-tabs-container {
  display: flex;
  border-top: 1px solid var(--clr-gray-200);
  margin-top: 1rem;
  padding-top: 1rem;
}
.cookie-tabs {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--clr-gray-200);
  padding-right: 1rem;
}
.cookie-tab {
  text-align: left;
  padding: 1rem;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-weight: 700;
  color: var(--clr-gray-600);
}
.cookie-tab.active-tab {
  background: var(--clr-accent) !important;
  color: var(--clr-white) !important;
  border-left: 3px solid var(--clr-navy-900);
}
.cookie-tab-content {
  flex: 1;
  padding-left: 1.5rem;
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 1rem;
}
.cookie-table th, .cookie-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--clr-gray-200);
  text-align: left;
  vertical-align: middle;
}
.cookie-table th { background: var(--clr-gray-50); }

/* Mobile Responsiveness for Cookies */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .cookie-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions button {
    width: 100%;
  }
  .cookie-modal-content {
    padding: 1rem;
    max-height: 95vh;
  }
  .cookie-tabs-container {
    flex-direction: column;
  }
  .cookie-tabs {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--clr-gray-200);
    padding-right: 0;
    margin-bottom: 1rem;
  }
  .cookie-tab {
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .cookie-tab.active-tab {
    border-left: none;
    border-bottom: 3px solid var(--clr-navy-900);
  }
  .cookie-tab-content {
    padding-left: 0;
  }
  .cookie-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}



/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}
@media (max-width: 768px) {
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    font-size: 30px;
    bottom: 15px;
    right: 15px;
  }
}

