/* CSS RESET & NORMALIZE */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fffbe6;
}
ol, ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  font-style: italic;
}
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  transition: color 0.2s, background 0.2s;
}
button {
  font-family: inherit;
  font-size: 16px;
}

/* BRAND FONTS & RETRO STYLE */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');
:root {
  --color-primary: #17394d;
  --color-secondary: #7ea269;
  --color-accent: #f5f7fa;
  --color-body: #423737;
  --color-bg: #fffbe6;
  --color-sand: #e6dcc4;
  --color-orange: #d99c4b;
  --color-cream: #fff6e3;
  --color-headline: #21232b;
  --shadow-card: 0 6px 24px rgba(23, 57, 77, 0.12), 0 1.5px 2.5px rgba(154, 79, 36, 0.06);
  --border-radius: 16px;
  --vintage-font: 'Montserrat', 'Roboto', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --retro-pattern: repeating-linear-gradient(135deg, #e6dcc4 0 4px, #fff6e3 4px 12px);
}

body {
  font-family: var(--body-font);
  color: var(--color-body);
  background: var(--color-bg);
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vintage-font);
  color: var(--color-headline);
  font-weight: 900;
  letter-spacing: -0.012em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  text-shadow: 1px 3px 0 #e6dcc4;
  font-family: 'Montserrat', Arial, sans-serif;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  color: #17394d;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
  color: #7ea269;
}

p, li, .testimonial-meta {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-body);
}
strong {
  font-weight: 700;
  color: #17394d;
}

