/* --- CSS RESET & NORMALIZATION --- */
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 (flex only, grid forbidden) */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #171717;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* --- BRAND TYPOGRAPHY --- */
:root {
  --color-black: #171717;
  --color-white: #fff;
  --color-gray-light: #F3F6F9;
  --color-gray: #E0E2E5;
  --color-gray-medium: #C1C4C8;
  --color-gray-dark: #44484A;
  --color-primary: #204969;
  --color-secondary: #F3F6F9;
  --color-accent: #D9B372;
  --shadow-soft: 0 2px 12px 0 rgba(32, 38, 49, 0.09);
  --radius-base: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-white);
  color: var(--color-black);
  letter-spacing: 0.02em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-black);
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.12; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.35rem; line-height: 1.35; }
h4 { font-size: 1.1rem; }
p, ul, li { font-size: 1rem; line-height: 1.6; }
strong { font-weight: 700; }
.text-section h2, .text-section h3, .text-section h1 { margin-top: 0; }

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* --- SECTION SPACING PATTERNS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  background: transparent;
}
.section { 
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  padding: 32px 28px;
  position: relative;
  flex: 1 1 320px;
  min-width: 320px;
}
.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: flex-start;
  gap: 20px;
  background: var(--color-gray-light);
  color: var(--color-black);
  border-radius: var(--radius-base);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  min-width: 300px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  position: relative;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(32,38,49,0.12);
}
.testimonial-meta {
  font-family: var(--font-display);
  font-size:0.97rem;
  color: var(--color-primary);
  opacity: 0.88;
  margin-top: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.project-overview {
  background: var(--color-white);
  border-left: 5px solid var(--color-primary);
  padding: 28px 34px;
  border-radius: var(--radius-base);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

/* --- HEADER/NAV --- */
header {
  width: 100%;
  background: var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

header nav a {
  font-family: var(--font-display);
  color: var(--color-black);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a.cta-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 20px;
  padding: 9px 26px;
  font-weight: 600;
  font-size: 1rem;
  margin-left: 16px;
  transition: box-shadow 0.2s,background 0.2s;
  box-shadow: 0 3px 16px rgba(32, 73, 105, 0.08);
  border: none;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 7px 20px rgba(32, 73, 105, 0.13);
}
header nav a:hover,
header nav a:focus {
  color: var(--color-primary);
}
header .mobile-menu-toggle {
  display: none;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 2rem;
  border-radius: 7px;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.18s;
  position: relative;
  z-index: 80;
  border: none;
}
header .mobile-menu-toggle:hover {
  background: var(--color-primary);
}

/* --- MOBILE NAV --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,23,23,0.965);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.29s cubic-bezier(0.5,0,0.25,1.0);
  display: flex;
  flex-direction: column;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-white);
  font-size: 2.2rem;
  border: none;
  position: relative;
  align-self: flex-end;
  margin: 24px 22px 16px 0;
  cursor: pointer;
  z-index: 1201;
  transition: color 0.14s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin-left: 40px;
  margin-top: 24px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 10px 15px;
  transition: color 0.22s, background 0.18s;
  border-radius: 14px;
  width: 96vw;
  max-width: 380px;
  box-sizing: border-box;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-gray-dark);
  color: var(--color-accent);
}

/* --- CTA PRIMARY BUTTON STYLE --- */
.cta-primary {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white) !important;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 34px;
  border-radius: 78px;
  box-shadow: var(--shadow-soft);
  border: none;
  margin-top: 16px;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  cursor: pointer;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent) !important;
  box-shadow: 0 9px 29px rgba(32, 38, 49, 0.16);
}

/* --- GENERAL BUTTONS --- */
button {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

/* --- UL/OL/LIST STYLES --- */
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 12px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.6;
  padding-left: 0.5em;
  color: var(--color-black);
}
ul li img, ol li img {
  vertical-align: middle;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-gray);
  padding: 2px;
  box-shadow: 0 1px 5px rgba(32,49,38,0.08);
}

/* --- FOOTER --- */
footer {
  background: var(--color-black);
  color: var(--color-gray-light);
  width: 100%;
  padding: 45px 0 0 0;
  border-top: 1px solid var(--color-gray-medium);
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 26px;
}
.footer-logo {
  flex: 0 0 auto;
  margin-right: 26px;
}
.footer-logo img {
  width: 60px;
  height: auto;
  filter: grayscale(100%);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--color-gray-light);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.93;
  position: relative;
  margin-bottom: 3px;
  transition: color 0.17s, opacity 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.99rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-light);
  opacity: .9;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  filter: grayscale(100%) brightness(2.6);
}
.footer-legal-info {
  width: 100%;
  font-size: 0.9rem;
  color: var(--color-gray-medium);
  text-align: right;
  margin-top: 30px;
  opacity: 0.7;
}

/* --- FORM CONTROLS (if any forms are added)--- */
input[type="text"], input[type="email"], textarea {
  border: 1px solid var(--color-gray-medium);
  background: var(--color-gray-light);
  border-radius: var(--radius-base);
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  margin-top: 8px;
  color: var(--color-black);
  width: 100%;
  transition: border 0.18s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--color-primary);
}

