/* ========================== CSS RESET & NORMALIZE ============================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  background: #F5F2E7;
  color: #2B2623;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(h1, h2, h3, h4, h5, h6) {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #1A405A;
}
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 20px;
}
a {
  color: #B86026;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #FBC02D;
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #FFF8E4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px 0 rgba(50, 41, 38, 0.08);
}
th, td {
  padding: 16px 14px;
  text-align: left;
  font-size: 16px;
  border-bottom: 1px solid #EDDFB5;
}
th {
  background: #FBC02D;
  color: #1A405A;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 18px;
}
tr:last-child td {
  border-bottom: none;
}

/* ===================== BRAND & VINTAGE RETRO VARIABLES ======================== */
:root {
  --color-primary: #1A405A;
  --color-secondary: #FBC02D;
  --color-accent: #F5F7FA;
  --color-beige: #FFF8E4;
  --color-brown: #B86026;
  --color-shadow: rgba(50, 41, 38, 0.11);
  --radius: 14px;
  --card-radius: 18px;
  --vintage-stripes: repeating-linear-gradient(135deg, #FBC02D 0 10px, #FFF8E4 10px 20px, #FBC02D 20px 30px, #FFF8E4 30px 40px);
}

/* ===================== TYPOGRAPHY ☽ Montserrat headers, Roboto body ===================== */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 1px 2px 0 #FBC02D33;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 14px;
  color: #333123;
}
strong, b {
  font-weight: bold;
  color: #1A405A;
}

/* VINTAGE DETAILS: Patterns & borders for retro cards/sections */
hr {
  border: none;
  border-top: 2px dotted #DBB469;
  margin: 32px 0;
}

/* ==================== LAYOUT / SPACING SYSTEM =========================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 880px;
}
.card-container, .service-cards, .testimonial-list, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card, .testimonial-card, .feature-card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-beige);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px 0 var(--color-shadow);
  padding: 24px;
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 250px;
  border: 3px solid #E9D59A;
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1), transform .2s;
}
.card:hover, .testimonial-card:hover, .feature-card:hover {
  box-shadow: 0 10px 24px 0 rgba(181, 96, 38, .15), 0 2px 8px 0 var(--color-shadow);
  transform: translateY(-3px) scale(1.03);
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  margin-bottom: 0;
  background: linear-gradient(125deg,#FFF8E4 60%,#EDDFB5 100%);
  border-left: 5px solid #FBC02D;
  border-radius: 16px;
  box-shadow: 0 4px 12px 0 var(--color-shadow);
  color: #221C15;
  min-width: 230px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing: Ensure minimum spacing */
.card + .card, .testimonial-card + .testimonial-card, .feature-card + .feature-card {
  margin-left: 0;
  margin-top: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 28px;
}
.section + .section {
  margin-top: 28px;
}

/* ==================== HEADER & NAVIGATION ============================= */
header {
  background-color: #FBC02D;
  border-bottom: 4px solid #E9D59A;
  box-shadow: 0 4px 18px -8px #b8602638;
  padding-top: 0;
  padding-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
}
.main-nav a {
  color: #312515;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #EDD67A;
  color: #B86026;
  text-decoration: none;
}

.cta-button {
  background: #B86026;
  color: #FFF8E4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 27px;
  font-size: 1.08rem;
  padding: 10px 30px;
  margin-left: 28px;
  box-shadow: 0 4px 16px 0 #b8602625;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: 3px solid #F5D27A;
  text-shadow: 1px 1px 0 #bb7c4740;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: #FBC02D;
  color: #1A405A;
  border-color: #B86026;
  box-shadow: 0 6px 22px 0 #b8602633, 0 2px 6px #b8602620;
  text-decoration: none;
}

/* ---------- Burger Menu Mobile ----------- */
.mobile-menu-toggle {
  display: none;
  background: #B86026;
  color: #FFF8E4;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2.15rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px #b8602622;
  cursor: pointer;
  transition: background .18s, color .18s;
  z-index: 1400;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #EDD67A;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  max-width: 100vw;
  background: #FBC02D;
  box-shadow: -6px 0 24px 0 #b8602630;
  z-index: 2000;
  padding: 40px 30px 20px 30px;
  transform: translateX(110%);
  transition: transform .38s cubic-bezier(.76,0,.16,1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #B86026;
  background: none;
  border: none;
  margin-bottom: 32px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #EDDFB5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.11rem;
  color: #1A405A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 8px 8px 0;
  border-radius: 3px;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #EDD67A;
  color: #B86026;
}

/* Overlay to dim site when mobile menu open */
body.mobile-menu-open::before {
  content: '';
  display: block;
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26, 64, 90, 0.16);
  z-index: 1500;
  pointer-events: all;
}