.subheadline {
  font-size: 1.15rem;
  color: #7ea269;
  margin-bottom: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.text-section {
  max-width: 670px;
  margin: 0 auto;
  padding-bottom: 0;
}

/* LAYOUT SPACING (MANDATORY) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
}
.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: #ffffff;
  border: 2.5px solid #e6dcc4;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(23,57,77,0.09);
  margin-bottom: 20px;
  position: relative;
  flex-direction: column;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card p {
  color: #1c2a21;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}
.testimonial-meta {
  color: #7ea269;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  margin-top: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
  background: var(--color-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 20px 22px 20px;
  border: 2px solid #e6dcc4;
  min-width: 220px;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
/* Feature grid for home page */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
/* CTA section retro accent */
.cta-section {
  background: var(--retro-pattern);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding: 50px 20px;
  border: 2px solid #e6dcc4;
}

/* TEAM LIST (O NAS) */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member {
  background: #fbf3d6;
  border-radius: 16px;
  border: 2px solid #e6dcc4;
  box-shadow: var(--shadow-card);
  padding: 28px 18px 18px;
  flex: 1 1 241px;
  margin-bottom: 20px;
  max-width: 300px;
}
.team-member h3 {
  color: #d99c4b;
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.team-member span {
  color: #7ea269;
  display: block;
  font-size: 0.97rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 12px;
}

/* LISTINGS & PROPERTY/LAND CARDS */
.listing-card,
.property-card,
.land-card {
  border-radius: 18px;
  background: #fffdf7;
  border: 2.5px solid #e6dcc4;
  box-shadow: var(--shadow-card);
  padding: 28px 20px 20px;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.listing-card h3,
.property-card h3,
.land-card h3 {
  color: #17394d;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.listing-card ul, .property-card ul, .land-card ul {
  margin-bottom: 7px;
  padding-left: 3px;
}
.listing-card li, .property-card li, .land-card li {
  padding-bottom: 1px;
  color: #76432b;
  font-family: 'Roboto', Arial, sans-serif;
}

/* SERVICE STEPS LIST (HOME) */
.service-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 18px;
}
.service-steps li {
  flex: 1 1 220px;
  min-width: 188px;
  background: #f2e7ce;
  border-radius: 16px;
  border: 2px solid #e6dcc4;
  box-shadow: 0 2px 8px rgba(23,57,77,0.06);
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.service-steps li img {
  width: 36px; height: 36px; margin-bottom: 10px;
}
.service-steps li strong {
  display: block;
  color: #17394d;
  font-weight: bold;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* BUTTONS, CTA, LINKS */
.cta-btn {
  display: inline-block;
  border: none;
  background: #d99c4b;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.12rem;
  padding: 14px 42px;
  border-radius: 32px;
  margin-top: 18px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(51, 30, 0, 0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.17s;
  letter-spacing: 0.04em;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: #b2762f;
  color: #fffbe6;
  box-shadow: 0 4px 20px rgba(51, 30, 0, 0.23);
  transform: translateY(-1.5px) scale(1.04);
}
nav.main-nav a, .footer-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #17394d;
  margin-right: 24px;
  font-size: 1.01rem;
  position: relative;
  transition: color 0.18s;
  padding: 3px 0;
}
nav.main-nav a:last-child, .footer-nav a:last-child, .mobile-nav a:last-child {
  margin-right: 0;
}
nav.main-nav a:hover, .footer-nav a:hover, .mobile-nav a:hover {
  color: #d99c4b;
  text-decoration: underline wavy #d99c4b 2px;
}

/* HEADER */
header { background: #fff6e3; box-shadow: 0 5px 15px rgba(23, 57, 77, 0.04); position: sticky; top: 0; z-index: 20; }
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 12px 20px 10px 20px;
}
header a img {
  height: 44px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
header .cta-btn {
  margin-left: auto;
  margin-right: 18px;
  padding: 11px 30px;
  font-size: 1rem;
}
.mobile-menu-toggle {
  display: none;
  background: #d99c4b;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
  box-shadow: 0 2px 8px rgba(154, 79, 36, 0.12);
  cursor: pointer;
  margin-left: 9px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #b2762f;
}

@media (max-width: 1020px) {
  nav.main-nav {
    gap: 6px;
  }
  header .container { gap: 10px; }
}

@media (max-width: 900px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-btn { margin-left: 0; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #e6dcc4f6;
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(0.5,1,0.7,1.2);
  display: flex;
  flex-direction: column;
  padding: 0 14px 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #17394d;
  font-size: 2.2rem;
  margin: 28px 14px 0 0;
  cursor: pointer;
  transition: color 0.19s;
  z-index: 220;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #d99c4b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 0 0 34px;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.23rem;
  padding: 9px 0 6px 2px;
  margin-right: 0;
  color: #17394d;
  border-bottom: 1.7px solid transparent;
  transition: color 0.18s, border 0.17s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #d99c4b;
  border-bottom: 1.7px solid #d99c4b;
}

/* MAIN LAYOUT SECTIONS */
main {
  margin-bottom: 38px;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
  background: none;
}

/* FOOTER */
footer {
  background: #17394d;
  color: #fffbe6;
  padding: 46px 0 0 0;
  border-top: 4px solid #e6dcc4;
  box-shadow: 0 -5px 16px rgba(23,57,77,0.03);
  font-family: 'Roboto', Arial, sans-serif;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
}
footer a {
  color: #efd08f;
  font-weight: 500;
  margin-right: 18px;
  font-size: 1.02rem;
  transition: color 0.17s;
}
footer a:hover {
  color: #7ea269;
  text-decoration: underline dotted #e6dcc4;
}
footer .brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 270px;
  gap: 12px;
}
footer .brand-info img {
  height: 38px;
}
footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 13px;
  color: #fffbe6;
}
footer .footer-contact h3 {
  color: #efd08f;
  margin-bottom: 3px;
  font-size: 1.13rem;
  font-weight: 700;
}
footer .footer-contact p img {
  margin-right: 6px;
  vertical-align: middle;
  height: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 200px;
  max-width: 270px;
}

/* RETRO-STYLE ELEMENTS for NOSTALGIA */
.card, .feature-item, .service-steps li, .listing-card, .property-card, .land-card, .testimonial-card, .team-member, .cta-section {
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  position: relative;
  border: 2px solid #e6dcc4;
}
.card:before, .cta-section:before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 44px; height: 44px;
  background: url('data:image/svg+xml;utf8,<svg fill="%23d99c4b" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><circle cx="24" cy="24" r="18" opacity="0.13"/></svg>') no-repeat center;
  z-index: 0;
  pointer-events: none;
}
.card:after, .cta-section:after {
  content: '';
  position: absolute;
  bottom: -14px; right: -14px;
  width: 36px; height: 36px;
  background: url('data:image/svg+xml;utf8,<svg fill="%237ea269" xmlns="http://www.w3.org/2000/svg" width="38" height="38"><rect width="38" height="17" rx="10" opacity="0.09"/></svg>') no-repeat center;
  z-index: 0;
  pointer-events: none;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff6e3;
  color: #423737;
  padding: 18px 18px 18px 26px;
  border-top: 3px solid #e6dcc4;
  box-shadow: 0 -4px 20px rgba(23, 57, 77, 0.10);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: cookieIn 0.65s cubic-bezier(.65,1.65,.19,.895);
}
@keyframes cookieIn {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  padding: 10px 26px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
  box-shadow: 0 1px 8px rgba(154,79,36,0.07);
}
.cookie-accept {
  background: #7ea269;
  color: #fff;
}
.cookie-accept:hover {background: #587c42;}
.cookie-reject {
  background: #efd08f;
  color: #17394d;
}
.cookie-reject:hover {background: #d99c4b;color:#fff;}
.cookie-settings {
  background: #fffbe6;
  color: #7ea269;
  border: 2px solid #e6dcc4;
}
.cookie-settings:hover {
  background: #e6dcc4; color: #17394d;
}

.cookie-modal {
  display: none; /* .open toggles display */
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  z-index: 4000;
  background: #fffdf7;
  border-radius: 18px;
  border: 2.5px solid #e6dcc4;
  box-shadow: 0 8px 44px rgba(23,57,77,0.22);
  padding: 32px 30px;
  min-width: 340px;
  max-width: 97vw;
  animation: cookieModalIn .38s cubic-bezier(.55,.09,.39,1.45);
}
@keyframes cookieModalIn {
  from { transform: translate(-50%,70%); opacity: 0;}
  to {transform: translate(-50%,-50%); opacity: 1;}
}
.cookie-modal.open {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  margin-bottom: 6px;
  color: #17394d;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-toggle {
  width: 36px;
  height: 20px;
  background: #e6dcc4;
  border-radius: 12px;
  position: relative;
  border: 1.5px solid #7ea269;
  cursor: pointer;
  transition: background .14s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: #7ea269;
}
.cookie-modal .cookie-toggle .thumb {
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(51,43,0,0.08);
  transition: left .15s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] .thumb {
  left: 18px;
}
.cookie-modal .cookie-toggle.disabled {
  opacity: 0.72;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-save-btn {
  background: #7ea269;
  color: #fff;
}
.cookie-modal .cookie-save-btn:hover {background: #587c42;}
.cookie-modal .cookie-cancel-btn {
  background: #efd08f;
  color: #17394d;
}
.cookie-modal .cookie-cancel-btn:hover {background: #d99c4b;color:#fff;}

/* Typography & global spacing utilities */
.mt-0 {margin-top:0;}
.mb-0 {margin-bottom:0;}
.mt-1 {margin-top:8px;}
.mt-2 {margin-top:16px;}
.mb-2 {margin-bottom:16px;}
.gap-12 {gap: 12px;}
.gap-24 {gap: 24px;}

/* Miscellaneous & vintage details */
ul li:before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background-color: #efd08f;
}
ol li:before {
  content: counter(li);
  color: #d99c4b;
  font-size: .91em;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 8px;
  border-radius: 50%;
  width: 22px; height: 22px;
  background: #ffe6bb;
  text-align: center;
  display: inline-block;
  line-height: 22px;
}
ol {counter-reset: li;}
ol li {counter-increment: li;}

.text-section strong {
  color: #7ea269;
  font-weight: 700;
}

/* Animations, transitions, hover details */
.card, .feature-item, .service-steps li, .listing-card, .property-card, .land-card, .testimonial-card, .team-member, .cta-btn {
  transition: box-shadow 0.25s, transform 0.17s;
}
.card:hover,
.feature-item:hover,
.service-steps li:hover,
.listing-card:hover,
.property-card:hover,
.land-card:hover,
.team-member:hover {
  box-shadow: 0 8px 40px rgba(23, 57, 77, 0.13);
  transform: translateY(-2px) scale(1.015);
}

/* Responsive/Flex layout rules */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper,
  .feature-grid, .service-steps, .team-list {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .feature-item,
  .team-member {
    min-width: 0px;
    max-width: none;
    width: 100%;
  }
  .testimonial-card, .listing-card, .property-card, .land-card, .card {
    padding: 18px 12px 16px 12px;
    margin-bottom: 16px;
  }
  header .container {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 7px 6px 7px;
  }
  section, .section {
    padding: 18px 0;
    margin-bottom: 32px;
  }
  .cta-section {padding: 28px 10px;}
  .footer-contact, .footer-nav, .brand-info {
    max-width: none;
    padding: 0;
  }
  .footer-nav {
    gap: 6px;
    font-size: 1rem;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1.01rem; }
  .cta-btn {font-size: .99rem; padding: 10px 17px;}
}

/* Utility for hiding (for script use) */
.hide {display: none !important;}
.visible {display: block;}

/* Accessibility: Focus states */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid #7ea269;
  outline-offset: 2px;
}

/* CRITICAL FLEXBOX UTILITY - All horizontal layouts are FLEX!  */
.feature-grid, .service-steps, .content-grid, .card-container, .team-list, .footer-nav, header .container, footer .content-wrapper, .text-image-section, .testimonial-card {
  display: flex;
  flex-wrap: wrap;
}

/* Prevent overlap by minimum gap/margin on ALL main flex children */
.feature-item, .team-member, .service-steps li, .testimonial-card, .listing-card, .property-card, .land-card {
  margin-bottom: 20px;
}

/* ENFORCED: No grid properties, no column properties anywhere */
/* END OF CSS FILE */
