/* RESET & BASE STYLES ------------------------------------------------- */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #223052;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

:root {
  --primary: #223052;
  --secondary: #DFB977;
  --accent: #fff;
  --text-dark: #223052;
  --text-light: #fff;
  --highlight: #2F81F7;
  --error: #CC4242;
  --success: #1CC88A;
  --shadow-strong: 0 8px 32px rgba(34, 48, 82, 0.13);
  --shadow-soft: 0 2px 10px rgba(34,48,82,0.07);
  --radius: 18px;
}

body {
  background: var(--accent);
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* TYPOGRAPHY ------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem;
}
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primary);
  line-height: 1.6;
}
strong {
  font-weight: 700;
}

/* BUTTONS & CTA ------------------------------------------------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  padding: 14px 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: 18px;
  margin-bottom: 6px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 5px 18px rgba(34,48,82,0.15);
  transform: translateY(-2px) scale(1.04);
}

.blog-readmore {
  font-weight: 700;
  color: var(--secondary);
  display: inline-block;
  margin-top: 6px;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}
.blog-readmore:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
}

button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  border: none;
  transition: background 0.18s, color 0.18s;
}
button:hover, .btn:hover,
button:focus, .btn:focus {
  background: var(--highlight);
  color: var(--accent);
  outline: none;
}

/* HEADER & NAV ------------------------------------------------- */
header {
  background: var(--accent);
  box-shadow: 0 4px 18px rgba(34,48,82,0.10);
  padding: 0;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  height: 80px;
  width: 100%;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.main-nav a {
  color: var(--primary);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  display: block;
  margin: auto;
  height: 3px;
  width: 0;
  background: var(--secondary);
  transition: width 0.22s;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  padding: 8px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
  margin-left: 8px;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}

/* MOBILE MENU ---------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,48,82,0.96);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.87,0,0.13,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  margin: 28px 28px 0 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-strong);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 50px;
  padding: 0 38px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 14px 0;
  width: 100%;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* HERO & SECTION STYLES ------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* MAIN FEATURE GRID USING FLEXBOX ONLY ---------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 8px;
}
.feature-item {
  flex:1 1 238px;
  max-width: 294px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.17s;
}
.feature-item img {
  height: 36px;
  width: 36px;
}
.feature-item h3 {
  font-size: 1.12rem;
  margin-bottom: 2px;
}
.feature-item p {
  font-size: 0.99rem;
  margin-bottom: 0;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 30px rgba(34,48,82,0.16);
  transform: translateY(-4px) scale(1.03);
}

/* SECTION/LAYOUT SPACING ------------------------------------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 260px;
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--secondary);
  transition: box-shadow 0.2s, border 0.15s;
  color: var(--text-dark);
}
.testimonial-card:hover {
  box-shadow: 0 6px 25px rgba(34,48,82,0.19);
  border-color: var(--highlight);
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--text-dark);
}
.testimonial-name {
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 0.4px;
  font-size: 1rem;
}
.star-rating {
  display: flex;
  flex-direction: row;
  gap: 2px;
}
.star-rating img {
  height: 22px;
  width: 22px;
}

/* BLOG ------------------------------------------------- */
.blog-search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.blog-search input[type="text"] {
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--secondary);
  outline: none;
  background: #f7f6f4;
  color: var(--primary);
  width: 230px;
  margin-right: 0;
}
.blog-search button {
  background: var(--secondary);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.16s;
}
.blog-search button:hover img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(17%) saturate(1420%) hue-rotate(172deg) brightness(97%) contrast(93%);
}
.blog-categories {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 18px;
  gap: 18px;
  flex-wrap: wrap;
}
.blog-categories li:first-child {
  color: var(--secondary);
  font-weight: bold;
}
.blog-categories a {
  color: var(--primary);
  font-weight: 700;
  transition: color 0.17s;
}
.blog-categories a:hover {
  color: var(--secondary);
}

/* TABLE STYLING ---------------------------------------- */
table {
  width: 100%;
  margin-bottom: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--primary);
  color: var(--accent);
}
th, td {
  padding: 15px 14px;
  text-align: left;
}
th {
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
}
tbody tr {
  border-bottom: 1px solid #ededed;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: #f8f6f2;
}

/* ABOUT & CONTACT -------------------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1rem;
  gap: 12px;
}
.feature-list img {
  height: 22px;
  width: 22px;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-map {
  flex: 1 1 250px;
  background: #faf6ee;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}
.contact-info img {
  height: 1.25em;
  width: 1.25em;
  margin-right: 7px;
  vertical-align: middle;
}
.contact-info-text {
  margin-bottom: 8px;
}

/* FOOTER ------------------------------------------------- */
footer {
  background: var(--primary);
  color: var(--accent);
  margin-top: 0;
  padding: 36px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}
