/* CSS Reset & Normalize */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; border: none; outline: none; background: none; }

/* Monochrome Sophisticated Colour Palette with Brand Accent */
:root {
  --color-bg: #fafbfc;
  --color-bg-alt: #f4f4f4;
  --color-primary: #181a1b;   /* Nearly black */
  --color-secondary: #eaeaea; /* Subtle light gray backgrounds */
  --color-contrast: #ffffff;
  --color-gray-dark: #313131;
  --color-gray: #bababa;
  --color-gray-light: #ededed;
  --brand-primary: #284158;
  --brand-accent: #E39D2C;
  --shadow-card: 0 2px 16px rgba(24, 26, 27, 0.07);
  --border-radius: 16px;
  --transition: 0.22s cubic-bezier(.55,0,.1,1);
  --focus: 0 0 0 3px #EAEFF3;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-primary);
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.13;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; letter-spacing: -0.5px; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; }

p, li, blockquote, footer {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-gray-dark);
  font-size: 1rem;
  margin-bottom: 16px;
}

blockquote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--brand-primary);
  background: var(--color-contrast);
  border-left: 4px solid var(--brand-primary);
  padding: 12px 24px;
  margin-bottom: 8px;
  border-radius: var(--border-radius);
}

strong { color: var(--color-primary); font-weight: 700; }

a {
  color: var(--brand-primary);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--brand-accent);
  outline: none;
}

/* Header & Navigation */
header {
  background: var(--color-contrast);
  width: 100%;
  box-shadow: 0 2px 8px rgba(24,26,27,0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 8px 0;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
nav a:hover, nav a:focus { color: var(--brand-accent); }

.cta-primary {
  background: var(--brand-primary);
  color: var(--color-contrast);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--border-radius);
  font-size: 1rem;
  padding: 12px 32px;
  margin-left: 24px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(20,30,38,0.04);
  border: none;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(40,65,88,0.14);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-contrast);
  border-radius: 50%;
  font-size: 2rem;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gray);
  color: var(--color-primary);
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.mobile-menu-toggle:focus { box-shadow: var(--focus); }

