/* ------------------------- CSS 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f9fbfa;
  color: #232325;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
a {
  color: inherit;
  background: transparent;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
button {
  cursor: pointer;
}
::-webkit-input-placeholder { color: #A3A3B2; }
::-moz-placeholder { color: #A3A3B2; }
:-ms-input-placeholder { color: #A3A3B2; }
::placeholder { color: #A3A3B2; }

:root {
  --color-primary: #174966;
  --color-secondary: #8BBF7B;
  --color-accent: #F6FAF9;
  --color-bg: #f9fbfa;
  --color-contrast: #ffffff;
  --color-text: #232325; /* dark for luxury readability */
  --color-text-muted: #6a7685;
  --color-gold: #C7A350; /* Elegant gold accent */
  --color-shadow: rgba(22,32,41,0.11);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ------------------------ LUXURY PREMIUM TYPOGRAPHY ---------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, li, table, span, a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  font-weight: 400;
}
p {
  margin-bottom: 16px;
}
/* Ensure strong and b have gold/primary flair in luxury style */
strong, b {
  color: var(--color-gold);
  font-weight: 700;
}

/* ----------------------------- CONTAINERS ------------------------------- */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-section {
  width: 100%;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------- HEADER --------------------------------- */
header {
  background: var(--color-contrast);
  box-shadow: 0 6px 18px -10px var(--color-shadow);
  border-bottom: 1px solid #edeceb;
  z-index: 110;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 80px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: filter 0.3s;
}
.logo:hover img {
  filter: brightness(0.8) drop-shadow(0 2px 6px var(--color-shadow));
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: var(--font-display);
}
.main-nav a {
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-gold);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 2.6em 0.85em 2.6em;
  background-color: var(--color-gold);
  color: var(--color-contrast);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 32px;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  border: none;
  letter-spacing: 0.01em;
  transition: background 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
  text-shadow: 0 2px 8px rgba(41,33,8,0.07);
  cursor: pointer;
  margin-left: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background-color: #d4ac5b;
  outline: none;
  box-shadow: 0 3px 16px 0 var(--color-shadow);
}

/* ---------------------- MOBILE BURGER MENU BUTTON ------------------------ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 28px;
  top: 24px;
  z-index: 2002;
  background: var(--color-contrast);
  color: var(--color-primary);
  font-size: 2rem;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e8eb;
  box-shadow: 0 4px 14px -6px var(--color-shadow);
  transition: background 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  outline: none;
}

/* --------------------------- MOBILE NAVIGATION --------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, #f7f6f4 80%, #fff 100%);
  box-shadow: 0 16px 32px 0 var(--color-shadow);
  z-index: 2001;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.86,0,.07,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  padding: 40px 30px 32px 30px;
  visibility: hidden;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.25rem;
  padding: 12px;
  margin-bottom: 10px;
  margin-right: 2px;
  background: none;
  color: var(--color-primary);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  background: none;
  padding: 10px 0 10px 8px;
  border-radius: 6px;
  width: 100%;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-gold);
}

/* Hamburger only visible on mobile */
@media (max-width: 1100px) {
  .main-nav, header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 60px;
    padding-left: 8px;
    padding-right: 12px;
  }
  .logo img { height: 30px; }
  .mobile-menu {
    padding-top: 32px;
    gap: 34px;
  }
}

/* Restore nav on desktop */
@media (min-width: 1101px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
  }
  .main-nav, header .cta-btn {
    display: flex !important;
  }
}

