/* ------------------------------------------------------
   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,
main, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }

body, button, input, select, textarea {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Merriweather', 'Georgia', serif;
}
img { max-width: 100%; height: auto; display: block; }

:root {
  --color-primary: #134B69;
  --color-secondary: #FFC857;
  --color-accent: #F7FFF7;
  --color-dark: #222;
  --color-light: #FAFAF8;
  --color-muted: #F2F1EC;
  --color-border: #DDD8CF;
  --color-shadow: rgba(19, 75, 105, 0.07);
  --color-bg: #F7F6F3;
  --color-error: #C04444;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Merriweather', 'Georgia', serif;
  --font-sans: 'Montserrat', 'Open Sans', Arial, sans-serif;
}

/* ------------------------------------------------------
   TYPOGRAPHY - ELEGANT_CLASSIC
------------------------------------------------------ */
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

p {
  margin-bottom: 18px;
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.7;
}

strong { font-weight: 700; }
em, cite { font-style: italic; }
.text-section {
  margin-bottom: 24px;
}

/* ------------------------------------------------------
   BASIC STRUCTURE & SPACING
------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .section, section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------ */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 16px var(--color-shadow);
  border-bottom: 1px solid var(--color-border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
  position: relative;
}
header img {
  height: 48px;
  margin-right: 20px;
  margin-left: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-sans);
  color: var(--color-primary);
  font-size: 1.09rem;
  font-weight: 600;
  padding: 4px 0;
  position: relative;
  border-radius: 2px;
  transition: color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}
/* Hide mobile menu toggle by default on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 10px;
  transition: color .2s;
  z-index: 1202;
}
.main-nav, .cta-button {
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------
   CTA BUTTON
------------------------------------------------------ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 1.06rem;
  color: var(--color-primary);
  background: var(--color-secondary);
  border: none;
  border-radius: 24px;
  padding: 11px 36px;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-left: 26px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 2px 18px var(--color-shadow);
  outline: none;
}

@media (max-width: 1024px) {
  .main-nav a {
    font-size: 1rem;
    gap: 18px;
  }
  .cta-button { padding: 10px 25px; margin-left: 14px; font-size: 0.98rem; }
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    min-height: 58px;
    gap: 10px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 6px;
    padding: 9px 20px;
    font-size: 0.95rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ------------------------------------------------------
   MOBILE MENU / OVERLAY
------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19, 75, 105, 0.99);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.68,-0.6,.32,1.6);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 28px 20px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--color-secondary);
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.19s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 25px;
  padding-bottom: 30px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 2px;
  transition: color 0.17s, background 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  outline: none;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none!important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
}
@media (max-width: 768px) {
  .mobile-menu {
    display: flex;
  }
}

/* ------------------------------------------------------
   HERO SECTIONS
------------------------------------------------------ */
.hero {
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-muted) 100%);
  box-shadow: 0 2px 20px var(--color-shadow);
  border-radius: 0 0 26px 26px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.hero h1 {
  color: var(--color-primary);
  text-shadow: 0 1px 0 #fff, 0 3px 12px var(--color-shadow);
  margin-bottom: 12px;
}
.hero p {
  color: #234255;
  font-size: 1.18rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  .hero {
    border-radius: 0 0 20px 20px;
    padding: 18px 0;
  }
  .hero .content-wrapper {
    padding: 11px 0 8px 0;
  }
}

/* ------------------------------------------------------
   FEATURES, SERVICES, CARDS
------------------------------------------------------ */
.features {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.features .content-wrapper {
  gap: 24px;
}
.features h2 {
  color: var(--color-primary);
}
.features ul, .features ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}
.features ul li, .features ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-accent);
  border-left: 5px solid var(--color-primary);
  border-radius: 8px;
  padding: 15px 20px 13px 18px;
  color: var(--color-dark);
  min-width: 220px;
  min-height: 44px;
  margin-bottom: 0;
  box-shadow: 0 1px 7px var(--color-shadow);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-right: 0 !important;
}
.features ul li img {
  height: 32px;
  width: 32px;
  margin-right: 7px;
  margin-top: 2px;
}
@media (max-width: 750px) {
  .features ul, .features ol {
    flex-direction: column;
    gap: 16px;
  }
  .features ul li, .features ol li {
    width: 100%;
    min-width: unset;
    padding: 10px 13px;
  }
}
.services {
  background: var(--color-muted);
  border-radius: 16px;
  box-shadow: 0 1px 7px var(--color-shadow);
}
.services .content-wrapper {
  gap: 18px;
}
.services h2 {
  color: var(--color-primary); 
}
.services ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.services ul li {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 18px 22px 15px 22px;
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 5px solid var(--color-primary);
  margin-bottom: 0;
}
.services ul li strong { font-family: var(--font-display); color: var(--color-primary); }
.services ul li span { font-family: var(--font-body); color: var(--color-dark); }
.services ul li a { align-self: flex-end; margin-top: 7px; }

@media (max-width: 600px) {
  .services ul li {
    padding: 13px 10px 11px 13px;
    gap: 6px;
  }
}

