/* ---- 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, 
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 {
  background: #fff;
  color: #0A3245;
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; border: none; }
ul, ol { list-style: none; }

/* ---- Typography ---- */
:root {
  --brand-primary: #0A3245;
  --brand-secondary: #FFD600;
  --brand-accent: #FFFFFF;
  --brand-shadow: rgba(10, 50, 69, 0.1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition-all: 0.3s cubic-bezier(.4,1,.2,1);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.6rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; }

@media (min-width: 481px) {
  h1 { font-size: 3.3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
}

p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 400;
  margin-bottom: 12px;
}
p.subheadline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 28px;
}
strong, b { font-weight: 700; }

blockquote {
  background: #F4F7FB;
  border-left: 5px solid var(--brand-secondary);
  padding: 16px 24px;
  font-style: italic;
  font-size: 1.1rem;
  color: #0A3245;
}
cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: #425E77;
}

ul li, ol li {
  margin-left: 0;
  margin-bottom: 10px;
  position: relative;
  padding-left: 38px;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
ul li img { width: 24px; height: 24px; margin-right: 8px; display: inline-block; }

/* ---- Section/Container Layouts ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (min-width: 769px) {
  .section { padding: 70px 0; }
}

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

.text-section { max-width: 700px; }

.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;
  }
}

/* ---- Header & Navigation ---- */
header {
  background: var(--brand-accent);
  box-shadow: 0 2px 12px var(--brand-shadow);
  position: sticky;
  top: 0;
  z-index: 101;
  width: 100%;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.header-container img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: color var(--transition-all);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 14px 30px;
  box-shadow: 0 4px 16px var(--brand-shadow);
  font-size: 1.05rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background var(--transition-all), transform 0.15s cubic-bezier(.4,1,.2,1), color var(--transition-all);
  margin-left: 18px;
  outline: none;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 1020px) {
  .main-nav { gap: 13px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .cta-button { margin-left: 0; }
}

/* ---- Mobile Menu ---- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-size: 2.2rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 201;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
}

@media (min-width: 901px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--brand-primary);
  color: var(--brand-accent);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.67,.32,.22,.97);
  box-shadow: -6px 0 20px var(--brand-shadow);
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}

.mobile-menu-close {
  font-size: 2rem;
  align-self: flex-end;
  margin: 30px 24px 10px 0;
  border: none;
  background: transparent;
  color: var(--brand-secondary);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2003;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 36px 44px 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.26rem;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 1px;
  padding: 16px 0 10px 0;
  width: 100%;
  border-radius: var(--radius-sm);
  transition: background var(--transition-all), color var(--transition-all);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}


/* ---- Hero/Sections ---- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}

section .container { padding-top: 0; padding-bottom: 0; }

@media (max-width: 700px) {
  section { padding: 28px 0; margin-bottom: 38px; }
}

/* ---- Feature Grid & Cards ---- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px var(--brand-shadow);
  padding: 30px 26px 26px 26px;
  width: 100%;
  max-width: 312px;
  position: relative;
  transition: box-shadow var(--transition-all), transform var(--transition-all);
  min-height: 290px;
  margin-bottom: 20px;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 14px 40px rgba(10,50,69,0.15);
  transform: translateY(-4px) scale(1.04);
}
.feature-item img {
  background: var(--brand-secondary);
  border-radius: 50%;
  padding: 12px;
  width: 54px;
  height: 54px;
  box-shadow: 0 2px 10px var(--brand-shadow);
}
.feature-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
}
.feature-price {
  margin-top: 10px;
  color: var(--brand-primary);
  background: #F6BC00;
  border-radius: var(--radius-sm);
  padding: 5px 15px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .feature-grid { gap: 14px; }
  .feature-item { max-width: 98vw; min-width: 0; width: 100%; }
}
@media (max-width: 600px) {
  .feature-item { padding: 24px 12px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px var(--brand-shadow);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 320px;
  min-height: 240px;
}
@media (max-width: 650px) {
  .card { padding: 22px 10px; min-width: 0; }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ---- Testimonial Card ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F7FB;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 10px var(--brand-shadow);
  margin-bottom: 20px;
  flex-direction: column;
  max-width: 540px;
  margin-right: auto;
  margin-left: auto;
  min-width: 0;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  font-size: 1.08rem;
  color: #182F3B;
  padding: 0;
}
.testimonial-card cite { color: var(--brand-primary); font-weight: 700; margin-top: 10px; }

@media (max-width: 600px) {
  .testimonial-card { padding: 12px 8px; }
}

/* ---- Footer ---- */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: 48px 0 0 0;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  max-width: 310px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand img {
  height: 54px;
}
.footer-brand a {
  color: var(--brand-secondary);
  font-weight: 700;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a,
.footer-legal a {
  color: #F7F7F7;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 3px;
  transition: color 0.20s;
}
.footer-nav a:hover,
.footer-nav a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
  color: var(--brand-secondary);
}
.footer-social {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 25px;
}
.footer-social a img {
  width: 34px;
  height: 34px;
  transition: filter 0.18s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: drop-shadow(0 4px 12px var(--brand-secondary));
}
@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 30px; align-items: flex-start; }
  .footer-brand { margin-bottom: 12px; }
}

