/* =======================================================
   Kosira Profit - Luxury Premium CSS
   Brand Style: luxury_premium | Flexbox-Only Layouts
   Author: Senior CSS Developer (professional, modern, polish)
   ======================================================= */

/* ---- 1. CSS RESET & 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;
  box-sizing: border-box;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  min-height: 100vh;
  background: #f7f8fa;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #25304a;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ---- 2. BRAND PALETTE & LUXURY PREMIUM ---- */
:root {
  --primary: #183153;
  --secondary: #27A49C;
  --accent: #fff;
  --gold: #D4AF37;
  --gray-dark: #2A3242;
  --gray-light: #EFF1F5;
  --border: #EAEEF2;
  --shadow: 0 6px 32px rgba(24, 49, 83, 0.07);
  --radius: 18px;
}

/* Luxury fonts */
h1, h2, h3, .cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* ---- 3. ROOT STRUCTURE & SPACING SYSTEM ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: stretch;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 22px 18px 22px;
  background: var(--gray-light);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(24,49,83,0.04);
}

/* ---- 4. TYPOGRAPHY ---- */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--gray-dark);
}
strong { font-weight: bold; color: var(--primary); }

ul, ol { margin-bottom: 14px; }
ul li, ol li {
  padding-left: 2px;
  margin-bottom: 8px;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.text-section { max-width: 680px; }

/* ---- 5. HEADER & NAVIGATION ---- */
header {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 16px rgba(24, 49, 83,0.09);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  min-height: 70px;
}
header img {
  height: 42px;
  margin-right: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  color: var(--accent);
  font-size: 1rem;
  padding: 4px 0;
  transition: color .18s;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a:focus {
  color: var(--gold);
  border-color: var(--gold);
}
.cta-button {
  background: var(--gold);
  color: var(--primary) !important;
  border-radius: 22px;
  padding: 10px 32px;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 18px rgba(212,175,55,0.11);
  margin-left: 14px;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #c2a13c;
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 28px rgba(212,175,55,0.18);
}

/* Mobile burger menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--gold);
  font-size: 2.1rem;
  border: none;
  padding: 8px 16px;
  /* touch target */
  border-radius: 7px;
  transition: background .16s;
  z-index: 1030;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover{
  background: rgba(212,175,55,0.07);
}

/* ---- 6. MOBILE RESPONSIVE NAVIGATION ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 49, 83, 0.95);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.36,.69,.35,.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--gold);
  font-size: 2.3rem;
  padding: 18px 24px 2px 2px;
  border: none;
  cursor: pointer;
  margin-bottom: 5px;
  transition: color 0.18s;
}
.mobile-menu-close:hover { color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  margin-top: 30px;
}
.mobile-nav a {
  color: var(--gold);
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .13s, color .15s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(212,175,55,0.15);
  color: var(--accent);
}

/* ---- 7. MAIN SECTIONS & ELEMENTS ---- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper.text-section, .text-section {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  gap: 20px;
}

.blog-preview {
  background: var(--gray-light);
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(24,49,83,0.04);
  padding: 22px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--gold);
}
.card, .feature-item {
  min-width: 220px;
  max-width: 380px;
  flex: 1 1 220px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 28px;
  background: #fffbe8;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(212,175,55,0.13), 0 2px 12px rgba(24,49,83,0.04);
  border-left: 5px solid var(--gold);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 410px;
  font-size: 1.07rem;
  color: #191818;
  transition: box-shadow 0.22s, transform 0.13s;
}
.testimonial-card span {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.96rem;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px rgba(212,175,55,0.21), 0 2px 12px rgba(24,49,83,0.04);
  transform: translateY(-4px) scale(1.03);
}
.testimonial-card div {
  color: #d4b237;
  font-size: 1.3rem;
  letter-spacing: 2px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ---- 8. FOOTER ---- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 4px;
}
footer nav a {
  color: var(--gold);
  font-size: 1rem;
  padding: 0 2px;
  border: none;
  transition: color .16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer .text-section {
  color: var(--accent);
  font-size: 0.96rem;
  opacity: 0.93;
}

/* ---- 9. ICONS ---- */
ul li img, .text-section img {
  width: 22px;
  min-width: 22px;
  margin-right: 8px;
  opacity: 0.82;
  vertical-align: middle;
  display: inline-block;
}

/* ---- 10. BUTTONS, LINKS, INTERACTIONS ---- */
button, .cta-button {
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s, color 0.18s, transform 0.13s;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

a {
  transition: color 0.15s, border-color 0.15s, background 0.13s;
}

/* ---- 11. COOKIE CONSENT BANNER & MODAL ---- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe8;
  box-shadow: 0 -2px 18px rgba(24,49,83,0.08);
  border-top: 2px solid var(--gold);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px 22px 24px;
  z-index: 2200;
  font-size: 1rem;
  transition: transform 0.32s, opacity 0.18s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(150%);
}
.cookie-consent-banner__text {
  flex: 1;
  color: var(--gray-dark);
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-consent-banner__buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-consent-banner__button {
  background: var(--gold);
  color: var(--primary);
  border-radius: 17px;
  padding: 8px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.14s, color 0.15s, transform 0.11s;
  box-shadow: 0 2px 7px rgba(212,175,55,0.08);
}
.cookie-consent-banner__button:hover, .cookie-consent-banner__button:focus {
  background: #c2a13c;
  color: #fff;
}
.cookie-consent-banner__button--settings {
  background: var(--secondary);
  color: var(--accent);
  font-weight: 500;
}
.cookie-consent-banner__button--settings:hover {
  background: #329c91;
  color: #fff;
}

/* Cookie Modal Overlay */
.cookie-consent-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24,49,83,0.81);
  z-index: 2300;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-consent-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-modal__box {
  background: #fffbe8;
  border-radius: 18px;
  box-shadow: 0 8px 64px rgba(212,175,55,0.13), 0 6px 32px rgba(24,49,83,0.08);
  padding: 38px 36px 30px 36px;
  max-width: 420px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
.cookie-consent-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2.1rem;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 12;
  transition: color .15s;
}
.cookie-consent-modal__close:hover{
  color: var(--primary);
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex; gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: flex-end;
}

/* ---- 12. MISC. LAYOUT ADJUSTMENTS ---- */
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
  }
  .section, section {
    padding: 52px 32px;
  }
}
@media (max-width: 991px) {
  .container { max-width: 96vw; }
  .content-wrapper {
    gap: 22px;
  }
}
@media (max-width: 768px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 14px;
    height: auto;
    min-height: unset;
    align-items: flex-start;
  }
  nav {
    display: none; /* Hide desktop nav on mobile */
  }
  .mobile-menu-toggle {
    display: block;
  }
  section, .section {
    padding: 26px 9px;
    margin-bottom: 36px;
  }
  .content-wrapper, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item, .card {
    min-width: unset;
    max-width: unset;
  }
  .testimonial-card {
    min-width: unset;
    max-width: unset;
    padding: 18px 12px;
  }
  .blog-preview {
    padding: 18px 14px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 10px;
  }
  .cookie-consent-modal__box {
    padding: 28px 8px 16px 12px;
    width: 96vw;
  }
}

@media (max-width: 480px) {
  .container { padding-left: 2vw; padding-right: 2vw; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1.05rem; }
  .cta-button, .cookie-consent-banner__button {
    font-size: .98rem;
    padding: 10px 12px;
  }
}

/* ---- 13. UTILITIES: SPACING & FLEX GAPS ---- */
.card-container, .content-grid, .content-wrapper, .card, .text-image-section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.card, .testimonial-card, .feature-item {
  margin-right: 0; /* To prevent manual spacing */
}

/* ---- 14. ANIMATIONS & MICRO-INTERACTIONS ---- */
.cta-button, .cookie-consent-banner__button {
  transition: background .22s, color .19s, box-shadow .18s, transform 0.11s;
}

section, .testimonial-card, .feature-item, .blog-preview, .card {
  animation: appearIn 0.55s cubic-bezier(.3,.89,.46,.98); 
}
@keyframes appearIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---- 15. SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 8px;
  background: #efe9d3;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

/* ---- 16. A11Y ---- */
[aria-current="page"] {
  font-weight: bold;
  border-bottom: 2.5px solid var(--gold);
}

/* ---- 17. PRINT FRIENDLY ---- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-consent-modal {
    display: none !important;
  }
  section, .section {
    box-shadow: none !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
  }
}
