/* RESET & BASE STYLES */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}
:root {
  --primary: #27446E;
  --primary-rgb: 39, 68, 110;
  --secondary: #F4F6FA;
  --secondary-dark: #dde3ee;
  --accent: #C6B183;
  --accent-light: #e9e2cf;
  --error: #df7575;
  --bg: #F8F9FB;
  --text: #2b3340;
  --text-light: #5c6473;
  --shadow: 0 4px 24px rgba(39,68,110,0.08);
  --shadow-soft: 0 2px 10px rgba(198,177,131, 0.06);
  --radius: 18px;
  --radius-small: 10px;
  --font-display: Montserrat, Arial, sans-serif;
  --font-body: Roboto, Arial, sans-serif;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.2;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.text-section h3 {
  color: var(--accent);
}
p, li, ul, ol {
  color: var(--text-light);
}
strong {
  color: var(--primary);
  font-weight: 700;
}

/* UNIVERSAL SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--secondary);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 40px;
  }
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-width: 40px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-small);
  transition: background 0.25s, box-shadow 0.25s, color 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #365388;
  box-shadow: 0 3px 16px rgba(39,68,110,0.10);
  color: #fff;
}
.btn-secondary {
  background: var(--accent-light);
  color: var(--primary);
  border: 1px solid var(--accent);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: #fff;
}

/* HEADER */
header {
  width: 100%;
  background: linear-gradient(98deg, #f6f8fc 55%, #f1f3fa 100%);
  box-shadow: 0 2px 12px rgba(39,68,110,.03);
  z-index: 1001;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo img {
  height: 44px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--primary);
  padding: 7px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  border-radius: 6px;
  transition: background 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent-light);
  color: var(--text);
}
header .btn-primary {
  margin-left: 16px;
  font-size: 1rem;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 16px;
  display: none;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 16px;
  }
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(244,246,250,0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,.2,.34,.99);
  box-shadow: var(--shadow);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 26px 0 0;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 50px 34px 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--primary);
  padding: 10px 0;
  border-radius: var(--radius-small);
  width: 100%;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-light);
  color: var(--accent);
}
@media (max-width: 992px) {
  .main-nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 400px) {
  .mobile-nav {
    margin: 40px 14px 0 14px;
  }
}

