/* KeramoMajstor Scandinavian Clean Design CSS
   -------------------------------------------------------
   Brand Colors: 
    - Primary: #205072 (deep blue)
    - Secondary: #F1F1F1 (soft natural gray)
    - Accent: #FFD166 (warm yellow)
   Fonts:
    - Display: 'Montserrat', sans-serif
    - Body: 'Roboto', sans-serif
   Scandinavian characteristics: light colors, ample whitespace, soft borders, subtle shadow, simple fonts, functional beauty. 
   Only Flexbox for layouts.
*/

/* CSS Reset & Base Normalize */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background-color: #F8FAFB;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
a {
  color: #205072;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16394e;
  outline: none;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(32,80,114,0.04);
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 40px;
    padding: 24px 8px;
    border-radius: 0;
  }
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  margin-bottom: 20px;
}
.text-section h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -.5px;
  color: #205072;
}
.text-section h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #205072;
}
.text-section p, .text-section ul, .text-section ol {
  font-size: 1rem;
  margin-bottom: 12px;
}
/* Typography hierarchy */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #205072;
  line-height: 1.14;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #205072;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #205072;
}
strong {
  font-weight: 600;
  color: #205072;
  letter-spacing: 0;
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(32,80,114,0.04);
  position: sticky;
  top: 0;
  z-index: 98;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 0;
}
header img {
  height: 44px;
  margin-right: 36px;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #205072;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.2s;
}
header nav a:hover,
header nav a:focus {
  color: #FFD166;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #205072;
  color: #fff !important;
  border-radius: 26px;
  padding: 12px 32px;
  margin-left: 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.16s;
  box-shadow: 0 2px 8px rgba(32,80,114,0.10);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #16394e;
  color: #FFD166 !important;
  box-shadow: 0 6px 15px rgba(32,80,114,0.13);
}
.cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFD166;
  color: #205072 !important;
  border-radius: 26px;
  padding: 10px 26px;
  margin-left: 0;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 4px rgba(32,80,114,0.10);
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #205072;
  color: #fff !important;
}

@media (max-width: 990px) {
  header nav {
    gap: 16px;
  }
  header .container {
    flex-wrap: wrap;
  }
}

/* === MOBILE HEADER & MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #205072;
  font-size: 2rem;
  cursor: pointer;
  z-index: 120;
  margin-left: 18px;
}
@media (max-width: 860px) {
  header nav,
  .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* MOBILE MENU STYLES */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(241,241,241,0.98);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 24px rgba(32,80,114,0.11);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #205072;
  align-self: flex-end;
  margin: 18px 24px 10px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 36px 20px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #205072;
  margin: 4px 0;
  padding: 10px 2px;
  font-weight: 500;
  border-radius: 8px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD166;
  color: #205072;
}
@media (min-width: 861px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(90deg, #F1F1F1 60%, #eaf6fa 100%);
  box-shadow: 0 1px 10px rgba(32,80,114,0.05);
  margin-bottom: 60px;
  border-radius: 16px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 600px;
}
.hero h1 {
  font-size: 2.6rem;
  color: #205072;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
}
.hero p {
  font-size: 1.2rem;
  color: #2D3037;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 24px 0;
    border-radius: 0;
  }
  .hero .content-wrapper {
    padding: 0;
    max-width: 100%;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
}

/* === FEATURES SECTION === */
.features ul, .features .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin-top: 26px;
  margin-bottom: 0;
  padding: 0;
}
.features ul li, .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F8FAFB;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(32,80,114,0.06);
  padding: 28px 20px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 200px;
  margin-bottom: 20px;
}
.features ul li img,
.feature-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #F1F1F1;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(32,80,114,0.07);
}
.features ul li strong,
.feature-item strong {
  font-size: 1.15rem;
}
.features ul li div,
.feature-item div {
  color: #40475B;
  font-size: 1rem;
}
@media (max-width: 992px) {
  .features ul, .feature-list {
    gap: 16px;
  }
  .features ul li, .feature-item {
    min-width: 170px;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  .features ul, .feature-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* === SERVICES SECTION === */
.services ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}
.services ul li {
  background: #F8FAFB;
  padding: 18px 18px 10px 18px;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(32,80,114,0.06);
  margin-bottom: 10px;
}
.services ul li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  color: #205072;
  margin-bottom: 6px;
  display: block;
}
.services ul li div {
  font-size: 1rem;
}

