/* CSS RESET & BASE TYPOGRAPHY --------------------------------------------------- */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #fff8e7;
  color: #2c3c45;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #b94b22;
  text-decoration: none;
  transition: color .2s, background .2s;
}
a:hover, a:focus {
  color: #e56836;
  text-decoration: underline;
}
ul, ol {
  margin-left: 32px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
}

/* BRAND COLORS --------------------------------------------------- */
:root {
  --primary: #305c7c;
  --secondary: #fff8e7;
  --accent: #e56836;
  --accent-dark: #b94b22;
  --bg-light: #fff8e7;
  --bg-footer: #f6e5ce;
  --border-card: #f1d6af;
  --shadow-card: 0 4px 24px -8px rgba(220, 90, 22, .10);
  --text-main: #2c3c45;
  --text-dark: #172024;
  --badge-bg: #ffe8d8;
  --badge-txt: #e56836;
  --focus: #305c7c33;
}

/* FONT FAMILY --------------------------------------------------- */
h1, h2, h3, h4, .logo-link, .badge {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

h1 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -.01em;
}
h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--accent-dark);
  letter-spacing: .01em;
}
h3 {
  font-size: 1.24rem;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 600;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text-main);
}

@media (min-width: 600px) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2rem; }
}

/* CONTAINER AND LAYOUT ------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 4vw;
    margin-bottom: 36px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--border-card);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .23s, transform .18s;
  position: relative;
  padding: 24px 18px;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px -6px rgba(200, 95, 21, .19);
  transform: translateY(-3px) scale(1.015);
}

.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;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--badge-bg);
  border-radius: 18px;
  box-shadow: 0 2px 16px -8px rgba(60,40,20,.10);
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  color: var(--text-dark);
}
.testimonial-card p {
  font-size: 1.08em;
  color: var(--text-dark);
}
.testimonial-card strong {
  color: var(--primary);
}

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

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-txt);
  border-radius: 999px;
  padding: 0.24em 1.2em;
  font-size: .93em;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.text-section {
  margin-bottom: 18px;
  border-radius: 12px;
  padding: 12px 13px 8px 0;
}
.text-section:last-child {
  margin-bottom: 0;
}

ol, ul {
  padding-left: 22px;
  margin-bottom: 10px;
}

/* HEADER & NAVIGATION -------------------------------------------- */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 14px -5px rgba(49,88,116,.10);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo-link {
  display: flex;
  align-items: center;
  font-size: 1.36rem;
  color: #fff;
  font-weight: 700;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-right: auto;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  border-radius: 13px;
  padding: 7px 15px;
  font-weight: 500;
  transition: background .18s, color .16s;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--accent);
  color: #fff;
}

.cta-btn.primary {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 22px;
  font-size: 1.1em;
  padding: 10px 27px;
  box-shadow: 0 3px 16px -7px var(--accent);
  font-weight: 700;
  letter-spacing: .03em;
  margin-left: 15px;
  transition: background .21s, color .17s, box-shadow .18s, transform .18s;
  cursor: pointer;
  outline: none;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 24px -7px var(--accent-dark);
}

/* MOBILE MENU ---------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 16px;
  padding: 4px 12px 0 12px;
  margin-left: 14px;
  cursor: pointer;
  transition: background .18s, color .17s, box-shadow 0.16s;
  z-index: 1002;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent-dark);
  outline: 2px solid var(--accent-dark);
}

/* On Mobile: burger visible, nav hidden */
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 94vw;
  max-width: 360px;
  background: #fff;
  box-shadow: -6px 0 27px 0 rgba(60,90,120,.17);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.42,1.33,.39,0.94);
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 13px;
  right: 20px;
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1.6em;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.16em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 21px;
  border-radius: 15px;
  font-weight: 500;
  transition: background .17s, color .17s;
  background: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--bg-footer);
  color: var(--accent);
}

/* LAYOUT SECTION SPACING: spacers are reflected in .section and below rules */
main {
  padding: 10px 0 44px 0;
}
section {
  margin-bottom: 60px;
  padding: 0; /* .section overrides */
  background: none;
  box-shadow: none;
}

#hero {
  background: linear-gradient(90deg, #fff8e7 70%, #fff);
  padding-top: 38px;
  padding-bottom: 30px;
}
#hero .container {
  padding-top: 14px;
  padding-bottom: 16px;
}
#hero h1 {
  color: var(--primary);
}
#hero p {
  font-size: 1.18em;
  color: var(--text-main);
}

/* FORM ELEMENTS -------------------------------------------------- */
input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #e0d8c4;
  background: #fff;
  margin-bottom: 15px;
  box-shadow: 0 0.5px 3px rgba(180, 120, 30, .05);
  transition: border .19s, box-shadow .19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 1.5px var(--focus);
}
button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* BUTTONS -------------------------------------------------------- */
button, .btn, .cta-btn {
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 1em;
  border-radius: 22px;
  transition: background .18s, color .15s, box-shadow .19s, transform .17s;
}
.btn, .cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 9px 26px;
  font-weight: 700;
}
.btn:hover, .cta-btn:hover, .cta-btn:focus {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 8px 22px -11px var(--accent);
  transform: translateY(-2px) scale(1.035);
}
.btn.secondary {
  background: var(--badge-bg);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn.secondary:hover, .btn.secondary:focus {
  background: var(--accent);
  color: #fff;
}

/* TABLES --------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
}
th, td {
  padding: 13px 16px;
  border-bottom: 1px solid #efedde;
  text-align: left;
}
tr:last-child td {
  border-bottom: none;
}
th {
  background: var(--bg-footer);
}

/* FOOTER --------------------------------------------------------- */
footer {
  background: var(--bg-footer);
  color: var(--text-main);
  padding: 32px 0 10px 0;
  box-shadow: 0 -2px 18px -8px rgba(180, 90, 22, .04);
  border-top: 2px solid #edd2be;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 5px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  border-radius: 13px;
  padding: 6px 11px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: #fff;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  color: var(--primary);
  margin-bottom: 0px;
  text-align: center;
}
.footer-brand img {
  width: 36px;
  height: 36px;
}

/* BADGE ---------------------------------------------------------- */
.badge {
  font-size: 1em;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--badge-bg);
  padding: 3px 20px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 7px;
}