/* --- TRANSITIONS --- */
a, button, .cta-primary, .testimonial-card {
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, border 0.2s;
}

/* --- VISUAL HIERARCHY / COLORS / TYPOGRAPHY --- */
section h2 {
  color: var(--color-primary);
  font-size: 2rem;
  letter-spacing: 0.016em;
}
section h3 {
  font-size: 1.3rem;
  color: var(--color-black);
  margin-bottom: 10px;
}
section {
  background: var(--color-white);
}

/* --- RESPONSIVE LAYOUTS === MOBILE-FIRST, FLEX ONLY --- */
@media (max-width: 1050px) {
  .container { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 15px;
  }
  .footer-contact, .footer-nav, .footer-logo {
    margin-bottom: 20px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-legal-info {
    text-align: left;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .card, .testimonial-card, .project-overview {
    min-width: 0;
    width: 100%;
    padding: 22px 12px;
  }
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
  .footer-nav, .footer-contact, .footer-logo {
    min-width: 0;
    margin-right: 0;
  }
  .footer-legal-info {
    margin-top: 16px;
  }
  section {
    padding: 32px 0 0 0;
  }
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.30rem; }
  .footer-logo img { width: 45px; }
  .testimonial-card, .project-overview {
    padding: 16px 7px;
  }
}

/* --- COOKIE BANNER & COOKIE MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 -3px 28px rgba(23,23,23,0.12);
  z-index: 1900;
  padding: 24px 18px 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  opacity: 1;
  transition: transform 0.23s, opacity 0.21s;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-content {
  flex: 1 1 320px;
  font-size: 1rem;
  line-height: 1.55;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 10px rgba(32,73,105,0.09);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent);
  color: var(--color-black);
  box-shadow: 0 7px 20px rgba(217,179,114,0.13);
}
.cookie-btn.reject {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-gray);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-gray-light);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-black);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7px 14px 10px;
    gap: 14px;
  }
  .cookie-banner-content {
    font-size: 0.94rem;
  }
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left:0;
  width: 100vw; height: 100vh;
  background: rgba(23,23,23,0.64);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.21s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: var(--radius-base);
  max-width: 390px;
  width: 94vw;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 9px 38px rgba(23,23,23,0.16);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2101;
  position: relative;
  animation: cookieModalFade .22s ease;
}
@keyframes cookieModalFade {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  color: var(--color-black);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: var(--color-accent);
}
.cookie-modal h2 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-black);
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-right: 0;
  accent-color: var(--color-primary);
}
.cookie-category label {
  font-family: var(--font-body);
}
.cookie-category.essential input[type='checkbox'] {
  accent-color: var(--color-gray-dark);
}
.cookie-save-settings, .cookie-btn.save-settings {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 16px;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.cookie-save-settings:hover, .cookie-btn.save-settings:hover {
  background: var(--color-black);
  color: var(--color-accent);
}

/* --- SCROLLBARS & SELECTION --- */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-gray-light);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-medium);
  border-radius: 4px;
}
::selection {
  background: var(--color-accent);
  color: var(--color-black);
}

/* --- MONOCHROME SOPHISTICATED DESIGN EFFECTS --- */
.card, .project-overview, .testimonial-card {
  border: 1.36px solid var(--color-gray);
  background: var(--color-white);
  box-shadow: 0 3px 13px rgba(32,38,49,0.09);
}
.card:hover, .project-overview:hover {
  box-shadow: 0 10px 32px rgba(32,38,49,0.16);
  border-color: var(--color-primary);
  transition: box-shadow 0.2s, border 0.2s;
}

/* --- IMAGE & ICON TREATMENT --- */
img, svg {
  filter: grayscale(0%) contrast(1.06);
}
.card img, .testimonial-card img, .project-overview img {
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(32,38,49,0.06);
}

/* --- Z-INDEX LAYERS FOR INTERACTIVES --- */
.cookie-banner { z-index: 1900; }
.cookie-modal-overlay { z-index: 2100; }
.mobile-menu { z-index: 1200; }
header { z-index: 40; }
footer { z-index: 10; }

/* --- MICRO-INTERACTIONS --- */
.cta-primary:active {
  transform: scale(0.97);
}
.card:active {
  box-shadow: 0 1px 7px rgba(32,38,49,0.08);
}
.testimonial-meta:before {
  content: '\2014\0020';
  color: var(--color-primary);
}

/* --- ACCENT LINES / DECORATIVE MONOCHROME --- */
h2, .section h2, footer h2 {
  border-left: 5px solid var(--color-primary);
  padding-left: 14px;
}
@media (max-width: 440px) {
  h2,
  .section h2,
  footer h2 {
    padding-left: 8px;
    border-left-width: 3px;
    font-size: 1.09rem;
  }
}

/* --- FOCUS STATE FOR ACCESSIBILITY --- */
a:focus, button:focus, .cta-primary:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- END OF STYLE --- */