@media (max-width: 1024px) {
  nav { gap: 18px; }
  .cta-primary { padding: 12px 20px; font-size: 0.98rem; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .cta-primary { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: var(--color-contrast);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  box-shadow: 0 0 0 rgba(24,26,27,0);
  padding: 0 0 0 0;
  z-index: 1030;
  transform: translateX(-110%);
  transition: transform 0.5s cubic-bezier(.55,0,.1,1);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 0 0;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 2px 8px 2px 8px;
  border-radius: 8px;
  transition: background var(--transition);
}
.mobile-menu-close:focus { background: var(--color-bg-alt); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 48px;
  gap: 8px;
  padding-left: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 16px 0;
  width: calc(100vw - 48px);
  border-bottom: 1px solid var(--color-gray-light);
  display: block;
  transition: color var(--transition), background var(--transition);
  border-radius: 3.2px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--brand-accent);
  background: var(--color-bg-alt);
}

@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* Main */
main {
  min-height: 60vh;
  padding-top: 40px;
  padding-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.content-wrapper {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.features-grid,
.features,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div {
  background: var(--color-contrast);
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  max-width: 340px;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid > div:hover {
  box-shadow: 0 6px 32px rgba(40,65,88,0.10);
  transform: translateY(-2px) scale(1.02);
}
.features-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  filter: grayscale(1) contrast(1.1);
}

/* Card Containers and Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-contrast);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover { box-shadow: 0 6px 28px rgba(24,26,27,0.13); transform: scale(1.014); }

.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 24px; }
  .features-grid { flex-direction: column; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-contrast);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  flex: 1 1 320px;
  min-width: 260px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(40,65,88,0.12);
  transform: scale(1.016);
}
.testimonial-card blockquote {
  color: var(--brand-primary);
  background: none;
  border: none;
  font-size: 1.12rem;
  padding: 0;
  margin: 0;
}
.testimonial-card footer {
  color: var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  margin: 0;
  margin-left: 8px;
  letter-spacing: 0.03em;
}

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

.newsletter-info {
  padding: 10px 14px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  color: var(--color-primary);
  font-size: 0.97rem;
  line-height: 1.6;
}

ul li img {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  vertical-align: middle;
  filter: grayscale(1) contrast(1.1);
}

ul, ol {
  padding-left: 18px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 12px;
  color: var(--color-primary);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .container { padding-left: 8px; padding-right: 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
}

/* Footer */
footer {
  background: var(--brand-primary);
  color: var(--color-contrast);
  padding-top: 40px;
  padding-bottom: 24px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-nav a {
  color: var(--color-contrast);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  transition: color var(--transition);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--brand-accent); }
.footer-contact p {
  color: var(--color-contrast);
  font-size: 1rem;
  line-height: 1.8;
}
.footer-contact a { color: var(--brand-accent); text-decoration: underline; }
.footer-bottom {
  margin-top: 24px;
  font-size: 0.96rem;
  color: var(--color-gray);
  letter-spacing: 0.015em;
}
@media (max-width: 800px) {
  footer .container {gap:24px;}
  .footer-nav{gap:18px;}
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-contrast);
  border-top: 1.5px solid var(--color-gray);
  box-shadow: 0 -4px 20px rgba(24,26,27,0.11);
  padding: 24px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.35s var(--transition), transform 0.35s var(--transition);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner__text {
  flex: 1 1 300px;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
}
.cookie-banner .btn-cookie {
  margin-left: 0;
}
.btn-cookie {
  background: var(--brand-primary);
  color: var(--color-contrast);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 12px;
  margin-right: 0;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.btn-cookie:hover, .btn-cookie:focus {
  background: var(--brand-accent);
  color: var(--color-primary);
  outline: none;
}
.btn-cookie--secondary {
  background: var(--color-gray);
  color: var(--color-primary);
}
.btn-cookie--secondary:hover, .btn-cookie--secondary:focus {
  background: var(--brand-primary);
  color: var(--color-contrast);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cookie-banner .btn-cookie { margin-left: 0; margin-bottom: 8px; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: rgba(24,26,27,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s var(--transition);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__wrap {
  background: var(--color-contrast);
  border-radius: 18px;
  box-shadow: 0 8px 60px rgba(24,26,27,0.18);
  padding: 40px 30px 28px 30px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cookie-modal__header { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal__category input[type='checkbox'] {
  accent-color: var(--brand-primary);
  width: 20px; height: 20px;
  margin-right: 2px;
}
.cookie-modal__desc {
  font-size: 0.97rem;
  color: var(--color-gray-dark);
  margin-bottom: 8px;
}
.cookie-modal .btn-cookie {
  align-self: flex-end;
  margin-top: 14px;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  position: absolute;
  right: 16px; top: 16px;
  cursor: pointer;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .cookie-modal__wrap { padding: 18px 8px 18px 8px; min-width: 230px; }
}

/* Misc */
::-webkit-scrollbar { width: 10px; background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gray-light); border-radius: 10px; }
::selection { background: var(--brand-primary); color: var(--color-contrast); }

/* Forms (newsletter) */
input[type=email], input[type=text], textarea {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border: 1px solid var(--color-gray-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  transition: border var(--transition), box-shadow var(--transition);
  margin-bottom: 16px;
}
input[type=email]:focus, input[type=text]:focus, textarea:focus {
  border: 1.5px solid var(--brand-primary);
  box-shadow: 0 0 0 3px var(--color-bg-alt);
}

button, .btn {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--border-radius);
  outline: none;
  transition: all var(--transition);
}

.btn {
  background: var(--brand-primary);
  color: var(--color-contrast);
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
}
.btn:hover, .btn:focus {
  background: var(--brand-accent);
  color: var(--color-primary);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

main > section, .features-grid > div, .testimonial-card, .card {
  animation: fadeInUp 0.9s var(--transition) backwards;
}

/* Spacing and Alignment Patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure No Overlap & Mobile Responsiveness */
@media (max-width: 600px) {
  .footer-contact p { font-size: 0.97rem; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.07rem; }
  .features-grid > div, .card, .testimonial-card { min-width: unset; max-width: 100%; }
}

/* Accessibility & Focus Style */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Hide visually (for modals etc.) */
[hidden], .is-hidden { display: none !important; }
