/* ---------------------------------------------------------------
  AUTOMATIKAPRO – Scandinavian Clean UI CSS
  Style for all pages – Mobile First, Flexbox Only, Brand Consistent
-------------------------------------------------------------------*/

/* === 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;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F3F6F9;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #232C33;
  background: #F3F6F9;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174A72;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #F4B033;
  outline: none;
}
ul, ol {
  margin-bottom: 1.5em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  border-radius: 4px;
  outline: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #174A72;
  margin-bottom: 18px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 32px; }
h2 { font-size: 2rem; margin-bottom: 28px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 500; margin-bottom: 12px; }

.subtitle {
  color: #4A5865;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  margin-bottom: 28px;
}

p, .text-section, .note {
  font-size: 1rem;
  color: #232C33;
  margin-bottom: 1.5em;
}
strong {
  font-weight: 700;
}

/* Headings Responsive */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* === Container, Layout, Sections === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(70, 100, 130, 0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .section { padding: 28px 8px; margin-bottom: 32px; }
}

/* === Flexbox Card, Grids, Feature areas === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(55,90,130,.07);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 260px;
  transition: box-shadow .15s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(55,90,130,.15);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 820px) {
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* Feature List & Service List */
.feature-grid, .service-list, .post-list, .case-study-list, .faq-accordion, .usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div,
.service-list > div,
.post-list > div,
.case-study-list > div,
.faq-accordion > div,
.usp-list > li {
  background: #F3F6F9;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 1px 6px 0 rgba(40,70,120,0.04);
  flex: 1 1 240px;
  min-width: 220px;
}

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

@media (max-width: 900px) {
  .feature-grid, .service-list, .post-list, .case-study-list, .faq-accordion, .usp-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* Section Spacing */
.section:not(:last-child) {
  margin-bottom: 60px;
}
@media (max-width: 700px) {
  .section:not(:last-child) {margin-bottom: 32px;}
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(23,74,114,0.06);
  position: relative;
  width: 100%;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 24px;
}
header a img {
  height: 36px;
  width: auto;
  margin-right: 26px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.main-nav a {
  padding: 8px 0 8px 0;
  color: #174A72;
  border-radius: 6px;
  font-weight: 500;
  transition: color .15s, background .18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F4B033;
  background: #EEF2F5;
}
.main-nav .btn-primary {
  margin-left: 14px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #174A72;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 7px;
  transition: background .13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F3F6F9;
}
/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  z-index: 150;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,74,114, 0.98);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.77,.1,.18,.87);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #fff;
  z-index: 155;
  padding: 6px 8px;
  line-height: 1;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #F4B033;
  color: #174A72;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 18px;
  border-radius: 8px;
  background: transparent;
  transition: background .16s, color .17s;
  width: 90vw;
  max-width: 320px;
  text-align: center;
  font-weight: 600;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F4B033;
  color: #174A72;
}
@media (max-width: 1100px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 8px;}
  .main-nav .btn-primary {margin-left: 6px;}
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  header .container {
    gap: 8px;
    padding: 16px 8px;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important;}
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.12rem;
  transition: background .16s, color .14s, box-shadow .11s;
  outline: none;
  border: none;
  padding: 13px 32px;
  margin-top: 8px;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(23,74,114,0.08);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: #174A72;
  color: #fff;
}
.btn-primary:focus,
.btn-primary:hover {
  background: #215d98;
  color: #F4B033;
}
.btn-secondary {
  background: #F3F6F9;
  color: #174A72;
  border: 2px solid #174A72;
}
.btn-secondary:focus,
.btn-secondary:hover {
  background: #174A72;
  color: #fff;
}
.btn-primary:active, .btn-secondary:active {
  box-shadow: none;
}

/* === TABLES (pricing) === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 8px 0 rgba(60,80,110, 0.06);
}
thead {
  background: #f8fafc;
  font-family: 'Montserrat', Arial, sans-serif;
}
th, td {
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid #E5E9EF;
}
th {
  font-weight: 700;
  color: #174A72;
}
tbody tr:last-child td {
  border-bottom: none;
}
td {
  color: #232C33;
  font-size: 1rem;
}
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    padding: 12px 8px;
  }
  tr { margin-bottom: 12px;}
}

/* === Testimonial Cards === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-left: 5px solid #F4B033;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(74,90,110,.08);
  margin-bottom: 20px;
  padding: 20px 30px;
  font-size: 1.12rem;
  color: #232C33;
  transition: box-shadow .19s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(74,90,110,.17);
}
.testimonial-card p {
  color: #232C33;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #174A72;
  font-weight: 700;
}
.testimonial-card span {
  color: #4A5865;
  font-size: .98rem;
  margin-left: 12px;
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; padding: 16px 10px; }
}

/* === FAQ Accordion === */
.faq-accordion > div {
  cursor: pointer;
  transition: box-shadow .14s;
}
.faq-accordion > div:hover, .faq-accordion > div:focus {
  box-shadow: 0 2px 12px 0 rgba(80, 110, 140, 0.13);
}
.faq-accordion h3 {
  margin-bottom: 6px;
  font-size: 1.16rem;
  color: #174A72;
}
.faq-accordion p {
  font-size: 1rem;
  color: #232c33;
}

