/* =================================================================
   GlisiaScape Yorkshire Homes – Minimalist CSS Theme
   ------------------------------------------------------
   - Minimal color palette: #274247 (primary), #8DA57B (secondary), #F3F1EA (accent), #fff, #222
   - Fonts: "Merriweather" (display), "Open Sans" (body)
   - Mandatory Flexbox layouts, NO GRID. Breathing space, modern subtle shadows.
   - Responsive, Mobile-first, Animations, Burger Menu, Cookie Banner
   ================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* -------------------------
   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, main, 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #222;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #274247;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #8DA57B;
}
ul, ol {
  margin-left: 1.5em;
  padding-left: 0;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}
/* Typography Scale */
h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #274247;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #274247;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #274247;
  margin-bottom: 14px;
}
h4 {
  font-family: 'Merriweather', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #8DA57B;
  margin-bottom: 10px;
}
p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #222;
}
blockquote {
  font-style: italic;
  color: #274247;
  border-left: 3px solid #8DA57B;
  margin: 16px 0;
  padding-left: 18px;
  background: #F3F1EA;
}
/* Display classes for extra hierarchy */
.display-1 { font-size: 3rem; }
.display-2 { font-size: 2.5rem; }

/* -------------------------
   LAYOUT CONTAINERS
------------------------- */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(39,66,71,.07);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(39,66,71,0.08);
  padding: 24px 20px 20px 20px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 20px 0 rgba(39,66,71,0.15);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* PROPERTY LIST PAGE (country homes) */
.property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.property-item {
  background: #F3F1EA;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(39,66,71,0.06);
  padding: 28px 20px 18px 20px;
  flex: 1 1 300px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .18s;
}
.property-item:hover {
  box-shadow: 0 4px 18px 0 rgba(39,66,71,0.13);
}

.location-map {
  background: #fff;
  border: 1px solid #F3F1EA;
  border-radius: 14px;
  padding: 20px 18px;
  margin-top: 14px;
  box-shadow: 0 1px 5px 0 rgba(39,66,71,0.07);
  min-width: 210px;
}
.location-map h4 { margin-bottom: 8px; color: #8DA57B; }
.location-map ul { margin-left: 1em; }

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F3F1EA;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(39,66,71,.13);
  margin-bottom: 20px;
  max-width: 520px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 5px 30px 0 rgba(39,66,71,0.14);
}
.testimonial-card p {
  font-size: 1.075rem;
  color: #222;
  margin-bottom: 6px;
}
.testimonial-meta {
  font-size: 0.96rem;
  color: #274247;
  opacity: 0.9;
  font-style: italic;
  letter-spacing: 0.01em;
}


/* -------------------------
   HEADER + NAVIGATION
------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #F3F1EA;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 16px 0 rgba(39,66,71,.04);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 18px;
}
.branding {
  display: flex;
  align-items: center;
}
.branding img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1 1 auto;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #274247;
  padding: 6px 0;
  transition: color .18s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: #8DA57B;
  transform: scaleX(0);
  transition: transform .18s;
  margin-top: 2px;
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8DA57B;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  transform: scaleX(1);
}

.cta-button {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #274247;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 16px;
  transition: background .16s, box-shadow .18s, color .15s;
  box-shadow: 0 2px 10px 0 rgba(39,66,71,0.08);
  cursor: pointer;
  outline: none;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: #8DA57B;
  color: #274247;
  box-shadow: 0 4px 22px 0 rgba(141,165,123,0.08);
}

/* Hamburger for mobile nav */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #274247;
  cursor: pointer;
  margin-left: 18px;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #8DA57B;
}

/* -------------------------
   MOBILE MENU OVERLAY
------------------------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(39,66,71,0.96);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transition: transform .38s cubic-bezier(.58,-0.11,.39,1.14), opacity .26s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  animation: slideInMenu .45s cubic-bezier(.58,-0.11,.39,1.14);
}
@keyframes slideInMenu {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); } 
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 12px 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color .19s;
  z-index: 2020;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 28px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 6px;
  transition: background .18s, color .17s;
  min-width: 180px;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: #8DA57B;
  color: #274247;
}

/* Mobile/Responsive header behaviour */
@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
    margin-left: 10px;
  }
  .cta-button {
    margin-left: 7px;
    padding: 9px 23px;
    font-size: 1rem;
  }
  .branding img {
    height: 40px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding-right: 0;
    gap: 7px;
    height: 61px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .branding img {
    height: 38px;
  }
}