/* --------------------------- HERO / BANNERS ----------------------------- */
.hero {
  background: linear-gradient(103deg, #fdfbf6 68%, #f6faf9 100%);
  padding: 54px 0 70px 0;
  margin-bottom: 36px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 680px;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.10;
}
.hero p {
  font-size: 1.18rem;
  color: var(--color-text);
}
.hero .cta-btn {
  margin-top: 10px;
}

/* ------------------------- FEATURES & CARDS ------------------------------ */
/* Grid container for flexbox features */
.features-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 14px;
  margin-bottom: 10px;
}
.features-grid > div, .service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 24px -8px var(--color-shadow);
  padding: 34px 22px 28px 22px;
  min-width: 240px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.5px solid #eee7dc;
  position: relative;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.features-grid > div:hover, .service-card:hover {
  box-shadow: 0 8px 32px 0 var(--color-shadow);
  border: 1.5px solid var(--color-gold);
}
.features-grid img {
  height: 36px;
  width: 36px;
  margin-bottom: 10px;
  filter: grayscale(0.18) contrast(1.12);
}
.features-grid h3 {
  color: var(--color-gold);
  margin-bottom: 8px;
  font-size: 1.28rem;
}
.features-grid p { color: var(--color-text-muted); }
.service-card h2 {
  font-size: 1.13rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.service-card .service-price {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.07rem;
  margin: 9px 0;
  letter-spacing: 0.02em;
}
.service-card .cta-btn {
  margin-top: 16px;
  padding: 0.68em 2.3em;
}

/* Accordions for FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.faq-item {
  padding: 22px 28px;
  background: #fff;
  border: 1px solid #f1ede9;
  border-radius: 14px;
  box-shadow: 0 2px 8px -3px var(--color-shadow);
  transition: box-shadow 0.18s;
  position: relative;
}
.faq-item h3 {
  color: var(--color-primary);
  font-size: 1.13rem;
  margin-bottom: 5px;
  font-family: var(--font-display);
}
.faq-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
}
.faq-item:hover { box-shadow: 0 6px 24px 0 var(--color-shadow); }

/* ------------------------- TABLES: PRICING ------------------------------ */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 22px;
  font-size: 1.1rem;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 24px -8px var(--color-shadow);
}
.pricing-table th, .pricing-table td {
  padding: 20px 18px;
  text-align: left;
  border-bottom: 1px solid #ededec;
}
.pricing-table th {
  background: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--color-primary);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
.pricing-table td {
  color: var(--color-text-muted);
}
.pricing-note {
  font-size: 0.99rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ------------------- TESTIMONIALS / FEATURED CARDS ----------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 30px 20px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 24px -8px var(--color-shadow);
  border: 1.5px solid #eee7dc;
  min-width: 230px;
  max-width: 350px;
  position: relative;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #353029;
  font-style: italic;
  font-size: 1.09rem;
  margin-bottom: 7px;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 5px;
}

/* -------------- INFO CARDS / CONTENT LAYOUTS / SECTION STYLES ------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px -5px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.security-note {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-top: 18px;
}

/************************* VISUAL/EFFECTS (Luxury Details) ************************/
.section {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 24px 0 var(--color-shadow);
}
@media (max-width: 700px) {
  .section { padding: 24px 6px; }
}

/* ------------------------------- FOOTER ---------------------------------- */
footer {
  background: #1a303f;
  color: #e5e5ed;
  padding: 42px 0 28px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: var(--color-gold);
  font-size: 1rem;
  font-family: var(--font-display);
  margin-bottom: 2px;
  text-decoration: underline dotted;
  transition: color 0.18s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
}
.brand-info {
  font-family: var(--font-display);
  font-size: 1.09rem;
  color: var(--color-gold);
  margin-bottom: 7px;
}
.contact-short {
  font-size: 0.97rem;
  color: #e9e6dc;
}