/* === CTA SECTION === */
.cta {
  background: #205072;
  color: #fff;
  display: flex;
  align-items: center;
  text-align: center;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(32,80,114,0.11);
  margin-bottom: 60px;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta .container {
  align-items: center;
  justify-content: center;
}
.cta .content-wrapper {
  align-items: center;
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 24px;
}
.cta-primary {
  background: #FFD166;
  color: #205072 !important;
  font-weight: 700;
}
.cta-primary:hover, .cta-primary:focus {
  background: #fff;
  color: #205072 !important;
}
@media (max-width: 768px) {
  .cta {
    border-radius: 0;
    padding: 24px 0;
    margin-bottom: 30px;
  }
  .cta h2 {
    font-size: 1.25rem;
  }
}

/* === TESTIMONIALS === */
.testimonials {
  background: #F1F1F1;
  border-radius: 14px;
}
.testimonials .container {
  align-items: center;
}
.testimonials h2 {
  color: #205072;
  text-align: center;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 24px 28px;
  margin: 0 0 20px 0;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(32,80,114,0.10);
  color: #21243d;
  border-left: 8px solid #205072;
  transition: box-shadow 0.21s;
  font-size: 1.12rem;
  min-width: 250px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(32,80,114,0.18);
}
.testimonial-card strong {
  color: #205072;
  font-size: 1rem;
}
.testimonial-card p {
  margin: 0 0 8px 0;
}
.testimonial-card div {
  font-size: 1rem;
  color: #656D76;
}
@media (max-width: 768px) {
  .testimonials h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 12px;
    font-size: 1rem;
    border-radius: 9px;
  }
}

/* === CARDS FOR VARIOUS USAGES === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(32,80,114,0.07);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(32,80,114,0.15);
  z-index: 3;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    padding: 16px 8px;
  }
}

/* === TEXT-IMAGE-SECTION (if used) === */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid #EDF2F7;
  padding: 44px 0 18px 0;
  box-shadow: 0 -2px 16px rgba(32,80,114,0.04);
  font-size: 1rem;
  color: #205072;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}
.footer-col img {
  height: 38px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.footer-menu a {
  color: #205072;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.17s;
  font-size: 1rem;
}
.footer-menu a:hover {
  color: #FFD166;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 0 8px;
  }
  .footer-col {
    max-width: 100%;
  }
}

/* === TABLES (for pricing page) === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
}
table th, table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e7ecee;
  font-size: 1rem;
}
table th {
  background: #F1F1F1;
  color: #205072;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
table tr:hover td {
  background: #f9f9f9;
}
@media (max-width: 500px) {
  table th, table td {
    padding: 8px 2px;
    font-size: 0.9rem;
  }
}

/* === LEGAL / COOKIE / POLICY SECTIONS === */
.legal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,80,114,0.05);
}
.legal h1 {
  font-size: 2.1rem;
}

/* === CONFIRMATION / THANK YOU PAGE === */
.confirmation {
  text-align: center;
  background: #F1F1F1;
  border-radius: 13px;
}
.confirmation h1 {
  color: #205072;
}
.confirmation .cta-primary {
  margin: 24px 0;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 22px rgba(32,80,114,0.09);
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  z-index: 200;
  border-top: 1px solid #F1F1F1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s, transform .33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
}
.cookie-banner__message {
  color: #205072;
  font-size: 1rem;
  flex: 1 1 240px;
}
.cookie-banner__actions {
  display: flex;
  gap: 11px;
}
.cookie-banner button, .cookie-banner .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 20px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  background: #F1F1F1;
  color: #205072;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner button.accept {
  background: #205072;
  color: #fff;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #16394e;
  color: #FFD166;
}
.cookie-banner button.reject {
  background: #F8FAFB;
  color: #205072;
}
.cookie-banner button.reject:hover {
  background: #FFD166;
  color: #205072;
}
.cookie-banner button.settings {
  background: #FFD166;
  color: #205072;
}
.cookie-banner button.settings:hover {
  background: #fff6cc;
}
@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 4px;
  }
  .cookie-banner__actions {
    gap: 6px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-overlay {
  position: fixed;
  z-index: 280;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,80,114,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .28s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 48px rgba(32,80,114,0.16);
  max-width: 432px;
  width: 99%;
  padding: 34px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInModal .36s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInModal {
  from { transform: translateY(44px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #205072;
  margin-bottom: 10px;
}
.cookie-modal .category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #F1F1F1;
  font-size: 1.01rem;
  color: #205072;
}
.cookie-modal .category-row:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle {
  accent-color: #FFD166;
  width: 18px;
  height: 18px;
}
.cookie-modal .category-essential .cookie-toggle {
  opacity: 0.5;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.65rem;
  color: #205072;
  cursor: pointer;
  z-index: 5;
}
.cookie-modal .cookie-modal-close:hover {
  color: #FFD166;
}
@media (max-width:520px) {
  .cookie-modal {
    max-width: 97vw;
    padding: 18px 8px 12px 8px;
  }
  .cookie-modal h2 {
    font-size: 1.1rem;
  }
}

/* === ACCESSIBILITY & UTILITIES === */
:focus {
  outline: 2px solid #FFD166 !important;
  outline-offset: 2px
}
/* Hide visually but not from screen readers */
.sr-only { 
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* --- Responsive adjustments for spacing/layout --- */
@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  .content-wrapper { gap: 18px; }
  section, .section { padding: 18px 4px; }
}

/* --- Spacing, gap, alignment patterns enforced --- */
.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; }

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