/*
Theme Name: OPTIT Fullscreen
Theme URI: https://optit.gr/
Author: OPTIT
Description: Custom bilingual fullscreen presentation theme for OPTIT.
Version: 2.3.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: optit
*/

:root {
  --optit-blue: #0867ff;
  --optit-navy: #061a3a;
  --optit-white: #fff;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--optit-navy); color: var(--optit-white); font-family: Inter, Arial, sans-serif; }
button, a { font: inherit; }

.optit-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(22px, 5vw, 80px);
  pointer-events: none;
}

.optit-logo {
  display: block;
  width: clamp(68px, 6vw, 100px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.25));
  pointer-events: auto;
}

.language-switcher {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(2,12,31,.3);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.language-switcher button {
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.language-switcher button.is-active { background: var(--optit-blue); }

.slides { height: 100vh; transition: transform .85s cubic-bezier(.77,0,.175,1); }
.slide {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background-position: center;
  background-size: cover;
}
.slide::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, rgba(1,12,32,.82), rgba(1,12,32,.38) 60%, rgba(1,12,32,.55));
}
.slide-content {
  width: min(1120px, calc(100% - 44px));
  padding-left: clamp(0px, 5vw, 80px);
  text-align: left;
  text-shadow: 0 3px 20px rgba(0,0,0,.35);
}
.slide h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3.5vw, 50px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -.025em;
}
.slide p {
  max-width: 650px;
  margin: 0;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
}
.optit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-width: 190px;
  padding: 15px 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  background: var(--optit-blue);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,80,255,.32);
  transition: transform .2s ease, background .2s ease;
}
.optit-cta:hover { transform: translateY(-2px); background: #0054dc; }

.slide-1 { background-image: url('assets/images/offer-platform.webp'); }
.slide-2 { background-image: url('assets/images/bookings-digital.webp'); }
.slide-3 { background-image: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=2200&q=85'); }
.slide-4 { background-image: url('assets/images/eshop-design.webp'); }
.slide-5 { background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2200&q=85'); }

.offer-slide::before { background: linear-gradient(90deg, rgba(1,10,29,.78) 0%, rgba(1,10,29,.35) 55%, rgba(1,10,29,.2) 100%); }
.home-services {
  width: min(1120px, calc(100% - 44px));
  padding-left: clamp(0px, 5vw, 80px);
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
.home-services-list {
  width: min(520px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-services-list li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 25px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 2.5vw, 40px);
  line-height: 1.12;
  font-weight: 700;
}
.home-services-list li::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--optit-blue);
  box-shadow: 0 0 18px rgba(8,103,255,.85);
}
.slide-more-button { margin-top: 24px; border: 0; cursor: pointer; }
.service-modal[hidden] { display: none; }
.service-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,7,22,.84);
  backdrop-filter: blur(10px);
}
.service-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(3,18,48,.98), rgba(5,40,94,.96));
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.service-modal-panel h2 {
  margin: 0 52px 22px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 3vw, 42px);
}
.service-modal-panel ul { margin: 0; padding-left: 22px; }
.service-modal-panel li { margin-bottom: 11px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.4; }
.service-modal-panel li::marker { color: var(--optit-blue); }
.service-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-slide { place-items: start center; padding: clamp(105px, 13vh, 145px) 22px 90px; overflow-y: auto; }
.contact-wrap { width: min(760px, 100%); }
.contact-title {
  margin: 0 0 clamp(125px, 17vh, 175px);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(25px, 3vw, 44px);
  line-height: 1.08;
  text-align: left;
  white-space: nowrap;
}
.contact-grid { display: grid; gap: 18px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input:not([type='checkbox']), .contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px;
  padding: 12px 13px;
  color: #fff;
  background: rgba(4,16,39,.44);
  outline: none;
}
.contact-form textarea { min-height: 105px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.76); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--optit-blue); }
.human-check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.human-check input { width: 18px; height: 18px; accent-color: var(--optit-blue); }
.contact-submit { justify-self: start; border: 0; cursor: pointer; margin-top: 0; min-width: 150px; padding: 12px 21px; }
.form-notice { grid-column: 1/-1; padding: 10px 12px; border-radius: 5px; background: rgba(0,103,255,.78); }
.optit-hp { position: absolute !important; left: -9999px !important; }

@media (min-width: 641px) {
  .contact-form { transform: translateY(90px); }
}

.slide-controls {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 22px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.slide-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(2,12,31,.32);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease;
}
.slide-arrow:hover { background: var(--optit-blue); }
.slide-arrow:disabled { opacity: .28; cursor: default; }
.slide-arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; }

@media (max-width: 640px) {
  .optit-header { padding: 16px 18px; }
  .slide-content { padding: 0 6px 34px; }
  .slide h1 { font-size: clamp(29px, 9vw, 40px); }
  .slide p { font-size: 15px; }
  .home-services { padding: 0 6px 34px; }
  .home-services-list li { font-size: clamp(24px, 8vw, 34px); }
  .service-modal { padding: 12px; }
  .service-modal-panel { max-height: calc(100vh - 24px); padding: 28px 20px; }
  .slide-controls { bottom: 16px; }
  .slide-arrow { width: 42px; height: 42px; }
  .contact-slide { padding: 92px 18px 82px; }
  .contact-title { margin-bottom: 76px; font-size: clamp(19px, 5.6vw, 25px); }
  .contact-grid { gap: 18px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form > * { grid-column: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { transition: none; }
  .optit-cta { transition: none; }
}
