/* --- 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;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}
body {
  min-height:100vh;
  background: #fff;
  color: #181818;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #183153;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #C4A46A;
  outline-offset: 2px;
}

/* --- VARIABLE ROOTS --- */
:root {
  --primary: #000;
  --primary-dark: #181818;
  --brand-primary: #183153;
  --brand-secondary: #C4A46A;
  --brand-accent: #F7F6F2;
  --gray: #d7d8da;
  --gray-dark: #535353;
  --white: #fff;
  --text-dark: #222;
  --text-gray: #444;
  --text-light: #eee;
  --shadow: 0px 3px 20px 0px rgba(24,49,83,0.06);
  --border-radius: 14px;
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

body,
p, li, ul, ol {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #000;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2.1rem;
  line-height: 1.18;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.45rem;
  line-height: 1.18;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.19rem;
}
p, ul, ol, li {
  font-size: 1rem;
}
.subheadline {
  font-size: 1.15rem;
  color: #444;
  font-weight: 500;
  margin-bottom: 26px;
  font-family: 'Montserrat', Arial, sans-serif;
}
strong, b {
  font-weight: 700;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
main {
  min-height: 400px;
  background: var(--white);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* --- FLEXBOX COMPONENT GRIDS --- */
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-container {
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 220px;
  max-width: 100%;
  flex: 1 1 260px;
  transition: border 0.15s, box-shadow 0.18s, transform 0.15s;
  border: 1px solid #eaeaea;
}
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 7px;
  filter: grayscale(100%) contrast(1.3);
}
.feature-item h3 {
  color: var(--brand-primary);
  font-size: 1.22rem;
  margin-bottom: 5px;
}
.feature-item p {
  color: var(--text-gray);
}
.feature-item:hover, .feature-item:focus-within {
  border: 1.5px solid var(--brand-secondary);
  box-shadow: 0px 6px 18px rgba(24,49,83,0.09);
  transform: translateY(-2px) scale(1.012);
}
/* Used for testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  border-radius: var(--border-radius);
  background: #fafbfc;
  margin-bottom: 20px;
  border-left: 5px solid var(--brand-secondary);
  box-shadow: 0 2px 8px rgba(24, 49, 83, 0.03);
  font-style: italic;
  color: var(--text-dark);
}
.testimonial-card span {
  color: var(--gray-dark);
  font-size: 0.98em;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 4px;
  letter-spacing: 0.01em;
}

/* --- HEADER --- */
header {
  background: var(--white);
  box-shadow: 0 1px 14px rgba(24,49,83,0.07);
  position: sticky;
  top: 0;
  z-index: 110;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  height: 47px;
  width: auto;
  margin-right: 16px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 8px;
  transition: color 0.14s, background 0.14s;
  border-radius: 6px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--brand-secondary);
  background: #efefef;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 11px rgba(24,49,83,0.09);
  margin-left: 26px;
  margin-right: 8px;
  outline: none;
  transition: background 0.15s, color 0.14s, transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-secondary);
  color: var(--primary-dark);
  transform: translateY(-1px) scale(1.012);
  box-shadow: 0 6px 18px rgba(24, 49, 83, 0.12);
}

.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: none;
  font-size: 2.1rem;
  border-radius: 11px;
  padding: 6px 17px 3px 13px;
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow 0.15s;
  z-index:111;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-secondary);
  color: #222;
  box-shadow: 0 3px 10px rgba(24,49,83,0.15);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(24,49,83,0.89);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.6,0,0.2,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu .mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  padding: 18px 25px 12px 24px;
  cursor: pointer;
  z-index: 1201;
  align-self: flex-end;
  transition: color 0.15s, filter 0.2s;
  filter: drop-shadow(0 1px 1px #222);
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 88vw;
  margin-top: 14px;
  gap: 16px;
  padding-left: 32px;
}
.mobile-menu .mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 600;
  margin-bottom: 13px;
  padding: 5px 0;
  border-radius: 5px;
  width: 100%;
  transition: color 0.13s, background 0.14s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.mobile-menu .mobile-nav a:hover,
.mobile-menu .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--primary-dark);
}

