/* ===========================================
   GIPSOTEXNIA - MAIN STYLESHEET (FULL)
   =========================================== */

/* --- VARIABLES --- */
:root {
  --bg-main: #F5F5F0;
  --text-main: #181818;
  --text-muted: #666666;
  --accent: #D17028;
  
  --font-head: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-slider: 'Roboto', sans-serif;
  
  --site-margin: 12%;
  
  /* Z-index system */
  --z-background: -1;
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-nav: 30;
  --z-modal: 40;
  --z-overlay: 50;
  --z-preloader: 60;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  font-weight: 300;
}

/* Fix stacking contexts */
body > *:not(.close-btn):not(.card-info):not(.clone):not(.top-bar):not(.osmo-mobile-menu):not(.sticky-back-btn):not(.cc-banner):not(.cc-modal-overlay) {
  position: relative;
  z-index: var(--z-base);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
}

/* --- PRELOADER (Optimized) --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  will-change: opacity, visibility;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content { text-align: center; }
.loader-logo { position: relative; margin-bottom: 40px; }
.loader-svg { width: 320px; height: auto; }

/* SVG Animations */
.loader-svg .draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2.5s ease forwards;
  fill: none;
}
.loader-svg .loader-orange.draw { animation: drawPath 2.5s ease forwards, fillOrange 0.5s ease 2s forwards; }
.loader-svg .loader-st5.draw { animation: drawPath 2.5s ease forwards, fillDark 0.5s ease 2s forwards; }

