/* 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; background: #F9F6F2; color: #262626; }

:root {
  --color-primary: #17416C;
  --color-secondary: #F9F6F2;
  --color-accent: #C56F29;
  --color-accent2: #A05000;
  --color-white: #FFFFFF;
  --color-dark: #191919;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Noto Sans', Arial, sans-serif;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--color-secondary);
  color: var(--color-dark);
  min-height: 100vh;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--color-accent2); text-decoration: underline; }

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER */
header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0;
  position: relative;
  box-shadow: 0 2px 16px 0 rgba(23,65,108,0.06);
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 18px 20px 18px 20px;
}
header img {
  max-height: 44px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .05em;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  background: rgba(255,255,255,0.10);
}

.cta-btn {
  font-family: var(--font-display);
  background: var(--color-accent);
  color: var(--color-white)!important;
  font-size: 1rem;
  font-weight: bold;
  border: 0;
  border-radius: 24px;
  padding: 11px 28px;
  box-shadow: 0 3px 16px 0 rgba(197,111,41,0.12);
  text-align: center;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s, box-shadow 0.2s, transform 0.17s;
  outline: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent2);
  color: var(--color-white);
  box-shadow: 0 6px 24px 0 rgba(197,111,41,0.14);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 18px;
  z-index: 51;
  transition: background 0.2s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent2);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: 0;
  background: rgba(23,65,108,0.98);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.59,0.14,0.27,0.91);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 50px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  font-weight: 700;
  position: absolute;
  right: 16px;
  top: 12px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 999;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 64px 32px 0 32px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.20rem;
  font-weight: bold;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.17s;
  display: block;
  min-width: 175px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent2);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  header .container { flex-direction: row; gap: 14px; }
  .main-nav { gap: 7px; }
  .cta-btn { padding: 10px 18px; font-size: 1rem; }
}
@media (max-width: 850px) {
  header .container {
    padding: 12px 14px;
    gap: 7px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 8px 10px 8px;
  }
  .main-nav { display: none !important; }
  .cta-btn { display: none !important; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* HERO SECTIONS & HEADINGS */
.hero-section {
  background: linear-gradient(100deg, #F9F6F2 70%, #fae8d2 100%);
  padding: 0;
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 42px;
  position: relative;
  overflow: visible;
}
.hero-section .container {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 48px 20px;
}
.hero-section h1 {
  font-size: 2.4rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 18px;
  text-shadow: 1px 2px 10px #e2eaf2;
}
.hero-section p {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 22px;
  font-family: var(--font-body);
}
.hero-section .cta-btn {
  margin-top: 10px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
}
h1 { font-size: 2.1rem; letter-spacing: -1px; margin-bottom: 13px; }
h2 {
  font-size: 1.52rem;
  margin-bottom: 10px;
  background: var(--color-accent);
  color: var(--color-white);
  display: inline-block;
  border-radius: 12px 38px 12px 14px/24px 18px 14px 18px;
  padding: 8px 28px 8px 18px;
  box-shadow: 0 4px 14px 0 rgba(197,111,41,0.11);
}
h3 { font-size: 1.18rem; margin-bottom: 7px; color: var(--color-accent2); letter-spacing: .03em; margin-top: 10px; }

@media (max-width: 600px) {
  .hero-section h1 { font-size: 1.4rem; }
  h1 { font-size: 1.24rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1rem; }
}

/* SPACING & FLEXBOX LAYOUTS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  background: var(--color-white);
  box-shadow: 0 4px 24px 0 rgba(23,65,108,0.038);
  border-radius: 14px;
  padding: 28px 20px 21px 18px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  border-left: 6px solid var(--color-accent);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, border-color 0.18s, transform 0.18s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 40px 0 rgba(197,111,41,0.19);
  border-color: var(--color-accent2);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  width: 42px; height: 42px; margin-bottom: 5px;
}

/* UL lists with icon */
ul { list-style: none; margin-bottom: 16px; }
ul li {
  padding-left: 0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.03rem;
}
ul li img {
  width: 24px;
  height: 24px;
}

.text-section {
  font-size: 1rem;
  color: #262626;
  display: flex;
  flex-direction: column;
  gap: 15px;
  line-height: 1.65;
  background: var(--color-white);
  border-radius: 11px;
  padding: 22px 19px;
}
.text-section a { color: var(--color-accent); font-weight: bold; }
.text-section img { width: 22px; height: 22px; vertical-align: middle; margin-right: 2px; }

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(23,65,108,0.08);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-primary);
  font-family: var(--font-body);
  color: #1A2532;
  font-size: 1.06rem;
  min-width: 220px;
  max-width: 540px;
  transition: box-shadow 0.18s, transform 0.16s, border-color 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 64px 0 rgba(23,65,108,0.20);
  border-color: var(--color-accent2);
  transform: translateY(-2px) scale(1.011);
}
.testimonial-card p {
  margin-bottom: 2px;
  color: #1A2532;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
  font-family: var(--font-display);
}
.testimonial-card span {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

/* CARDS, FLEX CONTAINERS & GRIDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 4px 20px 0 rgba(197,111,41,0.12);
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-left: 4px solid var(--color-accent);
  transition: box-shadow 0.22s, border-color 0.17s, transform 0.18s;
}
.card:hover, .card:focus-within {
  border-color: var(--color-accent2);
  box-shadow: 0 8px 38px 0 rgba(197,111,41,0.19);
  transform: translateY(-3px) scale(1.012);
}

.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) {
  .container { padding-left: 9px; padding-right: 9px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 19px;
  }
  .text-image-section { flex-direction: column; gap: 22px; }
}

/* Footer */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0 22px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 21px;
  flex-wrap: wrap;
}
footer a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: bold;
  margin-right: 16px;
  text-decoration: none;
  transition: color 0.18s;
  font-size: 1rem;
}
footer a:hover, footer a:focus {
  color: var(--color-white);
  text-decoration: underline;
}
footer .cta-btn { margin: 0 0 10px 0; box-shadow: 0 2px 8px 0 rgba(197,111,41,0.1); }
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
footer img {
  max-height: 26px;
  margin-right: 18px;
}
footer p {
  font-size: 0.96rem;
  color: #f9eddcda;
  padding-top: 12px;
  flex-basis: 100%;
}

