/* === 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;
  background: #F4F9FB;
  color: #273A45;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  margin: 0 0 1.5em 0;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
  list-style-position: inside;
}
a {
  color: #273A45;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus { outline: 2px dashed #E9C46A; }

/* === VARIABLES === */
:root {
  --primary: #273A45;
  --secondary: #E9C46A;
  --accent: #F4F9FB;
  --gradient-1: linear-gradient(90deg, #273A45 0%, #859398 100%);
  --gradient-2: linear-gradient(90deg, #E9C46A 30%, #F4F9FB 100%);
  --shadow: 0 2px 16px 0 rgba(39, 58, 69, 0.08), 0 1.5px 10px 0 rgba(39, 58, 69, 0.05);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --main-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --display-font: 'Playfair Display', serif;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--primary);
  font-weight: bold;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 1.2em;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 1em;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7em;
}
h4, h5, h6 {font-size: 1rem;}
p, ul, ol {
  font-size: 1rem;
  font-family: var(--main-font);
  color: var(--primary);
  margin-bottom: 1em;
}
blockquote {
  font-family: var(--display-font);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 0.6em;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
blockquote:before { content: open-quote; color: var(--secondary); font-size: 2em; vertical-align: -0.35em;}
blockquote:after { content: close-quote; color: var(--secondary); font-size: 2em; vertical-align: -0.35em;}
strong, b { font-weight: bold; }
em, i     { font-style: italic; }

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

/* === SECTIONS & LAYOUT === */
section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  box-shadow: var(--shadow);
  position: relative;
}
section:first-of-type {
  margin-top: 20px;
}
/* Gradient backgrounds for major/hero sections */
main > section:first-of-type {
  background: linear-gradient(120deg, #E9C46A 0%, #F4F9FB 100%);
  box-shadow: 0 8px 24px 0 rgba(39,58,69,0.07);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1em;
}

.features-grid, .features, .card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 28px 20px 20px 20px;
  box-shadow: var(--shadow);
  min-width: 220px;
  flex: 1 1 240px;
  max-width: 300px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 20px;
  gap: 15px;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 6px rgba(39,58,69,0.07));
}
.feature:hover,
.feature:focus {
  box-shadow: 0 4px 32px 0 rgba(39,58,69,0.18);
  transform: translateY(-5px) scale(1.02);
}

/* Testimonial Styles */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 24px 18px 24px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border-left: 7px solid var(--secondary);
  min-width: 260px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(39,58,69,0.16);
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.07em;
  margin-bottom: 0.5em;
  font-style: italic;
  line-height: 1.45;
  text-align: left;
}
.testimonial-card span {
  color: #555e63;
  font-size: 0.98em;
}