@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes fillOrange { to { fill: #D17028; } }
@keyframes fillDark { to { fill: #1A1A1A; } }

.loader-svg .diamond {
  animation: diamondPulse 1.5s ease-in-out infinite;
  transform-origin: 234.9px 37px;
}
@keyframes diamondPulse {
  0%, 100% { transform: translate(0, -5px) scale(1); }
  50% { transform: translate(0, -5px) scale(1.1); }
}

.loader-progress {
  width: 200px; height: 3px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 auto 20px;
  overflow: hidden; border-radius: 3px;
}
.loader-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #D17028, #e8935a);
  animation: loadProgress 2.5s ease forwards;
  border-radius: 3px;
}
@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 3px; color: var(--text-muted);
  animation: textPulse 1.5s ease-in-out infinite;
}
@keyframes textPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (max-width: 480px) { .loader-svg { width: 260px; } }

/* --- NAVIGATION --- */
.top-bar {
  position: fixed; top: 0; width: 100%;
  padding: 1.5rem var(--site-margin);
  display: flex; justify-content: space-between; align-items: center;
  z-index: var(--z-nav);
  background: transparent;
  transition: all 0.4s ease;
}
.top-bar.scrolled {
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1rem var(--site-margin);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo-container { display: flex; align-items: center; }
.logo-link { display: flex; align-items: center; line-height: 0; background: none; border: none; }
.nav-logo { width: 250px; height: auto; display: block; }

.nav-menu { display: none; list-style: none; gap: 2.5rem; margin: 0; padding: 0; }
.nav-menu li a {
  font-size: 1.1rem; font-weight: 500; letter-spacing: 0.5px;
  color: var(--text-main); position: relative; padding: 0.5rem 0;
}
.nav-menu li a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-menu li a:hover::after, .nav-menu li a.active::after { width: 100%; }

.contact { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-weight: 500; font-size: 0.85rem; display: none; letter-spacing: 0.5px; }

.btn-nav {
  border: 1px solid var(--text-main); padding: 0.6rem 1.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 1px;
  background: transparent; cursor: pointer; transition: all 0.3s ease;
}
.btn-nav:hover { background: var(--text-main); color: #fff; }

/* Hamburger Menu */
.osmo-menu-btn {
  background: transparent; border: none; display: flex; align-items: center;
  gap: 8px; cursor: pointer; padding: 8px; margin: 0;
}
.osmo-menu-btn-text { display: flex; flex-direction: column; height: 22px; overflow: hidden; }
.osmo-menu-btn-text span {
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-main);
  line-height: 22px; transition: transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}
.osmo-menu-btn-text span:last-child { transform: translateY(100%); }
.osmo-menu-btn.active .osmo-menu-btn-text span:first-child { transform: translateY(-100%); }
.osmo-menu-btn.active .osmo-menu-btn-text span:last-child { transform: translateY(0); }

.osmo-menu-btn-icon {
  transition: transform 0.4s cubic-bezier(0.65, 0.05, 0, 1);
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
}
.osmo-menu-btn-icon svg { width: 20px; height: 20px; }
.osmo-menu-btn.active .osmo-menu-btn-icon { transform: rotate(45deg); }
.osmo-menu-btn:hover .osmo-menu-btn-icon { transform: rotate(90deg); }

@media (min-width: 768px) { .nav-link { display: block; } }
@media (min-width: 992px) { .nav-menu { display: flex; } .osmo-menu-btn { display: none; } }
@media (max-width: 991px) {
  .osmo-menu-btn { display: flex; } .btn-nav { display: none; }
  .top-bar { padding: 1rem 5%; } .nav-logo { width: 200px; } .contact { gap: 0.5rem; }
}
@media (max-width: 480px) { .top-bar { padding: 0.8rem 4%; } .nav-logo { width: 170px; } }

/* --- HERO --- */
#hero { position: relative; height: 100vh; width: 100%; overflow: hidden; }

.hero-video-container { 
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  /* ΠΡΟΣΘΗΚΗ: Εικόνα που φαίνεται πριν φορτώσει το βίντεο */
  background-image: url('assets/hero-image.webp');
  background-size: cover;
  background-position: center;
}

.hero-video-container::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(245, 245, 240, 0.50); z-index: 1;
}
.hero-video-container video { width: 100%; height: 100%; object-fit: cover; }
#particle-canvas { position: absolute; inset: 0; z-index: 2; }

.hero-content {
  position: absolute; top: 70%; left: 0; width: 100%; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  padding-left: var(--site-margin); text-align: left;
}

.hero-subtitle {
  font-family: var(--font-body); font-size: 1.125rem; letter-spacing: 3px;
  color: var(--text-muted); margin-bottom: 5vh; text-transform: uppercase;
  opacity: 0; font-weight: 500; margin-left: 4px;
}

.btn-hero {
  will-change: transform, opacity;
  background: transparent; color: var(--text-main); border: 1px solid var(--text-main);
  padding: 1rem 3rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 2px; opacity: 0; transition: all 0.3s ease; cursor: pointer;
  font-family: inherit;
}
.btn-hero:hover { background: var(--text-main); color: #e67e22; }

.scroll-down {
  position: absolute; top: 70%; right: var(--site-margin); bottom: auto;
  z-index: var(--z-dropdown); display: flex; flex-direction: column;
  align-items: center; font-size: 0.6rem; letter-spacing: 2px;
  color: #1a1a1a; opacity: 0;
}
.line { width: 1px; height: 60px; background: #1a1a1a; margin-top: 15px; }

@media (max-width: 768px) {
  .hero-content { top: 58%; padding-left: 5%; padding-right: 5%; }
  .hero-subtitle { font-size: 1rem; letter-spacing: 1.5px; margin-bottom: 2rem; max-width: 280px; line-height: 1.5; margin-left: 0; }
  .btn-hero { padding: 0.8rem 2rem; font-size: 0.7rem; }
  .scroll-down { top: auto; right: auto; bottom: 40px; left: 50%; transform: translateX(-50%); }
  .line { height: 40px; }
}

/* --- SECTIONS COMMON --- */
section { padding: 6rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-tag { color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; display: block; margin-bottom: 1rem; }
h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 1.5rem; line-height: 1.2; color: var(--text-main); font-weight: 700; }

/* --- ABOUT --- */
#about { position: relative; }
#about .container {
  width: 90%; max-width: 1600px; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: stretch;
}
.about-video {
  position: relative; width: 100%; height: 100%; min-height: 300px;
  overflow: hidden; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.about-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991px) {
  #about .container { grid-template-columns: 1fr; width: 100%; padding: 0 5%; gap: 2rem; }
}
@media (max-width: 768px) { .about-video { max-width: 100%; } }

/* --- SERVICES --- */
#services .container { width: 90%; max-width: 1600px; margin: 0 auto; padding: 0; }
.svc-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem; align-items: stretch; width: 100%; margin-top: 4rem; padding-bottom: 4rem;
}

.svc-card-wrap { position: relative; height: 500px; z-index: var(--z-base); }

.svc-card {
  position: absolute; top: 0; left: 0; width: 100%; min-height: 100%; height: auto;
  background-color: var(--bg-main);
  border: 18px solid transparent;
  border-image: linear-gradient(to bottom right,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(245, 245, 245, 0.75) 16.6%,
      rgba(245, 245, 245, 0.75) 79.4%,
      rgba(245, 245, 245, 0.75) 84.3%) 1;
  transition: transform 0.6s ease, z-index 0s 0s;
  will-change: transform;
  cursor: pointer; display: flex; flex-direction: column; z-index: var(--z-base);
}

.svc-card:before {
  content: ''; position: absolute; top: -18px; left: -18px; right: -18px; bottom: -18px;
  box-shadow: 50px 50px 24px rgba(142, 142, 142, 0.6); z-index: -1;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}

.svc-card-img {
  width: 100%; height: 320px; background-size: cover; background-position: center;
  background-color: #fff; transition: height 0.8s ease;
}

.svc-card-block {
  padding: 25px; background: transparent;
  background-image: linear-gradient(to bottom right, rgba(255,255,255,0.75) 0%, rgba(245,245,245,0.75) 84%);
  display: flex; flex-direction: column; flex-grow: 1; transition: background 0.6s ease;
}

.svc-card-title {
  font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 5px;
  color: var(--text-main); font-weight: 700; transition: color 0.4s ease;
}
.svc-hr { width: 100%; border: 0; border-top: 1px solid #ccc; margin: 10px 0; }
.svc-card-text {
  font-size: 1rem; color: var(--text-muted); max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.6s ease;
}

/* Hover Effects */
.svc-card:hover { z-index: var(--z-dropdown); transform: translate(-18px, -28px) scale(1.02); }
.svc-card:hover:before { opacity: 1; }
.svc-card:hover .svc-card-img { height: 280px; }
.svc-card:hover .svc-card-block {
  background-image: linear-gradient(to top left, rgb(72, 85, 108) 0%, rgb(27, 33, 43) 50%, rgb(53, 59, 69) 100%);
  color: white;
}
.svc-card:hover .svc-card-title { color: white; }
.svc-card:hover .svc-card-text { max-height: 300px; opacity: 1; color: white; margin-top: 10px; }

/* Fade others */
.svc-row:hover .svc-card:not(:hover) .svc-card-block {
  background: transparent;
  background-image: linear-gradient(to bottom right, rgba(255,255,255,0.75) 0%, rgba(245,245,245,0.75) 84%);
}

@media (max-width: 1200px) {
  .svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem; }
  .svc-card-wrap:has(.svc-card:hover) { z-index: calc(var(--z-dropdown) + 5); }
  .svc-card:hover { transform: none; }
  .svc-card:hover:before { opacity: 0; }
}

@media (max-width: 600px) {
  .svc-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .svc-card-wrap { height: 420px; }
  .svc-card-img { height: 250px; }
  .svc-card:hover .svc-card-img { height: 230px; }
}

/* --- PROJECTS SLIDER --- */
#projects {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 0; font-family: var(--font-slider);
}
.slider-header { text-align: center; margin-bottom: 60px; z-index: var(--z-dropdown); }
.subtitle { color: var(--accent); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.main-title { font-family: var(--font-head); font-size: clamp(36px, 5vw, 56px); font-weight: 900; color: var(--text-main); line-height: 1.1; }

.slider-container {
  perspective: 1500px; perspective-origin: 50% 50%;
  position: relative; width: 100%; max-width: 1400px; margin: 0 auto; height: 700px;
}
.slider-nav {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 2.5rem; padding: 0 1rem;
}
.slider-nav-text {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text-muted);
  letter-spacing: 0.5px; font-weight: 500;
}
.slider-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--text-main);
  background: transparent; cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.3s ease;
}
.slider-arrow svg { width: 22px; height: 22px; stroke: var(--text-main); transition: stroke 0.3s ease; }
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.slider-arrow:hover svg { stroke: white; }