/* === Price in Service List === */
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F4B033;
  font-weight: 600;
  margin-left: 10px;
}

/* === Tags Overview (blog) === */
.tags-overview {
  font-size: 1rem;
  color: #174A72;
  margin-top: 8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tags-overview span {
  background: #F3F6F9;
  padding: 2px 12px;
  margin-right: 6px;
  border-radius: 10px;
  color: #174A72;
  font-size: .98rem;
  font-weight: 500;
}

/* === Footer === */
footer {
  margin-top: 60px;
  width: 100%;
  padding: 0;
  background: #fff;
  border-top: 1.5px solid #E5E9EF;
  box-shadow: 0 0px 18px 0 rgba(74,110,140,0.069);
}
footer .container {
  padding: 30px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #4A5865;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4B033;
}
.footer-info {
  color: #B8BDC6;
  font-size: .98rem;
}
@media (max-width: 700px) {
  footer .container { padding: 26px 10px 18px 10px; }
  .footer-nav { gap: 10px; }
}

/* === Utility Classes & List Fixes === */
.note {
  color: #4A5865;
  font-size: .97rem;
  background: #EEF2F5;
  border-radius: 7px;
  padding: 8px 16px;
  margin-bottom: 15px;
}
.text-section {
  margin-bottom: 18px;
  color: #232C33;
  font-size: 1rem;
}
.usp-list img {
  width: 32px;
  margin-right: 8px;
}
.usp-list li {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 6px;
  padding: 7px 10px;
  font-size: 1.05rem;
}

/* === Forms and Inputs (contact.html placeholder) === */
input, select, textarea {
  min-width: 160px;
  padding: 10px 13px;
  border: 1px solid #E5E9EF;
  border-radius: 7px;
  background: #F8FAFD;
  font-size: 1rem;
  transition: border .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #F4B033;
}
label {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 7px;
  color: #174A72;
  font-weight: 500;
  font-size: 1rem;
}

/* === Modal Overlay (cookie settings) === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 900;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,40,60,0.65);
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(20,40,80,0.14);
  max-width: 410px;
  width: calc(100vw - 32px);
  padding: 36px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInCookie .25s;
}
@keyframes fadeInCookie {
  from { transform: translateY(40px) scale(.97); opacity: 0.2; }
  to   { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: #174A72;
  margin-bottom: 8px;
  font-family: 'Montserrat';
}
.cookie-modal label {
  font-size: 1rem;
  color: #232c33;
  font-weight: 500;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #F4B033;
}
.cookie-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-actions .btn-primary,
.cookie-actions .btn-secondary {
  min-width: 120px;
  font-size: 1.01rem;
  padding: 9px 16px;
}
/* Close Button */
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 19px;
  background: none;
  border: none;
  color: #B8BDC6;
  font-size: 1.6rem;
  cursor: pointer;
  border-radius: 7px;
  padding: 4px 7px;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #F3F6F9;
  color: #174A72;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 200;
  background: #fff;
  box-shadow: 0 -4px 20px 0 rgba(30,40,80,0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  font-size: 1rem;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  animation: cookieSlideUp .32s cubic-bezier(.62,.02,.13,.98);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner p {
  color: #232C33;
  flex: 1 1 200px;
  margin: 0;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  padding: 7px 19px;
  min-width: 107px;
  font-size: .99rem;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 14px 7px 15px 7px;
    font-size: .97rem;
  }
  .cookie-banner-actions {
    align-self: flex-end;
    gap: 7px;
  }
}

/* === Animations for Interactivity === */
.btn-primary, .btn-secondary {
  transition: background .18s, color .15s, box-shadow .15s, transform .09s;
}
.btn-primary:active, .btn-secondary:active {
  transform: translateY(2px) scale(.97);
}
.card, .testimonial-card {
  transition: box-shadow .18s, transform .15s;
}
.card:active, .testimonial-card:active {
  transform: translateY(2px) scale(.98);
}

/* === Accessibility & Misc === */
:focus {
  outline: 2px solid #F4B033;
  outline-offset: 2px;
}

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

/* --- Utility Spacing --- */
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-32 { margin-top: 32px; }

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; background: #EEF2F5; }
::-webkit-scrollbar-thumb { background: #DADFE6; border-radius: 4px; }

/* === SPECIAL: Hide Cookie/Modal defaultly === */
.cookie-banner,
.cookie-modal-overlay { display: none; }

/* === JS Expected Classes for Showing === */
body.show-cookie-banner .cookie-banner {
  display: flex;
}
body.show-cookie-modal .cookie-modal-overlay {
  display: flex;
}

/* ============= END OF STYLE.CSS ============= */
