/* RESET & BASE STYLES */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F3F6F9;
  color: #232F3E;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: #10649E; text-decoration: none; transition: color 0.2s cubic-bezier(.8,2,.4,1); }
a:hover, a:focus { color: #F7B51D; }

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --primary: #10649E;
  --secondary: #F7B51D;
  --accent: #F3F6F9;
  --brand-dark: #232F3E;
  --white: #fff;
  --success: #2DCA63;
  --danger: #F53D3D;
  --card-radius: 20px;
  --shadow-main: 0 8px 24px rgba(16, 100, 158, 0.10);
  --shadow-card: 0 4px 12px rgba(16, 100, 158, 0.08);
  --transition-main: all 0.25s cubic-bezier(.8,2,.4,1);
  --section-spacing: 60px;
  --container-width: 1200px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 3px 3px 0 rgba(247,181,29,0.09);
  letter-spacing: 0.5px;
}
h1 { font-size: 2.8rem; margin-bottom: 18px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1rem; }

p, ul li, ol li {
  font-size: 1rem;
  color: var(--brand-dark);
  margin-bottom: 10px;
  line-height: 1.7;
}
strong { font-weight: 700; }
em, i { font-style: italic; }

/* LAYOUT CONTAINERS */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.section {
  margin-bottom: var(--section-spacing);
  padding: 40px 20px;
}

.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: var(--white); border-radius: var(--card-radius); box-shadow: var(--shadow-card);
  margin-bottom: 20px; position: relative; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 30px rgba(16,100,158,0.18); transform: translateY(-5px) scale(1.02); }

.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: 16px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px;
  background: #fff; border-radius: var(--card-radius); box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  border-left: 7px solid var(--secondary);
  font-size: 1.05rem;
  position: relative;
  min-width: 220px;
  max-width: 520px;
}
.testimonial-card p { color: var(--brand-dark); }
.testimonial-card .stars { font-size: 1.5rem; color: var(--secondary); letter-spacing: 3px; margin-top: 6px; }
.testimonial-details { font-size: 0.98rem; color: var(--primary); font-family: 'Montserrat', Arial, Helvetica, sans-serif; margin-top: 4px; }

/* Feature List Example */
.features {
  display: flex; flex-direction: column; gap: 36px; margin-bottom: 22px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(16,100,158,0.14);
}
.feature img { width: 38px; height: 38px; margin-bottom: 8px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; color: var(--secondary);
  margin-bottom: 6px; font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, #F7B51D 8%, #10649E 92%);
  color: var(--white);
  min-height: 360px;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: var(--section-spacing);
}
.hero .container { height: 100%; justify-content: center; align-items: center; }
.hero .content-wrapper {
  color: var(--white);
  width: 100%;
  max-width: 600px;
  gap: 16px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.3rem;
  text-shadow: 5px 5px 0 #F7B51D33, 0px 1px 4px #232F3E44;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: 20px;
}

/* CTA */
.cta {
  background: var(--secondary);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-main);
  text-align: center;
  margin-bottom: var(--section-spacing);
}
.cta h2 {
  color: var(--primary);
  margin-bottom: 16px;
}
.cta .btn-primary { margin-top: 8px; }

/* BUTTONS */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  border-radius: 60px;
  padding: 12px 32px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-main);
  box-shadow: 0 2px 10px rgba(16,100,158,0.14);
}
.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  box-shadow: 0 4px 16px #10649E19;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: scale(1.055) rotate(-2deg);
}
.btn-secondary {
  color: var(--primary);
  background: var(--accent);
  border: 2px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  transform: scale(1.048) rotate(2deg);
}

/* NAVIGATION */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 3px 18px #10649E12;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 26px;
}
.logo img { height: 42px; transition: transform 0.18s cubic-bezier(.8,2,.4,1); }
.logo:hover img { transform: scale(1.07) rotate(-3deg); }

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-start;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 8px 10px;
  border-radius: 18px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}

