/* ======= RESET & BASE ======= */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F9EEEB;
  color: #154734;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

/* ======= FONT IMPORTS ======= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ======= BRAND COLORS FOR VINTAGE RETRO ======= */
:root {
  --primary: #154734;
  --secondary: #3A8B5C;
  --accent: #F9EEEB;
  --vintage-gold: #F2B134;
  --vintage-red: #E46363;
  --vintage-blue: #266D8B;
  --vintage-shadow: rgba(53,38,23,0.11);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #154734;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 0 #fff2; 
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
  color: var(--secondary);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--secondary);
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  margin-bottom: 40px;
  background: rgba(255,255,255,.69);
  border-radius: 18px;
  padding: 28px 20px;
  box-shadow: 0 3px 16px var(--vintage-shadow);
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 18px 8px;
  }
}

/* ========== HEADER & LOGO ========== */
header {
  background: #F9EEEB url('../assets/pattern-retro.png') repeat top left;
  border-bottom: 4px solid var(--vintage-gold);
  box-shadow: 0 6px 28px -8px rgba(53,38,23,0.06);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}
.logo img {
  height: 58px;
  width: auto;
  filter: drop-shadow(1px 2px 0 #fff3);
}

/* ======= MAIN NAVIGATION ======= */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 10px 4px 10px;
  border-radius: 6px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--vintage-red);
  background: #fff7;
  text-decoration: underline;
}

/* ========= CTA BUTTON ========= */
.cta-button {
  background: var(--vintage-gold);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.08rem;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 3px 0 #fff6;
  transition: background 0.2s, box-shadow 0.2s, transform 0.14s;
  letter-spacing: 0.04em;
  position: relative;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--vintage-red);
  color: #fff;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 24px -2px var(--vintage-shadow);
}

.cta-link {
  color: var(--vintage-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  border-bottom: 2px dashed var(--vintage-blue);
  transition: color 0.2s, border-color 0.2s;
}
.cta-link:hover, .cta-link:focus {
  color: var(--vintage-red);
  border-color: var(--vintage-red);
}

/* =========== HERO SECTION =========== */
.hero {
  background: #f5e0c3 url('../assets/pattern-retro.png') repeat fixed;
  position: relative;
  padding: 48px 0 36px 0;
  margin-bottom: 24px;
}
.hero .content-wrapper {
  background: rgba(255,255,255,0.93);
  border-radius: 24px;
  box-shadow: 0 8px 32px -8px var(--vintage-shadow);
  text-align: center;
  max-width: 670px;
  margin: 0 auto;
  padding: 40px 18px 36px 18px;
}
.hero h1 {
  color: var(--primary);
  margin-bottom: 18px;
  font-size: 2.5rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 2px;
}
.hero p {
  font-size: 1.22rem;
  margin-bottom: 30px;
  color: var(--secondary);
}
.hero .cta-button {
  font-size: 1.2rem;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .hero,
  .hero .content-wrapper {
    padding: 24px 0 18px 0;
  }
  .hero h1 {
    font-size: 1.4rem;
  }
}

/* ============ SECTION SPACING & STRUCTURE ============ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe8;
  border-radius: 18px;
  box-shadow: 0 4px 20px -8px var(--vintage-shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
}

.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;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px -9px var(--vintage-shadow);
  border: 2px solid var(--secondary);
  position: relative;
  flex-direction: row;
}
.testimonial-card p {
  color: #231a12;
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--vintage-red);
  font-weight: bold;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #ffe4b3;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 3px 10px -6px var(--vintage-shadow);
  margin-bottom: 20px;
}

/* ====== FEATURE GRID & ICONS ====== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 250px;
  background: #ffedc2;
  border-radius: 14px;
  padding: 20px 12px 18px 12px;
  box-shadow: 0 2px 12px -3px var(--vintage-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.2s;
}
.feature-grid img {
  height: 38px;
  margin-bottom: 12px;
  filter: sepia(0.8) contrast(1.25);
}
.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px -9px var(--vintage-shadow);
  background: #fff1d1;
}

/* ====== THEMATIC TAGS & POPULAR TAGS ====== */
.theme-tags, .popular-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0 0;
}
.theme-tags span, .popular-tags span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.93rem;
  background: #ffe4b3;
  border-radius: 12px;
  color: var(--primary);
  padding: 5px 14px;
  box-shadow: 1px 2px 9px -5px var(--vintage-shadow);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============ TABLES (CENIK) ============ */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fffbe8;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px -5px var(--vintage-shadow);
}
th, td {
  padding: 14px 10px;
  text-align: left;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
th {
  background: #ffedc2;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary);
}
td {
  border-bottom: 1px solid #f0dab8;
}
tr:last-child td {
  border-bottom: none;
}

/* ========== LINKS & INTERACTIVES ========== */
a {
  color: var(--vintage-blue);
  transition: color 0.16s;
}
a:hover, a:focus {
  color: var(--vintage-red);
}

/* ========== FOOTER ========== */
footer {
  background: #eee6d2 url('../assets/pattern-retro.png') repeat;
  border-top: 5px solid var(--vintage-gold);
  padding: 34px 0 11px 0;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  min-height: 56px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 19px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  border-bottom: 1px dotted var(--vintage-blue);
  transition: border 0.21s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  border-bottom: 2px dashed var(--vintage-red);
  color: var(--vintage-red);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #7b6b5c;
  font-size: 0.91rem;
}
footer .logo img {
  height: 44px;
  width: auto;
}

/* ========== CONTENT CARDS ========== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========== RESPONSIVE LAYOUTS =========== */
@media (max-width: 990px) {
  .main-nav {
    gap: 12px;
  }
  .container {
    padding: 0 4px;
  }
  section {
    padding: 30px 6px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  section {
    padding: 22px 2px;
    margin-bottom: 32px;
  }
  .content-wrapper, .testimonial-card, .feature-grid > div, .card, .feature-item {
    border-radius: 10px;
    padding: 12px 8px;
  }
  .main-nav {
    display: none;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 11px;
  }
  .feature-grid {
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  .content-grid, .card-container, footer .container {
    flex-direction: column;
    gap: 20px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
}


/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 99;
  background: var(--vintage-blue);
  color: #fff;
  border: none;
  font-size: 2.1rem;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 16px -7px var(--vintage-shadow);
  transition: background 0.2s, color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--vintage-gold);
  color: var(--primary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #F9EEEB;
  box-shadow: 3px 0 44px -7px var(--vintage-shadow);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.7,.1,.45,1.11);
  z-index: 1200;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.11rem;
  color: var(--vintage-blue);
  position: absolute;
  top: 25px;
  right: 30px;
  z-index: 1101;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--vintage-gold);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 80px;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.20rem;
  font-weight: 700;
  color: var(--primary);
  padding: 9px 0;
  border-radius: 5px;
  width: 100%;
  transition: background 0.15s, color 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fffbe8;
  color: var(--vintage-red);
  padding-left: 9px;
}

@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  background: #fffbe8;
  color: #33250D;
  border-top: 3px solid var(--vintage-gold);
  box-shadow: 0 -6px 22px -7px var(--vintage-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px 20px 22px;
  font-size: 1.0rem;
  z-index: 1450;
}
.cookie-banner p {
  flex: 1 1 auto;
  margin-bottom: 0;
  color: #154734;
}
.cookie-buttons {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  padding: 9px 18px;
  border: none;
  border-radius: 19px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
  margin-right: 0;
  background: var(--principal, var(--secondary));
  color: #fff;
  margin-bottom: 0;
  box-shadow: 0 1.5px 8px -5px #b97f2c30;
}
.cookie-btn.accept {
  background: var(--vintage-gold);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--vintage-red);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--vintage-blue);
  color: #fff;
}
.cookie-btn:active, .cookie-btn:focus, .cookie-btn:hover {
  filter: brightness(0.96);
  outline: none;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 14px 6px 16px 6px;
    font-size: 0.87rem;
  }
  .cookie-buttons {
    justify-content: flex-start;
    gap: 9px;
  }
}

