/* ================== 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  height: 100%;
  background: #f8f8f8;
}
body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #232323;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: border-box;
}
a {
  color: #232323;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #111;
  outline: none;
  text-decoration: underline;
}

:root {
  --brand-dark: #141414;
  --brand-almost-black: #1C1C1C;
  --brand-midgray: #646464;
  --brand-lightgray: #ededed;
  --brand-offwhite: #F8F8F8;
  --brand-white: #ffffff;
  --brand-border: #dddddd;
  --brand-contrast: #000000;
  --brand-primary: #141414;
  --brand-secondary: #ffffff;
  --brand-accent: #232323;
  --shadow-elevate: 0 6px 32px rgba(0,0,0,0.08),0 1.5px 2px rgba(0,0,0,0.08);
  --radius: 12px;
  --font-display: 'Bitter', serif;
  --font-body: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

/* ================ TYPOGRAPHY ================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #141414;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
h4 { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; }
p { font-size: 1.1rem; margin-bottom: 16px; color: #232323; }
strong { font-weight: 700; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 6px; }

@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
  p { font-size: 1.15rem; }
}

/* ============= BRAND/LOGO ============= */
img {
  max-width: 100%;
  display: block;
}

/* ============= CONTAINER ============= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* ============= HEADER ============= */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(20,20,20,0.05);
  z-index: 30;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 32px;
}
header img {
  height: 42px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.075rem;
  color: #232323;
  padding: 2px 10px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--brand-lightgray);
  color: var(--brand-primary);
  text-decoration: none;
}

/* CTA BUTTON */
.cta.primary {
  font-family: var(--font-display);
  background: var(--brand-primary);
  color: var(--brand-white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 30px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow: var(--shadow-elevate);
  transition: background 0.22s, box-shadow 0.18s, color 0.22s, transform 0.15s;
  cursor: pointer;
  margin-left: 12px;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #232323;
  color: var(--brand-secondary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 30px rgba(10,10,10,0.16);
}

/* Hide .cta on small screens, show inside mobile nav */
@media (max-width: 700px) {
  header .cta.primary {
    display: none;
  }
}

/* ============= MOBILE BURGER MENU ============= */
.mobile-menu-toggle {
  background: none;
  color: var(--brand-primary);
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 14px;
  display: block;
  z-index: 201;
  transition: color 0.18s;
  padding: 2px 8px;
  border-radius: 6px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #000;
  background: var(--brand-lightgray);
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(20,20,20,0.98);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.76,.09,.44,.96);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--brand-white);
  border: none;
  font-size: 2.2rem;
  margin: 22px 0 18px 22px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 401;
  transition: color 0.18s;
  padding: 5px 12px;
  border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #D1A955;
  background: #1C1C1C;
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin: 16px 0 0 32px;
}
.mobile-nav a {
  color: #f7f7f7;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 14px 0;
  transition: color 0.18s, background 0.18s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #D1A955;
  background: #232323;
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
  nav {
    display: flex !important;
  }
}
@media (max-width: 899px) {
  nav {
    display: none;
  }
  header .container {
    gap: 12px;
  }
}

/* ============= MAIN & SECTION LAYOUTS ============= */
main {
  background: #FFF;
  padding-top: 0;
}
section {
  width: 100%;
  background: #fff;
  box-sizing: border-box;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-radius: 0 0 var(--radius) var(--radius);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  gap: 18px;
}
.text-section {
  max-width: 820px;
  color: #232323;
  margin: 0 auto 0 0;
}
@media (max-width: 768px) {
  section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .section {
    margin-bottom: 36px;
    padding: 32px 8px;
  }
  .content-wrapper, .text-section { padding: 0; }
}

/* ============= GRID-LIKE FLEX CONTAINERS ============= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #FAFAFA;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 30px 24px 26px 24px;
  width: 100%;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.22s, transform 0.22s, background 0.21s;
  min-height: 260px;
  margin-bottom: 20px;
}
.features-grid > div:hover,
.features-grid > div:focus-within {
  background: #f4f4f4;
  box-shadow: 0 6px 36px rgba(15,15,20,0.11), 0 2.5px 3px rgba(0,0,0,0.07);
  transform: translateY(-4px) scale(1.015);
}
.features-grid img {
  height: 50px;
  width: 50px;
  margin-bottom: 10px;
}
.features-grid h3 {
  margin-bottom: 0px;
}
.features-grid p {
  color: #444;
}
.features-grid span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #888;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .features-grid > div {
    max-width: calc(50% - 14px);
    min-width: 260px;
  }
}
@media (max-width: 700px) {
  .features-grid {
    gap: 14px;
  }
  .features-grid > div {
    max-width: 100%;
    min-width: 0;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fafafa;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevate);
  padding: 24px;
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow 0.27s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 30px rgba(18,18,18,0.13);
  transform: scale(1.02);
}

.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: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #F2F2F2;
  border-radius: var(--radius);
  box-shadow: 0 2.5px 16px rgba(20,20,20,0.065);
  margin-bottom: 20px;
  border: 1px solid #EAEAEA;
  max-width: 540px;
  transition: box-shadow .21s, background .19s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  background: #EBEBEB;
  box-shadow: 0 7px 36px rgba(16,16,16,0.09);
}
.testimonial-card p {
  color: #141414;
  font-size: 1.13rem;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #646464;
  font-size: 1rem;
}

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

/* ============= BUTTONS ============= */
button, .button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.16s, color 0.16s, box-shadow 0.19s, transform 0.13s;
  outline: none;
  padding: 12px 26px;
  background: var(--brand-primary);
  color: var(--brand-white);
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: #232323;
  color: #fff;
  box-shadow: 0 2px 12px rgba(20,20,20,0.12);
  transform: scale(1.03);
}

