/* ==========================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F2EADA;
  color: #223D61;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #223D61;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #326CA3;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* ==========================================================
   BRAND VARIABLES AND TYPOGRAPHY
========================================================== */
:root {
  --color-primary: #223D61;
  --color-secondary: #C4D6DC;
  --color-accent: #F2EADA;
  --color-action: #eb6b4d;
  --color-highlight: #f7a440;
  --color-brand-dark: #162441;
  --color-brand-light: #ffffff;

  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 2px 4px 0 var(--color-secondary), 0 3px 14px rgba(34,61,97,0.10);
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg,var(--color-action),var(--color-highlight),var(--color-secondary) 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.25rem;
}
p {
  color: var(--color-brand-dark);
  font-family: var(--font-body);
  font-size: 1.09rem;
  margin-bottom: 18px;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}

/* Artistic touch: add some unique squiggly underline to highlight text */
.marked-art {
  background: linear-gradient(120deg, rgba(236,212,148,0.72) 50%, rgba(228,181,201,0.51) 100%);
  border-radius: 0.25em 1em 0.5em 1.5em;
  padding: 0.15em 0.35em;
  display: inline-block;
}

/* ==========================================================
   LAYOUT HELPERS
========================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width:100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffbe6;
  border-radius: 32px;
  box-shadow: 0 4px 30px 0 rgba(34,61,97,0.10), 0 3px 14px 0 rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px){
  .section {
    padding: 25px 8px;
    margin-bottom: 36px;
    border-radius: 20px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.card-container, .card-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-item {
  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;
}
@media (max-width: 768px) {
  .text-image-section, .card-container, .feature-grid, .content-grid {
    flex-direction: column;
  }
  .feature-grid {
    gap: 18px;
  }
}

/* Card styles */
.card, .feature-item {
  background: var(--color-accent);
  border-radius: 22px;
  padding: 34px 22px;
  box-shadow: 0 2px 16px 0 rgba(34,61,97,0.11);
  min-width: 270px;
  flex: 1 1 300px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover, .feature-item:hover {
  transform: translateY(-6px) scale(1.025) rotate(-0.3deg);
  box-shadow: 0 8px 42px 0 rgba(34,61,97,0.13), 0 3px 14px 0 rgba(0,0,0,0.09);
}

/* ==========================================================
   HEADER & NAVIGATION
========================================================== */
header {
  background: var(--color-primary);
  padding: 0 0 0 0;
  box-shadow: 0 2px 10px 0 rgba(34,61,97,0.07);
  position: sticky;
  top: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
header nav a {
  color: var(--color-brand-light);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  transition: background 0.15s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta-primary {
  background: linear-gradient(93deg,var(--color-action),var(--color-highlight) 85%);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-brand-dark)!important;
  padding: 12px 32px;
  border-radius: 16px;
  font-size: 1.08rem;
  box-shadow: 0 3px 18px 0 rgba(247,164,64,0.08);
  border: 0;
  outline: 0;
  cursor: pointer;
  margin-left: 18px;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(255,255,255,0.14);
}
.cta-primary:hover {
  background: linear-gradient(87deg,#eb6b4d,#f7a440 80%,#C4D6DC 150%);
  color: var(--color-brand-dark);
  transform: translateY(-2px) scale(1.03) rotate(-0.4deg);
  box-shadow: 0 8px 34px 0 rgba(247,164,64,0.18);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-action);
  color: var(--color-brand-dark);
  font-size: 2.1rem;
  border: 0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.14s, box-shadow 0.2s, transform 0.16s;
  box-shadow: 0 1px 6px 0 rgba(34,61,97,0.09);
  z-index: 999;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-highlight);
  color: var(--color-primary);
}
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items:center;
    justify-content:center;
  }
}

