/*------------------------------------------------------
  CSS Reset & Normalize (for wide browser support)
--------------------------------------------------------*/
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: #F1EFEB;
  color: #254022;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #6B4818;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #254022;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #254022;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  margin: 16px 0 8px 0;
  letter-spacing: 0.2px;
}
p, address {
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: 'Lato', Arial, sans-serif;
  color: #3A2C19;
}
blockquote {
  font-family: 'Merriweather', serif;
  font-style: italic;
  background: #fff7ec;
  border-left: 5px solid #8A6741;
  margin: 0 0 8px 0;
  padding: 16px 24px;
  color: #6B4818;
  border-radius: 12px;
}

/*------------------------------------------------------
 Vintage Retro Theme (palette variant + patterns)
--------------------------------------------------------*/
:root {
  --primary: #254022;
  --secondary: #F1EFEB;
  --accent: #8A6741;
  --alt-accent: #6B4818;
  --white: #FFF;
  --offwhite: #FBF9F4;
  --beige: #E1D6C1;
  --brown: #4E2A13;
  --soft-blue: #5C7C8A;
  --retro-mustard: #F1C376;
  --retro-green: #5A784F;
  --retro-brown: #8A6741;
  --retro-red: #9F4A3C;
  --retro-yellow: #F9E9B7;
}

/* Vintage body background texture effect (subtle) */
body {
  background: var(--secondary);
  background-image: repeating-linear-gradient(135deg, rgba(234,222,205,0.1) 0 2px, transparent 2px 20px), repeating-linear-gradient(225deg, rgba(234,222,205,0.09) 0 1px, transparent 1px 15px);
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/*------------------------------------------------------
  Header & Main Navigation
--------------------------------------------------------*/
header {
  background: var(--primary);
  border-bottom: 6px solid var(--retro-mustard);
  position: relative;
  z-index: 9;
}
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 32px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav li {
  margin: 0;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  color: var(--retro-mustard);
  padding: 6px 16px;
  border-radius: 40px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--retro-mustard);
  color: var(--primary);
  outline: none;
}
.main-nav img {
  height: 48px;
  width: auto;
}
.button-primary {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 40px;
  box-shadow: 0 4px 18px 0 rgba(106,75,24, 0.08), 0 1.5px 8px 0 rgba(106,75,24, 0.08);
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  font-weight: 700;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.15s;
  position: relative;
}
.button-primary:hover, .button-primary:focus {
  background: var(--retro-mustard);
  color: var(--primary);
  box-shadow: 0 2px 8px 0 rgba(101, 76, 33, 0.2);
  transform: translateY(-1px) scale(1.04);
}

/* Hamburger / Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--retro-mustard);
  padding: 8px 16px;
  cursor: pointer;
  z-index: 201;
}

@media (max-width: 992px) {
  .main-nav ul, .main-nav .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 20px;
  }
}

/*------------------------------------------------------
  Mobile Menu Overlay
--------------------------------------------------------*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--retro-mustard);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.68, -0.3, 0.32, 1.5);
  box-shadow: 2px 0 24px 0 rgba(0,0,0,0.09);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--retro-mustard);
  font-size: 2.2rem;
  margin: 28px 24px 0 0;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 32px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: var(--retro-mustard);
  padding: 12px 0;
  font-weight: 700;
  transition: color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--retro-yellow);
}

@media (max-width: 992px) {
  .mobile-menu {
    display: flex;
  }
}

/*------------------------------------------------------
  Sections and General Layout
--------------------------------------------------------*/
.section,
.hero, .about-preview, .about, .trust-signals, .features,
.services, .services-highlight, .services-brief, .property-filters,
.valuation-form, .contact-block, .cta, .steps-next, .legal, .testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(251,249,244,0.75);
  border-radius: 32px;
  position: relative;
  box-shadow: 0 0.5px 16px rgba(138,103,65,0.06);
}
.hero {
  background: linear-gradient(117deg, var(--retro-yellow), var(--offwhite) 90%) !important;
  border-radius: 0 0 36px 36px;
  margin-bottom: 48px;
  padding-top: 54px;
  box-shadow: 0 4px 42px 0 rgba(106,75,24, 0.09);
}

/* Vintage retro patterns - subtle inner border */
.section, .hero, .about-preview, .about, .trust-signals, .services, .cta, .testimonials, .legal {
  border: 2.5px solid var(--retro-mustard);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}

/*------------------------------------------------------
  Card Containers & Flexbox patterns
--------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--offwhite);
  border: 2px solid var(--retro-mustard);
  border-radius: 28px;
  box-shadow: 0 2px 18px rgba(138,103,65,0.08);
  padding: 28px 28px 22px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
}

.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;
}

/* Testimonials & Cards */
.testimonials .testimonial-card,
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff7ec;
  border: 2px solid var(--retro-mustard);
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(106,75,24,0.07);
}
.testimonial-card p {
  font-family: 'Lato', Arial, sans-serif;
  color: #3A2C19;
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.2px;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  color: #8A6741;
  font-size: 1.1rem;
  padding: 0;
  margin: 0 0 6px 0;
}
.testimonials h2 {
  margin-bottom: 28px;
}
/* Visual contrast in testimonial cards */
.testimonial-card, .testimonials .testimonial-card {
  background: #fff7ec;
  color: #4E2A13;
}
.testimonial-card blockquote, .testimonials .testimonial-card blockquote {
  color: #8A6741;
}

