:root {
  --nav-bg: #ffffff;
  --nav-link: #555;
  --fz-body: clamp(14px, 1vw + 10px, 18px);
}

body{
  margin: 0px; 
  padding: 0px;
  background-color:#F8F8F8;
  font-family: sans-serif;
  font-size: var(--fz-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p,
li {
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* NAVIGATE BAR */
#navigation-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
}

#navigation-bar-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* IMAGE OF LOGO DEFENDER */
a>img {
  width: 198px;
  height: 52px;
}

/* BUTTONS OF NAVIGATION BAR */
.nav-links {
  list-style-type: none;
  padding: 0px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

ul li{
  color:#758694;
  font-size: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: grey;
  font-size: 1.3rem;
}

nav ul li a:hover {
  border-bottom: 2px solid #A6A6A6;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* LANGUAGE SWITCHER */
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.selected-language {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* MAIN FLAG */
.selected-language .fi {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #ccc;
}

/* DROPDOWN */
.language-dropdown {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  min-width: 100px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.show {
  display: block;
}

/* ITEMS */
.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  text-decoration: none; 
  color: black; 
}

.language-option:hover {
  background: #f4f4f4;
}

/* FLAGS IN MENU */
.language-option .fi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px #ccc;
}

hr {
  margin: 0px;
}

/* SECTION CONTACT US */
.container-header {
  text-align: center;
}

.header-text{
  font-size: 3rem;
  color: black;
  margin: 15px 0px;
}  

/* SECTION MAP */
.container-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F8F8F8;
}

.container-grid {
  grid-template-columns: 1fr 0.4fr;
  display: grid;
  width: 90%;
  background-color: white;
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, .1);
  margin: 0px 20px 35px 20px;
}

.map-container {
  padding: 35px 50px;
}

iframe {
  width: 100%;
  height: 650px;
}

.text-container {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: left;
  padding: 35px 50px;
}

.bold-text {
  margin: 0px;
}

p {
  color: black;
  font-size: 1rem;
  margin: 0 0 30px 0;
}

.special{
  margin: 0px;
}

/* FOOTER */
.footer-wrapper {
  margin-top: auto;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.footer-left {
  display: flex;
  text-align: left;
}

.footer-text{
  color: black;
  font-size: 1.7rem;
  margin: 0
}

.socials {
  display: flex;
  gap: 15px;
  font-size: 24px;
}

.socials i {
  font-size: 30px;
  color: black
}

.socials a:hover {
  color: #0077ff;
  transform: scale(1.2);
}

/* ===== Global image behavior ===== */
img,
.image-container img,
iframe {
  max-width: 100%;
}

img,
.image-container img {
  display: block;
  height: auto;
}

iframe {
  width: 100%;
  border: 0;
}

/* Prevent overflow from editor-generated inline image sizes */
.wnd-image-container img {
  width: 100% !important;
  height: auto !important;
  position: static !important;
}

/* ===== Content containment ===== */
.container-grid,
section {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.container-grid > *{
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Images inside grid/card sections */
.container-grid img,
section img,
.image-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ===== Tablet / smaller desktop ===== */
@media (max-width: 1145px) {
  #navigation-bar {
    padding: 0.75rem 1rem;
  }

  #logo-img img,
  a > img,
  #navigation-bar img {
    width: clamp(140px, 25vw, 200px);
    height: auto;
  }

  nav ul.nav-links {
    position: absolute;
    top: 64px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--nav-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  nav ul.nav-links.active {
    display: flex;
  }

  nav ul li a {
    font-size: 1rem;
    color: var(--nav-link);
  }

  .hamburger {
    display: block;
    font-size: 3rem;
  }

  /* Stack main content blocks vertically */
  .container-grid,
  .row,
  .columns,
  .cards,
  .section-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }

  .container-grid > *,
  .row > *,
  .columns > *,
  .cards > *,
  .section-row > * {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Neutralize old float/column systems */
  .left,
  .right,
  .column,
  .col,
  [class*="col-"] {
    float: none !important;
    width: 100% !important;
  }

  /* Comfortable padding for text/image blocks */
  iframe {
    height: 380px;
  }

  .text-container{
    padding: 0px 60px !important;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  #logo-img img,
  a > img,
  #navigation-bar img {
    width: clamp(110px, 33vw, 160px);
    height: auto;
  }

  p,
  li {
    font-size: 0.8rem !important;
  }

  .text-container{
    padding: 0px 60px !important; 
  }

  .header-text{
    font-size: 1.4rem !important;
  }
}

/* ===== Small spacing adjustments ===== */
@media (max-width: 768px) {
  .text-container{
    padding: 0px 60px !important; 
  }
}