/* ------------------------------ GENERAL LAYOUT RESPONSIVENESS ------------------ */
@media (max-width: 900px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-content {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .hero .content-wrapper { max-width: 95vw; }
}
@media (max-width:600px) {
  h1 { font-size: 1.63rem; }
  h2 { font-size: 1.19rem; }
  .section {padding: 18px 2px; margin-bottom: 36px;}
  .features-grid, .service-cards, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container { flex-direction: column; gap: 16px; }
  .card { padding: 18px 8px; }
  .testimonials-slider, .testimonial-card { max-width: 100% !important; }
}
@media (max-width:800px) {
  .features-grid, .service-cards { gap: 16px; }
  .section { padding: 18px 5px; }
}
@media (max-width:768px) {
  .content-wrapper { gap: 12px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* -------------- VISUAL/TIMELINE (Simple symbolic representation) ---------- */
.visual-timeline {
  margin-top: 30px;
  margin-bottom: 20px;
  background: #f7f8f9;
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  min-height: 40px;
  width: 100%;
  padding: 20px 0 20px 18px;
}


/* ------------------------- BUTTONS & INTERACTIVE ------------------------- */
button, .cta-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, border 0.2s;
}
button:focus,.cta-btn:focus { outline: 2px solid var(--color-primary); }

/* --------------- TABLES, LISTS, FORMS LUXURY STYLES --------------------- */
ul, ol {
  padding-left: 22px;
  margin-bottom: 13px;
}
ol li, ul li {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--color-text);
}
ol.process-steps {
  padding-left: 0;
}
ol.process-steps li {
  font-size: 1.07rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 22px;
}
ol.process-steps li:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* -------------------------- COOKIE CONSENT BANNER ---------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffdfa;
  box-shadow: 0 -4px 24px 0 var(--color-shadow);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 38px 22px 38px;
  font-size: 1.01rem;
  border-top: 1px solid #f3ede7;
  transition: transform 0.4s cubic-bezier(.42,0,.19,1.43);
}
#cookie-banner.hide {
  transform: translateY(140%);
}
#cookie-banner p { color: #232325; }
.cookie-actions {
  display: flex;
  gap: 13px;
  align-items: center;
}
#cookie-banner .cookie-btn {
  padding: 0.55em 1.8em;
  border-radius: 22px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-right: 4px;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-gold);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ad8a42;
}
.cookie-btn.reject {
  background: #fff;
  border: 1.4px solid #ccb684;
  color: #ad8a42;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f8f6f2;
  color: #b38b2b;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1.2px solid #d9e7e1;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e6f0ec;
}

/* -------------- COOKIE PREFERNCES MODAL (Popup from bottom, overlay) --------------- */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23, 73, 102, 0.33);
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.32s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 40px 0 var(--color-shadow);
  max-width: 470px;
  width: 90vw;
  padding: 35px 26px 28px 26px;
  animation: modalUp 0.54s cubic-bezier(.64,0,.3,1.19);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@keyframes modalUp {
  from { transform: translateY(90px) scale(0.94); opacity: 0.04; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
#cookie-modal h2 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category-label {
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category-toggle {
  margin-left: 6px;
}
.cookie-switch {
  appearance: none;
  width: 40px;
  height: 21px;
  background: #ebe7e2;
  border-radius: 17px;
  position: relative;
  outline: none;
  transition: background 0.2s;
}
.cookie-switch:checked {
  background: var(--color-gold);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-switch:checked:before {
  transform: translateX(17px);
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 13px;
}
#cookie-modal .cookie-btn.accept { min-width: 104px; }

/* ------------------- Misc Luxury Details and Micro-interactions ------------------ */
.card, .service-card, .faq-item, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover, .service-card:hover, .faq-item:hover, .testimonial-card:hover {
  box-shadow: 0 6px 36px 0 var(--color-shadow);
  border-color: var(--color-gold);
}
.main-nav a.active, .footer-menu a.active, .mobile-nav a.active {
  color: var(--color-gold);
  font-weight: 700;
}

/* ---------------------- Remove focus outlines from mouse users ---------------- */
:focus:not(:focus-visible) {
  outline: none;
}

/* ------------------------- MEDIA QUERIES for SPACING ------------------ */
@media (max-width:500px) {
  #cookie-banner {
    padding: 14px 5px 10px 10px;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
  }
  #cookie-modal { padding: 22px 5px 18px 5px; }
}


/* ------ Font Face Imports for Montserrat & Roboto (fallback to system) ------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

/* End: CSS for Notariusz Online Meadow */