/* -------------------------------------- */

/* ================= HERO SECTION ========================= */
.hero {
  padding: 72px 0 50px 0;
  background: var(--vintage-stripes), #F5F2E7;
  border-bottom: 5px solid #FBC02D;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  text-align: center;
  background: rgba(249,242,210,.92);
  border-radius: 23px;
  box-shadow: 0 10px 34px #b8602618;
  padding: 40px 18px 36px 18px;
  max-width: 600px;
  margin: 0 auto;
}
.hero h1 {
  color: #B86026;
  text-shadow: 2px 1px 0 #FBC02D, 0px 0px 14px #fbc02d18;
}

/* =================== FEATURES ========================== */
.features {
  background: #FCF6E2;
  border-top: 4px double #EDDFB5;
  border-bottom: 4px double #EDDFB5;
  margin-bottom: 60px;
  padding: 40px 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #FFF8E4;
  border: 2.5px dashed #FBC02D;
  border-radius: 16px;
  padding: 26px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 230px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px #e6cc9948;
}
.feature-grid img {
  height: 48px;
  margin-bottom: 13px;
}
.feature-grid h3 {
  color: #1A405A;
  font-size: 1.19rem;
  padding-bottom: 4px;
}
.feature-grid p {
  color: #442C14;
}

/* =============== SERVICE CARDS / OFFER ================ */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-cards > div {
  background: #FFF8E4;
  border: 2.2px solid #EDDFB5;
  border-radius: var(--radius);
  padding: 30px 20px 24px 20px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 250px;
  box-shadow: 0 4px 14px #c689372b;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.service-cards > div:hover {
  border-color: #B86026;
  box-shadow: 0 6px 18px #b860263b, 0 2px 4px #ffebb12b;
  transform: translateY(-4px) scale(1.03);
}
.service-cards h3 {
  color: #B86026;
  margin-bottom: 12px;
  font-size: 1.17rem;
}

/* ================== TESTIMONIALS ==================== */
.testimonials {
  background: var(--color-beige);
  margin-bottom: 60px;
  padding: 54px 0;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #FFF8E4;
  border-radius: 13px;
  box-shadow: 0 2.5px 10px 0 var(--color-shadow);
  border-left: 4px solid #FBC02D;
  padding: 22px 18px 22px 28px;
  color: #251e1b;
  min-width: 230px;
  max-width: 330px;
  flex: 1 1 260px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.testimonial-card p {
  color: #312515;
  font-size: 1.03rem;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card strong {
  font-weight: 700;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #B86026;
}

/* CTA STRIPES */
.cta {
  background: var(--vintage-stripes);
  border-top: 2px solid #E9D59A;
  border-bottom: 2px solid #EDDFB5;
  margin-bottom: 64px;
  padding: 46px 0;
}
.cta .content-wrapper {
  text-align: center;
  background: #FFF8E4DD;
  border-radius: 17px;
  box-shadow: 0 8px 26px #b8602612;
  padding: 32px 10px;
  max-width: 540px;
}

/* Blog List (porady) */
.blog-list ul, .services ul, .features ul {
  list-style-type: disc;
  color: #7C6449;
}
.blog-list li + li, .services li + li {
  margin-top: 18px;
}

/* Pricing Table */
.pricing thead tr {
  border-bottom: 3px solid #FBC02D;
}
.pricing strong {
  color: #B86026;
}

/* Process, legal and confirmation sections */
.process ol, .legal ol {
  padding-left: 1.5em;
  margin-bottom: 22px;
}
.process li, .legal li {
  margin-bottom: 12px;
}
.confirmation {
  background: #FFF8E4;
  border-left: 8px solid #FBC02D;
  border-radius: 20px;
  box-shadow: 0 4px 18px #b860261b;
  padding: 56px 32px 38px 38px;
  margin: 40px 0;
  text-align: center;
}

/* ----------------- CONTACT PAGE ------------------ */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.contact-info > div {
  flex: 1 1 180px;
  min-width: 180px;
  background: #FCF6E2;
  border: 2px solid #EDDFB5;
  border-radius: 12px;
  padding: 18px 12px 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  box-shadow: 0 1.5px 7px #a9862a11;
}
.contact-info img {
  width: 30px;
  height: 30px;
  margin-top: 1px;
  margin-right: 10px;
}

/* ================== FOOTER ======================== */
footer {
  width: 100%;
  background: #1A405A;
  color: #FFD986;
  font-size: 0.98rem;
  position: relative;
  border-top: 7px double #FBC02D;
  padding: 0 0 32px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 16px;
}
footer a.logo img {
  height: 36px;
  margin-bottom: 5px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0 5px 0;
}
.footer-nav a {
  color: #EDD67A;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FBC02D;
  text-decoration: underline;
}
.footer-contact, .footer-hours {
  color: #FFF8E4;
  margin: 0 0 3px 0;
  text-align: center;
  font-size: 0.98rem;
}
.footer-copy {
  color: #E9D59A;
  font-size: 0.92rem;
  margin-top: 6px;
  text-align: center;
}

/* ==================== COOKIE CONSENT BANNER =========================== */
#cookie-banner, .cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #1A405A;
  color: #FBC02D;
  z-index: 9999;
  padding: 20px 8vw 18px 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -6px 28px #1a405ae0;
  font-size: 1rem;
  animation: cookiebanner-fade-in .6s cubic-bezier(.5,0,.6,1);
}
@keyframes cookiebanner-fade-in {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-btn {
  background: #FBC02D;
  color: #1A405A;
  border-radius: 6px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 17px;
  margin: 0 2px;
  box-shadow: 0 1.5px 8px #fbc02d21;
  cursor: pointer;
  transition: background .20s, color .20s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B86026;
  color: #FFF8E4;
}
.cookie-btn-outline {
  background: none;
  border: 2px solid #FBC02D;
  color: #FBC02D;
}
.cookie-btn-outline:hover, .cookie-btn-outline:focus {
  background: #FBC02D;
  color: #1A405A;
}

/* Cookie Modal Popup */
#cookie-modal, .cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(46, 41, 30, 0.39);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s;
}
#cookie-modal.open, .cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #FFF8E4;
  border-radius: 19px;
  max-width: 390px;
  width: 90vw;
  padding: 34px 28px 20px 28px;
  color: #1A405A;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 8px 30px #b860262c;
  position: relative;
}
.cookie-modal-content h3 {
  margin-bottom: 16px;
  color: #B86026;
}
.cookie-category {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  flex: 1 1 80px;
  color: #6F5847;
}
.cookie-category input[type="checkbox"] {
  accent-color: #FBC02D;
  width: 18px; height: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 1.16rem;
  color: #B86026;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #1A405A;
}

