/* 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;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  vertical-align: middle;
}
button, input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* VARIABLES & BASE TYPOGRAPHY */
:root {
  --color-primary: #1A3A61;
  --color-secondary: #F8F4EC;
  --color-accent: #EA9A36;
  --color-card-bg: #fff;
  --color-heading: #1A3A61;
  --color-body: #2e353e;
  --color-grey: #e6e8eb;
  --color-shadow: rgba(26,58,97,0.07);
  --radius-base: 12px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-card: 0 4px 22px rgba(26,58,97,.05),0 1.5px 3px rgba(26,58,97,.07);
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: var(--color-secondary);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 100vh;
}

/* LAYOUT WRAPPER */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-card-bg);
  box-shadow: 0 2px 12px var(--color-shadow);
  border-bottom: 2.5px solid var(--color-grey);
  position: relative;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
header img {
  height: 42px;
  width: auto;
  border-radius: 0;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  transition: color .18s;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 6px;
  position: relative;
}
nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--color-accent);
  transition: width .18s;
  position: absolute;
  bottom: 0; left: 0;
  border-radius: 3px;
}
nav a:hover, nav a:focus {
  color: var(--color-accent);
}
nav a:hover:after, nav a:focus:after {
  width: 100%;
}
header .mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.4em 0.7em;
  border-radius: 10px;
  margin-left: 12px;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(234,154,54,0.11);
  z-index: 1003;
}
header .mobile-menu-toggle:active,
header .mobile-menu-toggle:focus {
  background: #dd7c00;
}
/* Hide burger on desktop */
@media (min-width: 1020px) {
  header .mobile-menu-toggle {
    display: none;
  }
}
/* Hide nav on mobile */
@media (max-width: 1019px) {
  header nav {
    display: none;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: #fff;
  z-index: 1300;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.86,.04,.27,1.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: transparent;
  color: #fff;
  border: none;
  align-self: flex-end;
  margin: 18px 28px 0 0;
  cursor: pointer;
  transition: color .15s;
  z-index: 1102;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 12px 0 12px 0px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  transition: color .18s, background .16s;
  min-height: 44px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-accent);
  background: rgba(234,154,54,0.06);
}
/* Hide mobile menu on desktop */
@media (min-width: 1020px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN SECTIONS, FLEX LAYOUTS & SPACING */
section {
  background: var(--color-card-bg);
  border-radius: var(--radius-base);
  box-shadow: 0 4px 28px var(--color-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
@media (max-width: 768px) {
  section  {
    padding: 30px 8px;
    margin-bottom: 36px;
  }
}
.card-container,
.card-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.card {
  background: var(--color-card-bg);
  border: 2px solid var(--color-grey);
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 18px var(--color-shadow);
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 370px;
  transition: box-shadow .18s, border .18s, transform .18s;
}
.card:hover, .card:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(26,58,97,0.13);
  transform: translateY(-2px) scale(1.017);
}
.card-content {
  padding: 26px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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: center;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-secondary);
  border: 2px solid var(--color-grey);
  margin-bottom: 24px;
  box-shadow: 0 2px 10px var(--color-shadow);
  color: var(--color-heading);
  font-family: var(--font-body);
  transition: box-shadow .16s, border .14s;
}
.testimonial-card p {
  font-size: 1.16rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.54;
  text-align: left;
}
.testimonial-meta {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  width: 100%;
  justify-content: flex-start;
}
.testimonial-meta span {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: #555;
}
@media (max-width: 650px) {
  .testimonial-card { padding: 14px 7px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
h2 {
  font-size: 2rem;
  margin: 10px 0 12px 0;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1.37rem;
  margin: 6px 0 6px 0;
}
h4 {
  font-size: 1.12rem;
}
p, ul, li, .text-section, .content-wrapper {
  font-size: 1.062rem;
  color: var(--color-body);
  font-family: var(--font-body);
  letter-spacing: 0.00em;
}
.text-section {
  margin-bottom: 13px;
}
strong {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-primary);
}

ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}
ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 13px; height: 13px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 25% 50%);
  border-radius: 3px;
}

/* FOR "GEOMETRIC_STRUCTURED" STYLE: BUTTONS & CTAs */
.cta-button, button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 34px;
  border: none;
  border-radius: 16px 0 16px 0;
  box-shadow: 0 2px 10px rgba(234,154,54,0.08);
  transition: background .18s, color .16s, box-shadow .18s, transform .15s;
  margin-top: 18px;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.cta-button:focus,
.cta-button:hover,
.btn:focus,
.btn:hover {
  background: var(--color-primary);
  color: #fff !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(26,58,97,0.16);
}
a.cta-button {
  text-decoration: none;
}

/* INPUTS */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 2px solid var(--color-grey);
  border-radius: 10px;
  min-height: 42px;
  font-family: var(--font-body);
  font-size: 1.09rem;
  padding: 0.7em 1.15em;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1.5px 8px rgba(26,58,97, 0.04);
  margin-bottom: 18px;
  transition: border-color .13s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-accent);
}

/* ICONS IN LISTS */
li img {
  margin-right: 10px;
  width: 1.3em;
  height: 1.3em;
  vertical-align: sub;
}

/* LINKS */
a, a:visited {
  color: var(--color-accent);
  transition: color .16s;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline dotted;
}