.slider-track {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transform-style: preserve-3d; position: relative; height: 100%;
}

.card {
  flex-shrink: 0; width: 240px; background: #ddd; overflow: hidden;
  transform-style: preserve-3d; position: relative; cursor: pointer;
  border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.15), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.15));
  transform: translateZ(-8px); pointer-events: none;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: #e0e0e0; transform: translateZ(-16px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); pointer-events: none;
}
.card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; position: relative; z-index: var(--z-base); background: #ddd; }

.card .hover-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(209, 112, 40, 0.9); display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: opacity 0.3s ease; z-index: 2;
  visibility: hidden;
}
.card:hover .hover-overlay { opacity: 1; visibility: visible; }
.card .hover-overlay span { color: white; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.card .label {
  position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  background: rgba(24, 24, 24, 0.9); color: white; padding: 8px 18px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  z-index: var(--z-dropdown); border-radius: 4px; pointer-events: none;
}

.clone .label { background: var(--accent); padding: 10px 24px; font-size: 14px; top: 20px; left: 20px; transform: none; }
.slider-track.blurred .card:not(.expanded) { filter: blur(8px); transition: filter 0.6s ease; }
.card.expanded { z-index: var(--z-modal); }
.clone { object-fit: cover; z-index: var(--z-overlay); will-change: width, height, left, top; }

/* Card Info Box */
.card-info {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); text-align: center;
  opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: calc(var(--z-overlay) + 1); width: 70%; max-width: 420px;
  padding: 1.5rem; background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); min-width: 320px;
}
.card-info.visible { opacity: 1; visibility: visible; }
.card-info h2 { font-family: var(--font-head); font-size: 28px; font-weight: 900; color: var(--text-main); margin-bottom: 16px; }
.card-info p { font-family: var(--font-body); font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* Close Button */
.close-btn {
  position: absolute; top: 20px; right: 20px; width: 50px; height: 50px;
  background: white; border: 2px solid var(--text-main); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: calc(var(--z-overlay) + 2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease; opacity: 0; visibility: hidden;
}
.close-btn.visible { opacity: 1; visibility: visible; }
.close-btn:hover { background: var(--accent); border-color: var(--accent); transform: rotate(90deg) scale(1.1); }
.close-btn svg { width: 20px; height: 20px; stroke: var(--text-main); }

/* --- MOBILE SLIDER FIX (ΔΙΟΡΘΩΜΕΝΟ) --- */
@media (max-width: 1024px) {
  
  /* Στυλ για την ένδειξη Swipe */
  .mobile-scroll-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    opacity: 0.8;
    animation: swipeAnim 2s infinite;
  }

  @keyframes swipeAnim {
    0%, 100% { transform: translateX(0); opacity: 0.8; }
    50% { transform: translateX(5px); opacity: 1; }
  }

  /* Slider Container */
  .slider-container {
    height: auto;
    perspective: none;
    overflow: hidden; 
    padding-bottom: 2rem;
    width: 100%;
  }

  /* Track - Η "ταινία" με τις κάρτες */
  .slider-track {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Μικρότερο κενό για να φαίνεται η επόμενη κάρτα */
    transform-style: flat;
    width: 100%;
    padding: 0 20px; /* Αέρας αριστερά-δεξιά */
    
    overflow-x: auto; /* Ενεργοποίηση Scroll */
    scroll-snap-type: x mandatory; /* "Κούμπωμα" */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    
    /* Η ΣΗΜΑΝΤΙΚΗ ΔΙΟΡΘΩΣΗ: */
    justify-content: flex-start; /* Ξεκινάει από την αρχή, δεν κεντράρει */
    flex-wrap: nowrap; /* Δεν αλλάζει γραμμή */
  }

  .slider-track::-webkit-scrollbar { display: none; }

  /* Κάρτες */
  .card:not(.clone) {
    flex: 0 0 85vw; /* Πιάνει το 85% της οθόνης */
    width: 85vw;
    max-width: 380px;
    height: 50vh; /* Προσαρμοσμένο ύψος */
    margin: 0;
    
    transform: none !important; 
    clip-path: none !important; 
    position: relative;
    opacity: 1; 
    filter: none; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    cursor: pointer;
    
    scroll-snap-align: center; /* Κεντράρισμα στο scroll */
  }

  /* Label "ΠΡΙΝ" */
  .card .label {
    top: 15px; left: 15px; transform: none;
    font-size: 11px; padding: 6px 12px; z-index: 5;
  }

  /* Απόκρυψη στοιχείων Desktop */
  .card .hover-overlay, .slider-nav {
    display: none !important; opacity: 0; pointer-events: none;
  }

  /* Popup Κάρτα (Clone) */
  .card.clone {
    position: fixed; z-index: var(--z-overlay); margin: 0;
    box-shadow: 0 0 0 100vh rgba(255, 255, 255, 0.95);
    max-width: none; overflow: visible;
  }

  /* Info Box στο κάτω μέρος */
  .card-info {
    position: fixed;
    z-index: calc(var(--z-overlay) + 5) !important;
    width: 100% !important; max-width: 100% !important;
    left: 0 !important; bottom: 0 !important; top: auto; margin: 0;
    transform: none !important;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    background: white; padding: 1.5rem;
    border: none; border-top: 2px solid var(--accent);
  }
}

/* Απόκρυψη οδηγίας σε Desktop */
@media (min-width: 1025px) {
  .mobile-scroll-hint { display: none; }
}

/* --- SCROLL UP BUTTON --- */
#scrollUpBtn {
  position: fixed; bottom: 30px; right: 30px; z-index: var(--z-overlay);
  width: 50px; height: 50px; border: none; background-color: var(--text-main); color: white;
  border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#scrollUpBtn:hover { background-color: var(--accent); transform: translateY(-5px); }
#scrollUpBtn.show { opacity: 1; visibility: visible; }

/* --- CONTACT --- */
#contact h2 { margin-bottom: 1rem; }
.contact-wrapper { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.details { flex: 1; min-width: 250px; }
.contact-form { flex: 2; display: flex; flex-direction: column; gap: 1rem; min-width: 300px; }

input, textarea {
  padding: 1rem; border: 1px solid #ddd; background: #ffffff;
  font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.contact-form .send-message-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  overflow: visible !important; position: relative; z-index: 10;
}
.contact-form .send-message-btn .icon {
  display: inline-flex; align-items: center; justify-content: center; line-height: 0; position: relative;
}
.contact-form .send-message-btn .icon svg {
  width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; display: block; z-index: 20;
}

/* --- FOOTER --- */
footer { background: #1a1a1a; padding: 2.5rem 4rem; margin-top: 4rem; }
.footer-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.footer-copyright { font-size: 1.08rem; color: #888; font-weight: 400; margin: 0; }
.footer-menu { display: flex; gap: 2rem; }
.footer-menu a { font-size: 1.08rem; color: #888; font-weight: 400; text-decoration: none; transition: color 0.3s ease; }
.footer-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  footer { padding: 2rem 1.5rem; }
  .footer-container { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-copyright { font-size: 0.95rem; order: 2; }
  .footer-menu { flex-direction: column; gap: 1rem; order: 1; }
  .footer-menu a { font-size: 0.95rem; }
}

/* --- OSMO MOBILE MENU --- */
.osmo-mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: calc(var(--z-overlay) - 1); display: none; }
.osmo-menu-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(19, 19, 19, 0.4); opacity: 0; cursor: pointer; }
.osmo-menu-container { position: absolute; top: 0; right: 0; width: 100%; max-width: 560px; height: 100%; overflow: hidden; }
.osmo-menu-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.osmo-bg-panel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: translateX(100%); }
.osmo-bg-1 { background-color: var(--accent); transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1) 0.1s; }
.osmo-bg-2 { background-color: #f0f0e8; transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1) 0.2s; }
.osmo-bg-3 { background-color: var(--bg-main); transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1) 0.3s; }

.osmo-menu-content {
  position: relative; z-index: var(--z-dropdown); height: 100%;
  padding: 120px 40px 40px; display: flex; flex-direction: column;
  opacity: 0; transform: translateX(30px);
}
.osmo-menu-list { list-style: none; padding: 0; margin: 0; flex: 1; }
.osmo-menu-item { margin-bottom: 20px; position: relative; overflow: hidden; }
.osmo-menu-link { display: flex; align-items: center; padding: 15px 0; text-decoration: none; color: inherit; position: relative; }
.osmo-menu-number { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--accent); min-width: 40px; margin-right: 20px; }
.osmo-menu-text {
  font-family: var(--font-head); font-size: 56px; font-weight: 900; line-height: 0.9;
  color: var(--text-main); text-transform: uppercase; position: relative; z-index: 2;
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1);
}
.osmo-menu-link-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: var(--text-main); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0, 1); z-index: var(--z-base);
}
.osmo-menu-link:hover .osmo-menu-text { transform: translateY(-8px); }
.osmo-menu-link:hover .osmo-menu-link-bg { transform: scaleY(1); }
.osmo-menu-contact { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.osmo-contact-label { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); margin-bottom: 15px; }
.osmo-contact-phone, .osmo-contact-email {
  display: block; font-family: var(--font-body); font-size: 18px; color: var(--text-main);
  text-decoration: none; margin-bottom: 10px; position: relative;
}
.osmo-contact-phone::after, .osmo-contact-email::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background-color: var(--accent); transition: width 0.4s cubic-bezier(0.65, 0.05, 0, 1);
}
.osmo-contact-phone:hover::after, .osmo-contact-email:hover::after { width: 100%; }

