/* 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.6;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}

/* FONT IMPORTS AND ROOT VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');
:root {
  --primary: #08305B;
  --secondary: #F1F3F6;
  --accent: #E6A142;
  --white: #fff;
  --text: #223043;
  --text-secondary: #637089;
  --success: #64b687;
  --danger: #D84343;
  --shadow: 0 2px 12px 0 rgba(36, 53, 72, 0.06);
  --radius-m: 16px;
  --radius-s: 8px;
  --radius-l: 24px;
}

html {
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--secondary);
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  color: var(--text);
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

p, ul li, ol li {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.tagline {
  color: var(--accent);
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-top: 6px;
}

/* ==== SECTIONS & SPACING ====*/
section {
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 14px;
  background: var(--secondary);
  border-radius: var(--radius-m);
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: var(--white);
  border-bottom: 1px solid #e0e6ef;
  box-shadow: 0 1px 8px rgba(8,48,91,.04);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
header nav img {
  height: 38px;
  margin-right: 18px;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: var(--radius-s);
  transition: background .2s, color .2s;
}
header nav a:not(.cta-primary):hover,
header nav a:not(.cta-primary):focus {
  background: var(--secondary);
  color: var(--accent);
}
.cta-primary {
  background: var(--primary);
  color: var(--white)!important;
  border-radius: var(--radius-m);
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 24px;
  box-shadow: 0 2px 12px 0 rgba(18,32,45,0.06);
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: background .2s, color .2s, transform .15s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent);
  color: var(--primary)!important;
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: var(--accent);
  color: var(--primary)!important;
  border-radius: var(--radius-m);
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  display: inline-block;
  margin-left: 8px;
  box-shadow: 0 1px 8px rgba(18,32,45,0.06);
  transition: background .2s, color .2s, transform .15s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: var(--accent)!important;
  transform: translateY(-1.5px) scale(1.02);
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  margin-left: auto;
  z-index: 50;
  transition: background .2s;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8,48,91, 0.95);
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.77,0,.18,1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  transition: transform .33s cubic-bezier(.77,0,.18,1);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  padding: 22px 30px 12px 18px;
  margin-left: auto;
  cursor: pointer;
  z-index: 10000;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 40px;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
  padding: 10px 8px;
  border-radius: var(--radius-s);
  width: fit-content;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--white);
  color: var(--primary);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 30px;
    top: 14px;
  }
}
@media (max-width: 960px) {
  .mobile-menu {
    padding-top: 0;
  }
}