/* FOOTER */
footer {
  background: var(--color-card-bg);
  border-top: 2.5px solid var(--color-grey);
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 20px 32px 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer p {
  font-size: .99rem;
  color: #aaa;
  font-family: var(--font-body);
}
footer img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-left: 10px;
    padding-right: 10px;
  }
  footer nav { gap: 14px; }
}

/* RESPONSIVE TYPOGRAPHY & LAYOUTS */
@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.425rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.11rem; }
}

/* PAGE-SPECIFIC & COMMON SECTIONS */
.text-section h2, .text-section h3, .text-section h4 {
  margin: 0 0 7px 0;
}
.text-section {
  padding-left: 0;
  padding-right: 0;
}

/* Util classes */
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.py-20 { padding-top: 20px !important; padding-bottom: 20px !important; }
.px-20 { padding-left: 20px !important; padding-right: 20px !important; }

/* ----------- COOKIE CONSENT BANNER & MODAL ----------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  width: 100%;
  background: var(--color-card-bg);
  color: var(--color-heading);
  box-shadow: 0 -2px 10px rgba(26,58,97,0.10);
  border-top: 3px solid var(--color-accent);
  padding: 25px 14px 17px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  transition: transform .35s cubic-bezier(.86,.04,.27,1.12), opacity .16s;
  font-family: var(--font-body);
}
.cookie-banner.closed {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
.cookie-btn, .btn-cookie {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px 0px 10px 0;
  padding: 13px 27px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
  box-shadow: 0 1.7px 7px rgba(26,58,97,0.04);
  transition: background .18s, color .16s, box-shadow .17s, transform .14s;
  cursor: pointer;
  letter-spacing: 0.06em;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.reject {
  background: #e1453d;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-grey);
  color: var(--color-primary);
}
.cookie-btn:hover, .btn-cookie:hover, .cookie-btn:focus, .btn-cookie:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.045);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #d2d2d2;
  color: var(--color-accent);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 58, 97, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 1;
  transition: opacity .2s;
}
.cookie-modal-overlay.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-card-bg);
  border-radius: 15px;
  border: 3px solid var(--color-accent);
  box-shadow: 0 8px 60px rgba(26,58,97, 0.21);
  padding: 34px 20px 20px 20px;
  max-width: 95vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-body);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.37rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 0;
  color: #1A3A61;
  font-size: 1.06rem;
}
.cookie-category .toggle {
  min-width: 40px;
  height: 24px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: var(--color-grey);
  position: relative;
}
.cookie-category .toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .slider {
  position: absolute;
  left: 0; top: 0;
  height: 24px; width: 40px;
  background: #e2e2e2;
  border-radius: 12px;
  transition: background .17s;
}
.cookie-category .toggle input:checked + .slider {
  background: var(--color-accent);
}
.cookie-category .slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1.5px 7px rgba(26,58,97,.07);
  transition: transform .14s;
}
.cookie-category .toggle input:checked + .slider::before {
  transform: translateX(16px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* Close modal button */
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #777;
  cursor: pointer;
  transition: color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent);
}

/* Hide modal on small screens */
@media (max-width: 480px) {
  .cookie-modal {
    width: 94vw;
    padding: 22px 7px 14px 7px;
  }
}

/* ----------- END COOKIE CONSENT ----------- */

/* MICRO-INTERACTIONS AND TRANSITIONS */
.card, .testimonial-card, .cta-button, .btn, .cookie-btn {
  transition: box-shadow .18s, background .18s, border .17s, color .16s, transform .16s;
}
input[type="text"], input[type="email"] {
  transition: border-color .16s;
}
nav a:after {
  transition: width .19s;
}

/* GEOMETRIC SHAPE DECOR: (For demonstration, could be added in HTML for visual accents) */
.geometric-shape {
  position: absolute;
  z-index: 1;
  opacity: .14;
  pointer-events: none;
}

/* GEOMETRIC TYPOGRAPHY & HEADINGS */
h1, h2, h3 {
  text-transform: none;
  letter-spacing: 0.01em;
  border-bottom: 3.5px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 2.5px;
  border-radius: 1.5px;
  margin-bottom: 14px;
  box-shadow: 8px 4px 0 #F8F4EC; /* geometric accent */
}
h3 {
  border-bottom: 2.2px solid var(--color-accent);
  margin-bottom: 10px;
  box-shadow: 6px 2.5px 0 #F8F4EC;
}
@media (max-width: 800px) {
  h1, h2, h3 { box-shadow: 4px 2px 0 #F8F4EC; }
}

/* Ensure all cards, testimonial cards, and main sections never overlap */
.card, .testimonial-card, section {
  margin-bottom: 28px;
}

/* ACCESSIBLE FOCUS STYLES */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2.5px;
}

/* Utility: Hide visually, not for screenreaders */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Spacing between all cards and sections */
.card-container > *,
.card-grid > *,
.content-grid > *,
.content-wrapper > *,
section > *,
footer nav > *,
header nav > * {
  margin-right: 0;
  margin-bottom: 0;
}
.card-container > *, .card-grid > *, .content-grid > * {
  margin-bottom: 0;
}
.card:not(:last-child), .testimonial-card:not(:last-child) {
  margin-bottom: 24px;
}

/* Ensure no overlap on small screens */
@media (max-width: 700px) {
  .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* --- END --- */