@media (max-width: 768px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px 7px 19px 8px; }
  footer nav { gap: 7px; }
  footer img { margin: 0 0 14px 0; }
}

/* Buttons & Inputs */
button, .cta-btn {
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--color-accent2);
  outline-offset: 2px;
}
input, textarea, select {
  font-family: var(--font-body);
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent2);
  outline: none;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 11001;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 24px 8% 24px 8%;
  box-shadow: 0 -7px 24px 0 rgba(23,65,108,0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
  animation: slideUp 0.5s cubic-bezier(.36,1.63,.6,.58) 1;
}
@keyframes slideUp {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-text {
  max-width: 520px;
  font-size: 1.04rem;
  color: #F9F6F2;
}
.cookie-consent-buttons {
  display: flex;
  gap: 17px;
}
.cookie-btn {
  font-family: var(--font-display);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 22px;
  padding: 10px 26px;
  font-size: 1rem;
  border: none;
  margin: 0 4px;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(197,111,41,0.13);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.13s;
}
.cookie-btn:hover {
  background: var(--color-accent2);
  color: #FFF;
  transform: translateY(-1px) scale(1.02);
}
.cookie-btn.secondary {
  background: var(--color-primary);
  color: #fbcb9e;
  border: 2px solid var(--color-accent);
  box-shadow: none;
}
.cookie-btn.secondary:hover {
  background: var(--color-accent2);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 16px 12px;
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cookie Preference Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 11010;
  background: rgba(23,65,108,0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.3s;
  animation: fadeIn 0.21s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px 0 rgba(23,65,108,0.21);
  padding: 38px 24px 32px 24px;
  min-width: 320px;
  max-width: 96vw;
  font-size: 1.04rem;
  color: var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal-content h3 {
  font-size: 1.18rem;
  margin-bottom: 7px;
  color: var(--color-accent);
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category-row label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-switch {
  width: 36px;
  height: 22px;
  background: #ddd;
  border-radius: 11px;
  position: relative;
  margin-left: 10px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
  transition: background 0.18s;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.21s, background 0.18s;
}
.cookie-switch input:checked + .slider {
  transform: translateX(14px);
  background: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-accent2);
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: var(--color-primary);
}

@media (max-width: 550px) {
  .cookie-modal-content {
    min-width: 96vw;
    padding: 20px 8px 22px 8px;
  }
}

/* Artistic/Creative extras */
body {
  /* painted subtle background using SVG data-uri as artistic flair */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="320" height="320" viewBox="0 0 320 320"><ellipse cx="120" cy="70" rx="105" ry="48" fill="%23fae8d2" opacity="0.18"/><ellipse cx="220" cy="250" rx="90" ry="42" fill="%23C56F29" opacity="0.10"/><ellipse cx="180" cy="100" rx="130" ry="46" fill="%2317416C" opacity="0.07"/></svg>');
  background-size: 800px 800px;
  background-repeat: no-repeat;
  background-position: right top;
}

h1, h2, h3 {
  text-shadow: 1px 2px 12px #e2eaf286;
}
h2 {
  border-bottom: 2.5px dotted var(--color-accent);
  box-shadow: 0 3px 28px 0 rgba(197,111,41,0.06);
  margin-bottom: 23px;
}

/* MICRO-INTERACTIONS */
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.12s, border-color 0.16s;
  cursor: pointer;
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.98);
}

.cta-btn:active, .cookie-btn:active {
  transform: translateY(2px) scale(0.98);
}

/* TYPOGRAPHY SCALE */
body { font-size: 1rem; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.52rem; }
h3 { font-size: 1.18rem; }
p, li, .content-section, .text-section { font-size: 1.04rem; }

@media (max-width:600px) {
  h1 { font-size: 1.24rem; }
  h2 { font-size: 1.08rem; }
  h3 { font-size: 1.02rem; }
  .cta-btn, .cookie-btn { font-size: 0.98rem; }
}

/* UTILITY CLASSES */
.centered { text-align: center; }
.mt-3 { margin-top: 24px!important; }
.mb-3 { margin-bottom: 24px!important; }
.mb-4 { margin-bottom: 40px!important; }
.rounded { border-radius: 18px; }
.bg-accent { background: var(--color-accent); color: #fff; }

/* SCROLLBAR AESTHETIC*/
::-webkit-scrollbar {
  width: 8px;
  background: #ddd;
}
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--color-accent2);
}

