/* --- 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,
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; background: #F6F5F3; color: #1F2730; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* --- BRAND FONT & BASE TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #364954;
  font-size: 16px;
  background: #F6F5F3;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #364954;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #364954;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: #364954;
}

.subheadline {
  font-size: 1.125rem;
  color: #627082;
  margin-bottom: 18px;
  font-weight: 400;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(54,73,84,0.06);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #364954;
  color: #fff;
  box-shadow: 0 2px 12px rgba(54,73,84,0.06);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
header img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #C7A27E;
}

.cta-btn {
  display: inline-block;
  background: #C7A27E;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1.125rem;
  border-radius: 28px;
  box-shadow: 0 2px 8px rgba(199,162,126,0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  border: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #a57d52;
  box-shadow: 0 4px 16px rgba(54,73,84,0.17);
  transform: translateY(-2px) scale(1.03);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1200;
  background: #C7A27E;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(54,73,84,0.07);
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #a57d52;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #364954;
  color: #fff;
  z-index: 1400;
  transform: translateX(-100%);
  transition: transform 320ms cubic-bezier(.7,0,.3,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff;
  color: #364954;
  font-size: 2rem;
  margin: 26px 26px 0 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(54,73,84,0.07);
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #C7A27E;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 42px 0 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #C7A27E;
}
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  header .cta-btn {
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
}

@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header .cta-btn {
    display: inline-block;
  }
}

/* --- HERO, SECTIONS, CARD AND FLEX PATTERNS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #F6F5F3;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(54,73,84,0.04);
  padding: 28px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.17s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 20px rgba(199,162,126,0.18);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  filter: grayscale(0.1) brightness(0.95);
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-grid > div {
  flex: 1 1 240px;
  min-width: 210px;
  background: #F6F5F3;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(54,73,84,0.06);
  padding: 23px 16px 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  background: transparent;
}
.text-section ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.text-section li {
  list-style: disc;
  color: #364954;
}

.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ideas-list ul {
  padding-left: 22px;
}
.color-palette {
  background: #F6F5F3;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #364954;
  box-shadow: 0 1px 6px rgba(54,73,84,0.08);
}

.case-studies-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.case-studies-overview .text-section {
  flex: 1 1 320px;
  min-width: 240px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(54,73,84,0.07);
  padding: 18px 16px;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
}
.service-list .text-section {
  flex: 1 1 280px;
  min-width: 230px;
  background: #F6F5F3;
  border-radius: 12px;
  padding: 22px 16px;
  box-shadow: 0 1px 8px rgba(54,73,84,0.07);
  margin-bottom: 20px;
}
.benefits-highlight {
  margin-bottom: 16px;
}
.benefits-highlight ul {
  padding-left: 18px;
}
.benefits-highlight li {
  list-style: circle;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(54,73,84,0.07);
  padding: 20px 20px 18px 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

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

/* --- TESTIMONIALS --- */
.testimonial-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 18px 28px;
  background: #F6F5F3;
  border-radius: 12px;
  min-width: 260px;
  min-height: 130px;
  box-shadow: 0 2px 24px rgba(54,73,84,0.08);
  border-left: 4px solid #364954;
  margin-bottom: 20px;
  font-size: 1rem;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  color: #2a3540;
  margin-bottom: 10px;
}
.testimonial-card .customer-name {
  font-weight: 600;
  color: #364954;
  font-size: 1rem;
  letter-spacing: 0.01em;
  opacity: 0.95;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .feature-grid, .service-grid, .content-grid, .card-container,
  .testimonial-slider, .testimonial-list, .case-studies-overview, .service-list {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.07rem; }
  header img, footer img { height: 34px; }
}