@media (max-width: 768px) {
  .osmo-menu-container { max-width: 100%; }
  .osmo-menu-content { padding: 100px 20px 30px; }
  .osmo-menu-text { font-size: 40px; }
}
@media (max-width: 480px) {
  .osmo-menu-text { font-size: 32px; }
  .osmo-menu-number { font-size: 12px; min-width: 30px; margin-right: 15px; }
}

/* --- WEBGL BACKGROUND --- */
#webgl-waves {
  display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; height: 100dvh;
  z-index: var(--z-background); pointer-events: none;
}
.no-webgl #webgl-waves { display: none; }
.no-webgl body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-main); z-index: var(--z-background);
}

/* ===========================================
   COMPANY & CONTACT PAGE STYLES
   =========================================== */

/* Page Hero */
.page-hero {
  position: relative; height: 60vh; min-height: 400px; width: 100%;
  overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 0;
}
.page-hero .hero-video-container { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-video-container video {
  width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0;
}
.page-hero .hero-video-container::after {
  content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.1); z-index: 1; pointer-events: none;
}

/* Intro Grid */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.intro-text p, .intro-history p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Before/After Slider */
.comparison-section { padding: 4rem 0; }
.comparison-container {
  position: relative; width: 100%; max-width: 900px; height: 500px;
  margin: 3rem auto 0; overflow: hidden; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); user-select: none;
}
.comparison-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.comparison-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.comparison-image.before { width: 50%; z-index: 2; border-right: 2px solid #fff; }

.comparison-image .label {
  position: absolute; top: 20px; padding: 5px 12px; background: rgba(0,0,0,0.7);
  color: white; font-size: 12px; font-weight: 700; letter-spacing: 1px; border-radius: 4px;
}
.comparison-image.after .label { right: 20px; }
.comparison-image.before .label { left: 20px; }

.comparison-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; z-index: 10; cursor: ew-resize; margin: 0; }
.slider-line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: white; z-index: 5; pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.slider-button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: var(--accent); border-radius: 50%;
  border: 2px solid white; z-index: 6; pointer-events: none; display: flex;
  align-items: center; justify-content: center; color: white;
}
.slider-button svg { width: 20px; height: 20px; }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.value-card {
  padding: 2rem; background: white; border: 1px solid rgba(0,0,0,0.05);
  border-left: 3px solid var(--accent); box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-5px); }