/* ------------------------------------------------------
   TESTIMONIALS
------------------------------------------------------ */
.testimonials {
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 1px 8px var(--color-shadow);
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 18px 22px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border-left: 5px solid var(--color-primary);
  margin-bottom: 20px;
  max-width: 650px;
  font-size: 1.1rem;
}
.testimonial-card p {
  color: #1b313e;
  font-style: italic;
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-family: var(--font-display);
}
@media (max-width: 560px) {
  .testimonials .content-wrapper {
    gap: 16px;
  }
  .testimonial-card {
    padding: 13px 10px 12px 10px;
    max-width: 100%;
    font-size: 0.99rem;
    gap: 13px;
  }
}

/* ------------------------------------------------------
   CONTACT, ADDRESS, LEGAL, ETC
------------------------------------------------------ */
.contact, .legal, .confirmation {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  color: var(--color-dark);
}
.contact ul,
.contact address {
  margin-bottom: 24px;
}
.contact ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------ */
footer {
  background: var(--color-accent);
  border-top: 1.5px solid var(--color-border);
  padding: 38px 0 32px 0;
  box-shadow: 0 -2px 24px var(--color-shadow);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.footer-brand img {
  height: 52px;
}
.footer-brand div > span:first-child {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: bold;
}
.footer-brand div > span:last-child {
  color: #3E4753;
  font-size: 0.95rem;
  opacity: 0.86;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  opacity: 0.97;
  transition: color 0.16s, text-decoration 0.18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
  outline: none;
}
.footer-contact {
  font-size: 0.98rem;
  color: #33485e;
  font-family: var(--font-body);
  line-height: 1.5;
}
.footer-contact a {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
}
.footer-social a img {
  height: 32px;
  width: 32px;
  filter: grayscale(35%) contrast(1.2);
  transition: filter 0.17s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  filter: grayscale(0%) brightness(1.3);
}
@media (max-width: 910px) {
  footer .container {
    flex-direction: column;
    gap: 19px;
  }
  .footer-social, .footer-nav {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 8px;
  }
}
@media (max-width: 568px) {
  .footer-brand img { height: 36px; }
  .footer-brand div > span:first-child { font-size: 0.93rem; }
  footer { padding: 16px 0 16px 0; }
  .footer-contact { font-size: 0.9rem; }
  .footer-social a img { height: 22px; width: 22px; }
}

/* ------------------------------------------------------
   LAYOUT HELPERS
------------------------------------------------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 12px var(--color-shadow);
  padding: 25px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.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;
    gap: 18px;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ------------------------------------------------------
   FORMS & INPUTS
------------------------------------------------------ */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 9px 14px;
  border: 1.2px solid var(--color-border);
  border-radius: 6px;
  background: #FAFAF8;
  margin-bottom: 18px;
  transition: border-color 0.18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
button {
  font-family: var(--font-sans);
  padding: 9px 23px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

/* ------------------------------------------------------
   COOKIES BANNER & MODAL
------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--color-dark);
  box-shadow: 0 -2px 16px var(--color-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px 17px 32px;
  z-index: 1400;
  border-top: 2px solid var(--color-secondary);
  font-size: 1.05rem;
  width: 100%;
  transition: transform 0.3s cubic-bezier(.49,.26,.35,.99), opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events:none;
  transform: translateY(130%);
}
.cookie-banner-message {
  font-family: var(--font-body);
  color: var(--color-dark);
  flex: 1;
  font-size: 1.02rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  padding: 8px 23px;
  margin: 0;
  font-family: var(--font-sans);
  border-radius: 18px;
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #eee;
  color: var(--color-dark);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 1px 7px var(--color-shadow);
  opacity: 0.91;
  outline: none;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 11px 16px 11px;
    gap: 10px;
    font-size: 0.99rem;
  }
  .cookie-banner-actions { gap: 8px; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19, 75, 105, 0.74);
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px var(--color-shadow);
  max-width: 480px;
  width: 94%;
  padding: 34px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1451;
  font-family: var(--font-body);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-title {
  font-size: 1.19rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: bold;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 0 0 0 10px;
  line-height: 1;
}
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 1.04rem;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.03rem;
}
.cookie-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}
.cookie-category {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category.essential {
  color: #888;
  font-style: italic;
}
.cookie-modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 13px;
}
@media (max-width: 430px) {
  .cookie-modal { padding: 13px 7px 9px 13px; }
  .cookie-modal-header { flex-direction: column; gap: 5px; }
  .cookie-modal-title { font-size: 1.04rem; }
}

/* ------------------------------------------------------
   MICRO INTERACTIONS & TRANSITIONS
------------------------------------------------------ */
.card, .testimonial-card, .services ul li, .features ul li {
  transition: transform 0.17s, box-shadow 0.19s;
}
.card:hover, .testimonial-card:hover, .services ul li:hover, .features ul li:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 4px 22px var(--color-shadow);
}

/* ------------------------------------------------------
   MISCELLANEOUS
------------------------------------------------------ */
::-webkit-input-placeholder { color: #92999a; opacity: 1; }
::-moz-placeholder { color: #92999a; opacity: 1; }
:-ms-input-placeholder { color: #92999a; opacity: 1; }
::placeholder { color: #92999a; opacity: 1; }

/**** Utility classes ****/
.hide { display: none !important; }

/**** Responsive spacing between all content cards/sections ****/
section, .section, .card, .testimonial-card, .services ul li, .features ul li {
  margin-bottom: 20px;
}

/**** Remove unwanted spacing for last child ****/
section:last-child, .section:last-child {
  margin-bottom: 0;
}

/**** Visually hidden (for accessibility) ****/
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
