/*
Theme Name: DW Child - Linis IT
Theme URI: https://linis.it/
Description: Child theme for Divi (DW child). Brand palette, fonts, hero styles, and bilingual language switcher.
Author: Dariusz Wit
Author URI: mailto:dariusz.wit@linis.it
Template: Divi
Version: 1.2.0
Text Domain: dw-child-linis
*/

/* Brand colors as CSS variables */
:root{
  --cc-navy: #00274A;
  --cc-cream: #F4EBD3;
  --cc-accent: #F28705;
  --cc-sand: #EADFC6;
  --cc-text: #2E3438;
  --cc-bg: #F5F6F7;
}

/* Base styles */
body {
  margin:0;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cc-bg);
  color: var(--cc-text);
}

/* Hero utilities (non-forcing) */
.site-hero { min-height:420px; display:flex; align-items:center; justify-content:center; position:relative; }
.site-hero.bg-cover {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: var(--cc-cream);
}

/* Provide visual debugging hook */
.linis-hero-applied { outline: none !important; }

/* Ensure content above background */
.dwc-force-hero .dwc-hero-inner { position: relative; z-index: 2; }

/* ─── Language Switcher ─── */
.dwc-lang-switcher {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Inter", sans-serif;
}

.dwc-lang-switcher a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 12px;
  background: var(--cc-navy);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, transform 0.2s ease;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
}

.dwc-lang-switcher a:hover {
  background: var(--cc-accent);
  transform: translateX(-4px);
}

.dwc-lang-switcher a.active {
  background: var(--cc-accent);
  cursor: default;
  pointer-events: none;
}

.dwc-lang-switcher .dwc-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Admin bar offset */
.admin-bar .dwc-lang-switcher {
  top: calc(50% + 16px);
}

/* Mobile: bottom bar */
@media (max-width: 767px) {
  .dwc-lang-switcher {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    border-radius: 0;
  }
  .dwc-lang-switcher a {
    border-radius: 0;
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 12px;
  }
  .admin-bar .dwc-lang-switcher {
    top: auto;
    bottom: 0;
  }
}

/* End of style.css */