/* Hide main nav, show burger on mobile */
.mobile-menu-toggle {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  padding: 4px 18px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 18px;
  box-shadow: 0 2px 12px #F7B51D22;
  display: none;
  transition: box-shadow 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px #10649E32;
}
@media (max-width:1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  z-index: 10012;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.85,1.6,.32,1), opacity 0.23s ease-in;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 32px 16px 0;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
}
.mobile-nav a {
  padding: 16px 0;
  font-size: 1.25rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  width: 100vw;
  text-align: center;
  border-bottom: 1px solid #ddd;
  background: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  margin: 0;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

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

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0 0 0;
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  gap: 32px;
  min-height: 130px;
  align-items: flex-start;
  justify-content: space-between;
}
.logo-footer { display: flex; align-items: center; height: 54px; margin-right: 26px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a { color: var(--secondary); font-weight: 700; font-size: 1rem; transition: color 0.17s; }
.footer-nav a:hover, .footer-nav a:focus { color: #fff; text-decoration: underline; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;
  color: #fff;
  align-items: flex-start;
}
.footer-contact img { width: 20px; margin-right: 6px; vertical-align: middle; }
footer p { color: #fff !important; font-size: 1rem; }

@media (max-width:800px){
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* CUSTOM BLOCKS & LISTS */
.text-section ul, .text-section ol {
  padding-left: 24px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.text-section ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 10px;
}
.text-section ul li:before {
  content: '\2022'; color: var(--secondary); font-size: 1.03em; left: -16px; top: 2px; position: absolute;
}
.text-section ol li {
  margin-bottom: 8px;
  list-style-type: decimal;
  padding-left: 3px;
}
.text-section h2, .text-section h3 { margin-top: 22px; margin-bottom: 10px; }

/* STAT GRID */
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
  margin-top: 12px;
}
.stat {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; padding: 24px;
  min-width: 120px; flex: 1 1 130px;
}
.stat-value {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 900;
  margin-bottom: 3px;
}
.stat-label { font-size: 1.07rem; color: var(--primary); font-family: 'Montserrat', Arial, Helvetica, sans-serif; }

/* FAQ & SUPPORT CTA */
.faq-list {
  display: flex; flex-direction: column; gap: 13px;
  margin-bottom: 14px;
}
.faq-list h3 { color: var(--secondary); font-size: 1.21rem; margin-bottom: 3px; }
.faq-list p { margin-bottom: 5px; }
.support-cta { background: var(--primary); color: #fff; border-radius: 14px; padding: 14px 18px; margin-top: 10px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-card); }
.support-cta a { margin-left: auto; }

/* NEWS & ARTICLES */
.news-summary-list {
  display: flex; flex-direction: column; gap: 26px; margin-bottom: 18px;
}
.news-summary-list article, .featured-article {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 18px 20px 14px 20px;
  margin-bottom: 8px;
  position: relative;
  min-width: 180px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.news-summary-list article:hover, .featured-article:hover {
  box-shadow: 0 8px 28px #F7B51D29;
  transform: scale(1.025) rotate(-2deg);
}
.featured-article { border-left: 8px solid var(--secondary); background: #F7B51D22; }

.tips-list {
  margin-top: 10px; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 12px;
}
.industry-trends {
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-main);
}

/* CASE STUDY */
.case-study-overview {
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-study-overview h3 { color: var(--primary); font-size: 1.08rem; margin-bottom: 5px; }

/* SPACING AND ALIGNMENT PATTERNS (MANDATORY) */
.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 DESIGN */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width:1000px){
  .feature-grid, .stat-grid, .content-grid{ flex-direction: column; gap: 18px; }
}
@media (max-width:900px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .cta, .hero, .case-study-overview, .news-summary-list article, .featured-article { padding-left: 14px; padding-right: 14px; }
}
@media (max-width:680px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .hero .content-wrapper, .section, .cta { padding: 18px 6px; }
}
@media (max-width:570px){
  .feature, .stat, .testimonial-card { padding: 14px 8px; }
  .footer-contact { font-size: 0.93rem; }
}

/* HOVER EFFECTS, MICRO-INTERACTIONS & ANIMATIONS */
nav a, .btn-primary, .btn-secondary, .mobile-menu-toggle,
.card, .feature, .news-summary-list article, .featured-article {
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card::before, .feature::before {
  content: '';
  position: absolute;
  top: -22px; right: -22px;
  width: 48px; height: 48px;
  background: #F7B51D33;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.36;
  pointer-events: none;
  animation: floatBlob 4s infinite ease-in-out alternate;
}
@keyframes floatBlob {
  0% { transform: translateY(0) scale(1); opacity: .36; }
  100% { transform: translateY(12px) scale(1.07); opacity: .5; }
}

/* Buttons soft bounce */
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.96) rotate(-1deg);
}

/* LOGO playful bounce */
@media (hover: none) {
  .logo:active img { transform: rotate(-9deg) scale(0.96); }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbe0;
  color: var(--brand-dark);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 8px 22px 8px;
  font-size: 1rem;
  box-shadow: 0 -4px 20px #10649E18;
  border-top: 4px solid var(--secondary);
  animation: bannerIn 0.6s cubic-bezier(.85,1.5,.63,1.25);
}
@keyframes bannerIn {
  0% { transform: translateY(140px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-banner p { margin-right: 18px; }
.cookie-banner .cookie-btn {
  margin: 0 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 32px;
  padding: 10px 26px;
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.17s;
  font-size: 1rem;
}
.cookie-banner .cookie-btn.accept { background: var(--secondary); color: var(--primary); }
.cookie-banner .cookie-btn.accept:hover { background: var(--success); color: #fff; }
.cookie-banner .cookie-btn.reject { background: var(--danger); color: #fff; }
.cookie-banner .cookie-btn.reject:hover { background: #b51212; color: #fff; }
.cookie-banner .cookie-btn.settings { background: var(--primary); color: var(--white); }
.cookie-banner .cookie-btn.settings:hover { background: var(--secondary); color: var(--primary); }

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed; top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(16,100,158,0.24);
  z-index: 20024;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbe0;
  color: var(--brand-dark);
  border-radius: var(--card-radius);
  padding: 36px 24px 28px;
  box-shadow: 0 4px 40px #10649E44;
  min-width: 336px;
  min-height: 220px;
  max-width: 98vw;
  animation: modalIn 0.7s cubic-bezier(.7,2.4,.5,1.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@keyframes modalIn {
  0% { transform: scale(0.8) translateY(80px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 { margin-bottom: 6px; color: var(--primary); }
.cookie-modal .cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 5px;
}
.cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  cursor: pointer; left: 0; top: 0;
  width: 46px; height: 26px; border-radius: 18px;
  background: #eae7cc;
  transition: background 0.18s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--secondary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s cubic-bezier(.7,2,.5,1.3);
  box-shadow: 0 1px 4px #10649E11;
}
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.cookie-modal .cookie-actions {
  display: flex; gap: 11px;
  margin-top: 12px; justify-content: flex-end;
}
.cookie-modal .cookie-btn { min-width: 108px; margin: 0; }

@media (max-width:570px){
  .cookie-modal{ min-width: 90vw; }
}

/* UTILITY, GENERAL IMPROVEMENTS, PRINT */
@media print { .mobile-menu, header .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; } }

/* UTILITY (spacing, gaps) */
.gap-top-20 { margin-top: 20px; }
.gap-bottom-32 { margin-bottom: 32px; }
.gap-between-16 { gap: 16px; }

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