/* AIRKAM site overrides — loaded after theme.css, responsive.css, dark.css */

:root {
  --brand: #f24a00;       /* visual accent (focus outline, decorative bg) */
  --brand-pill: #d63a00;  /* pill bg — 4.67:1 with white text (WCAG AA) */
  --brand-on-dark: #ff5500; /* orange used as TEXT on dark — 4.96:1 (WCAG AA) */
  --bg: #242323;
  --bg-elev: #2b2b2b;
  --text-muted: #b8b8b8;
}

/* ========== WCAG AA contrast fixes for brand-orange pills ==========
   White text on the original orange (#f14201) is 4.27:1 — just below
   the 4.5:1 minimum. Pills get a darker orange (4.67:1) below. */

.zoom-services__title,
.zoom-counter__subtitle,
.zoom-slider__title {
  background-color: var(--brand-pill) !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  border: 0 !important;
}

.zoom-services__item:hover {
  background-color: var(--brand-pill);
}

.zoom-counter__read-more:hover,
.zoom-counter__read-more_active {
  color: var(--brand-on-dark);
}

/* Generic .link active/hover uses the original brand orange (#f24a00, 4.29:1
   on dark — fails AA). Override to the AA-compliant text-on-dark token. */
.link:hover,
.link_active {
  color: var(--brand-on-dark) !important;
}

/* The hero + about-counter elements are set to opacity:0 by theme.js as part of
   a scroll-pin fade-in. Accessibility scanners read computed text as fully
   transparent ("rgba(255,255,255,0) on #242323") and flag contrast failure.
   Force them visible — the entrance is no longer animated, but the page
   becomes WCAG-compliant. */
.zoom-image-head__subtitle,
.zoom-image-head__title,
.zoom-image-head__text,
.zoom-image-head__icon,
.zoom-counter__card,
.zoom-counter__title,
.zoom-counter__subtitle,
.zoom-counter__text,
.zoom-counter__read-more {
  opacity: 1 !important;
  transform: none !important;
}

/* Solid dark background for the page so the hero sits cleanly */
body, main { background: var(--bg); }
.page__inner { background: var(--bg); }

/* ========== Accessibility: focus, skip link, reduced motion ========== */
a:focus,
button:focus,
[role="button"]:focus,
input:focus,
[tabindex]:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
.zoom-services__item:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-pill);
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== Header: structure + WCAG contrast ========== */