/* ================== BUTTONS & INTERACTIVE STATES ==================== */
button,
input[type="button"],
input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  background: #B86026;
  color: #FFF8E4;
  border-radius: 8px;
  padding: 8px 22px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1.5px 9px #ba5e2647;
  transition: background .16s, color .16s, box-shadow .16s;
}
button:hover,
button:focus {
  background: #FBC02D;
  color: #1A405A;
  outline: none;
}
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #EDDFB5;
  padding: 9px 13px;
  background: #FFF8E4;
  color: #1A405A;
  margin-bottom: 16px;
  transition: border-color .17s, box-shadow .17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #FBC02D;
  outline: none;
  box-shadow: 0 1.5px 8px #fbc02d14;
}

/* Micro-animations for vintage look */
@media (hover: hover) {
  .cta-button:active {
    filter: brightness(0.95) contrast(1.1);
    transform: scale(0.97);
  }
}

/* ===================== RESPONSIVE QUERIES (Mobile-First) ===================== */
/* -- General Responsive -- */
@media (max-width: 991px) {
  .main-nav {
    gap: 16px;
    font-size: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    font-size: 1rem;
    margin-left: 0;
    padding: 9px 18px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .service-cards, .testimonial-list, .content-grid, .contact-info {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    padding-left: 2px;
    padding-right: 2px;
  }
  .feature-grid > div, .service-cards > div, .testimonial-card, .card {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .hero, .cta {
    padding: 28px 0;
    min-height: unset;
  }
  .hero .content-wrapper, .cta .content-wrapper {
    padding: 30px 6px;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 6px;
  }
  .testimonials {
    padding: 34px 0;
    margin-bottom: 34px;
  }
  footer .container {
    padding-top: 22px;
    gap: 13px;
  }
}
@media (max-width: 540px) {
  html {
    font-size: 14px;
  }
  .logo img {
    height: 36px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .cta .content-wrapper, .hero .content-wrapper {
    padding: 21px 4px;
  }
}

/* Show mobile menu on small screens */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Cookie modal: ensure scrollability on small devices */
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 21px 6px 13px 10px;
  }
}

/* ================================ UTILITIES ============================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-28 { margin-bottom: 28px !important; }

/* ====================== PRINT STYLES (Hide nav/UI) =================== */
@media print {
  header, footer, .mobile-menu, #cookie-banner, .cookie-banner, #cookie-modal, .cookie-modal, .cta {
    display: none !important;
  }
  .container, .content-wrapper {
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
}
