/* --- CSS RESET & BASE NORMALIZE --- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  background: #F7F7F9;
  color: #22293B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2BC6A7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22293B;
}
ul { list-style: none; }

/* --- BRAND TYPOGRAPHY & GLOBAL COLORS --- */
:root {
  --color-primary: #22293B;
  --color-secondary: #F7F7F9;
  --color-accent: #2BC6A7;
  --color-accent-dark: #19957F;
  --color-contrast-bg: #fff;
  --color-text: #22293B;
  --color-muted: #95A0B2;
  --color-shadow: rgba(34,41,59,0.08);
  --radius: 16px;
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

h1,h2,h3,h4 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p, li, a, span, label, input, textarea {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  font-size: 1rem;
}
strong, b {
  font-weight: 700;
}

/* --- BASE LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-contrast-bg);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 24px 10px;
    margin-bottom: 40px;
  }
}

/* --- HEADER NAVIGATION --- */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
  gap: 24px;
}
header img[alt="Opal Escape"] {
  height: 44px;
  width: auto;
  margin-right: 30px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.16s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-contrast-bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 32px;
  border-radius: 26px;
  box-shadow: 0 2px 16px var(--color-shadow);
  border: none;
  outline: none;
  margin-left: 22px;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.22s;
  position: relative;
}
.cta-btn:active, .cta-btn:focus {
  background: var(--color-accent-dark);
}
.cta-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 2px 22px rgba(43,198,167,0.18);
  transform: translateY(-2px) scale(1.02);
}