/* FORM FIELD MARKERS */
input:required, textarea:required {
  border-left: 4px solid var(--color-accent);
}

/* SEPARATORS / DIVIDERS */
.divider {
  height: 3px;
  background: var(--color-accent);
  border-radius: 1.5px;
  margin: 24px 0 23px 0;
}

/* ACCENT QUOTES FOR TESTIMONIALS */
.testimonial-card:before {
  content: '“';
  color: var(--color-accent2);
  font-size: 2.8rem;
  position: absolute;
  left: 16px; top: -23px;
  opacity: 0.25;
  font-family: var(--font-display);
  pointer-events: none;
}

/* SECTIONS & SPACING - MANDATORY CLASS SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { 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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive layout for section spacing */
@media (max-width: 680px) {
  .section { margin-bottom: 32px; padding: 24px 9px; }
  .testimonial-card { padding: 12px 8px; }
}

/* AUTOFILL BROWSER FIX */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* ACCESSIBILITY FOCUS VISIBLE */
:focus-visible {
  outline: 2.5px solid var(--color-accent2);
  outline-offset: 2px;
}

/* Hide visually but keep accessible */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}

/* Print support */
@media print {
  header, nav, footer, .cookie-consent-banner, .cookie-modal, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .container { padding: 0 !important; }
}