/* Feature Items (cards with icon and text) */
.features ul, .services ul, .services-highlight ul, .trust-signals ul, .property-filters .feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-bottom: 22px;
}
.features ul li, .services ul li, .services-highlight ul li, .trust-signals ul li, .property-filters .feature-icons img {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.property-filters .feature-icons {
  gap: 32px 40px;
  margin-bottom: 16px;
}
.features ul li img, .trust-signals ul li img, .property-filters .feature-icons img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--beige);
  border: 2px solid var(--alt-accent);
  padding: 8px;
  margin-bottom: 6px;
  box-shadow: 0 0.5px 6px rgba(138,103,65, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.features ul li:hover img, .trust-signals ul li:hover img {
  background: var(--retro-yellow);
  box-shadow: 0 1.5px 12px rgba(250,196,118, 0.15);
}

/* Feature descriptions */
.features ul li strong, .services-highlight ul li h3, .services ul li h3 {
  color: var(--accent);
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  margin-bottom: 3px;
}
.features ul li span {
  color: #4E2A13;
  font-size: 1rem;
}

/* Spacing for feature items */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--retro-mustard);
  border-top: 5px solid var(--retro-mustard);
  padding: 40px 0 0 0;
  margin-top: 70px;
}
.footer-logo img {
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  margin-bottom: 16px;
  width: 100%;
}
.footer-columns .column {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  margin-bottom: 16px;
}
.footer-columns h4 {
  color: var(--retro-yellow);
  font-family: 'Merriweather', serif;
  margin-bottom: 7px;
  font-size: 1.08rem;
}
.footer-columns ul li a {
  font-size: 1rem;
  color: var(--retro-mustard);
  padding: 2px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.footer-columns ul li a:hover, .footer-columns ul li a:focus {
  color: var(--alt-accent);
  background: var(--retro-yellow);
}
.footer-bottom {
  border-top: 1.5px dashed var(--retro-mustard);
  margin-top: 14px;
  padding: 10px 0 6px 0;
  text-align: center;
  font-size: 0.98rem;
  color: var(--retro-yellow);
}


/* Address */
address {
  font-style: normal;
  color: #574227;
  font-size: 1rem;
}

/*------------------------------------------------------
  Legal and Policy Sections
--------------------------------------------------------*/
.legal {
  background: #F9E9B7;
  border: 2.5px solid var(--accent);
  color: #3A2C19;
  font-size: 1.05rem;
}
.legal h1, .legal h2, .legal h3 {
  color: var(--primary);
}
.legal h2 {
  font-size: 1.15rem;
  margin-top: 14px;
}
.legal ul {
  margin-bottom: 1em;
  padding-left: 20px;
  list-style: disc;
}
.legal a {
  color: var(--alt-accent);
}

/*------------------------------------------------------
  Responsive Rules (Mobile-first, retro typography)
--------------------------------------------------------*/
@media (max-width: 768px) {
  .container {
    padding: 0 9px;
  }
  .footer-columns {
    flex-direction: column;
    gap: 16px;
  }
  .main-nav {
    flex-direction: row;
    gap: 12px;
  }
  .section, .hero, .about-preview, .about, .trust-signals, .features,
  .services, .services-highlight, .cta, .testimonials, .legal {
    padding: 24px 6px;
    margin-bottom: 42px;
    border-radius: 19px;
  }
  h1 {
    font-size: 1.45rem;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .footer-logo img {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
  }
  .card {
    padding: 14px 10px;
    min-width: 160px;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .testimonial-card, .testimonials .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }
  .hero {
    padding-top: 32px;
    border-radius: 0 0 22px 22px;
  }
}
@media (max-width: 440px) {
  h1 { font-size: 1.1rem; }
  h2 { font-size: 1rem; }
}

/*------------------------------------------------------
  Micro-animations: Buttons, cards, icons
--------------------------------------------------------*/
.button-primary, .main-nav a, .footer-columns ul li a {
  transition: background 0.18s, color 0.18s, box-shadow 0.12s, transform 0.14s;
}
.card, .testimonial-card, .features ul li, .services-highlight ul li {
  transition: box-shadow 0.17s, transform 0.13s, background 0.16s;
}
.card:hover, .testimonial-card:hover, .features ul li:hover, .services-highlight ul li:hover {
  box-shadow: 0 4px 16px 0 rgba(90,66,23,0.13);
  transform: translateY(-2px) scale(1.01);
  background: #f2ebe0;
}

/* Highlights for elements */
::selection {
  background: var(--retro-mustard);
  color: var(--primary);
}

/*------------------------------------------------------
  Cookie Consent Banner + Modal Styles
--------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: #fff7ec;
  border-top: 3.5px solid var(--retro-mustard);
  box-shadow: 0 -2px 18px rgba(143, 98, 37, 0.12);
  padding: 24px 12px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.04rem;
  color: #3A2C19;
  animation: bannerIn 0.38s cubic-bezier(.69,-0.3,.32,1.5);
}
@keyframes bannerIn {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  margin-left: 18px;
}
.cookie-banner button {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  padding: 8px 21px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  margin-left: 0;
  box-shadow: 0 1.5px 5px rgba(106,75,24, 0.05);
  transition: background 0.17s, color 0.13s, transform 0.11s;
}
.cookie-banner .cookie-accept {
  background: var(--accent);
  color: var(--white);
}
.cookie-banner .cookie-accept:hover,
.cookie-banner .cookie-accept:focus {
  background: var(--retro-mustard);
  color: var(--primary);
}
.cookie-banner .cookie-reject {
  background: #F1C376;
  color: #254022;
}
.cookie-banner .cookie-reject:hover,
.cookie-banner .cookie-reject:focus {
  background: #5A784F;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #8A6741;
  border: 1.3px solid var(--accent);
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: var(--beige);
  color: var(--primary);
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,64,34,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 1;
  animation: modalIn 0.32s cubic-bezier(.69,-0.3,.32,1.5);
}
@keyframes modalIn {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal .modal-content {
  background: #fff7ec;
  border: 2.5px solid var(--retro-mustard);
  border-radius: 24px;
  padding: 36px 26px;
  box-shadow: 0 4px 32px rgba(138,103,65,0.17);
  min-width: 320px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1.07rem;
}
.cookie-modal .modal-content h2 {
  color: var(--primary);
  margin-bottom: 13px;
  font-size: 1.15rem;
}
.cookie-modal .modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .modal-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  color: #3A2C19;
}
.cookie-modal .modal-content .toggle {
  margin-right: 8px;
}
.cookie-modal .modal-content .modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 13px;
}
.cookie-modal .modal-content .modal-actions button {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 23px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .modal-content .modal-actions button.close-modal {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cookie-modal .modal-content .modal-actions button.close-modal:hover,
.cookie-modal .modal-content .modal-actions button.close-modal:focus {
  background: var(--retro-yellow);
  color: var(--primary);
}
.cookie-modal .modal-content .modal-actions button.save-preferences {
  background: var(--retro-mustard);
  color: #254022;
}
.cookie-modal .modal-content .modal-actions button.save-preferences:hover,
.cookie-modal .modal-content .modal-actions button.save-preferences:focus {
  background: var(--retro-green);
  color: #fff;
}

@media (max-width: 540px) {
  .cookie-modal .modal-content {
    padding: 16px 6px;
    min-width: 96vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 21px;
    padding: 16px 4px 11px 4px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    gap: 9px;
  }
}

/* Hide native checkboxes for cookie modal toggles (faux toggle style) */
.cookie-modal .modal-content input[type='checkbox'] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}
.cookie-modal .modal-content .toggle {
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #e6cba7;
  position: relative;
  margin-right: 8px;
  transition: background 0.18s;
  vertical-align: middle;
}
.cookie-modal .modal-content input[type='checkbox']:checked + .toggle {
  background: var(--retro-green);
}
.cookie-modal .modal-content .toggle::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px; left: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: left 0.2s;
}
.cookie-modal .modal-content input[type='checkbox']:checked + .toggle::after {
  left: 18px;
  background: #f6f6ea;
}