/* ==========================================================
   MOBILE MENU OVERLAY
========================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,244,235,0.97);
  box-shadow: 0 6px 40px 0 rgba(34,61,97,0.18);
  z-index: 2000;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(0.68,-0.25,0.51,1.33);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0;
  opacity: 1;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-brand-dark);
  font-size: 2.3rem;
  font-weight: 700;
  padding: 22px 22px 14px 18px;
  cursor: pointer;
  z-index: 2001;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-action);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 80vw;
  max-width: 400px;
  margin: 44px 0 0 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 15px 8px 13px 0;
  border-radius: 0px 16px 16px 0px;
  width: 100%;
  background: transparent;
  transition: background 0.13s, color 0.16s, transform 0.13s;
  outline: none;
  text-align: left;
}
.mobile-nav a:active {
  background: var(--color-secondary);
  color: var(--color-brand-dark);
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none!important;
  }
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
  background: var(--color-primary);
  color: var(--color-brand-light);
  padding: 32px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 20px;
  color: #fff;
}
footer nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 5px;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background 0.14s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-action);
  color: var(--color-brand-dark);
}
footer p {
  color: #fff;
  margin: 2px 0 2px 0;
}
@media (max-width:850px){
  footer .content-wrapper {
    flex-direction: column;
    gap: 28px;
  }
}

/* ==========================================================
   FEATURE GRID + ICON LISTS
========================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(107deg,#FFFAED 68%, #f1f4fc 100%);
  border-radius: 18px;
  box-shadow: 0 1.5px 12px 0 rgba(196, 214, 220, .14);
  padding: 18px 20px 18px 20px;
  font-size: 1.05rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  min-width: 240px;
  flex: 1 1 250px;
  transition: box-shadow 0.21s, transform 0.19s;
  margin-bottom: 0;
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  margin-top: 2px;
  flex-shrink:0;
}
.feature-grid li:hover {
  box-shadow: 0 10px 28px 0 rgba(34,61,97,0.16);
  transform: rotate(-1.4deg) scale(1.03);
}

@media (max-width: 700px) {
  .feature-grid {
    gap: 12px;
  }
  .feature-grid li {
    font-size: 0.95rem;
    min-width: 160px;
    padding: 13px 12px 13px 12px;
  }
  .feature-grid li img {
    width: 29px;
    height: 29px;
  }
}

ul, ol {
  padding-left: 2px;
}
li {
  margin-bottom: 12px;
  font-family: var(--font-body);
}

/* ==========================================================
   TESTIMONIAL/REVIEW CARDS
========================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 0.2px 5px 0 rgba(34,61,97,0.06), 0 5px 20px 0 rgba(34,61,97,0.06);
  margin-bottom: 20px;
  max-width: 650px;
  color: #22223d;
  font-size: 1.11rem;
  font-family: var(--font-body);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card blockquote {
  margin: 0;
  font-style: italic;
  color: #22223d;
  line-height: 1.6;
  font-size: 1.05rem;
}
@media (max-width: 700px) {
  .testimonial-card {
    max-width: 98vw;
    padding: 15px;
    border-radius: 14px;
    font-size: 1.0rem;
  }
}
.testimonial-card:before {
  content: '\201C';
  font-size: 3.8rem;
  color: var(--color-action);
  position: absolute;
  left: 14px; top: 0;
  pointer-events: none;
  opacity: 0.14;
  font-family: var(--font-display);
}
/* Add hover for micro-interaction */
.testimonial-card:hover {
  box-shadow: 0 7px 32px 0 rgba(34,61,97,0.15);
  transform: scale(1.015) rotate(-0.6deg);
}

/* Accessibility for contrast */
.testimonial-card, .testimonial-card blockquote {
  background: #fff !important;
  color: #22223d !important;
}

/* ==========================================================
   TABLE
========================================================== */
table {
  width: 100%;
  margin-bottom: 22px;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 1px 4px 0 rgba(34,61,97,0.06);
  border-radius: 16px;
  overflow: hidden;
  font-family: var(--font-body);
}
thead tr {
  background: var(--color-primary);
}
thead th {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  padding: 14px 12px;
  text-align: left;
}
tbody tr {
  background: #fff;
  border-bottom: 1px solid var(--color-secondary);
  transition: background 0.15s;
}
tbody tr:hover {
  background: var(--color-secondary);
}
td {
  padding: 12px 10px;
}
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  thead tr {
    display: none;
  }
  td {
    padding: 8px 6px;
  }
}

/* ==========================================================
   FORMS, INPUTS
========================================================== */
input[type="search"] {
  padding: 12px 18px;
  font-size: 1rem;
  border: 2.5px solid var(--color-secondary);
  border-radius: 15px;
  outline: none;
  width: 240px;
  font-family: var(--font-body);
  transition: border 0.16s, box-shadow 0.17s;
  box-shadow: 0 2px 8px 0 rgba(34,61,97,0.05);
  margin-bottom: 15px;
  background: #fffed5;
}
input[type="search"]:focus {
  border-color: var(--color-action);
  background: #fffbe2;
}