/* Cookie Banner/Modal Buttons */
.cookie-btn {
  margin-right: 14px;
  min-width: 112px;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn.secondary {
  background: #fff;
  color: #141414;
  border: 1px solid #bbb;
}
.cookie-btn.secondary:hover {
  background: #F2F2F2;
  color: #111;
}
.cookie-btn.settings {
  background: #ededed;
  color: #444;
  border: 1px solid #DDD;
}
.cookie-btn.settings:hover {
  background: #e1e1e1;
  color: #000;
}

/* ============= FORMS (if any in future) ============= */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 7px;
  padding: 10px 14px;
  background: #fafafa;
  margin-bottom: 14px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #232323;
  border-color: #232323;
  background: #fff;
}

/* ============= FOOTER ============= */
footer {
  background: #FEFEFE;
  border-top: 1.5px solid #ECECEC;
  padding: 36px 0 22px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #232323;
  font-size: 1rem;
  opacity: 0.82;
  transition: color 0.17s;
}
footer nav a:hover,footer nav a:focus {
  color: #111;
}
footer img {
  width: 44px;
  height: 44px;
  opacity: 0.82;
}
footer .text-section {
  color: #555;
  max-width: 320px;
  font-size: 0.98rem;
}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  footer nav {
    flex-direction: row;
    gap: 18px;
    margin: 6px 0 10px 0;
  }
}

/* ============= COOKIE CONSENT BANNER & MODAL ============= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #1C1C1C;
  color: var(--brand-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 26px rgba(0,0,0,0.13);
  padding: 30px 18px;
  gap: 18px;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.29s, opacity 0.29s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  font-size: 1.12rem;
  color: #fafafa;
  margin-bottom: 8px;
  text-align: center;
  max-width: 760px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44,44,44,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #1c1c1c;
  border-radius: var(--radius);
  box-shadow: 0 8px 42px rgba(0,0,0,0.15);
  padding: 46px 36px 28px 36px;
  min-width: 340px;
  max-width: 96vw;
  max-width: 470px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 12000;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #222;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 8px;
}
.cookie-modal .modal-category {
  background: #f6f6f6;
  border-radius: 8px;
  padding: 13px 12px 11px 18px;
  border-left: 4px solid #ddd;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal .modal-category .cat-title {
  font-weight: 600;
  font-size: 1.09rem;
  color: #232323;
  font-family: var(--font-display);
}
.cookie-modal .modal-category .locked {
  opacity: 0.62;
  font-size: 0.99rem;
  margin-left: 8px;
}
.cookie-modal .switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
}
.cookie-modal .switch input[type="checkbox"] {
  width: 30px;
  height: 18px;
  border-radius: 10px;
  appearance: none;
  background: #ccc;
  transition: background 0.19s;
  cursor: pointer;
  outline: none;
  margin: 0;
  position: relative;
}
.cookie-modal .switch input[type="checkbox"]:checked {
  background: #232323;
}
.cookie-modal .switch input[type="checkbox"]:after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 0; top: 0;
  transition: left 0.18s;
  box-shadow: 0 1.5px 8px rgba(40,40,40,0.13);
}
.cookie-modal .switch input[type="checkbox"]:checked:after {
  left: 12px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-top: 8px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #232323;
  opacity: 0.39;
  cursor: pointer;
  transition: opacity 0.14s;
}
.cookie-modal .close-modal:hover {
  opacity: 0.9;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 28px 8px 18px 8px;
    min-width: 87vw;
  }
}

/* ============= MISC ================= */
hr {
  border: 0;
  border-top: 1px solid #eaeaea;
  margin: 26px 0;
}

blockquote {
  border-left: 4px solid #E1E1E1;
  padding: 12px 18px;
  color: #1C1C1C;
  background: #f7f7f7;
  margin-bottom: 16px;
  border-radius: 10px;
}

/* ============= RESPONSIVE LAYOUT ============= */
@media (max-width: 600px) {
  body { font-size: 0.99rem; }
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.22rem; }
  .container { padding: 0 7px; }
  section, .section { padding: 18px 3px; margin-bottom: 22px; }
  .testimonial-card, .card { padding: 16px 12px; }
  .features-grid > div { padding: 18px 10px; }
  .cookie-banner { padding: 18px 3px; }
  .cookie-modal { padding: 18px 4px; min-width: 86vw; }
  footer .container { gap: 7px; }
}

@media (max-width: 400px) {
  h1,h2,h3 { font-size: 1rem; }
  .cta.primary { font-size: 1rem; padding: 9px 15px; }
}

/* ============= ANIMATIONS ============= */
.card, .features-grid > div, .testimonial-card {
  transition: box-shadow 0.21s, transform 0.21s, background 0.21s;
}
.cta.primary, button, .button {
  transition: background 0.18s, color 0.19s, box-shadow 0.16s, transform 0.13s;
}
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  will-change: transform, opacity;
}

/* ==== ACCESSIBILITY ==== */
:focus {
  outline: 1.5px solid #2F4E1E;
  outline-offset: 2px;
}

/* ============= PRINT ============= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { box-shadow: none !important; }
}