.value-card h4 { font-size: 1.25rem; margin-bottom: 1rem; }
.value-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Map Hero */
.map-hero {
  position: relative; width: 100%; height: 60vh; min-height: 450px; overflow: hidden; margin-bottom: 0;
}
.map-container { width: 100%; height: 100%; }

.map-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 80%, var(--bg-main) 100%); pointer-events: none;
}

/* Contact Page Grid */
.contact-page-section { padding: 4rem 0; }
.contact-grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.info-item { margin-bottom: 2rem; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-main); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.info-item p, .info-link { font-family: var(--font-body); font-size: 1.1rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.info-link:hover { color: var(--accent); }

.contact-form-col {
  background: #fff; padding: 3rem; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05); border-top: 3px solid var(--accent);
}
.contact-form-col h4 { margin-bottom: 2rem; font-size: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-main); }
.form-group input, .form-group textarea {
  width: 100%; padding: 1rem; background: #f9f9f9; border: 1px solid #eee; border-radius: 4px; transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { background: #fff; border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Responsive adjustments */
@media (max-width: 991px) {
  .intro-grid, .values-grid, .contact-grid-layout { grid-template-columns: 1fr; }
  .intro-grid, .contact-grid-layout { gap: 2rem; }
  .page-hero, .map-hero { height: 50vh; }
  .comparison-container { height: 350px; }
  .contact-form-col { padding: 2rem; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.8rem; }
  .comparison-container { height: 250px; }
  .map-hero { height: 40vh; }
  .contact-form-col { padding: 1.5rem; }
}

/* Permanent solid header for inner pages */
.top-bar.always-solid {
  background: rgba(245, 245, 240, 0.95) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 1rem var(--site-margin); /* Κρατάει το ύψος σταθερό */
}

/* GLOBAL BUTTON HOVER FIX */
.btn-hero:hover,
.contact-form .send-message-btn:hover {
    background-color: transparent !important;
    color: #D17028 !important;
    border-color: #D17028 !important;
    opacity: 1 !important;
}

.btn-hero:hover svg, 
.btn-hero:hover path,
.contact-form .send-message-btn:hover svg,
.contact-form .send-message-btn:hover path {
    fill: #D17028 !important;
    stroke: #D17028 !important;
}

/* ===========================================
   LEGAL PAGES STYLES (TERMS, PRIVACY)
   =========================================== */
.legal-page {
  padding: 8rem 0 4rem; /* Top padding for fixed header */
  min-height: 100vh;
  background-color: var(--bg-main);
}

.legal-container {
  width: 90%;
  max-width: 900px; /* Limits width to avoid edge-to-edge reading */
  margin: 0 auto;   /* Centers the container */
  padding: 0 2rem;
}

.legal-container h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-content h4 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.5rem;
}
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.5rem;
}
.legal-content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.legal-content p, .legal-content li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify; /* Optional: Cleaner document look */
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Sticky Back Button Styling */
.sticky-back-btn {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
  width: 50px;
  height: 50px;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  color: var(--text-main);
}