.footer-logo img {
  height: 46px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 700;
  transition: color 0.19s;
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.99rem;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* COOKIE CONSENT BANNER & MODAL ------------------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fef9ef;
  color: var(--primary);
  box-shadow: 0 -4px 20px rgba(34,48,82,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 16px;
  z-index: 1600;
  font-size: 1rem;
  transition: transform 0.36s cubic-bezier(.78,.21,.28,.79), opacity 0.23s;
}
.cookie-consent-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn,
.cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 9px;
  padding: 9px 22px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: var(--shadow-soft);
  margin-right: 0;
  transition: background 0.16s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus,
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: #ededed;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--error);
  color: var(--accent);
}

/* COOKIE MODAL --------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.62);
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.show {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 380px;
  width: 92vw;
  padding: 34px 30px 24px 30px;
  box-shadow: 0 9px 36px rgba(34,48,82,0.19);
  z-index: 1770;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalFadeIn 0.36s cubic-bezier(.68,0,.32,1);
}
@keyframes modalFadeIn {
  from { opacity:0; transform: translateY(60px) scale(0.95); }
  to   { opacity:1; transform: none; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-modal .modal-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
.cookie-modal label {
  font-size: 1rem;
  color: var(--primary);
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  min-width: 32px;
}
.cookie-toggle input[type="checkbox"] {
  width: 0; height: 0;
  visibility: hidden;
}
.cookie-toggle span {
  display: inline-block;
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: #ddd;
  position: relative;
  transition: background .17s;
}
.cookie-toggle input[type="checkbox"]:checked + span {
  background: var(--secondary);
}
.cookie-toggle span::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.13);
  transition: left .18s;
}
.cookie-toggle input[type="checkbox"]:checked + span::before {
  left: 18px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
  align-items: center;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 9px;
  padding: 8px 20px;
}
.cookie-modal .modal-close-btn {
  background: #eee;
  color: var(--primary);
  margin-left: auto;
  border-radius: 9px;
  font-size: 1.1rem;
  padding: 6px 13px;
  transition: background 0.14s;
}
.cookie-modal .modal-close-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* GENERAL LISTS AND FORMS ----------------------------------- */
ul, ol {
  padding-left: 1.05em;
  margin-bottom: 12px;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--primary);
}

/* FLEXBOX CARDS/PATTERN SUPPORT ----------------------------- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* FEATURE ICONS --------------------------------------------- */
.feature-icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 6px;
}
.feature-icons img {
  height: 44px;
  width: 44px;
}

/* ACCESSIBILITY: SELECTION & FOCUS -------------------------- */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
::selection {
  background: var(--secondary);
  color: var(--primary);
}

/* UTILS & SPACING ------------------------------------------ */
.gap-8 { gap: 8px!important; }
.gap-16 { gap: 16px!important; }
.gap-24 { gap: 24px!important; }
.gap-32 { gap: 32px!important; }
.mt-24 { margin-top: 24px!important; }
.mb-24 { margin-bottom: 24px!important; }

/* GEOMETRIC DECORATIVE BLOCKS ------------------------------- */
.geoshape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  border-radius: 20px;
}

/* RESPONSIVE BREAKPOINTS ------------------------------------ */
@media (max-width: 1050px) {
  .container { max-width: 92vw; }
  header .container,
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    height: auto;
    padding: 0 12px;
  }
  .main-nav { gap:18px; }
}

@media (max-width: 900px) {
  .feature-grid { gap: 18px; }
  .feature-item { max-width: 100%; min-width: 220px; padding: 24px 12px; }
  .contact-details { flex-direction: column; gap: 16px; }
}

@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 6px;
  }
  header .container {
    height: 70px;
    flex-direction: row;
    gap: 7px;
    padding: 0 6px;
  }
  .logo img { height: 38px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  /* Show hamburger, hide nav */
  .footer-logo img { height: 32px; }
  .content-wrapper { gap: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  h3 { font-size: 1.08rem; }
  section, .section { padding: 26px 0; margin-bottom: 40px; }
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    padding: 20px 12px;
    max-width: 100%;
    min-width: 0;
  }
  .footer-nav, .footer-contact {
    font-size: 0.97rem;
  }
  .footer-nav { flex-direction: row; gap:10px; flex-wrap: wrap; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
  }
  .blog-search input[type="text"] { width: 114px; }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
  .card-container { gap: 10px; }
  .testimonial-card { min-width: 0; padding: 12px; }
  .cookie-modal { max-width:94vw; padding: 20px 10px; }
}

@media (max-width: 540px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1rem; }
  .cta-btn { padding: 10px 16px; font-size: 0.95rem; }
  .cookie-consent-banner { padding: 14px 5px; font-size: 0.92rem; }
  .cookie-btn, .cookie-settings-btn { padding: 8px 11px; font-size: 0.95rem; }
  .cookie-modal { padding: 13px 4vw; }
}

/* PRINT ---------------------------------------------------- */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none!important; }
  main, .container, section { width: 100vw; margin: 0; padding: 0; }
}
