/* =============================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F3EC;
  color: #25363C;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
  margin: 0 0 16px 0;
  padding-left: 0;
}
a {
  color: #365661;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:focus {
  outline: 2px solid #A9C2B5;
  outline-offset: 2px;
}
a:hover {
  color: #25363C;
}

/* ==== TYPOGRAPHY ==== */
:root {
  --color-primary: #365661;
  --color-secondary: #A9C2B5;
  --color-accent: #F5F3EC;
  --color-dark-text: #25363C;
  --color-light-bg: #F5F3EC;
  --color-card-bg: #fff;
  --color-shadow: rgba(54,86,97,0.08);
  --color-shadow-strong: rgba(54,86,97,0.15);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --radius-card: 16px;
  --radius-btn: 32px;
  --border-card: 2px solid #A9C2B5;
  --shadow-card: 0 6px 32px var(--color-shadow);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.7rem;
  font-family: var(--font-display);
  margin-bottom: 18px;
}
h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p, li, span, address, label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-dark-text);
}
strong {
  font-weight: 700;
  letter-spacing: 0.01em;
}
.text-section h3 {
  font-size: 1.13rem;
  color: var(--color-primary);
  margin: 20px 0 8px 0;
}

@media (min-width: 500px) {
  h1 { font-size: 3.2rem;}
  h2 { font-size: 2.5rem;}
}
@media (min-width: 1100px) {
  h1 { font-size: 4rem;}
}

/* ===============
   LAYOUT HELPERS
   =============== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* ==========
   HEADER
   ========== */
header {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 10px var(--color-shadow-strong);
  position: sticky;
  top: 0;
  z-index: 14;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 42px;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
  background: rgba(169,194,181,0.15);
}
header .cta.primary {
  margin-left: 14px;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 14px 6px 10px;
  display: none;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
@media (max-width: 992px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header .cta.primary { display: none; }
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  box-shadow: 2px 0 20px var(--color-shadow-strong);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  margin: 24px 0 18px 22px;
  align-self: flex-start;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 101;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-left: 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 8px 0;
  border-radius: 5px;
  width: 94vw;
  transition: background 0.13s, color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

@media (max-width: 480px) {
  .mobile-nav { margin-left: 10px; }
  .mobile-nav a { width: 97vw; }
}

/* ===============
   MAIN SECTION
   =============== */
main {
  width: 100%;
  min-height: 60vh;
  padding-bottom: 44px;
  background: var(--color-light-bg);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 42px;
    padding: 32px 7px;
  }
}

/* ===============
   GRIDS, FLEX CONTAINERS, CARDS, STRUCTURED LISTS
   =============== */
.feature-grid, .service-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
}

.feature-grid > div, .service-grid > div, .card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-width: 210px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.feature-grid > div:hover,
.service-grid > div:hover,
.card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 12px 32px var(--color-shadow-strong);
}
.feature-grid img, .service-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  background: var(--color-accent);
  padding: 8px;
  border-radius: 10px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border: var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px 20px 20px;
  min-width: 226px;
  flex: 1 1 255px;
  transition: box-shadow 0.18s, transform 0.18s;
}

/* ======== FLEX PATTERNS ======== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 22px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-card);
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
  max-width: 560px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.14rem;
  color: var(--color-dark-text);
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* ===========
   LISTS with ICONS
   =========== */
ul li img, address ul li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  border-radius: 6px;
  padding: 2px;
}
ul li, address ul li {
  margin-bottom: 12px;
  font-size: 1.01rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  gap: 7px;
}
ul li:last-child, address ul li:last-child {
  margin-bottom: 0;
}
ul strong {
  color: var(--color-primary);
}

/* ===========
   SHORT CONTACT BAR
   =========== */