.sticky-back-btn:hover {
  transform: translateX(-5px);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .legal-container {
    width: 100%;
    padding: 0 1.5rem;
  }
  .legal-container h1 {
    font-size: 2rem;
  }
  .sticky-back-btn {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 991px) {
  /* Απόκρυψη του βαριού WebGL canvas */
  #webgl-waves {
    display: none !important;
  }
 
  
  /* Διασφάλιση ότι η εικόνα φαίνεται */
  .hero-video-container {
    background-image: url('assets/hero-image.webp');
    background-size: cover;
    background-position: center;
  }
}




/* Αφαίρεσε ή σχολίασε το παλιό pattern background */
body::before {
  display: none; /* ή διέγραψε όλο το rule */
}


/* MOBILE TEXT RESPONSIVENESS - Add at end of file */
@media (max-width: 768px) {
  h2:not(.main-title) { 
    font-size: 1.6rem; /* Smaller than 2rem (32px) on phones */
  }
}

/* ===========================================
   FAQ SECTION
   =========================================== */

#faq {
  position: relative;
  padding: 6rem 0;
  background-color: var(--bg-main);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
}




#faq {
  padding: 6rem 0;
  background-color: var(--bg-main);
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.faq-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 300;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-category {
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--bg-main);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.faq-category h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(209, 112, 40, 0.3);
}