/* --- FOOTER --- */
footer {
  width: 100%;
  background: #364954;
  color: #fff;
  padding: 42px 0 24px 0;
  box-shadow: 0 -2px 18px rgba(54,73,84,0.05);
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer a {
  color: #fff;
  transition: color 0.17s;
}
footer a:hover,
footer a:focus {
  color: #C7A27E;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-contact p, .footer-contact a {
  font-size: 1rem;
  color: #e8eaef;
  margin-bottom: 4px;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: #C7A27E;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav { gap: 10px; }
}

/* --- BUTTONS & LINK ELEMENTS --- */
a, button {
  outline: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.17s;
}
.text-section a:not(.cta-btn) {
  color: #364954;
  border-bottom: 1px solid #C7A27E;
  font-weight: 600;
  padding-bottom: 1px;
}
.text-section a:not(.cta-btn):hover,
.text-section a:not(.cta-btn):focus {
  color: #C7A27E;
  border-color: #a57d52;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #364954;
  color: #fff;
  z-index: 9999;
  padding: 26px 14px 18px 14px;
  box-shadow: 0 -4px 32px rgba(54,73,84,0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  animation: slideUpIn 380ms cubic-bezier(.6,1.2,.3,1);
}
@keyframes slideUpIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 auto;
  font-size: 1.02rem;
  color: #fff;
  max-width: 730px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 12px 22px;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #fff;
  background: #C7A27E;
  box-shadow: 0 1px 6px rgba(54,73,84,0.06);
  transition: background 0.2s, color 0.18s, box-shadow 0.1s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #a57d52;
  color: #fff;
}
.cookie-btn-outline {
  background: #fff;
  color: #364954;
  border: 2px solid #C7A27E;
}
.cookie-btn-outline:hover, .cookie-btn-outline:focus {
  background: #C7A27E;
  color: #fff;
}

/* COOKIE MODAL */
#cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(54,73,84,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBg 250ms;
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal {
  background: #fff;
  color: #364954;
  border-radius: 18px;
  max-width: 98%;
  width: 430px;
  box-shadow: 0 4px 30px rgba(28,48,74,0.19);
  padding: 36px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: scaleInModal 280ms cubic-bezier(.6,1.2,.3,1);
}
@keyframes scaleInModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
#cookie-modal h2 {
  font-size: 1.39rem;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 0.98rem;
  color: #364954;
}
.cookie-toggle {
  width: 40px;
  height: 24px;
  background: #eaeaea;
  border-radius: 16px;
  position: relative;
  margin-right: 8px;
  border: 1px solid #C7A27E;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-toggle.active {
  background: #C7A27E;
}
.cookie-toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(54,73,84,0.17);
  transition: left 0.2s;
}
.cookie-toggle.active .cookie-toggle-knob {
  left: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  justify-content: flex-end;
}
#cookie-modal .cookie-btn {
  min-width: 112px;
}
#cookie-modal .cookie-btn-outline {
  background: #fff;
  color: #364954;
  border: 2px solid #C7A27E;
}
#cookie-modal .cookie-btn-outline:hover,
#cookie-modal .cookie-btn-outline:focus {
  background: #C7A27E;
  color: #fff;
}
#cookie-modal .cookie-category .cookie-toggle[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
    max-width: 100%;
  }
  header .container {
    padding: 12px 8px;
  }
  .feature-grid > div,
  .service-grid > div,
  .case-studies-overview .text-section,
  .service-list .text-section {
    min-width: 0;
    width: 100%;
  }
  .content-wrapper { gap: 14px; }
  .testimonial-card {
    padding: 16px 10px 14px 10px;
    min-width: 0;
  }
  .footer-contact p, .footer-contact a { font-size: 0.95rem; }
}

/* --- MICRO-INTERACTIONS & ACCESSIBILITY --- */
.card, .testimonial-card, .feature-grid > div, .service-grid > div {
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:hover, .feature-grid > div:hover, .service-grid > div:hover {
  box-shadow: 0 8px 28px rgba(54,73,84,0.13);
  transform: translateY(-4px) scale(1.03);
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(199,162,126,0.16);
  transform: translateY(-2px) scale(1.01);
}
input, select, textarea {
  font-family: inherit;
  border-radius: 7px;
  border: 1px solid #C7A27E;
  padding: 10px 12px;
  font-size: 1rem;
  color: #364954;
  margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus {
  border-color: #627082;
  outline: none;
  box-shadow: 0 0 0 2px #C7A27E33;
}

/* --- MISC --- */
::-webkit-scrollbar { width: 8px; background: #ececec; }
::-webkit-scrollbar-thumb { background: #C7A27E; border-radius: 4px; }
.selection, ::selection { background: #C7A27E; color: #fff; }

/* --- Low vision contrast support for testimonials/reviews --- */
.testimonial-card,
.testimonial-slider .testimonial-card,
.testimonial-list .testimonial-card {
  background: #F6F5F3;
  color: #232e35;
}
.testimonial-card p, .testimonial-card .customer-name {
  color: #2a3540;
}

/* --- Hide elements visually only (for accessibility) --- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Animations for appearing elements --- */
.fade-in {
  animation: fadeinComp 380ms;
}
@keyframes fadeinComp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

