/* Crystal Vista IT – Scandinavian Clean CSS Design System */

/* === RESET === */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F8FAFB;
  color: #25426A;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #17686B;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #25426A;
  outline: none;
}
ul {
  list-style: disc inside;
  margin-bottom: 16px;
}
strong {
  font-weight: bold;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
input, textarea {
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e0e4e8;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 12px 16px;
}
th {
  background: #EEEEEE;
  font-weight: 600;
}
tr:nth-child(even) {
  background: #F5F7F7;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  color: #263648;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.18; }
h3 { font-size: 1.25rem; margin-bottom: 16px; line-height: 1.2; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
.subtitle {
  font-size: 1.175rem;
  color: #637188;
  font-weight: 400;
  margin-bottom: 20px;
}
.cta-text {
  font-size: 1.18rem;
  color: #17686B;
  margin-bottom: 20px;
}

/* === CONTAINERS & LAYOUT === */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(24,46,82,0.06);
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(24,46,82,0.04);
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  position: relative;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #25426A;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EEEEEE;
  color: #17686B;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #17686B;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  min-width: 148px;
  padding: 12px 24px;
  box-shadow: 0 2px 10px rgba(55,140,146,0.07);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
  text-align: center;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #25426A;
  color: #fff;
  box-shadow: 0 4px 14px rgba(25,66,106,0.09);
  transform: translateY(-1px) scale(1.04);
}
.cta-btn.secondary {
  background: #EEEEEE;
  color: #25426A;
  border: 1.5px solid #39A1A6;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #25426A;
  color: #fff;
  border-color: #17686B;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  background: none;
  color: #25426A;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-toggle:focus {
  background: #EEEEEE;
  color: #17686B;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: -8px 0 24px rgba(24,46,82,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 32px 24px 24px;
  z-index: 200;
  transform: translateX(110vw);
  transition: transform 0.33s cubic-bezier(.93,.01,.45,.94);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #17686B;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #EEEEEE;
  color: #25426A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
  width: 100%;
}
.mobile-nav a {
  color: #25426A;
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 16px 8px 10px 0px;
  border-bottom: 1px solid #EEEEEE;
  border-radius: 0;
  transition: color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #17686B;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === SECTIONS & GRIDS === */
/* Feature grid for index, service-list, etc. */
.feature-grid, .service-list, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 20px 0;
}
.feature, .service {
  background: #F7F9FA;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(24,46,82,0.06);
  padding: 28px 20px 24px 20px;
  flex: 1 1 256px;
  min-width: 215px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.14s;
  margin-bottom: 20px;
}
.feature:hover, .service:hover {
  box-shadow: 0 6px 20px rgba(55,140,146,0.11);
  transform: translateY(-2px) scale(1.02);
}
.feature img, .service img {
  width: 46px;
  height: 46px;
}
.feature h3, .service h2 {
  margin-top: 0;
  margin-bottom: 2px;
  font-family: 'Roboto Slab', serif;
  color: #17686B;
  font-size: 1.18rem;
}
.feature p, .service p {
  color: #354157;
  font-size: 1rem;
}

.usp-list {
  margin: 16px 0 20px 0;
  color: #17686B;
  font-size: 1.08rem;
  padding-left: 18px;
}
.usp-list li {
  margin-bottom: 10px;
}

.text-section {
  margin-bottom: 24px;
  margin-top: 2px;
}
.text-section ul {
  padding-left: 17px;
}
.map-placeholder {
  margin: 16px 0;
  background: #EEEEEE;
  border-radius: 10px;
  padding: 18px 12px;
  color: #25426A;
  box-shadow: 0 1px 4px rgba(24,46,82,0.03);
}

/* Testimonials */
.testimonials-list {
  width: 100%;
  flex-direction: row;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(55,140,146,0.13);
  padding: 20px 26px;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 370px;
  flex: 1 1 240px;
  color: #253857;
  transition: box-shadow 0.16s, transform 0.11s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(55,140,146,0.2);
  transform: scale(1.021);
}
.testimonial-card p {
  color: #263648;
  font-style: italic;
  font-size: 1.04rem;
}
.testimonial-card strong {
  color: #17686B;
  font-weight: 700;
  font-size: 1rem;
}

/* Price Table */
.price-table {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(55,140,146,0.07);
}
.price-table th, .price-table td {
  font-size: 1rem;
  padding: 13px 18px;
  color: #263648;
}
.price-table th {
  background: #39A1A6;
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 1.07rem;
  letter-spacing: .02em;
  border-bottom: 1.5px solid #25426A33;
}
.price-table tr:nth-child(even) td {
  background: #F7F9FA;
}
.price-table td {
  border-bottom: 1px solid #eeeeee;
}
.price-table tr:last-child td {
  border-bottom: none;
}

/* Card, Card Container */
.card-container, .features, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(24,46,82,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

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

/* General Section Spacing */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* === FOOTER === */
footer {
  background: #25426A;
  color: #eeeeee;
  padding: 38px 0 28px 0;
  width: 100%;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 20px rgba(24,46,82,.07);
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-menu a {
  color: #EEEEEE;
  font-weight: 500;
  font-size: .98rem;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #39A1A6;
}
.company-info {
  text-align: center;
  color: #eeeeee;
  font-size: .98rem;
}
.company-info a {
  color: #39A1A6;
  text-decoration: underline;
}
.company-info a:hover, .company-info a:focus {
  color: #EEEEEE;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  background: #fff;
  color: #263648;
  box-shadow: 0 -2px 24px rgba(25,66,106,0.09);
  border-top: 2.5px solid #17686B;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 30px;
  min-height: 72px;
  opacity: 1;
  transition: transform 0.26s cubic-bezier(.97,.0,.39,1), opacity 0.19s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(140px);
}
.cookie-banner__text {
  font-size: 1rem;
  color: #25426A;
  margin-right: 20px;
  flex: 1 1 60%;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: #17686B;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  transition: background .15s, color .11s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(55,140,146,0.10);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #25426A;
  color: #fff;
}
.cookie-btn.secondary {
  background: #EEEEEE;
  color: #17686B;
  border: 1.3px solid #25426A;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #25426A;
  color: #fff;
}
/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 98vw;
  max-width: 400px;
  background: #fff;
  color: #25426A;
  border-radius: 18px;
  box-shadow: 0 6px 48px rgba(24,46,82,0.21);
  padding: 36px 30px 30px 30px;
  transform: translate(-50%, -56%);
  z-index: 310;
  display: none;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  transition: opacity 0.18s, transform 0.26s;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-modal__header h2 {
  font-size: 1.32rem;
  color: #17686B;
  margin-bottom: 0;
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #17686B;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 7px;
  transition: background 0.16s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #EEEEEE;
  color: #25426A;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #25426A;
}
.cookie-toggle {
  width: 40px;
  height: 21px;
  border-radius: 18px;
  background: #EEEEEE;
  position: relative;
  margin-right: 4px;
  transition: background 0.16s;
  flex-shrink: 0;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle__slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  background: #17686B;
  border-radius: 100px;
  transition: transform 0.19s;
  transform: translateX(0);
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle__slider {
  background: #17686B;
  transform: translateX(17px);
}
.cookie-category.essential .cookie-toggle {
  background: #b2bec6;
}
.cookie-category.essential label {
  color: #b2bec6;
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* === MEDIA QUERIES: RESPONSIVE FLEX LAYOUT === */
@media (max-width: 900px) {
  .feature-grid, .service-list, .testimonials-list, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .company-info {
    font-size: .96rem;
  }
  .feature, .service, .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
    border-radius: 12px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.16rem; }
  .testimonials-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .feature, .service, .testimonial-card {
    min-width: unset;
    max-width: unset;
  }
  .footer-menu {
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 18px 11px;
    gap: 12px;
    min-height: 84px;
  }
  .cookie-banner__text {
    margin-right: 0;
    font-size: .98rem;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.175rem; }
  .cta-btn, .cookie-btn {
    font-size: .97rem;
    padding: 9px 14px;
    min-width: 105px;
  }
  .section {
    padding: 18px 4px;
    margin-bottom: 30px;
  }
  .footer-menu {
    gap: 7px;
    font-size: .92rem;
  }
  .company-info {
    font-size: .93rem;
  }
  footer {
    padding: 22px 0 18px 0;
    border-radius: 11px 11px 0 0;
  }
}

/* === UTILITIES and MICRO-INTERACTIONS === */
::-webkit-scrollbar {
  width: 8px;
  background: #F7F9FA;
}
::-webkit-scrollbar-thumb {
  background: #EEEEEE;
  border-radius: 12px;
}
::-webkit-input-placeholder { color:#b2bec6; }
:-ms-input-placeholder { color:#b2bec6; }
::placeholder {
  color: #b2bec6;
  opacity: 1;
}

input:focus, textarea:focus {
  outline: 2px solid #17686B;
  background: #F5F7F7;
  transition: outline 0.19s, background 0.15s;
}

/* Animation for transitions */
.fade-in {
  animation: fadeIn .6s cubic-bezier(.96,0,.37,.99) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* SCANDINAVIAN DESIGN EFFECTS */
.feature, .service, .testimonial-card, .card,
.section, .cookie-modal, .cookie-banner {
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(55,140,146,0.07);
  /* soft, natural, airy cards */
}

/* Make selection feel like paper highlight */
::selection {
  background: #D4F2F5;
  color: #25426A;
}

/* ---- Accessibility: High Contrast for Testimonials ---- */
.testimonial-card {
  background: #fff;
  color: #263648;
  border: 1.5px solid #EEEEEE;
}
.testimonial-card p, .testimonial-card strong {
  color: #204061;
}

/* ---- Other helpers ---- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }

/* ---- Hide on mobile ---- */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

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