.faq-item[open] {
  border-color: var(--accent);
  background: rgba(209, 112, 40, 0.02);
}

.faq-item summary {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--text-main);
  list-style: none;
  transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(209, 112, 40, 0.05);
}

.faq-item[open] summary {
  background: rgba(209, 112, 40, 0.08);
  color: var(--accent);
}

.faq-item summary span {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.plus-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item[open] .plus-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  animation: fadeIn 0.3s ease;
}

.faq-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.faq-content strong {
  color: var(--text-main);
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 991px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faq-category {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .faq-category {
    padding: 1.5rem;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
  }
  
  .faq-category h3 {
    font-size: 1.1rem;
  }
}

/* ===========================================
   GLOBAL TYPOGRAPHY UPGRADE
   =========================================== */

/* Βασικό μέγεθος για όλα τα p - desktop */
p {
  font-size: 1.1rem; /* ~17.6px αντί για 16px */
  line-height: 1.8;  /* Περισσότερος αέρας */
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Εξαιρέσεις - μικρότερα p όπου χρειάζεται */
.footer-copyright,
.footer-menu a,
.nav-link,
.section-tag,
.hero-subtitle,
.mobile-scroll-hint,
.slider-nav-text,
.loader-text {
  font-size: inherit; /* Κρατάει το original μέγεθος */
  line-height: inherit;
}

/* Cards και compact στοιχεία - λίγο μικρότερα */
.svc-card-text,
.value-card p,
.info-item p,
.card-info p {
  font-size: 1rem; /* ~16px */
  line-height: 1.7;
}

/* Legal pages (όροι χρήσης) - μεγαλύτερα για ανάγνωση */
.legal-content p,
.legal-content li {
  font-size: 1.15rem; /* ~18.4px */
  line-height: 1.9;
  color: #333;
}

/* Mobile προσαρμογές */
@media (max-width: 768px) {
  p {
    font-size: 1.05rem; /* Λίγο μικρότερο σε κινητό */
    line-height: 1.75;
  }
  
  .legal-content p,
  .legal-content li {
    font-size: 1.05rem;
    line-height: 1.8;
  }
}


/* ===========================================
   ΟΜΟΓΕΝΟΠΟΙΗΣΗ SECTION TAGS
   =========================================== */

/* Κάνε το "ΕΡΓΑ" ίδιο με "ΥΠΗΡΕΣΙΕΣ", "ΣΧΕΤΙΚΑ ΜΕ ΕΜΑΣ", κλπ */
.section-tag,
.subtitle {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;      /* Ίδιο μέγεθος */
  letter-spacing: 2.5px;   /* Ίδιο spacing */
  display: block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Και τα h2 τίτλοι από κάτω να έχουν ίδιο μέγεθος παντού */
.main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* Ειδικά για το ΕΡΓΑ - αφαίρεση extra margins που μπορεί να έχει */
#projects .subtitle {
  margin-bottom: 1rem;
  padding: 0;
}
/* ===========================================
   FIX: ΕΡΓΑ section same as others
   =========================================== */

/* 1. Padding ίδιο με άλλα sections */
section#projects {
  padding: 6rem 0 !important;
}

/* 2. Header styling ίδιο με τα άλλα sections */
#projects .slider-header {
  text-align: center;
  margin-bottom: 1rem !important;
  padding: 0 2rem;
}

