/* =======================================================================
   CSS RESET & NORMALIZE (Mobile-first) ===================================
   ======================================================================= */
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;
}
html {
  box-sizing: border-box;
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  height: 100%;
  min-height: 100vh;
  background: #FFFFFF;
  color: #2D1E32;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #7A3470;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #3E2B47;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: transparent;
  padding: 0;
}
button {
  cursor: pointer;
}
hr {
  border: none;
  height: 1px;
  background: #EFEBE8;
  margin: 24px 0;
}

/* =======================================================================
   COLOR VARIABLES (fall back to hex for compatibility)
   ======================================================================= */
:root {
  --color-primary: #2D1E32;
  --color-secondary: #FFFFFF;
  --color-accent: #7A3470;
  --color-bg-alt: #EFEBE8;
  --color-border: #E2DEE0;
  --color-shadow: rgba(50,30,60,0.05);
  --color-shadow-md: rgba(50,30,60,0.10);
  --color-disabled: #E2DEE0;
}

/* =======================================================================
   TYPOGRAPHY & FONT
   ======================================================================= */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #2D1E32;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.14;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 32px;
  font-weight: 900;
}
h2 {
  font-size: 1.50rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.lead {
  font-size: 1.13rem;
  color: #7A3470;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.45;
}
p, .text-section {
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
}
em, i {
  font-style: italic;
}
small {
  font-size: 0.93em;
}
blockquote {
  padding: 20px 30px;
  margin: 20px 0;
  background: #EFEBE8;
  border-left: 3px solid #7A3470;
  font-style: italic;
}

/* =======================================================================
   LAYOUT: CONTAINERS, SECTIONS, SPACING, FLEXBOX =========================
   ======================================================================= */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-secondary);
  box-shadow: 0 2px 16px var(--color-shadow);
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1),transform 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 6px 20px var(--color-shadow-md);
  transform: translateY(-4px) scale(1.016);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F7F5F4;
  color: #2D1E32;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(50,30,60,0.08);
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 330px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  color: #2D1E32;
  line-height: 1.5;
  margin-bottom: 8px;
}
.testimonial-meta {
  font-size: 0.97rem;
  color: #7A3470;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  font-size: 1.01rem;
  color: #2D1E32;
  margin-bottom: 18px;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}
.topic-tags span {
  background: var(--color-bg-alt);
  color: #7A3470;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.93rem;
}

ul, ol {
  padding-left: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
li {
  position: relative;
  padding-left: 0px;
  font-size: 1rem;
}
ul li img {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  vertical-align: middle;
}
ol {
  counter-reset: ol;
  gap: 12px;
}
ol li {
  counter-increment: ol;
  font-size: 1rem;
}
ol li:before {
  content: counter(ol) '.';
  color: #7A3470;
  margin-right: 7px;
  font-weight: 700;
}

/* =======================================================================
   HEADER/NAVIGATION (DESKTOP & MOBILE) ===================================
   ======================================================================= */
header {
  width: 100%;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 88;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 0 20px;
}
header img[alt="Apiarinasi"] {
  width: 165px;
  height: auto;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: #2D1E32;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 0 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.22s cubic-bezier(.4,0,.2,1), color 0.16s cubic-bezier(.4,0,.2,1);
}
header nav a:hover, header nav a:focus, header nav a[aria-current="page"] {
  color: #7A3470;
  border-bottom: 2px solid #7A3470;
  background: none;
}

.cta {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 9px 26px 10px 26px;
  border: none;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.16s, color 0.16s, box-shadow 0.22s;
  outline: none;
  display: inline-block;
  margin-left: 14px;
}
.cta:hover, .cta:focus {
  background: #64305a;
  color: #fff;
  box-shadow: 0 4px 20px var(--color-shadow-md);
}
.cta.secondary {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-bg-alt);
  color: #64305a;
  border-color: #64305a;
}