/* ==== MAIN & SECTION LAYOUT ==== */
main {
  width: 100%;
  min-height: 65vh;
  padding-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* ==== CARDS & LISTS ==== */
.service-list, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0 18px 0;
}
.service-card {
  background: var(--secondary);
  box-shadow: 0 2px 10px 0 rgba(36,53,72,0.06);
  border-radius: var(--radius-m);
  padding: 28px 22px 16px 22px;
  min-width: 230px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .14s;
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 24px 0 rgba(36,53,72,0.09);
}
.service-card h3 {
  margin-bottom: 7px;
  color: var(--primary);
}
.service-card p {
  font-size: 1rem;
  margin-bottom: 10px;
}
.service-card div, .service-card span {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}
.property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 20px 0;
}
.property-item {
  background: var(--secondary);
  border-radius: var(--radius-m);
  box-shadow: 0 2px 12px 0 rgba(36,53,72,0.06);
  flex: 1 1 320px;
  min-width: 270px;
  max-width: 370px;
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .14s;
}
.property-item:hover, .property-item:focus-within {
  box-shadow: 0 8px 24px 0 rgba(36,53,72,0.09);
  transform: translateY(-3px) scale(1.012);
}
.property-item h3 {
  color: var(--primary);
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.property-item ul li {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ==== POSTS, FAQ, OTHER LISTS ==== */
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 16px 0;
}
.post-item {
  background: var(--secondary);
  border-radius: var(--radius-m);
  box-shadow: 0 2px 10px 0 rgba(36,53,72,0.06);
  padding: 18px 14px 16px 14px;
  min-width: 200px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .13s;
}
.post-item h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.14rem;
}
.post-item span {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.faq {
  margin-top: 26px;
  background: var(--secondary);
  padding: 20px 18px;
  border-radius: var(--radius-m);
}
.faq h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.faq strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
}
.faq p {
  color: var(--text-secondary);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: 0 2px 10px 0 rgba(36,53,72,0.09);
  margin-bottom: 24px;
  flex-direction: row;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-details {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
}

/* ==== TABLES ==== */
table {
  width: 100%;
  margin-bottom: 24px;
  border-radius: var(--radius-m);
  background: var(--secondary);
  box-shadow: 0 1px 6px 0 rgba(36,53,72,0.04);
  overflow: hidden;
}
thead {
  background: var(--primary);
}
th, td {
  padding: 13px 11px;
  text-align: left;
}
th {
  color: var(--white);
  font-family: 'Montserrat',Arial;
  font-weight: 700;
}
td {
  color: var(--text-secondary);
  background: var(--secondary);
  border-bottom: 1px solid #e4e8f0;
}
tr:last-child td {
  border-bottom: none;
}

/* ==== ICONS ==== */
ul li img, .feature-item img, .credentials img {
  height: 26px;
  width: 26px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}

/* ==== CREDENTIALS ==== */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* ==== CONTACT INFO ==== */
.contact-info {
  background: var(--secondary);
  padding: 18px 18px 14px 18px;
  border-radius: var(--radius-m);
  color: var(--primary);
  font-size: 1.05rem;
  font-family: 'Open Sans',Arial,sans-serif;
  margin-top: 6px;
  margin-bottom: 10px;
  word-break: break-word;
}
.contact-info a {
  color: var(--accent);
  text-decoration: underline dotted var(--accent) 1px;
  transition: color 0.2s;
}
.contact-info a:hover, .contact-info a:focus {
  color: var(--primary);
}

/* ==== FOOTER ==== */
footer {
  background: var(--white);
  border-top: 1px solid #e0e6ef;
  margin-top: 30px;
  padding: 40px 0 18px 0;
}
footer .container {
  max-width: 1140px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 auto;
}
footer img {
  height: 38px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact {
  color: var(--text-secondary);
  font-size: 0.97rem;
  margin-bottom: 8px;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline dotted var(--accent) 1px;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.93rem;
  margin-top: 18px;
}
.footer-legal a {
  color: var(--text-secondary);
  transition: color 0.18s;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: var(--primary);
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ==== TYPOGRAPHY & HELPERS ==== */
strong {
  font-weight: 700;
  color: var(--primary);
}
a {
  cursor: pointer;
  transition: color 0.18s;
}
a:focus {
  outline: 2px dotted var(--primary);
  outline-offset: 2px;
}
hr {
  border: none;
  border-top: 1px solid #e0e6ef;
  margin: 28px 0;
}

/* ==== LISTS ==== */
ul, ol {
  padding-left: 0;
  margin: 12px 0 18px;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 9px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ==== MODALS (FOR COOKIES) ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  box-shadow: 0 -2px 24px 0 rgba(40,60,89,0.09);
  padding: 24px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 20000;
  transition: transform .28s cubic-bezier(.77,0,.18,1), opacity .15s;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  gap: 16px;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner-text {
  font-size: 1rem;
  color: var(--primary);
  font-family: 'Open Sans',Arial,sans-serif;
  margin-bottom: 4px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 20px;
  border-radius: var(--radius-m);
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--primary);
  transition: background .18s, color .18s, transform .13s;
  margin-bottom: 0;
  outline: none;
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-1.5px) scale(1.02);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 30000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(8, 48, 91, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all .25s cubic-bezier(.77,0,.18,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: 0 4px 32px 0 rgba(40,60,89,0.14);
  max-width: 420px;
  width: 92vw;
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7px;
}
.cookie-modal-category label {
  font-size: 0.99rem;
  color: var(--text-secondary);
}
.cookie-modal-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary);
  border-radius: 22px;
  transition: background .16s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background: var(--white);
  transition: transform .16s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(8,48,91,.13);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
}

/* Always enabled for essential */
.cookie-switch input[disabled] + .cookie-slider {
  background: var(--success);
  opacity: .7;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 15px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1020px) {
  .card-container, .service-list, .service-grid, .property-list {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .card-container, .service-list, .property-list, .post-list {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.26rem;
    margin-bottom: 12px;
  }
  section, .section {
    padding: 16px 6px;
  }
  .content-wrapper {
    gap: 11px;
  }
  .card, .service-card, .property-item, .post-item {
    min-width: unset;
    padding: 15px 9px;
    margin-bottom: 9px;
  }
  .service-card,
  .property-item {
    max-width: unset;
  }
  .card-container, .service-list, .property-list, .post-list, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 13px;
    gap: 9px;
  }
  .credentials {
    gap: 12px;
    font-size: 0.97rem;
  }
  footer .content-wrapper {
    gap: 17px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 5px;
  }
  .cookie-modal {
    padding: 18px 6px;
  }
  .cookie-banner {
    padding: 15px 6px 7px 6px;
  }
}

/* ==== TRANSITIONS ==== */
button, a, .card, .service-card, .property-item, .post-item {
  transition: all .20s cubic-bezier(.73,.02,.24,1);
}

/* ==== SPECIALS, PRINT, UTILITIES ==== */
@media print {
  header, nav, footer, .cookie-banner, .cookie-modal, .mobile-menu {
    display: none!important;
  }
}

/* ========== END ========== */
