/* --- CSS RESET & NORMALIZE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --color-primary: #1D3557;
  --color-secondary: #F7B32B;
  --color-accent: #F5F5F5;
  --color-dark: #151e2f;
  --color-light: #fff;
  --color-grey: #e3e7ef;
  --color-grey-dark: #3c475a;
  --color-text: #222;
  --color-text-invert: #fff;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius-card: 16px;
  --radius-btn: 10px;
  --shadow: 0 3px 18px rgba(29,53,87,0.07);
  --shadow-card: 0 2.5px 16px rgba(29,53,87,0.13);
  --transition: 0.26s cubic-bezier(.5,.16,.18,1.01);
  --spacing-section: 60px;
  --spacing-content: 40px;
}
html {
  font-size: 16px;
  background: var(--color-accent);
}
body {
  min-height: 100vh;
  color: var(--color-text);
  font-family: var(--font-body);
  background: var(--color-accent);
  font-size: 1rem;
  line-height: 1.6;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-secondary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: 0.5px;
  margin-bottom: 0.6em;
  font-weight: 700;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.13;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.21;
}
p {
  margin-bottom: 1.1em;
  font-size: 1rem;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.1em;
}
ul li, ol li {
  margin-bottom: 0.3em;
}
blockquote {
  border-left: 6px solid var(--color-secondary);
  background: #fff7e3;
  padding: 18px 24px; 
  border-radius: 0 12px 12px 0;
  margin: 0 0 12px 0;
  font-style: italic;
  color: var(--color-dark);
}
blockquote footer {
  font-size: 0.93em;
  font-family: var(--font-body);
  margin-top: 8px;
  color: var(--color-primary);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- GEOMETRIC STRUCTURED HEADER & NAV --- */