/* ==== COOKIE MODAL POPUP ==== */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -51%) scale(0.96);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 48px -15px var(--vintage-shadow);
  z-index: 3001;
  width: 92vw;
  max-width: 415px;
  padding: 30px 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.32s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -51%) scale(1);
  pointer-events: all;
}
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.18rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--vintage-blue);
  width: 18px;
  height: 18px;
}
.cookie-category.disabled label {
  color: #b9b5ad;
  font-style: italic;
}
.cookie-modal .cookie-info {
  font-size: 0.95rem;
  color: #766e60;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 9px 19px;
  font-size: 1rem;
}
@media (max-width: 500px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 16px 3vw 14px 3vw;
  }
}

/* === BACKDROP FOR COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(12, 8, 4, 0.36);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ========= CUSTOM VINTAGE STYLES & DETAILS ========= */
body {
  background: #F9EEEB url('../assets/pattern-retro.png') repeat;
}
.header-vintage-tape {
  height: 14px;
  background: repeating-linear-gradient(135deg, #ffffff 0 20px, #F2B134 20px 24px, #3A8B5C 24px 40px);
  margin-bottom: -14px;
}

.card, .feature-grid > div, .testimonial-card, .feature-item, .content-wrapper {
  border: 2px solid #e6d3ba;
  box-shadow: 0 7px 32px -10px var(--vintage-shadow);
  background-image: repeating-linear-gradient(135deg, #fffbe8, #fffbe8 14px, #ffebd7 14px, #ffebd7 28px);
}

/* Decorative vintage dots/bars pattern (if used in assets) can be set here */

/* ===== INTERACTIVE MICRO-ANIMATIONS ===== */
button,
.cta-button,
.cookie-btn {
  transition: background 0.22s, color 0.18s, transform 0.17s;
}
.card, .feature-grid > div, .feature-item {
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .feature-item:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 11px 30px -8px var(--vintage-shadow);
}

/* ========== MISC & FORMS ========== */
input, textarea, select {
  border: 2px solid var(--vintage-blue);
  border-radius: 8px;
  background: #fffbe8;
  color: #231a12;
  font-size: 1.02rem;
  padding: 11px 9px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--vintage-gold);
  border-color: var(--vintage-gold);
}

.contact-shortcut a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--vintage-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 7px 10px;
  background: #eee6d2;
  border-radius: 7px;
  transition: background 0.2s, color 0.18s;
}
.contact-shortcut a:hover, .contact-shortcut a:focus {
  background: var(--vintage-blue);
  color: #fff;
}

/* ========== PRINT ========== */
@media print {
  header, .main-nav, .footer-nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop, footer {
    display: none !important;
  }
  section, .container, .content-wrapper {
    background: none !important;
    color: #111;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
