/* ========= 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;
}

body { line-height: 1; background: #F2F1EF; color: #22263A; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; cursor: pointer; transition: color 0.2s; }
b, strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
:focus { outline: 2px solid #819D83; outline-offset: 2px; }

/* ========= BRAND VARIABLES ========= */
:root {
  --primary: #22263A;
  --secondary: #819D83;
  --accent: #F2F1EF;
  --text-main: #22263A;
  --text-muted: #586073;
  --bg-gray: #F7F8FA;
  --bg-card: #fff;
  --border-radius: 12px;
  --shadow: 0 4px 20px 0 rgba(34, 38, 58, 0.07);
  --shadow-lg: 0 8px 36px 0 rgba(34, 38, 58, 0.10);
}

/* ========== FONTS ========== */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--accent);
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}

p, li {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.text-section p {
  margin-bottom: 10px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.01);
}
.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;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  max-width: 540px;
  color: var(--primary);
}
.testimonial-card p {
  font-style: italic;
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.5;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 22px 20px;
  flex: 1 1 240px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 14px;
}

.founder-statement {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f8fa;
  border-left: 4px solid var(--secondary);
  padding: 20px 30px;
  margin: 20px 0 0 0;
  border-radius: var(--border-radius);
}

/* ========= HEADER & NAVIGATION ========= */
header {
  background: #fff;
  border-bottom: 1px solid #E2E3E6;
  width: 100%;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 14px 20px;
  position: relative;
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 20px;
}
nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 6px;
  transition: background 0.15s, color 0.16s;
  position: relative;
}
nav a:hover:not(.cta-primary), nav a:focus:not(.cta-primary) {
  background: var(--bg-gray);
  color: var(--secondary);
}
.cta-primary {
  background: var(--secondary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 7px 0 rgba(129, 157, 131, .12);
  font-size: 1.08rem;
  font-weight: 700;
  margin-left: 15px;
  transition: background 0.14s, color 0.13s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(34, 38, 58, .12);
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  width: 46px; height: 46px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  z-index: 202;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,38,58, 0.97);
  z-index: 203;
  flex-direction: column;
  transition: transform 0.33s cubic-bezier(.7,.2,.2,.9);
  transform: translateX(0);
  animation: mobileMenuSlide .33s cubic-bezier(.7,.2,.2,.9);
}
@keyframes mobileMenuSlide {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-close {
  color: #fff;
  font-size: 2.1rem;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 18px 24px 10px 0;
  cursor: pointer;
  z-index: 204;
  transition: color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin-top: 30px;
}
.mobile-nav a {
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 8px;
  transition: background 0.16s, color 0.17s;
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 980px) {
  nav { gap:14px; }
}
@media (max-width: 850px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 850px) {
  header .container {
    padding-right: 12px; padding-left: 12px;
    flex-wrap: nowrap;
  }
}

/* ========= MAIN CONTENT & UTILITIES ========= */
ul li, ul li strong {
  color: var(--text-main);
  margin-bottom: 5px;
  font-size: 1rem;
}
ul {
  padding-left: 20px;
  list-style: disc;
}
ul ul {
  margin-top: 4px;
  padding-left: 22px;
}
.text-section {
  margin-bottom: 24px;
}

/* Cards in features, testimonials etc. */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========= BUTTONS ========= */
button, .button, .btn {
  font-family: inherit;
  background: var(--secondary);
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 700;
  transition: background 0.14s, transform 0.11s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(129, 157, 131, .14);
  margin-right: 11px;
}
button:hover, .button:hover, .btn:hover,
button:focus, .button:focus, .btn:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 14px 0 rgba(34, 38, 58, .1);
}