.short-contact-info {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
}
.short-contact-info img {
  width: 26px;
  height: 26px;
  margin-right: 7px;
}
.short-contact-info span {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--color-primary);
  font-weight: 600;
}
@media (max-width: 500px) {
  .short-contact-info { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ==============
   CTA & BUTTONS
   ============== */
.cta, .btn, button, input[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.18s, color 0.12s, box-shadow 0.14s, transform 0.16s;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 8px;
  min-width: 140px;
  text-align: center;
  outline: none;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 24px var(--color-shadow-strong);
  font-weight: 700;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px var(--color-secondary);
}
.cta:hover, .btn:hover, button:hover, input[type=submit]:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 8px 22px var(--color-shadow-strong);
}
.cta:focus, .btn:focus, button:focus, input[type=submit]:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===============
   EDITORIAL / QUOTES (for .editorial)
   =============== */
.editorial {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-card-bg);
  border-left: 7px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 24px 32px 22px 26px;
  margin-top: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.editorial p {
  font-style: italic;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
}
.editorial span {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: 1.05rem;
}

/* =====================
   ADDRESS BLOCKS
   ===================== */
address {
  font-style: normal;
}
address ul {
  margin: 0;
  padding: 0;
}

/* =============
   FOOTER
   ============= */
footer {
  background: var(--color-primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 -2px 8px var(--color-shadow);
  padding: 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 22px 18px 18px 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
footer nav a {
  color: #fff;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  transition: background .14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer div:last-child {
  font-size: 0.98rem;
  font-family: var(--font-body);
  color: var(--color-secondary);
}
@media (max-width: 750px) {
  footer .container { flex-direction: column; gap: 9px; align-items: flex-start;}
  footer nav { gap: 11px;}
}

/* ============
   COOKIE CONSENT BANNER
   ============ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -4px 32px var(--color-shadow-strong);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 7vw 21px 5vw;
  z-index: 5000;
  font-family: var(--font-body);
  transition: transform 0.38s cubic-bezier(.4,0,.2,1), opacity 0.2s;
}
.cookie-banner__text {
  color: var(--color-dark-text);
  font-size: 1rem;
  margin-right: 24px;
  flex: 1 1 350px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .btn, .cookie-banner .cta {
  padding: 8px 22px;
  min-width: 0;
  font-size: 0.98rem;
}
.cookie-banner .btn.reject {
  background: #eee;
  color: var(--color-primary);
}
.cookie-banner .btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-banner .btn.reject:hover,
.cookie-banner .btn.settings:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-banner.hide {
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 600px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 4vw;
    gap: 13px;
  }
}

/* =============
   COOKIE PREFERENCES MODAL
   ============= */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50vh;
  transform: translate(-50%, -50%);
  min-width: 328px;
  max-width: 98vw;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 66px var(--color-shadow-strong);
  border: 2px solid var(--color-secondary);
  z-index: 5100;
  padding: 36px 34px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  animation: cookie-modal-in 0.35s cubic-bezier(.4,0,.4,1);
}
@keyframes cookie-modal-in {
  0% { transform: scale(0.92) translate(-50%, -55%); opacity: 0; }
  80% { transform: scale(1.04) translate(-50%, -47%); opacity: 1; }
  100% { transform: scale(1.0) translate(-50%, -50%); opacity: 1; }
}
.cookie-modal__header {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.cookie-modal__settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal__setting {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal__setting label {
  font-size: 1.01rem;
  color: var(--color-dark-text);
  font-family: var(--font-body);
}
.cookie-modal__checkbox {
  accent-color: var(--color-primary);
  width: 22px;
  height: 22px;
  margin-right: 4px;
}
.cookie-modal__setting--essential label {
  font-style: italic;
  color: var(--color-secondary);
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  margin-top: 2px;
}
.cookie-modal .btn,
.cookie-modal .cta {
  padding: 8px 22px;
  font-size: 0.98rem;
}
.cookie-modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.5rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  color: var(--color-secondary);
  outline: none;
}

/* Overlay for cookie modal */
.cookie-modal-bg {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,71,86,0.18);
  z-index: 5099;
}

/* ====== Accessibility improvement ===== */
[tabindex]:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}

/* ================
   MEDIA QUERIES
   ================ */
@media (max-width: 992px) {
  .container {
    max-width: 96vw;
    padding: 0 7vw;
  }
}
@media (max-width: 700px) {
  .feature-grid > div,
  .service-grid > div,
  .card {
    min-width: 98vw;
    width: 100%;
    flex: 1 1 98vw;
    padding: 20px 14px 18px 14px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.07rem; }
  .content-wrapper { gap: 9px; }
  body { font-size: 0.96rem; }
  .container { padding: 0 2vw; }
}

/* ================
   GEOMETRIC DECORATIONS (optional angular accents)
   ================ */
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: -30px;
  width: 54px; height: 8px;
  background: var(--color-secondary);
  clip-path: polygon(0 0,100% 0,90% 100%,10% 100%);
  border-radius: 6px;
  opacity: 0.19;
}
.section:nth-child(even)::before {
  background: var(--color-primary);
  opacity: 0.09;
}
@media (max-width: 600px){
  .section::before { left: -5px; width: 38px; height: 6px; }
}

/* ==============
   MICRO-INTERACTIONS
   ============== */
.card, .feature-grid > div, .service-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.19s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 30px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.013);
}

/* =============
   MISCELLANEOUS
   ============= */
::-webkit-input-placeholder { color: #8698a9; opacity: 1; }
::-moz-placeholder          { color: #8698a9; opacity: 1; }
:-ms-input-placeholder      { color: #8698a9; opacity: 1; }
::placeholder              { color: #8698a9; opacity: 1; }

input, textarea, select {
  font-family: var(--font-body);
  border-radius: 7px;
  border: 1.5px solid var(--color-secondary);
  padding: 10px 10px;
  margin-bottom: 16px;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-primary);
}

/* ============
   HELPER CLASSES
   ============ */
.text-left  { text-align: left; }
.text-right { text-align: right; }
.text-center{ text-align: center; }
.mt-2       { margin-top: 18px; }
.mt-4       { margin-top: 32px; }

/* ============
   PRINT (optional)
   ============ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-bg { display: none !important; }
  body { background: #fff !important; }
  .container { max-width: 90vw; background: transparent; }
}