/* --- HERO --- */
.hero {
  padding: 64px 0 54px 0;
  background: #fff;
  display: flex;
  align-items: center;
  min-height: 340px;
  width: 100%;
  box-shadow: 0 1px 22px 0 rgba(24,49,83,0.04);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.hero .content-wrapper {
  max-width: 660px;
  gap: 28px;
}
.hero h1,
.hero .subheadline{
  color: #000;
  text-shadow: 0 2px 8px rgba(250,250,250,0.048);
}
.hero .cta-button {
  margin-left: 0;
  margin-top: 22px;
}

/* --- FILTER BAR (Listings) --- */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
  font-size: 1.07rem;
  color: #555;
}
.filter-bar a {
  font-weight: 600;
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: 5px;
  background: #f4f4f4;
  transition: background 0.13s, color 0.13s;
}
.filter-bar a:hover,
.filter-bar a:focus {
  background: var(--brand-secondary);
  color: var(--primary-dark);
}

/* --- CARDS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  min-width: 260px;
  max-width: 100%;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 24px 20px 16px 20px;
}

/* --- ICONS INSIDE UL/OL LI --- */
ul li img, ol li img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 10px;
  filter: grayscale(1) contrast(1.25);
}

/* --- UL/OL --- */
ul, ol {
  margin-left: 20px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 10px;
  list-style: disc inside;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 8px;
}

/* --- FOOTER --- */
footer {
  background: #111;
  color: var(--brand-accent);
  padding: 36px 0 22px 0;
  border-top: 4px solid var(--brand-secondary);
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-logo img {
  height: 46px;
  width: auto;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: #dedede;
  font-size: 1rem;
  transition: color 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--brand-secondary);
}
footer p {
  font-size: 0.98rem;
  color: #ababab;
  margin-top: 6px;
}

/* --- RESPONSIVE RULES --- */
@media (max-width: 1024px) {
  header .container,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.23rem;
  }
  .hero {
    min-height: 230px;
    padding: 38px 0 28px 0;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    margin-top: 7px;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .section {
    margin-bottom: 34px;
    padding: 22px 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 12px;
    font-size: 0.97em;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  .footer-logo img {
    margin-bottom: 0;
  }
}

@media (max-width: 520px) {
  header img {
    height: 33px;
  }
  .footer-logo img {
    height: 30px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .cta-button {
    padding: 11px 21px;
    font-size: 0.97rem;
  }
  .feature-item {
    padding: 15px 11px;
    min-width: 0;
  }
}

/* --- MICRO-INTERACTIONS & HOVER/FOCUS --- */
button, .cta-button, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.15s;
}
button:active, .cta-button:active {
  transform: scale(0.98);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #181818;
  color: var(--brand-accent);
  padding: 24px 18px 22px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  font-size: 1rem;
  z-index: 1500;
  box-shadow: 0 -2px 30px #18181825, 0 -0.5px 0 #C4A46A inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.18s cubic-bezier(0.66,0,0.19,1) , transform 0.29s cubic-bezier(0.67,0,0.21,1);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1.03rem;
  margin-bottom: 0;
  color: #dedede;
  max-width: 600px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
  margin-left: 18px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--brand-secondary);
  color: #111;
  border: none;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 20px;
  margin: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 1px 5px 0 rgba(24,49,83,0.08);
}
.cookie-settings-btn {
  background: transparent;
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
}
.cookie-btn:hover,
.cookie-btn:focus,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: var(--primary-dark);
  color: var(--brand-accent);
  box-shadow: 0 4px 16px 0 rgba(24,49,83,0.17);
}
.cookie-btn.reject {
  background: #535353;
  color: #fff;
  border: none;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #000;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: rgba(24,49,83,0.80);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity:0;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.6,0,0.22,1);
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px 0 rgba(24,49,83,0.32);
  padding: 34px 38px 28px 38px;
  max-width: 410px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  position: relative;
  z-index:1610;
}
.cookie-modal h3 {
  color: var(--brand-primary);
  font-size: 1.12rem;
  margin-bottom: 2px;
}
.cookie-modal .modal-close {
  background: transparent;
  color: var(--brand-primary);
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: var(--brand-secondary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  background: #ececec;
  width: 40px;
  height: 22px;
  border-radius: 15px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--brand-secondary);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #1116;
  transition: transform 0.19s cubic-bezier(0.6,0,0.24,1);
}
.cookie-modal .cookie-toggle:checked:before {
  transform: translateX(18px);
}
.cookie-modal .locked-label {
  color: #777;
  font-size: 0.97rem;
}
.cookie-modal .category-desc {
  color: #666;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-actions {
  margin-top: 11px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width:500px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 20px 7px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    max-width: 96vw;
    padding: 18px 8px 16px 12px;
  }
}

/* --- END OF STYLE.CSS --- */