header {
  background: var(--color-light);
  box-shadow: 0 1.5px 10px rgba(20,30,42,0.06);
  border-bottom: 4px solid var(--color-primary);
  position: sticky;
  top: 0; z-index: 120;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.logo img {
  height: 40px;
  width: auto;
  margin-right: 34px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
  border-radius: 0;
}
.main-nav a:hover, .main-nav a.active {
  border-bottom: 2.5px solid var(--color-secondary);
  color: var(--color-secondary);
}
.main-nav .btn-primary {
  margin-left: 14px;
}

/* --- BUTTONS --- */
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.09rem;
  letter-spacing: 0.08em;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 30px 11px 30px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-block;
  margin-top: 6px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.03) skew(-1.5deg,0);
  box-shadow: 0 8px 32px rgba(29,53,87,0.18);
}
.button-row {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* --- MOBILE NAV MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  border: none;
  color: var(--color-light);
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: var(--shadow);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-text-invert);
  z-index: 900;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.67,-0.11,.68,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.4rem;
  padding: 20px 25px 14px 0;
  align-self: flex-end;
  cursor: pointer;
  margin-top: 9px;
  margin-right: 18px;
  transition: color var(--transition);
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #ffe171;
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-left: 36px;
  margin-right: 36px;
  margin-top: 24px;
}
.mobile-menu .mobile-nav a {
  color: var(--color-light);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.34rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 11px 0 7px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.mobile-menu .mobile-nav a:hover, .mobile-menu .mobile-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO --- */
.hero {
  background: linear-gradient(130deg, var(--color-accent) 60%, #e3e7ef 100%);
  display: flex;
  align-items: center;
  min-height: 240px;
  margin-bottom: 48px;
  padding: 60px 0 36px 0;
  border-bottom: 4px solid var(--color-secondary);
  position: relative;
}
.hero .container {
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 0;
}
.hero .content-wrapper {
  gap: 14px;
}
.hero h1 {
  font-size: 2.6rem;
  font-family: var(--font-display);
  margin-bottom: 14px;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}
.hero p {
  font-size: 1.22rem;
  max-width: 650px;
  color: var(--color-grey-dark);
  margin-bottom: 18px;
}

/* --- FEATURES/FUNCTIONAL GRIDS --- */
.features, .services {
  background: none;
}
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 23px;
  margin-bottom: 12px;
}
.feature-list {
  flex-direction: column;
  gap: 26px;
}
.feature-item {
  background: var(--color-light);
  border-radius: var(--radius-card);
  min-width: 220px;
  flex: 1 1 250px;
  max-width: 330px;
  box-shadow: var(--shadow-card);
  padding: 26px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px; /* MANDATORY */
  border: 2px solid #e7eaf1;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-item img {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: var(--color-accent);
  box-shadow: 0 2px 10px 0 #e3e7ef;
}
.feature-item h3 {
  margin: 0;
  font-size: 1.14rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.feature-item p {
  font-size: 0.98rem;
  margin-bottom: 4px;
  color: var(--color-grey-dark);
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 9px 32px 3px rgba(29,53,87,0.18);
  border-color: var(--color-secondary);
  transform: translateY(-2.5px) scale(1.03) skew(-2deg,0);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 16px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.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;
  margin-bottom: 32px;
}

/* --- TEXT & ABOUT/CONTACT SECTIONS --- */
.text-section, .about .text-section {
  background: var(--color-light);
  border-radius: 12px;
  box-shadow: 0 2px 12px #e3e7ef;
  padding: 26px 22px 22px 22px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.text-section ul, .text-section ol {
  margin-bottom: 1.1em;
}
.text-section li {
  margin-bottom: 0.5em;
  padding-left: 6px;
}
.text-section strong {
  color: var(--color-secondary);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.02em;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
  font-size: 1.06rem;
  color: var(--color-primary);
}
.contact-list img {
  width: 22px;
  opacity: 0.83;
}

/* --- TESTIMONIALS --- */
.testimonials .content-wrapper {
  gap: 20px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9fafc;
  border-radius: var(--radius-card);
  box-shadow: 0 1.5px 9px rgba(29,53,87,0.11);
  margin-bottom: 20px;
  border: 2px solid var(--color-secondary);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  color: var(--color-text);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 9px 32px 2px rgba(29,53,87,0.19);
  border-color: var(--color-primary);
  transform: scale(1.027) skew(-1.5deg,0);
}
.testimonial-card blockquote p {
  color: var(--color-dark);
  font-size: 1.07rem;
}
.testimonial-card blockquote footer {
  color: var(--color-primary);
  font-size: 0.99rem;
  background: transparent;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.faq-item {
  background: var(--color-light);
  border-radius: 11px;
  box-shadow: 0 2px 8px #e3e7ef;
  padding: 19px 18px 11px 20px;
  font-size: 1rem;
  border-left: 5px solid var(--color-secondary);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.42em;
  font-size: 1.13rem;
}
.faq-item p {
  color: var(--color-grey-dark);
  margin-bottom: 0.4em;
}
.faq-item:hover, .faq-item:focus-within {
  box-shadow: 0 10px 32px rgba(248,184,43,0.12);
  border-color: var(--color-primary);
}

/* --- HELP & LINKS --- */
.help-links p {
  font-size: 1.04rem;
  background: #f6f9fc;
  padding: 13px 18px;
  border-radius: 7px;
  box-shadow: 0 1px 4px #e3e7ef;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: var(--color-text-invert);
  padding: 0;
  border-top: 4px solid var(--color-secondary);
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 15px 16px 15px;
}
footer a, .footer-nav a {
  color: var(--color-secondary) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: 0.04em;
  margin-right: 14px;
  text-decoration: none;
  transition: text-decoration var(--transition), color var(--transition);
}
footer a:last-child {
  margin-right: 0;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 19px;
  flex-wrap: wrap;
}
.footer-contact {
  font-size: 1.02rem;
  color: #f7f7f7;
  margin-top: 14px;
}
footer .copyright {
  width: 100%;
  text-align: left;
  font-size: 0.93rem;
  margin-top: 22px;
  color: #e5e7eb;
  letter-spacing: 0.04em;
}
footer img {
  height: 35px;
  margin-bottom: 14px;
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1033;
  background: var(--color-dark);
  color: var(--color-light);
  padding: 22px 16px 18px 16px;
  box-shadow: 0 0 24px 2px rgba(20,30,42,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.01rem;
  animation: cookie-in 0.5s cubic-bezier(.52,.08,.22,.81);
}
@keyframes cookie-in {
  from {transform: translateY(100px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  margin: 0; color: #fff; max-width: 600px;
}
.cookie-banner .cookie-buttons {
  display: flex; gap: 14px;
}
.cookie-btn {
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 7px;
  padding: 8px 19px;
  background: var(--color-secondary);
  color: var(--color-dark);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: 0 2px 7px #3332;
}
.cookie-btn.accept {
  background: var(--color-secondary);
}
.cookie-btn.reject {
  background: #e94242;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-light);
  color: var(--color-primary);
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%; transform: translate(-50%,-50%) scale(1);
  min-width: 330px; max-width: 98vw;
  background: var(--color-accent);
  color: var(--color-primary);
  z-index: 2222;
  box-shadow: 0 10px 64px rgba(29,53,87,0.23);
  border-radius: 18px;
  padding: 34px 26px 22px 26px;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: cookie-modal-in 0.4s cubic-bezier(.38,.81,.22,.99);
}
@keyframes cookie-modal-in {
  from {opacity: 0; transform: translate(-50%,-30%) scale(0.95);}
  to {opacity: 1; transform: translate(-50%,-50%) scale(1);}
}
.cookie-modal h3 {font-family: var(--font-display); color: var(--color-primary); font-size: 1.36rem;}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 2px 8px #e3e7ef;
  border-radius: 9px;
  padding: 13px 17px;
}
.cookie-category .label {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1.05em;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 21px;
  height: 21px;
  border-radius: 5px;
  margin-right: 10px;
}
.cookie-modal .button-row {
  margin-top: 0;
}
.cookie-modal-close {
  position: absolute;
  right: 19px;
  top: 21px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover {
  color: var(--color-secondary);
}


/* --- UTILITIES, SPACING & GEOMETRIC DETAILS --- */
.hide-desktop {display: none;}
.hide-mobile {display: block;}
.gap-12 {gap: 12px;}
.gap-24 {gap: 24px;}
.gap-32 {gap: 32px;}
.mt-32 {margin-top: 32px;}
.mb-32 {margin-bottom: 32px;}
.mt-16 {margin-top: 16px;}

/* --- GEOMETRIC SHAPES: cards, angles, bold borders --- */
.card, .feature-item, .testimonial-card, .faq-item, .cookie-modal, .text-section {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: none;
}
/* add secondary color accents (geometric highlight) as left border for major cards */
.card, .feature-item {
  border-left: 5px solid var(--color-secondary);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
  .container { max-width: 990px; }
  .footer-nav { flex-wrap: wrap; justify-content: flex-start;}
}
@media (max-width: 991px) {
  .container { max-width: 98vw; }
  header .container {padding: 0 8px;}
  .content-wrapper { padding: 0;}
  .footer-nav { gap: 10px; font-size: 1rem;}
  .footer-contact { font-size: 0.99rem;}
  .hero { padding: 38px 0 32px 0; }
}
@media (max-width: 768px) {
  .container {padding: 0 8px;}
  /* Layout stacking */
  .feature-grid, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .testimonials .content-wrapper, .main-nav, .footer-nav {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 22px !important;
  }
  .mobile-menu, .cookie-banner { font-size: 0.98rem; }
  .cookie-modal { padding: 19px 8px 18px 8px; min-width: 0;}
  .footer-contact { margin-top: 0;}
  footer .container { flex-direction: column; align-items: flex-start; gap: 14px;}
}

@media (max-width: 501px) {
  html { font-size: 15px;}
  .footer-contact, .footer-nav { font-size: 0.93rem;}
  .hero h1 { font-size: 1.52rem;}
  h2 { font-size: 1.10rem;}
}

/* --- ANIMATIONS & FX --- */
.feature-item, .testimonial-card, .faq-item, .card {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary, .cookie-btn {
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* --- FOCUS STATE --- */
a:focus, .btn-primary:focus, .cookie-btn:focus, .feature-item:focus-within, .testimonial-card:focus-within {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Z-INDEX LAYERING FOR OVERLAYS --- */
.mobile-menu { z-index: 900; }
.cookie-banner {z-index: 1400;}
.cookie-modal {z-index: 2222;}

/* --- GEOMETRIC HORIZONTAL RULE AND BORDERS --- */
hr {
  border: none;
  border-bottom: 2.5px solid var(--color-secondary);
  margin: 35px 0;
}

/* --- CUSTOM CHECKBOX & TOGGLES FOR COOKIES --- */
input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--color-primary);
  border-radius: 5px;
  background: #fff;
  position: relative;
  cursor: pointer;
  margin-right: 7px;
  transition: border-color var(--transition), background var(--transition);
}
input[type="checkbox"]:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
input[type="checkbox"]:checked:after {
  content: "";
  display: block;
  position: absolute;
  left: 6px; top: 2.5px;
  width: 6px; height: 11px;
  border: solid var(--color-primary);
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}

/* --- GEOMETRIC STRUCTURED CARD EFFECTS & SHAPES --- */
.feature-item, .testimonial-card, .card {
  /* hard shadow edge at bottom for geometry */
  box-shadow: 0 4px 0 0 var(--color-secondary), 0 2.5px 32px rgba(29,53,87,0.08);
}

/* ---- END ---- */