/* -------------------------
   FOOTER
------------------------- */
footer {
  background: #fff;
  border-top: 1px solid #F3F1EA;
  padding: 38px 0 18px 0;
  margin-top: 60px;
  color: #222;
  font-size: 1rem;
  position: relative;
  z-index: 9;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #274247;
  font-size: 0.98rem;
  opacity: 0.82;
  transition: color .17s, opacity .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8DA57B;
  opacity: 1;
}
footer .branding img {
  height: 38px;
}
.contact-info {
  color: #222;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-info a {
  color: #274247;
  text-decoration: underline;
  font-size: 0.98rem;
  transition: color .18s;
}
.contact-info a:hover {
  color: #8DA57B;
}
@media (max-width: 900px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav {
    gap: 13px;
  }
}

/* -------------------------
   COOKIE CONSENT BANNER
------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #274247;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 19px 20px 16px 20px;
  z-index: 5000;
  box-shadow: 0 -2px 16px 0 rgba(39,66,71,.11);
  gap: 24px;
  font-size: 1rem;
  transition: transform .29s cubic-bezier(.46,.07,.53,.92), opacity .21s;
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner p {
  flex: 1 1 auto;
  color: #fff;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  border: none;
  border-radius: 20px;
  padding: 7px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition: background .16s, color .13s, box-shadow .18s;
  box-shadow: 0 1px 5px 0 rgba(141,165,123,.08);
}
.cookie-btn.accept {
  background: #8DA57B;
  color: #274247;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #F3F1EA;
  color: #274247;
}
.cookie-btn.reject {
  background: #fff;
  color: #274247;
  border: 1px solid #F3F1EA;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F3F1EA;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #8DA57B;
  color: #274247;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39,66,71,0.78);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  animation: fadeInModal .26s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  width: 90%;
  padding: 36px 28px 26px 28px;
  box-shadow: 0 6px 32px 0 rgba(39,66,71,0.19);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal h3 {
  color: #274247;
  font-size: 1.35rem;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 11px;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #F3F1EA;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: background .14s;
}
.cookie-toggle.enabled {
  background: #8DA57B;
}
.cookie-toggle::after {
  content: '';
  display: block;
  position: absolute;
  left: 2.5px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.11);
  transition: left .16s;
}
.cookie-toggle.enabled::after {
  left: 17.5px;
  background: #F3F1EA;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: #274247;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.67;
  transition: opacity .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  opacity: 1;
  color: #8DA57B;
}

/* -------------------------
   RESPONSIVE DESIGN
------------------------- */
@media (max-width: 650px) {
  .container, .footer-row {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section,
  .card,
  .property-item,
  .location-map {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 4px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 38px;
  }
  .footer-row {
    flex-direction: column;
    gap: 18px;
  }
  .property-list {
    gap: 16px;
    flex-direction: column;
  }
  .property-item,
  .card,
  .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.04rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  .cookie-modal {
    padding: 22px 7px 18px 7px;
    max-width: 98vw;
  }
}

/* -------------------------
   MISC: Utility, Animations
------------------------- */
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

@media (hover: hover) {
  .card:hover, .property-item:hover {
    transform: translateY(-3px) scale(1.01);
  }
  .cta-button:hover, .cookie-btn:hover {
    transform: translateY(-1px) scale(1.03);
  }
}

/* Fade-in for sections */
.section, .card, .testimonial-card {
  opacity: 1;
  animation: fadeInSection .7s cubic-bezier(.33,.99,.55,1.12);
}
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* -----------
   MISC TAGS
----------- */
hr {
  border: none;
  border-top: 1px solid #F3F1EA;
  margin: 32px 0;
}

/* -----------
   SPECIAL CLASSES FROM HTMLS
----------- */
.map-location {
  background: #F3F1EA;
  padding: 14px 16px;
  border-radius: 10px;
  color: #274247;
  margin: 12px 0 8px 0;
  font-size: 0.99rem;
  box-shadow: 0 1px 6px 0 rgba(39,66,71,.04);
}

/* -------------
   FORMS, INPUTS (future-proof)
------------- */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #F3F1EA;
  padding: 7px 12px;
  border-radius: 14px;
  color: #222;
  margin-bottom: 18px;
  outline: none;
  transition: border .13s, box-shadow .17s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #8DA57B;
  box-shadow: 0 0 3px 1px #8DA57B22;
}
button, input[type=submit] {
  font-family: 'Open Sans', Arial, sans-serif;
}

/* --- Hide elements --- */
.hide { display: none !important; }

/* =================================================================
   END: GlisiaScape Minimalist UI CSS
   ================================================================= */