/* HAMBURGER MENU ICON */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 14px;
  z-index: 5001;
  transition: color 0.2s;
  padding: 6px 12px;
  border-radius: 8px;
}
.mobile-menu-toggle:hover {
  color: var(--color-accent);
  background: rgba(34, 41, 59, 0.10);
}
@media (max-width: 1000px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- MOBILE SLIDE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  z-index: 5000;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.57,.42,.25,1), opacity 0.28s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 24px 0 auto;
  background: none;
  color: var(--color-accent);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 5002;
  transition: color 0.2s;
  padding: 6px 12px;
  border-radius: 8px;
}
.mobile-menu-close:hover {
  color: #fff;
  background: rgba(43, 198, 167, 0.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 48px 32px 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.25rem;
  text-transform: uppercase;
  padding: 13px 0;
  width: 100%;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
@media (min-width: 1000px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN SECTIONS & FLEX LAYOUTS --- */
main section {
  margin-bottom: 60px;
  padding: 0;
}
main section .container {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  main section {
    margin-bottom: 32px;
  }
}

/* --- FLEX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-contrast-bg);
  border-radius: var(--radius);
  box-shadow: 0 2px 18px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.21s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 260px;
  flex: 1 1 320px;
  padding: 28px 22px 24px 22px;
}
.card:hover {
  box-shadow: 0 6px 36px rgba(43,198,167,0.13);
  transform: translateY(-4px) scale(1.01);
  z-index: 1;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-secondary);
  border-radius: 14px;
  box-shadow: 0 1.5px 10px var(--color-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 520px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow 0.14s, border-color 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 22px rgba(43,198,167,0.11);
  border-left: 6px solid var(--color-primary);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.09rem;
  font-weight: 500;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.testimonial-card b {
  color: var(--color-accent);
  font-family: var(--font-display);
  letter-spacing: 1.3px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- ICONS with TEXT LISTS --- */
li img {
  vertical-align: middle;
  margin-right: 12px;
  width: 24px;
  height: 24px;
}
ul li, ol li {
  margin-bottom: 14px;
  font-size: 1.07rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

/* --- BUTTONS --- */
button {
  font-family: var(--font-display);
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
  transition: background 0.18s, color 0.16s;
}

/* --- SECTION LINKS --- */
.section a.cta-btn {
  margin-left: 0;
  margin-top: 12px;
}

/* --- CARDS IN SERVICES, USLUGI AND OFFERS LISTS --- */
.section ul>li, .section ol>li {
  background: var(--color-secondary);
  border-radius: 12px;
  box-shadow: 0 1.5px 10px var(--color-shadow);
  padding: 20px 24px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.section ul>li:last-child, .section ol>li:last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .section ul>li, .section ol>li {
    padding: 15px 10px 15px 10px;
  }
}

/* --- ADVANTAGES/VALUES HIGHLIGHT --- */
.section ul>li b, .section ol>li b {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.07rem;
}

/* --- FOOTER --- */
footer {
  background: #22293B;
  color: #fff;
  position: relative;
  padding: 0;
  min-height: 110px;
  margin-top: 0;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 36px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  border-top: none;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
  transition: color 0.17s, opacity 0.17s;
}
footer nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}
footer .text-section {
  color: #fff;
  font-size: 1rem;
  margin-top: 8px;
  font-family: var(--font-body);
}
footer .text-section img {
  margin-right: 8px;
  height: 22px;
  width: 22px;
  vertical-align: middle;
}
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
footer .social-links a img {
  width: 32px;
  height: 32px;
  opacity: 0.82;
  transition: opacity 0.17s, filter 0.17s;
  border-radius: 6px;
}
footer .social-links a:hover img {
  opacity: 1;
  filter: brightness(1.15);
}
footer img[alt="Opal Escape"] {
  height: 40px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  footer .container {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  footer .text-section img {
    height: 16px;
    width: 16px;
  }
}

/* --- BASIC FORM ELEMENTS --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 14px;
  border: 2px solid #E2E3EA;
  border-radius: 8px;
  background: #fff;
  color: var(--color-primary);
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--color-accent);
  outline: none;
}
label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: block;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--color-primary);
  color: #fff;
  z-index: 9998;
  padding: 18px 32px;
  box-shadow: 0 -2px 24px rgba(34,41,59,0.16);
  font-family: var(--font-body);
  font-size: 16px;
  gap: 24px;
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.51,.02,.44,1.45), opacity 0.23s;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s;
  margin-right: 0px;
  box-shadow: 0 1px 6px var(--color-shadow);
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-settings-btn {
  background: transparent;
  color: #fff;
  border: 2px solid var(--color-accent);
  padding: 9px 24px;
}
.cookie-settings-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
    font-size: 15px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,41,59, 0.57);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 22px;
  padding: 34px 42px;
  max-width: 400px;
  box-shadow: 0 4px 34px rgba(43,198,167,0.16);
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 14px;
}
.cookie-modal-content label {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
  margin-right: 8px;
}
.cookie-modal-content .cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: transparent;
  color: var(--color-primary);
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover {
  color: var(--color-accent);
}
@media (max-width: 600px) {
  .cookie-modal-content {
    max-width: 98vw;
    padding: 20px 7vw;
  }
}

/* --- MISC--- */
::-webkit-scrollbar { width: 8px; background: #E4E6F1; }
::-webkit-scrollbar-thumb { background: #CBD0DC; border-radius: 6px; }

hr {
  border: none;
  border-top: 2px solid var(--color-accent);
  margin: 28px auto 28px auto;
}

/* --- GEOMETRIC DECORATIVE ELEMENTS --- */
.geoshape {
  display: block;
  position: absolute;
  z-index: 0;
  opacity: 0.08;
}

/* --- ANIMATIONS --- */
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,198,167,0.21); }
  70%  { box-shadow: 0 0 0 18px rgba(43,198,167,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,198,167,0); }
}
.cta-btn.pulse {
  animation: btnPulse 1.6s infinite;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  main .container, .section .container { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; padding-right: 0; }
  h2 { font-size: 1.12rem; }
  header img, footer img { height: 29px !important; }
  .cta-btn, .cookie-btn, .cookie-settings-btn {
    font-size: 0.94rem;
    padding: 11px 14px;
  }
}

/* --- MISC: Z-INDEX LAYERS ---*/
header, footer { z-index: 10; position: relative; }
.mobile-menu { z-index: 5000; }
.cookie-banner { z-index: 7000; }
.cookie-modal { z-index: 10000; }

/* --- PRINT --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body, .section, .container { background: #fff; color: #000; }
}