/* Essential cookies label always enabled (faded/locked) */
.cookie-modal .modal-content label.essential {
  opacity: 0.75;
  cursor: default;
}

/*------------------------------------------------------
  Utility: Hide/Show helpers (for menu/modal/components)
--------------------------------------------------------*/
[hidden],
.hide { display: none !important; }
.show { display: block !important; }

/*------------------------------------------------------
  Miscellaneous & Details
--------------------------------------------------------*/
::-webkit-input-placeholder { color: #bca571; }
::-moz-placeholder          { color: #bca571; }
:-ms-input-placeholder      { color: #bca571; }
::placeholder              { color: #bca571; }

hr {
  border: 0;
  border-top: 1px dashed var(--retro-brown);
  margin: 24px 0;
}

.text-section a {
  color: var(--accent);
  text-decoration: underline;
}
.text-section a:hover,
.text-section a:focus {
  color: var(--primary);
}

/* Retro/nostalgic touches: subtle dotted lines under headings */
h2, h3 {
  border-bottom: 1.75px dotted var(--alt-accent);
  display: inline-block;
  padding-bottom: 3px;
}

/* Allow focus outlines for accessibility */
a:focus, button:focus {
  outline: 2px dashed var(--retro-red);
  outline-offset: 2.5px;
}

/* Scrollbar custom retro style */
::-webkit-scrollbar {
  width: 10px;
  background: #e6cba7;
}
::-webkit-scrollbar-thumb {
  background: #8A6741;
  border-radius: 9px;
}

/*------------------------------------------------------
  End of Comprehensive Styles
--------------------------------------------------------*/