/* HERO SECTION */
.hero {
  padding-top: 38px;
  padding-bottom: 38px;
  margin-bottom: 40px;
  background: linear-gradient(120deg, #f4e8ff 0%, #e3f6ff 85%);
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 0;
}
.hero p {
  font-size: 1.17rem;
  color: var(--text-light);
}
.hero .btn-primary {
  margin-top: 14px;
  align-self: flex-start;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 16px;
    padding-bottom: 24px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* FLEXBOX STRUCTURES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.23s;
}
.card:hover {
  box-shadow: 0 4px 32px rgba(198,177,131, 0.16);
}
.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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* TEXT SECTIONS */
.text-section {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section ol {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-section li {
  position: relative;
  padding-left: 14px;
}
.text-section li:before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.text-section li strong { font-weight: 700; color: var(--primary); }

/* FEATURE GRID, CARDS, FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-grid > div {
  background: #fff8e6;
  border-radius: var(--radius);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  padding: 24px 16px 24px 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 14px rgba(198,177,131, 0.11);
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img {
  height: 42px;
  margin-bottom: 3px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* PROPERTY LISTINGS (NABIDKA BYTU) */
.property-listing-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 210px;
  position: relative;
  transition: box-shadow 0.22s;
}
.property-listing-card:hover {
  box-shadow: 0 8px 32px rgba(198,177,131,0.16);
}
.property-listing-card ul {
  margin: 0 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.property-tag {
  display: inline-block;
  background: #e0d1a9;
  padding: 2px 10px;
  border-radius: 14px;
  font-size: 0.97em;
  color: #775c12;
  font-weight: 500;
  margin-right: 7px;
}
.service-price {
  color: var(--accent);
  font-weight: 600;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(96deg, #e3f6ff 45%, #f8eefa 100%);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin: 24px 0 16px 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}
.cta-banner h2, .cta-banner h3 {
  color: var(--primary);
  margin-bottom: 7px;
}
.cta-banner p {
  color: var(--text-light);
  margin-bottom: 0;
}
.cta-banner .btn-primary {
  margin-top: 8px;
  align-self: flex-start;
}
@media (max-width: 600px) {
  .cta-banner {
    padding: 20px 10px;
  }
  .cta-banner h2 {
    font-size: 1.2rem;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 28px;
  margin-bottom: 20px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 0;
  flex: 1 1 190px;
}
.testimonial-meta {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1rem;
  margin-left: 12px;
  font-weight: 500;
  min-width: 120px;
}
@media (max-width: 650px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 11px;
  }
}

/* TEAM + SPECIAL SECTIONS */
.team-profiles {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-member {
  padding: 14px 18px;
  background: #f6f1e9;
  border-radius: var(--radius-small);
  font-size: 1.07rem;
  box-shadow: 0 1px 4px rgba(198,177,131,0.055);
}

.map-snippet {
  background: #e3f6ff;
  border-radius: var(--radius-small);
  padding: 22px;
  min-width: 180px;
  box-shadow: var(--shadow-soft);
  margin-top: 10px;
}
.map-snippet img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-small);
}

/* FOOTER */
footer {
  background: #e3f6ff;
  padding-top: 36px;
  padding-bottom: 36px;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-brand img {
  height: 38px;
  display: block;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.95;
  transition: color 0.17s, opacity 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
}
.footer-contact div {
  font-size: 0.99rem;
  color: var(--text-light);
  margin-bottom: 7px;
}
.footer-contact a {
  color: var(--primary);
  text-decoration: underline dotted;
  transition: color 0.13s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--accent);
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-brand img {
    margin-bottom: 0;
  }
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 2050;
  background: #fff4e6;
  box-shadow: 0 -2px 18px rgba(198,177,131,0.085);
  padding: 22px 20px 18px 20px;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  animation: slideUp 0.6s cubic-bezier(.18,0,.48,1);
}
@keyframes slideUp {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  flex: 1 1 auto;
  color: #866c26;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  min-width: 120px;
  padding: 10px 20px;
  font-size: 0.98rem;
}
.cookie-banner .btn-secondary {
  background: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2150;
  background: rgba(39,68,110,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}
.cookie-modal-content {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 38px 26px 30px 26px;
  min-width: 320px;
  max-width: 99vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleUp 0.3s 0.1s backwards;
}
@keyframes scaleUp {
  from {transform: scale(0.92); opacity: 0.7;}
  to {transform: scale(1); opacity: 1;}
}
.cookie-modal-content h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.22rem;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1eada;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-size: 1rem;
  color: var(--text);
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: var(--secondary-dark);
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0; width: 0; height: 0;
}
.cookie-toggle .toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s, background 0.18s;
  box-shadow: 0 1px 3px rgba(39,68,110,0.10);
}
.cookie-toggle input[type='checkbox']:checked + .toggle-slider {
  left: 18px;
  background: var(--accent);
}
.cookie-toggle input[type='checkbox']:checked ~ .cookie-toggle {
  background: var(--accent-light);
}
.cookie-modal .close-modal {
  position: absolute;
  right: 21px;
  top: 17px;
  font-size: 1.6rem;
  background: none;
  color: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  width: 28px; height: 28px;
}
.cookie-modal .close-modal:focus, .cookie-modal .close-modal:hover {
  background: #f6f1e9;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  padding: 10px 18px;
  font-size: 1rem;
}

/* FORMS & INPUTS (for future expansion) */
input, textarea, select {
  border: 1px solid #dde3ee;
  border-radius: var(--radius-small);
  padding: 10px 14px;
  font-size: 1rem;
  background: #f8f9fb;
  margin-bottom: 16px;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 6px;
  display: inline-block;
}


/* SPACING BETWEEN CARDS/SECTIONS */
main > section {
  margin-bottom: 60px;
}
main > section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 0;
}
.content-wrapper > * + * {
  margin-top: 8px;
}

/* VISUAL EFFECTS & MICRO-INTERACTIONS */
.card, .feature-grid > div, .property-listing-card, .testimonial-card, .cta-banner {
  transition: box-shadow 0.22s, transform 0.13s;
}
.btn-primary, .btn-secondary {
  transition: background 0.22s, color 0.15s, box-shadow 0.16s;
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.97);
}
.cta-banner, .card, .testimonial-card {
  overflow: hidden;
}

/* ACCESSIBILITY HIGHLIGHTS */
a:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* RESPONSIVE TYPOGRAPHY */
@media (max-width: 700px) {
  h1, .hero h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.23rem;
  }
}

@media (max-width: 550px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1, .hero h1 {
    font-size: 1.22rem;
  }
}

/* MISC: Utility classes */
.hide { display: none !important; }
.muted { color: #979fc8; }

/* SCROLLBAR STYLING FOR SMOOTH/PASTEL */
::-webkit-scrollbar {
  width: 9px;
  background: #f4f6fa;
}
::-webkit-scrollbar-thumb {
  background: #e3f6ff;
  border-radius: 9px;
}

/* SOFT PASTEL DECORATIVE EFFECTS */
.card, .property-listing-card, .feature-grid > div, .testimonial-card, .cta-banner, .section {
  background-clip: padding-box;
  border: 1px solid #f3ebd8;
}

/* ENSURE NO OVERLAPPING */
.card, .property-listing-card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .cta-banner, .property-listing-card, .testimonial-card, .team-member {
    padding: 10px 5px;
  }
}

/* END OF CSS */