/* ---- Cookie Consent Banner & Modal ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #182F3B;
  color: var(--brand-accent);
  box-shadow: 0 -3px 14px var(--brand-shadow);
  z-index: 9800;
  padding: 32px 12px 24px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 1.06rem;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 0;
  margin-bottom: 0;
  cursor: pointer;
  transition: background var(--transition-all), color var(--transition-all), transform var(--transition-all);
}
.cookie-btn.accept {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  transform: scale(1.03);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--brand-primary);
  border: 2px solid var(--brand-secondary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: scale(1.03);
}
.cookie-btn.settings {
  background: var(--brand-primary);
  color: var(--brand-secondary);
  border: 2px solid var(--brand-secondary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: scale(1.03);
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(10, 50, 69, 0.72);
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--brand-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px var(--brand-shadow);
  padding: 50px 35px 35px 35px;
  max-width: 430px;
  width: calc(100vw - 24px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  color: var(--brand-primary);
  font-family: var(--font-body);
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category label {
  font-family: var(--font-body);
  color: var(--brand-primary);
}
.cookie-category input[type=checkbox] {
  width: 22px; height: 22px;
  accent-color: var(--brand-secondary);
  border-radius: 4px;
}
.cookie-modal-close {
  background: none;
  color: var(--brand-primary);
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--brand-secondary);
}

/* ---- Utility / Flex Fixes ---- */
@media (min-width: 769px) {
  .content-wrapper { flex-direction: row; }
  .content-wrapper.text-section { flex-direction: column; }
}

@media (max-width: 900px) {
  .footer-nav, .footer-legal { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .footer-legal { margin-top: 12px; }
}

/* ---- Micro-interactions ---- */
.cta-button, .cookie-btn, .main-nav a, .footer-nav a, .footer-legal a, .mobile-menu-toggle, .mobile-nav a {
  outline: none;
  transition: box-shadow var(--transition-all), background var(--transition-all), color var(--transition-all), transform var(--transition-all);
}
.cta-button:active, .cookie-btn:active { transform: scale(0.96); }

/* ---- Card / Feature Hover Animations ---- */
.card, .feature-item, .testimonial-card {
  transition: box-shadow var(--transition-all), transform var(--transition-all);
}
.card:hover, .card:focus-within,
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 12px 32px rgba(10,50,69,0.22);
  transform: translateY(-3px) scale(1.03);
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 650px) {
  .container { padding: 0 6px; }
  .header-container { flex-direction: column; gap: 15px; }
  .footer-social { margin-top: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .cta-button, .cookie-btn { font-size: .98rem; padding: 10px 13px; }
  .footer-brand img { height: 38px; }
  .main-nav, .footer-nav, .footer-legal { font-size: 1rem; gap: 8px; }
}

/* ---- Form fields (if any forms are present) ---- */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid #BFDDF2;
  background: #F4F7FB;
  padding: 10px 13px;
  margin-bottom: 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.19s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-secondary);
}

::-webkit-input-placeholder { color: #8393A5; }
::-moz-placeholder { color: #8393A5; }
:-ms-input-placeholder { color: #8393A5; }
::placeholder { color: #8393A5; }

/* ---- Accessibility & Focus Rings ---- */
:focus-visible {
  outline: 2.5px dashed var(--brand-secondary);
  outline-offset: 3px;
}

/* ---- Decorative/Geometric Elements (example only, you may use in HTML if desired) ---- */
.geometric-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.055;
  pointer-events: none;
}

/* ---- Hide elements helper ---- */
.hide, [hidden] { display: none !important; }