/* Always-on translucent dark bg so header text is readable on any hero photo */
.header__container {
  background: rgba(36, 35, 35, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0;
  padding-bottom: 0;
}

/* Desktop: single-row header (logo | nav | lang). Mobile: top row (logo + burger). */
.header__logo_desktop { display: none; }

@media (min-width: 992px) {
  .header__menu-button { display: none; }
  .header__wrapper { display: none; }

  /* Take .header-fixed out of absolute flow so it occupies actual header space */
  .header-fixed {
    position: static;
    bottom: auto;
  }

  .header-fixed__bottom {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
    min-height: 80px;
  }

  .header__logo_desktop {
    display: inline-flex;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    line-height: 0;
  }

  /* Nav fills the middle and centers its items between logo and lang */
  .header-fixed__bottom > nav {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
  }

  .header-fixed__bottom .top-menu {
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .header-fixed__bottom .top-menu__menu-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 8px 0;
  }

  .header-fixed__bottom > .top-menu__lang {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-left: 24px;
  }

  /* Pinned/scrolled state already gets dark bg from dark.css — keep it solid there */
  .header_is_fixed .header__container {
    background: #242323;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 991px) {
  .header__container {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .header__wrapper { margin-bottom: 0; }
}

/* ========== Logo (square image) ========== */
.header__logo {
  display: inline-block;
  line-height: 0;
  letter-spacing: 0;
}

.logo__image {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 575px) {
  .logo__image {
    width: 40px;
    height: 40px;
  }
}

.footer-studio__logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 18px;
  transition: opacity 0.3s;
}

.footer-studio__logo:hover {
  opacity: 0.85;
}

.footer-studio__logo-image {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ========== Top menu: force white text in desktop header ========== */
.header__container .top-menu__menu-link {
  color: #fff;
}

.header__container .top-menu__menu-link:hover,
.header__container .top-menu__menu-link_active {
  color: var(--brand-on-dark);
}

/* Even after scroll-pinned state */
.header_is_fixed .header__container .top-menu__menu-link {
  color: #fff;
}

/* ========== Top menu: language switcher ========== */
.top-menu__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.top-menu__lang-link {
  color: #d9d9d9;
  text-decoration: none;
  padding: 6px 6px;
  transition: color 0.3s;
}

.top-menu__lang-link:hover {
  color: var(--brand-on-dark);
}

.top-menu__lang-link_active {
  color: var(--brand-on-dark);
}

.top-menu__lang-sep {
  color: #666;
  user-select: none;
}

@media (max-width: 991px) {
  .top-menu__lang-link {
    padding: 10px 8px;
  }
}

/* ========== Service items: smaller, accessible text ========== */
.zoom-services__item {
  padding: 30px 24px;
}

.zoom-services__item-head {
  display: block;
  margin-bottom: 14px;
}

.zoom-services__item-head .zoom-services__item-icon {
  margin-bottom: 18px;
  font-size: 36px;
}

.zoom-services__item-title {
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  font-family: 'Teko', Helvetica, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.zoom-services__item-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.zoom-services__item:hover .zoom-services__item-text {
  color: #fff;
}

/* ========== List column modifiers ========== */
.zoom-services__list_3-col .zoom-services__item {
  width: 33.3333%;
}

/* 5-col: 2 items on top row (50%) + 3 items on bottom row (33.33%) */
.zoom-services__list_5-col .zoom-services__item {
  width: 33.3333%;
}

.zoom-services__list_5-col .zoom-services__item:nth-child(1),
.zoom-services__list_5-col .zoom-services__item:nth-child(2) {
  width: 50%;
}

@media (max-width: 991px) {
  .zoom-services__list_3-col .zoom-services__item,
  .zoom-services__list_5-col .zoom-services__item,
  .zoom-services__list_5-col .zoom-services__item:nth-child(1),
  .zoom-services__list_5-col .zoom-services__item:nth-child(2) {
    width: 50%;
  }
}

/* Keep 2 columns at small tablets, single column only on phones */
@media (max-width: 767px) {
  .zoom-services__list,
  .zoom-services__list_3-col,
  .zoom-services__list_5-col {
    display: -ms-flexbox;
    display: flex;
  }
  .zoom-services__item,
  .zoom-services__list_3-col .zoom-services__item,
  .zoom-services__list_5-col .zoom-services__item,
  .zoom-services__list_5-col .zoom-services__item:nth-child(1),
  .zoom-services__list_5-col .zoom-services__item:nth-child(2) {
    width: 50%;
  }
}

@media (max-width: 575px) {
  .zoom-services__list,
  .zoom-services__list_3-col,
  .zoom-services__list_5-col {
    display: block;
  }
  .zoom-services__item,
  .zoom-services__list_3-col .zoom-services__item,
  .zoom-services__list_5-col .zoom-services__item,
  .zoom-services__list_5-col .zoom-services__item:nth-child(1),
  .zoom-services__list_5-col .zoom-services__item:nth-child(2) {
    width: 100%;
    padding: 22px 22px 26px;
  }
  .zoom-services__item-head {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }
  .zoom-services__item-head .zoom-services__item-icon {
    font-size: 28px;
    margin-bottom: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    line-height: 1;
  }
  .zoom-services__item-head .zoom-services__item-title {
    font-size: 22px;
  }
}

/* ========== Hero title: smaller for long Greek copy ========== */
.zoom-image-head__title,
.zoom-counter__title,
.zoom-services__item-title,
.zoom-services__title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 1199px) {
  .zoom-image-head__title { font-size: 84px; }
}

@media (max-width: 991px) {
  .zoom-image-head__title { font-size: 60px; }
  .zoom-image-head__content { padding-top: 80px; }
}

@media (max-width: 575px) {
  .zoom-image-head__title { font-size: 40px; margin-bottom: 22px; }
  .zoom-image-head__subtitle { font-size: 16px; margin-bottom: 16px; }
  .zoom-image-head__icon { margin-top: 5vh; font-size: 36px; }
}

/* ========== Counter section: better mobile spacing ========== */
@media (max-width: 575px) {
  .zoom-counter { padding: 70px 0 30px; }
  .zoom-counter__title { font-size: 44px; margin-bottom: 26px; line-height: 1; }
  .zoom-counter__card { padding: 38px 30px 44px 36px; margin-bottom: 36px; }
  .zoom-counter__card-title { font-size: 22px; margin-bottom: 50px; }
  .zoom-counter__card-description { font-size: 18px; }
  .zoom-counter__text { margin-bottom: 36px; }
}

/* ========== Body text contrast on dark bg (WCAG AA) ========== */
.zoom-counter__text {
  color: var(--text-muted);
}

.zoom-counter__text p {
  color: inherit;
}

/* Indent the bullet list so bullets don't touch the container edge */
.zoom-counter__text ul {
  list-style: disc outside;
  margin: 14px 0 24px;
  padding-left: 24px;
}

.zoom-counter__text li {
  padding-left: 6px;
  margin-bottom: 8px;
  color: inherit;
}

/* Card-title labels need more padding-right inside the dark inner frame */
.zoom-counter__card-title {
  padding-right: 8px;
}

@media (max-width: 575px) {
  .zoom-counter__card-title {
    padding-right: 12px;
  }
}

.zoom-counter__title { color: #fff; }
.zoom-services__title { color: #fff; }
.zoom-services__item-title { color: #fff; }
.zoom-services__item:hover .zoom-services__item-title { color: #fff; }

/* Hero text on light hero photo: keep dark contrast unless image is dark */
.zoom-image-head { color: #fff; position: relative; }
.zoom-image-head__title {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}
.zoom-image-head__subtitle {
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}
.zoom-image-head__text {
  color: #f0f0f0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* Dark gradient overlay — guarantees AA contrast over any hero photo */
.zoom-image-head__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0, 0, 0, 0.55) 0%,
              rgba(0, 0, 0, 0.30) 35%,
              rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
  pointer-events: none;
}

.zoom-image-head__content {
  position: relative;
  z-index: 4;
}

/* ========== Footer: small banner inside first column ========== */
.footer-banner__link {
  display: block;
  margin-top: 22px;
  max-width: 280px;
  line-height: 0;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

.footer-banner__link:hover,
.footer-banner__link:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== Footer text wrapping for long copy ========== */
.footer-studio__group-title,
.footer-studio__list-link,
.footer-studio p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Footer link contrast on dark bg */
.footer-studio__list-link,
.footer-studio p a {
  color: #d9d9d9;
}

.footer-studio__list-link:hover,
.footer-studio p a:hover {
  color: #fff;
}

/* ========== Zoom slider polish on dark ========== */
.zoom-slider {
  margin-bottom: 100px;
}

.zoom-slider__title {
  color: #fff;
}

/* Bottom-fade gradient so the thumb-button labels stay readable on any photo */
.zoom-slider__slide {
  position: relative;
}

.zoom-slider__slide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(to bottom,
              rgba(0, 0, 0, 0) 0%,
              rgba(0, 0, 0, 0.35) 45%,
              rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Thumb buttons must sit above the gradient */
.zoom-slider__buttons {
  z-index: 3;
}

.zoom-slider__filter-link {
  color: var(--text-muted);
}

.zoom-slider__filter-link:hover,
.zoom-slider__filter-link.link_active {
  color: var(--brand-on-dark);
}

.zoom-slider__head-link {
  color: #d9d9d9;
}

.zoom-slider__head-link:hover {
  color: var(--brand-on-dark);
}

.zoom-slider__button {
  color: #d9d9d9;
}

.zoom-slider__button-title {
  color: #fff;
}

@media (max-width: 991px) {
  .zoom-slider__filter {
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 18px 0;
  }
}

/* ========== Visually-hidden helper (for screen-reader-only text) ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