/* ==========================================================
   COOKIES BANNER & MODAL
========================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fffbe6;
  color: var(--color-primary);
  box-shadow: 0 -2px 20px 0 rgba(34,61,97,0.09);
  width: 100vw;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px 22px 32px;
  gap: 24px;
  min-height: 65px;
  animation: cookies-slide-in 0.8s cubic-bezier(0.23,1.2,0.32,1) 0s;
}
@keyframes cookies-slide-in {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: none; opacity:1; }
}
.cookie-banner-text {
  font-family: var(--font-body);
  font-size: 1.01rem;
  line-height: 1.5;
  flex: 3 1 320px;
  color: var(--color-primary);
}
.cookie-banner-buttons {
  flex: 2 1 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items:center;
  justify-content:flex-end;
}
.cookie-btn {
  padding: 10px 28px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 700;
  background: var(--color-action);
  color: var(--color-brand-light);
  border: none;
  outline: none;
  margin-left: 0;
  transition: background 0.19s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 1.5px 8px 0 rgba(247,164,64,0.09);
  cursor:pointer;
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-brand-dark);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-highlight);
  color: var(--color-primary);
  box-shadow: 0 3px 18px 0 rgba(247,164,64,0.17);
}

@media (max-width:700px){
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 9px 24px 12px;
  }
  .cookie-banner-buttons {
    justify-content: flex-start;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,61,97,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  transition: background 0.28s;
  animation: modal-fade-in 0.38s cubic-bezier(0.39,1,0.45,1.1);
}
@keyframes modal-fade-in {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal-content {
  background: #fffbe8;
  padding: 38px 26px 30px 28px;
  border-radius: 22px;
  box-shadow: 0 5px 45px 0 rgba(34,61,97,0.13);
  max-width: 94vw;
  min-width: 302px;
  max-width: 455px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: var(--font-body);
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-action);
  font-size: 2.2rem;
  font-weight: 800;
  position: absolute;
  top: 12px; right: 23px;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--color-secondary);
  accent-color: var(--color-action);
  cursor:pointer;
}
.cookie-category label {
  font-size: 1.07rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
}
.cookie-category .category-required {
  color: #73ae57;
  font-size: 0.92em;
  font-weight: 700;
  margin-left: 6px;
  background: #e7fadb;
  padding: 2px 8px;
  border-radius: 8px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 14px;
}

/* ==========================================================
   SPACING and VISUAL ELEMENTS
========================================================== */
.section, .container, .content-wrapper, .feature-grid, .feature-item, .card, .testimonial-card, .card-container,
.card-grid, .content-grid, .text-image-section {
  box-sizing: border-box;
}
.section, .card, .feature-item, .testimonial-card
{
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid, .feature-grid, .content-grid {
  gap: 20px;
}
.testimonial-card { gap:20px; }
.feature-item {gap:15px; align-items: flex-start;}
.text-image-section {
  gap:30px; align-items: center;
}

/* ==========================================================
   MISC & PAGE-SPECIFIC
========================================================== */
span {
  font-family: var(--font-display);
  background: var(--color-highlight);
  padding: 1.5px 7px;
  margin: 3px;
  border-radius: 7px;
  font-size: 0.97em;
}
dt {
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 0px;
  color: var(--color-brand-dark);
  font-family: var(--font-display);
}
dd {
  margin-left: 0;
  margin-bottom: 11px;
  color: var(--color-primary);
  font-size: 1.02rem;
}
blockquote {
  margin-left: 0;
  border-left: 3.5px solid var(--color-action);
  padding-left: 14px;
}

/* Decorative squiggle for h2 artistic touch */
h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 9px;
  background: url('data:image/svg+xml;utf8,<svg width="70" height="10" xmlns="http://www.w3.org/2000/svg"><path d="M5 5 Q 21 16, 39 5 T 65 3" stroke="%23f7a440" stroke-width="2.5" fill="none"/></svg>') no-repeat center;
  margin-top: 8px;
}

/* ==========================================================
   TRANSITIONS & ANIMATIONS
========================================================== */
* { transition: background 0.18s, color 0.17s, box-shadow 0.21s, border-color 0.12s, transform 0.13s; }

/* Focus states for accessibility */
a:focus, button:focus, .cta-primary:focus, .mobile-menu-toggle:focus, .cookie-btn:focus {
  outline: 2.5px dashed var(--color-action);
  outline-offset: 3px;
}

/* ==========================================================
   ARTISTIC FONTS (import if needed) & BODY
========================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
body {
  font-family: var(--font-body);
  background: #F2EADA;
  font-size: 1.05rem;
  font-weight: 400;
}


/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.44rem;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 1.5rem;
    margin-bottom: 17px;
  }
  h2 {
    font-size: 1.18rem;
  }
  .card, .feature-item {
    padding: 13px 8px;
    min-width: 120px;
    border-radius:14px;
  }
  .section {
    padding: 17px 6px;
    margin-bottom: 24px;
    border-radius:11px;
  }
}

/* == Hide scroll for body when mobile menu or modal active == */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}