/* --- Responsive Hide/Show for Mobile Menu --- */
.mobile-menu-toggle {
  display: flex;
  background: none;
  color: #2D1E32;
  font-size: 2rem;
  border: none;
  padding: 7px 20px;
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 120;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-bg-alt);
}
@media (min-width: 1020px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* MOBILE OFFCANVAS MENU ================================ */
.mobile-menu {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 40px rgba(50,30,60,0.13);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(.6,.15,.06,1.01);
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #2D1E32;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 18px 18px 0 0;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background 0.18s;
  z-index: 5;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-bg-alt);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 38px 0 32px;
}
.mobile-nav a {
  font-size: 1.10rem;
  color: #2D1E32;
  font-weight: 600;
  padding: 7px 2px;
  border-radius: 5px;
  transition: background 0.13s, color 0.13s;
  margin-bottom: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7A3470;
  background: #F7F5F4;
}
@media (min-width:1020px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Hide desktop nav on mobile when mobile-menu-toggle visible */
@media (max-width: 1019px) {
  header nav,
  .cta[href="kontakt.html"] {
    display: none !important;
  }
}

/* --- Allow header CTA always on desktop, always hide inside .mobile-menu --- */
.mobile-menu .cta, .mobile-menu .footer-brand {
  display: none !important;
}

/* =======================================================================
   MAIN & SECTIONS LAYOUT (MINIMALIST) ====================================
   ======================================================================= */
main {
  min-height: 65vh;
  width: 100%;
  background: var(--color-secondary);
  padding-top: 0;
  padding-bottom: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: var(--color-secondary);
  border-bottom: 1px solid #efebe8;
}
.section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* =======================================================================
   FOOTER ================================================================
   ======================================================================= */
footer {
  width: 100%;
  background: #F7F5F4;
  border-top: 1px solid var(--color-border);
  margin-top: 72px;
  padding: 12px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 20px 12px 20px;
}
.footer-brand img {
  width: 50px;
  height: auto;
  margin-bottom: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
footer nav a {
  color: #7A3470;
  font-size: 0.98rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
footer nav a:hover, footer nav a:focus {
  color: #2D1E32;
  border-bottom: 1px solid #7A3470;
}
.footer-contact {
  margin-top: 0;
  font-size: 0.98rem;
  color: #2D1E32;
}
.footer-contact a {
  color: #7A3470;
  word-break: break-all;
}
.footer-contact a:hover { color: #3E2B47; }

@media (min-width: 680px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 44px;
  }
  .footer-brand { margin-right: 26px; }
  .footer-contact { max-width: 320px; }
}

/* =======================================================================
   CARDS, PRICES, FEATURES ===============================================
   ======================================================================= */
.price {
  color: #7A3470;
  margin-left: 6px;
  font-weight: 600;
  font-size: 1rem;
}

/* =======================================================================
   LISTS WITH ICONS (Features, Services) ==================================
   ======================================================================= */
ul li img, .feature-item img {
  margin-right: 8px;
  vertical-align: middle;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
  font-size: 1rem;
}

/* =======================================================================
   RESPONSIVE: LAYOUT ADJUSTMENTS =========================================
   ======================================================================= */
@media (max-width: 768px) {
  .container { padding: 0 13px; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.08rem; }
  .section, section { padding: 32px 0 32px 0; }
  .card {
    padding: 22px 12px;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .footer-brand img {
    margin-bottom: 7px;
  }
  .topic-tags {
    gap: 7px;
  }
}

@media (max-width: 480px) {
  main { padding-bottom: 40px; }
  .card {
    padding: 15px 5px;
  }
  h1, h2, h3 {
    margin-bottom: 17px;
  }
}

/* =======================================================================
   MICRO-INTERACTIONS & TRANSITIONS =======================================
   ======================================================================= */
.card, .testimonial-card, .cta, .mobile-menu, .mobile-menu-toggle, .mobile-nav a {
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

.cta, .cta.secondary {
  transition: background 0.18s, color 0.18s, border 0.15s;
}

.card, .testimonial-card {
  will-change: transform, box-shadow;
}

.section, .footer-contact, .text-section {
  transition: background 0.15s;
}

/* =======================================================================
   FOCUS STATES FOR ACCESSIBILITY =========================================
   ======================================================================= */
:focus {
  outline: 2px solid #7A3470;
  outline-offset: 1px;
}

/* =======================================================================
   COOKIE CONSENT BANNER & MODAL ==========================================
   ======================================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2D1E32;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 -2px 24px rgba(50,30,60,0.18);
  z-index: 3000;
  padding: 24px 18px 18px 18px;
  font-size: 1rem;
  animation: banner-fade-in 0.7s cubic-bezier(.7,.1,.27,1);
}
.cookie-banner.hidden {
  display: none !important;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.cookie-banner .cta, .cookie-banner .cookie-btn {
  font-size: 1rem;
  background: #7A3470;
  color: #fff;
  padding: 8px 23px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin: 0;
  transition: background 0.15s, color 0.14s;
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-bg-alt);
  color: #7A3470;
  border: 1px solid #7A3470;
}
.cookie-banner .cta:hover,
.cookie-banner .cta:focus,
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #622846;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #fff;
  color: #7A3470;
}

/* COOKIE PREFERENCES MODAL ============================ */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46, 37, 60, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  animation: banner-fade-in 0.4s cubic-bezier(.7,.1,.27,1);
}
.cookie-modal-overlay.hidden { display:none; }
.cookie-modal {
  background: #fff;
  color: #2D1E32;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(50,30,60,0.20);
  padding: 32px 22px 22px 22px;
  width: 95vw;
  max-width: 410px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modal-zoom-in 0.44s cubic-bezier(.7,.1,.27,1);
}
.cookie-modal h2 {
  color: #3E2B47;
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #2D1E32;
  cursor: pointer;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #7A3470;
  width: 18px;
  height: 18px;
}
.cookie-modal-category.essential label,
.cookie-modal-category.essential input {
  color: #b6b1b7;
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  padding: 8px 21px;
  border-radius: 50px;
}
.cookie-modal .cookie-close-modal {
  position: absolute;
  top: 13px;
  right: 13px;
  background: none;
  color: #A6A1B7;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.16s;
}
.cookie-modal .cookie-close-modal:hover, .cookie-modal .cookie-close-modal:focus {
  background: #efebe8;
  color: #7A3470;
}

@keyframes banner-fade-in {
  from { opacity:0; transform:translateY(60px); }
  to   { opacity:1; transform:translateY(0);    }
}
@keyframes modal-zoom-in {
  0% { opacity:0; transform:scale(0.88); }
  80% { opacity:0.98; transform:scale(1.07); }
  100% { opacity:1; transform:scale(1.00); }
}

/* =======================================================================
   PRINT OPTIMIZATION (Minimalist) ========================================
   ======================================================================= */
@media print {
  * { box-shadow: none !important; background: #fff !important; color: #000 !important; }
  nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, .cta { display: none !important; }
  section, article, .container { page-break-inside: avoid; }
}

/* =======================================================================
   END OF STYLE ===========================================================
   ======================================================================= */