/* ========= FOOTER ========= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 20px 0;
  margin-top: 60px;
  width: 100%;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.footer-logo img {
  height: 38px;
  margin-bottom: 16px;
}
footer nav {
  flex-direction: column;
  gap: 13px;
  margin: 0 30px;
}
footer nav a {
  color: #CBD2DC;
  font-size: 1rem;
  margin-bottom: 4px;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact p, .footer-contact img {
  color: #CBD2DC;
  font-size: 1rem;
  margin-bottom: 4px;
  vertical-align: middle;
  display: flex; align-items: center;
  gap: 10px;
}
.footer-contact img {
  width: 20px; height: 20px; margin-right: 7px;
}

/* ========= COOKIE CONSENT BANNER ========= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(34,38,58,0.08);
  border-top: 2px solid var(--secondary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 38px 22px 38px;
  z-index: 9999;
  transition: transform 0.23s;
  font-size: 1rem;
  animation: cookieBannerIn 0.38s;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0;
  } to {
    transform: translateY(0); opacity: 1;
  }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 15px;
}
.cookie-banner button {
  background: var(--secondary);
  color: #fff;
  padding: 9px 16px;
  font-size: 1rem;
  border-radius: 7px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
  margin: 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* ====== COOKIE MODAL ====== */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,38,58,.60);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn .32s;
}
#cookie-modal.active {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal .cookie-modal-content {
  background: #fff;
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 48px rgba(34,38,58,0.15);
  padding: 38px 30px 30px 28px;
  width: 96%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
#cookie-modal .close {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 1.5rem;
  color: var(--secondary);
  background: none; border: none;
  cursor: pointer;
  transition: color 0.16s;
}
#cookie-modal .close:hover {
  color: var(--primary);
}
.cookie-modal-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem; color: var(--primary);
}
.cookie-toggle {
  width: 40px; height: 24px;
  background: #E2E3E6;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .13s;
}
.cookie-toggle input {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-toggle span {
  position: absolute;
  top: 2px; left: 2px;
  height: 20px; width: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s cubic-bezier(.82,.06,.41,.99), background 0.11s;
  box-shadow: 0 2px 6px rgba(34,38,58,0.08);
}
.cookie-toggle input:checked + span {
  left: 18px;
  background: var(--secondary);
}
/* Mark essential cookie as always enabled */
.cookie-modal-content .cookie-essential label { color: var(--secondary); font-weight: 700; }

/* ========= RESPONSIVE DESIGN ========= */
@media (max-width: 1200px) {
  .container {max-width: 950px;}
}
@media (max-width: 900px) {
  .container {max-width: 780px;}
  .feature-grid {
    gap: 16px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
}
@media (max-width: 700px) {
  .feature-grid { flex-direction: column; gap: 20px; }
  .feature-grid > div { min-width: unset; width: 100%; }
  .testimonial-card { max-width: 100%; }
  .content-grid { flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
  .container { padding: 0 6px; }
  .section { padding: 24px 4px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.08rem; }
  .footer-logo img { height: 30px; }
  footer { padding: 28px 0 10px 0; }
  footer .container { gap:16px; }
}
@media (max-width: 450px) {
  .cookie-banner { flex-direction: column; gap: 20px; padding: 15px 5px; }
  .cookie-banner .cookie-buttons { gap:8px; }
}
@media (max-width: 690px) {
  .text-image-section, .content-grid { flex-direction: column; gap: 12px; }
}

/* ======= UTILITIES ======= */
.mt-12 { margin-top: 12px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-24 { margin-bottom: 24px !important; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ====== ANIMATIONS ====== */
.fadein { animation: fadein 0.2s 1; }
@keyframes fadein {
  from {opacity: 0;} to {opacity: 1;}
}
.slide-in { animation: slidein 0.33s cubic-bezier(.7,.2,.2,.9) 1; }
@keyframes slidein {
  from { transform: translateX(100%); } to { transform: translateX(0); }
}

/* ======= FORMS (if present) ======= */
input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #CBD2DC;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  background: #f9f9fa;
}

/* ======= MISC ======= */
::-webkit-input-placeholder { color: #999; }
::-moz-placeholder { color: #999; }
:-ms-input-placeholder { color: #999; }
::placeholder { color: #999; }

/* Add spacing between all main content cards/sections */
main > section {
  margin-bottom: 60px;
}
main > section:last-child {
  margin-bottom: 0;
}

/* Ensure minimum 20px between all cards/sections */
.card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px;
}
/* Prevent overlapping */
.card, .feature-grid > div, .testimonial-card {
  z-index: 1;
}

/* ================= END ================= */