/* CTA BUTTONS */
.cta,
button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #E9C46A 0%, #F4F9FB 100%);
  color: #273A45;
  font-family: var(--display-font);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 13px 34px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(39,58,69,0.08);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
  text-shadow: 0 1px 2px rgba(244,249,251,0.15);
}
.cta:hover,
button.cta:hover,
.cta:focus {
  background: linear-gradient(90deg,#F4F9FB 5%,#E9C46A 100%);
  color: #273A45;
  box-shadow: 0 5px 20px 0 rgba(233,196,106,0.12), 0 1.5px 14px 0 rgba(39,58,69,0.07);
  transform: translateY(-2px) scale(1.025);
}
nav a.cta {
  margin-left: 18px;
}

/* CARDS & MODERN ELEMENTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover,
.card:focus {
  box-shadow: 0 7px 32px 0 rgba(39,58,69,0.14);
  transform: translateY(-4px) scale(1.01);
}

/* Utility Flex Patterns */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Header / Navigation */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(39,58,69,0.07);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
header > a > img {
  height: 44px;
  margin: 18px 0 12px 0;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
}
header nav a {
  font-family: var(--main-font);
  font-size: 1rem;
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 22px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover,
header nav a:focus {
  background: #E9C46A;
  color: #273A45;
}

/* Mobile Burger Button */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #273A45;
  font-size: 2rem;
  cursor: pointer;
  margin-left: auto;
  margin-right: 8px;
  padding: 8px 10px;
  display: none;
  z-index: 2100;
  border-radius: 10px;
  transition: background 0.20s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E9C46A44;
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 2025;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.46,.01,.32,1);
  box-shadow: 0 0 70px 0 rgba(39,58,69,0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #273A45;
  margin: 16px 22px 0 0;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.18s;
  padding: 20px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #E9C46A33;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 22px;
  padding: 38px 28px;
  margin-top: 30px;
}
.mobile-nav a {
  padding: 13px 9px;
  font-size: 1.15rem;
  color: #273A45;
  font-family: var(--main-font);
  font-weight: 600;
  border-radius: 9px;
  background: none;
  transition: background 0.22s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E9C46A;
  color: #273A45;
}

/* Only show mobile nav on small screens */
@media (max-width: 1020px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === Footer === */
footer {
  background: linear-gradient(90deg, #273A45 0%, #859398 100%);
  color: #fff;
  font-family: var(--main-font);
  padding: 32px 0 26px 0;
  margin-top: 32px;
}
footer .footer-brand {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
footer .footer-brand img {
  height: 48px;
  filter: drop-shadow(0 1px 3px rgba(244,249,251,0.11));
}
footer .footer-brand .text-section {
  font-size: 1rem;
  color: #fff;
  line-height: 1.77;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
}
footer nav a {
  color: #fff;
  opacity: 0.94;
  font-size: 1rem;
  font-family: var(--main-font);
  padding: 7px 14px;
  border-radius: 20px;
  transition: background 0.18s, color 0.12s;
}
footer nav a:hover,
footer nav a:focus {
  background: #E9C46A;
  color: #273A45;
}
.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.social-icons img {
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(233,196,106,0.09);
  padding: 6px;
}
.social-icons img:hover {
  background: #E9C46A;
  transition: background .2s;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #273A45;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 18px 22px 18px;
  box-shadow: 0 -2px 28px 0 rgba(39,58,69,0.12);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: slideInUp_banner 0.68s 0.2s cubic-bezier(.27,.55,.37,1.34) both;
  transition: transform .4s cubic-bezier(.46,.01,.32,1);
}
.cookie-banner p {
  color: white;
}
@keyframes slideInUp_banner {
  0% { transform: translateY(100%); opacity: 0; }
  87% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 11px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner button {
  font-family: var(--main-font);
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 22px;
  border: none;
  background: #E9C46A;
  color: #273A45;
  font-weight: 600;
  cursor: pointer;
  margin-right: 3px;
  transition: background .18s, color .14s, box-shadow .18s;
  box-shadow: 0 1.5px 8px 0 rgba(233,196,106,0.08);
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  background: #fff;
  color: #273A45;
}
.cookie-banner .cookie-settings {
  background: none;
  color: #E9C46A;
  border: 2px solid #E9C46A;
  padding: 7px 18px;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #E9C46A;
  color: #273A45;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 199999;
  background: #fff;
  color: #273A45;
  border-radius: 18px;
  box-shadow: 0 5px 60px 0 rgba(39,58,69,0.22);
  min-width: 288px;
  max-width: 98vw;
  width: 420px;
  padding: 30px 24px 24px 24px;
  transform: translate(-50%, 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .45s cubic-bezier(.46,.01,.32,1);
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  animation: fadeInBox_modal .44s cubic-bezier(.31,.33,.56,1.06);
}
@keyframes fadeInBox_modal {
  0% { transform: translate(-50%,100%) scale(0.9); opacity: 0; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--display-font);
  margin-bottom: 13px;
  font-size: 1.23em;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-cat label {
  font-size: 1em;
  color: #273A45;
  flex: 1;
  cursor: pointer;
}
.cookie-modal .cookie-cat input[type="checkbox"] {
  accent-color: #E9C46A;
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-cat input[type="checkbox"][disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: var(--main-font);
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 22px;
  border: none;
  background: #E9C46A;
  color: #273A45;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, color .12s;
}
.cookie-modal button:focus,
.cookie-modal button:hover {
  background: #fff;
  color: #273A45;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 1.53em;
  background: none;
  border: none;
  cursor: pointer;
  color: #273A45;
  border-radius: 50%;
  transition: background 0.15s;
}
.cookie-modal .modal-close:hover {
  background: #e9c46a33;
}

/* RESPONSIVE & MOBILE STYLES */
@media (max-width: 991px) {
  .container {
    max-width: 92vw;
    padding-left: 11px;
    padding-right: 11px;
  }
  .features-grid, .features, .card-container, .card-grid {
    gap: 16px;
  }
  .feature {
    min-width: 100px;
    max-width: none;
    flex: 1 1 160px;
  }
}
@media (max-width: 768px) {
  section {
    margin-bottom: 44px;
    padding: 28px 7px 28px 7px;
  }
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.14rem; }
  .features-grid, .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .feature {
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
  }
  .testimonial-card {
    padding: 16px 13px 13px 13px;
  }
  .content-wrapper { gap: 14px; }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
    align-items: stretch;
  }
  .footer-brand {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
  .cookie-modal {
    width: 95vw; min-width: unset; padding: 16px 8px 14px 8px;
  }
  .mobile-menu {
    padding-top: 9px;
  }
}
@media (max-width: 460px) {
  .container { padding-left: 2vw; padding-right: 2vw; }
  footer { padding: 22px 0; }
  section { border-radius: 9px; }
  .card, .feature, .testimonial-card, .content-wrapper, .text-section {
    border-radius: 9px;
    font-size: 0.94em;
  }
}
  
/* === FORM & INTERACTIVE ELEMENTS === */
input, textarea, select {
  font-family: var(--main-font);
  font-size: 1em;
  color: #273A45;
  background: #fff;
  padding: 8px 12px;
  border: 1px solid #D9D9D9;
  border-radius: 7px;
  margin-bottom: 15px;
  outline: none;
  box-shadow: 0 1.5px 5px 0 rgba(39,58,69,0.03);
  transition: border 0.15s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #E9C46A;
  box-shadow: 0 2.5px 11px 0 rgba(233,196,106,0.06);
}
button, input[type="submit"] {
  font-family: var(--main-font);
  cursor: pointer;
  border-radius: 28px;
  border: none;
  background: #E9C46A;
  color: #273A45;
  padding: 11px 26px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1px 8px 0 rgba(233,196,106,0.09);
  transition: background 0.19s;
  box-shadow: 0.2s, color 0.14s;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #fff;
  color: #273A45;
  box-shadow: 0 5px 20px 0 rgba(233,196,106,0.22);
}

/* === Miscellaneous Enhancements === */
::-webkit-scrollbar { width: 9px; background: #f4f9fb; }
::-webkit-scrollbar-thumb { background: #e9c46a; border-radius: 4.5px; }
::-webkit-scrollbar-thumb:hover { background: #c9ab52; }

hr {
  border: 0;
  height: 1px;
  background: #E9C46A;
  margin: 32px 0;
  border-radius: 2px;
}
.text-section img, .text-section svg {
  width: 22px;
  vertical-align: middle;
  margin-right: 7px;
  display: inline;
}

/* === Hide outline on mouse, show on keyboard navigation === */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #E9C46A;
  outline-offset: 1px;
}

/* -------------------------------------
   Accessibility: Color Contrast Utility
   -------------------------------------*/
.testimonial-card, .testimonial-card blockquote, .testimonial-card span, .card, .feature {
  color: #273A45;
  background: #fff;
}

/* === Thank-you / Success page improvement === */
main a {
  color: #E9C46A;
  font-weight: bold;
  transition: color .17s, text-decoration .14s;
  text-decoration: underline dashed transparent;
}
main a:hover {
  color: #273A45;
  text-decoration: underline dashed #E9C46A;
}

/* ========== END OF STYLE.CSS ========== */
