/* ========== 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, font, 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.5;
  background: #FFF9F4;
  min-height: 100vh;
  color: #1a2230;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}
a {
  color: #224C65;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #DF4B2A;
  outline: none;
}
strong, b {
  font-weight: bold;
}

/* ========== BASE TYPOGRAPHY & COLORS ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #224C65;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
@media (min-width: 600px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}
p {
  margin-bottom: 16px;
}

/* ========== GLOBAL CONTAINERS ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px 0 rgba(34, 76, 101, 0.06);
}
@media (max-width:768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* ========== HEADER / NAV ========== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #F0ECE5;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #224C65;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #F8E9A1;
  color: #DF4B2A;
}
header a.button {
  margin-left: 8px;
}
header img {
  max-height: 40px;
}

/* ========== BUTTONS ========== */
.button {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 28px;
  border: none;
  outline: none;
  background: #DF4B2A;
  color: #fff;
  box-shadow: 0 2px 8px rgba(223,75,42,0.14);
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.21s, transform 0.16s;
}
.button.primary {
  background: #224C65;
  color: #fff;
}
.button:hover, .button:focus {
  background: #B33217;
  box-shadow: 0 4px 18px rgba(223,75,42,0.14);
  transform: translateY(-2px) scale(1.04);
}
.button.primary:hover, .button.primary:focus {
  background: #DF4B2A;
  color: #fff;
}
@media (max-width:768px) {
  .button, .button.primary {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }
}

/* ========== MOBILE NAV BURGER & OVERLAY ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #DF4B2A;
  cursor: pointer;
  margin-left: 16px;
}
@media (max-width:1024px) {
  header nav,
  header a.button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    z-index: 1001;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,1.6,.52,.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  box-shadow: 0 6px 24px rgba(34,76,101,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 30px 0px 8px 20px;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #DF4B2A;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #224C65;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #224C65;
  padding: 18px 0;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8E9A1;
  color: #DF4B2A;
}
@media (min-width:1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== HERO SECTION ========== */
main > section:first-child {
  background: #F8E9A1;
  border-radius: 0 0 32px 32px;
  padding-top: 32px;
  box-shadow: 0 8px 32px rgba(34,76,101,0.04);
  margin-bottom: 60px;
}
main > section:first-child h1 {
  color: #224C65;
}
main > section:first-child .button.primary {
  margin-top: 20px;
}
@media (max-width:768px){
  main > section:first-child {
    border-radius: 0 0 18px 18px;
    padding-top: 18px;
    margin-bottom: 36px;
  }
}

/* ========== FEATURE LIST / ICONS ========== */
.content-wrapper ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.06rem;
  background: #FFF9F4;
  border-radius: 12px;
  padding: 8px 14px;
}
.content-wrapper ul li img {
  width: 30px;
  height: 30px;
  background: #F8E9A1;
  border-radius: 50%;
  padding: 5px;
  margin-right: 2px;
  box-shadow: 0 2px 6px rgba(34, 76, 101, 0.08);
}

/* ========== SERVICES / CARDS FLEX ========== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 12px;
}
.service-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(34, 76, 101, 0.09);
  flex: 1 1 225px;
  max-width: 320px;
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.service-card h3 {
  margin-bottom: 14px;
  color: #DF4B2A;
}
.service-card .button {
  align-self: flex-start;
  margin-top: 4px;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 10px 34px 0 rgba(223,75,42,0.18);
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 900px) {
  .services-list {
    flex-direction: column;
    gap: 16px;
  }
  .service-card {
    max-width: 100%;
    min-width: 0;
  }
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #FFF9F4;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(34, 76, 101, 0.07);
  margin-bottom: 20px;
  max-width: 640px;
  color: #224C65;
  font-size: 1rem;
  transition: box-shadow 0.17s;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #DF4B2A;
  font-weight: 700;
  font-size: 0.97em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(34,76,101,0.14);
}
@media (min-width: 700px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: 250px;
    margin-bottom: 0;
  }
}

/* ========== TEXT SECTION ========== */
.text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
}
.text-section ul {
  margin-top: 0;
  margin-bottom: 0;
}

/* ========== NEWSLETTER INFO ========== */
.text-section a {
  color: #DF4B2A;
  font-weight: bold;
}
.text-section a:hover, .text-section a:focus {
  color: #B33217;
  text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
  background: #224C65;
  color: #fff;
  padding: 32px 0 0 0;
  border-radius: 32px 32px 0 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links nav a {
  color: #F8E9A1;
  font-size: 1rem;
  border-radius: 8px;
  padding: 3.5px 0 3.5px 0;
  transition: background 0.18s, color 0.18s;
}
.footer-links nav a:hover, .footer-links nav a:focus {
  background: #DF4B2A;
  color: #fff;
}
.mini-contact {
  font-size: 0.99rem;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: #fffbee;
}
.mini-contact img {
  width: 20px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline;
}
.social {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.social a img {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(248, 233, 161, 0.09);
  transition: background 0.24s, box-shadow 0.18s;
}
.social a:hover img, .social a:focus img {
  background: #F8E9A1;
  box-shadow: 0 4px 14px rgba(223,75,42,0.14);
}
.footer-copy {
  font-size: 0.95rem;
  color: #F8E9A1;
  text-align: left;
  margin: 18px 0 0 0;
  letter-spacing: 0.2px;
}
@media (max-width:700px) {
  .footer-links {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  footer .container {
    gap: 12px;
  }
}

/* ========== CARD CONTAINERS AS PER GUIDELINES ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(34,76,101,0.08);
}
.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, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

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

/* ========== UTILITY ========== */
@media (max-width:640px){
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
::-webkit-input-placeholder { color: #babfc7; }
:-ms-input-placeholder { color: #babfc7; }
::placeholder { color: #babfc7; }

/* ========== COOKIE CONSENT BANNER + MODAL ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fffbe3;
  color: #26333c;
  box-shadow: 0 -4px 24px rgba(223,75,42,0.10);
  border-radius: 18px 18px 0 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: slideup 0.5s;
}
@keyframes slideup {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner .button {
  min-width: 110px;
  padding: 10px 0;
  font-size: 0.98rem;
}
.cookie-banner .button:last-child {
  background: #F8E9A1;
  color: #224C65;
}
.cookie-banner .button:last-child:hover, .cookie-banner .button:last-child:focus {
  background: #DF4B2A;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 3200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,76,101,0.25);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadein .23s;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #224C65;
  border-radius: 26px;
  max-width: 385px;
  box-shadow: 0 6px 36px rgba(34,76,101,0.23);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: popscale .28s;
}
@keyframes popscale {
  from { opacity: 0; transform: scale(.90); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  color: #DF4B2A;
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8E9A1;
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-weight: 600;
}
.cookie-modal-category input[type="checkbox"]:disabled {
  accent-color: #babfc7;
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #B33217;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #224C65;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 22px 10px 20px 10px;
    max-width: 98vw;
  }
}

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
.button, .mobile-menu, .service-card, .testimonial-card, .social a img, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.2s, transform 0.16s, color 0.18s, background 0.18s;
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px dashed #DF4B2A !important;
  outline-offset: 2px;
}

/* ========== RESPONSIVE LAYOUT TWEAKS ========== */
@media (max-width:640px) {
  h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.11rem;
  }
  .services-list {
    gap: 10px;
  }
}