/* MICRO-ANIMATION EFFECTS ---------------------------------------- */
.card, .testimonial-card, .cta-btn, .badge, .cookie-banner, .cookie-modal {
  transition: 
    box-shadow .23s cubic-bezier(.43,.19,.54,1.38),
    background .18s,
    transform .18s,
    color .18s;
}

/* Z-INDEX LAYERING ----------------------------------------------- */
header { z-index: 200; }
.mobile-menu { z-index: 10002; }
.cookie-banner { z-index: 3000; }
.cookie-modal { z-index: 3100; }

/* RESPONSIVE DESIGN ---------------------------------------------- */
@media (max-width: 1000px) {
  .container { max-width: 97vw; }
}
@media (max-width: 780px) {
  .footer-brand {
    flex-direction: column;
    gap: 7px;
  }
  .footer-nav {
    gap: 13px;
    font-size: .98em;
  }
}
@media (max-width: 680px) {
  .container { padding: 0 6vw; }
  .footer-nav { flex-direction: column; gap: 7px; align-items: center; }
}

/* MOBILE FIXES --------------------------------------------------- */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .card, .card-container { flex-direction: column; }
  .content-wrapper { gap: 15px; }
  .section { padding: 24px 6vw; }
}

/* COOKIE CONSENT BANNER ------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  color: var(--primary);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 28px -10px #c47330a3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 12px 20px 12px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08em;
  z-index: 3000;
  transition: transform .32s cubic-bezier(.64,1.12,.58,1.05), opacity .21s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(102%);
}
.cookie-banner .cookie-banner-text {
  flex: 1;
  min-width: 140px;
  color: var(--primary);
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .btn, .cookie-banner button {
  min-width: 110px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 18px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.cookie-banner .btn {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus{
  background: var(--accent-dark);
  color: #fff;
}
.cookie-banner .btn.secondary {
  background: var(--badge-bg);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .btn.secondary:hover, .cookie-banner .btn.secondary:focus {
  background: var(--accent);
  color: #fff;
}

/* COOKIE CONSENT PREFERENCES MODAL ------------------------------- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(50, 58, 60, 0.41);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: modalFadeIn .28s cubic-bezier(.49,1.24,.51,.99);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-dialog {
  background: #fff;
  color: var(--primary);
  border-radius: 15px;
  padding: 35px 32px 28px 32px;
  box-shadow: 0 12px 80px -15px #30291738, 0 0.5px 8px #cf8b3752;
  max-width: 420px;
  width: 94vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.07em;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.25em;
  border-radius: 50%;
  width: 35px; height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent-dark);
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.21em;
  color: var(--primary);
}
.cookie-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
}
.cookie-category label {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.01em;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  margin-right: 4px;
}
.cookie-category .category-essential {
  font-weight: 700;
  color: var(--primary);
}
.cookie-category input[disabled], .cookie-category input[disabled] + label {
  opacity: 0.7;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions .btn {
  min-width: 110px;
}

@media (max-width: 520px) {
  .cookie-modal-dialog { padding: 21px 12px 15px 12px; }
  .cookie-modal-actions { flex-direction: column; gap: 10px; }
}

/* UTILITIES ------------------------------------------------------ */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width:590px) {
  .logo-link img { max-width: 120px; }
}

/* VISUAL FLAIR — SOFT SHADOWS, ROUNDED CORNERS ------------------- */
.card, .testimonial-card, .section, .cookie-modal-dialog {
  box-shadow: 0 4px 24px -8px rgba(220, 90, 22, .09);
  border-radius: 18px;
}

/* VISUAL HIERARCHY: SPACING STACK ------------------------------- */
.section, .testimonial-card, .card, .card-container, .content-wrapper, .text-image-section, .content-grid, .feature-item {
  margin-bottom: 0px; /* handled by outer parent spacing, maintain only gap */
}

/* MISC — Styles for badges, tips etc. --------------------------- */
.tip {
  background: var(--badge-bg);
  color: var(--accent);
  border-radius: 14px;
  padding: 5px 14px;
  font-size: .98em;
  margin-right: 12px;
  display: inline-block;
}

/* Fix content alignment in .content-wrapper and .container */
.content-wrapper > * + * {
  margin-top: 7px;
}

/* Prevent content overlap and apply universal spacing for all cards/sections */
.card + .card, .testimonial-card + .testimonial-card, .section + .section, section + section {
  margin-top: 24px;
}

/* Accessibility: focus styling */
a:focus-visible, .cta-btn:focus-visible, .btn:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
}

/* Hide mobile menu by default on desktop */
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