/* 3. Το "ΕΡΓΑ" tag ίδιο μέγεθος με "ΥΠΗΡΕΣΙΕΣ" (1rem) */
#projects .slider-header .subtitle {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;        /* Changed from 0.85rem to 1rem */
  letter-spacing: 2.5px !important;
  margin-bottom: 1rem !important;
  display: block;
  text-transform: uppercase;
}

/* 4. Τίτλος "Δείτε τις δημιουργίες μας" ίδιος με τους άλλους */
#projects .slider-header .main-title {
  font-size: clamp(36px, 5vw, 56px) !important;
  font-weight: 900 !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.1 !important;
}

/* 5. Απόσταση από τίτλο στο περιεχόμενο */
#projects .slider-container {
  margin-top: 2.5rem;
}

/* Mobile */
@media (max-width: 1024px) {
  section#projects {
    padding: 4rem 0 !important;
  }
}
/* ============================================
   LEGAL SUBSECTION HEADINGS (h5)
   ============================================ */
.legal-content h5 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

/* ============================================
   COOKIE CONSENT — banner + settings modal
   ============================================ */
.cc-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 48px);
  max-width: 640px;
  background: #fff;
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 1.6rem 1.8rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cc-banner.cc-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cc-banner p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1.2rem;
}
.cc-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cc-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--text-main);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
}
.cc-btn:hover { background: var(--text-main); color: #fff; }
.cc-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cc-btn--primary:hover { background: var(--text-main); border-color: var(--text-main); }
.cc-btn--link {
  border-color: transparent;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-btn--link:hover { background: transparent; color: var(--accent); }

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cc-modal-overlay.cc-show { opacity: 1; pointer-events: auto; }
.cc-modal {
  background: var(--bg-main);
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.2rem;
  border-top: 3px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.cc-modal-overlay.cc-show .cc-modal { transform: translateY(0); }
.cc-modal h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  margin: 0 0 1.5rem;
}
.cc-cat { border-bottom: 1px solid rgba(0,0,0,0.08); padding: 1.1rem 0; }
.cc-cat:last-of-type { border-bottom: none; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.cc-cat-head h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0; }
.cc-cat p { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); margin: 0; }
.cc-always { font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.cc-switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; transition: 0.3s; border-radius: 24px; }
.cc-slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; transition: 0.3s; border-radius: 50%; }
.cc-switch input:checked + .cc-slider { background: var(--accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(22px); }
.cc-switch input:disabled + .cc-slider { background: var(--accent); opacity: 0.5; cursor: not-allowed; }
.cc-modal-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.cc-contact-block { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(0,0,0,0.08); }
.cc-contact-block h4 { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-main); margin: 0 0 0.8rem; }
.cc-contact-block p { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); margin: 0 0 0.4rem; }
.cc-contact-block a { color: var(--accent); text-decoration: none; }
.cc-contact-block a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .cc-banner { padding: 1.3rem; bottom: 12px; }
  .cc-actions { flex-direction: column; }
  .cc-btn { width: 100%; text-align: center; }
  .cc-modal { padding: 1.6rem; }
  .cc-modal-actions { flex-direction: column; }
  .cc-modal-actions .cc-btn { width: 100%; text-align: center; }
}
