/*--------------------------------------------------------------
# KeeNet – site specific additions on top of the Sailor template (main.css)
--------------------------------------------------------------*/

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--accent-color);
  color: var(--contrast-color);
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  color: var(--contrast-color);
}

:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Header logo as span (one H1 per page) */
.header .logo .sitename {
  font-family: var(--heading-font);
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  text-transform: uppercase;
  line-height: 1;
}

.header .logo img {
  max-height: 32px;
}

/* Mobile nav toggle rendered as a button */
button.mobile-nav-toggle {
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
}

/* Language switcher */
.navmenu .lang-switch a {
  font-weight: 600;
}

.navmenu .lang-switch a {
  gap: 6px;
}

/* The template gives every menu icon a left margin and a baseline offset – reset both here */
.navmenu .lang-switch a i {
  margin: 0;
  font-size: 15px;
  line-height: 1;
}

.navmenu .lang-switch a i::before {
  vertical-align: 0;
}

@media (min-width: 1200px) {
  .navmenu .lang-switch a,
  .navmenu li.lang-switch:last-child a {
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--nav-color), transparent 70%);
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 18px;
    line-height: 1;
  }
}

/* Hero: the first slide carries the page H1 */
.hero h1 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    max-width: 60%;
  }
}

/* Section titles: small label + real H2 heading, same look as the template */
.section-title .section-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-bottom: 18px;
}

.section-title .section-label::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title h2.section-heading {
  color: var(--heading-color);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  font-family: var(--heading-font);
  letter-spacing: normal;
}

.section-title h2.section-heading::after {
  display: none;
}

.section-title .section-lead {
  margin-top: 14px;
  max-width: 820px;
  font-size: 16px;
  text-transform: none;
  font-weight: 400;
  font-family: var(--default-font);
  color: var(--default-color);
}

.section-title.text-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 575px) {
  .section-title h2.section-heading {
    font-size: 22px;
  }

  .section-title .section-label::after {
    width: 60px;
  }
}

/* Page title bar lead text */
.page-title .page-lead {
  margin: 8px 0 0;
  max-width: 760px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Service category cards (home) */
.category-card {
  background: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--accent-color);
  padding: 30px;
  height: 100%;
}

.category-card .category-icon {
  font-size: 34px;
  color: var(--accent-color);
}

.category-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0 16px;
}

.category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-card li {
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.category-card li:last-child {
  border-bottom: 0;
}

.category-card li a {
  color: var(--default-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-card li a i {
  color: var(--accent-color);
}

.category-card li a:hover {
  color: var(--accent-color);
}

/* Service items without link title */
.services .service-item .title {
  font-size: 18px;
}

.services .service-item .more {
  font-size: 14px;
  font-weight: 600;
}

/* Process steps */
.process-step {
  text-align: center;
  padding: 20px;
  height: 100%;
}

.process-step .step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  color: var(--accent-color);
  font-size: 28px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
}

.process-step p {
  font-size: 15px;
  margin: 0;
}

/* Product cards (pricing look) */
.pricing .pricing-item {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing .pricing-item .product-icon {
  font-size: 36px;
  color: var(--accent-color);
}

.pricing .pricing-item h4 {
  font-size: 22px;
  margin-top: 8px;
}

.pricing .pricing-item .summary {
  font-size: 14px;
  min-height: 3em;
}

.pricing .pricing-item ul {
  text-align: left;
  flex-grow: 1;
}

.pricing .pricing-item h3 a {
  color: inherit;
}

.pricing .btn-wrap .btn-link-more {
  display: inline-block;
  margin-right: 12px;
  font-weight: 600;
  font-size: 14px;
}

/* FAQ (native details/summary – works without JavaScript) */
.faq-list details {
  background: var(--surface-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  border-left: 3px solid transparent;
  transition: border-color 0.3s;
}

.faq-list details[open] {
  border-left-color: var(--accent-color);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  font-family: var(--heading-font);
  color: var(--heading-color);
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "\F282";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 20px;
  top: 18px;
  transition: transform 0.3s;
  color: var(--accent-color);
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list .faq-answer {
  padding: 0 20px 18px;
}

.faq-list .faq-answer p {
  margin: 0;
}

/* Call to action band */
.cta-band {
  padding: 60px 0;
}

.cta-band h2 {
  font-size: 28px;
  font-weight: 700;
}

.cta-band .cta-btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 4px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
  font-weight: 600;
  font-family: var(--heading-font);
  transition: 0.3s;
  margin: 6px;
}

.cta-band .cta-btn.primary,
.cta-band .cta-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.cta-band .cta-btn.primary:hover {
  background: transparent;
  border-color: var(--contrast-color);
}

/* Offering detail page */
.service-details .offering-intro p {
  font-size: 17px;
}

.service-details .detail-block {
  margin-top: 36px;
}

.service-details .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.service-details .tech-list li {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--heading-color);
}

.service-details .services-list .list-group-title {
  display: block;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--heading-color);
  margin-bottom: 10px;
}

.service-details .quote-box {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 30px;
  margin-top: 30px;
}

.service-details .quote-box h3,
.service-details .quote-box p {
  color: var(--contrast-color);
}

.service-details .quote-box a.btn-quote {
  display: inline-block;
  background: var(--contrast-color);
  color: var(--accent-color);
  padding: 10px 26px;
  border-radius: 4px;
  font-weight: 600;
}

.service-details .quote-box a.phone {
  color: var(--contrast-color);
  font-weight: 600;
}

/* Blog content extras */
.blog-details .content ol,
.blog-details .content ul {
  margin-bottom: 1.2rem;
}

.blog-details .content li {
  margin-bottom: 6px;
}

.blog-details .content pre {
  background: #1f2933;
  color: #e4e7eb;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 14px;
  overflow-x: auto;
}

.blog-details .content code {
  color: var(--accent-color);
}

.blog-details .content pre code {
  color: inherit;
}

.blog-details .content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .blog-details .content table {
    display: table;
    white-space: normal;
  }
}

/* Formulas in articles: <p class="formula"> with <span class="frac"><span>num</span><span>den</span></span> */
.blog-details .content .formula {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
  padding: 14px 20px;
  font-size: 18px;
  line-height: 2;
  overflow-x: auto;
}

.blog-details .content .formula .frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  line-height: 1.4;
  margin: 0 4px;
  max-width: calc(100% - 64px);
}

.blog-details .content .formula .frac > span {
  padding: 2px 6px;
}

.blog-details .content .formula .frac > span + span {
  border-top: 1px solid currentColor;
}

@media (max-width: 575px) {
  .blog-details .content .formula {
    font-size: 15px;
    padding: 12px 14px;
  }
}

.blog-details .related-offers {
  margin-top: 30px;
  padding: 24px;
  background: color-mix(in srgb, var(--accent-color), transparent 93%);
  border-left: 3px solid var(--accent-color);
}

.blog-details .related-offers h4 {
  font-size: 18px;
  font-weight: 700;
}

.blog-details .related-offers ul {
  margin: 0;
  padding-left: 18px;
}

/* The width/height attributes only reserve space (no layout shift); CSS sets the real size */
.blog-posts .post-img img,
.blog-details .post-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.recent-posts-widget .post-item img {
  height: 60px;
  object-fit: cover;
}

.categories-widget ul a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* Blog cards on the home page */
.blog-card {
  background: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card .blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card .post-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.blog-card h3 a {
  color: var(--heading-color);
}

.blog-card h3 a:hover {
  color: var(--accent-color);
}

.blog-card time {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-top: auto;
}

/* Contact form extras */
.contact .php-email-form select,
.contact .php-email-form input[type=tel] {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form label.form-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact .php-email-form .form-check-label {
  font-size: 14px;
}

.contact .info-item a {
  color: var(--default-color);
}

.contact .info-item a:hover {
  color: var(--accent-color);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal pages */
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
}

.legal-content table {
  font-size: 15px;
}

.legal-content .table-responsive {
  margin-bottom: 20px;
}

/* Error page */
.error-page .error-code {
  font-size: 96px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  font-family: var(--heading-font);
}

/* Footer */
.footer .footer-contact a {
  color: var(--default-color);
}

.footer .footer-contact a:hover {
  color: var(--accent-color);
}

.footer .copyright .legal-links a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 0 8px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.page-title .page-heading {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 300;
}

/* Navigation: nested dropdowns open fully beside the parent menu instead of overlapping it */
@media (min-width: 1200px) {
  .navmenu .dropdown .dropdown ul {
    left: auto;
    right: calc(100% + 10px);
  }

  .navmenu .dropdown .dropdown:hover>ul {
    left: auto;
    right: 100%;
  }

  .navmenu .dropdown .dropdown ul li {
    min-width: 260px;
  }
}

/* Hero: larger, more readable slide text */
.hero .carousel-container p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

@media (min-width: 1024px) {
  .hero .carousel-container p {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .hero .carousel-container p {
    font-size: 17px;
  }
}

/* Product starting price */
.pricing .pricing-item h4 .from-label {
  font-size: 14px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.service-details .from-price a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--heading-color);
}

.service-details .from-price a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
}

/* Pricing table with CSS-only monthly / yearly switch */
.pricing-plans .billing-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pricing-plans .billing-switch {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 4px;
  border-radius: 50px;
  background: var(--surface-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pricing-plans .billing-switch label {
  cursor: pointer;
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--heading-font);
  color: var(--heading-color);
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-plans .billing-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #059652;
  color: #fff;
  white-space: nowrap;
}

#billing-monthly:checked ~ .billing-switch label[for="billing-monthly"],
#billing-yearly:checked ~ .billing-switch label[for="billing-yearly"] {
  background: var(--accent-color);
  color: var(--contrast-color);
}

#billing-monthly:focus-visible ~ .billing-switch label[for="billing-monthly"],
#billing-yearly:focus-visible ~ .billing-switch label[for="billing-yearly"] {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.pricing-plans .price-yearly,
#billing-yearly:checked ~ .plans .price-monthly {
  display: none;
}

#billing-yearly:checked ~ .plans .price-yearly {
  display: block;
}

#billing-yearly:checked ~ .plans .btn-buy.price-yearly {
  display: inline-block;
}

.pricing-plans .pricing-item h4 {
  font-size: 30px;
  margin: 10px 0 4px;
}

.pricing-plans .price-sub {
  font-size: 14px;
  min-height: 21px;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.pricing-plans .pricing-item.featured {
  box-shadow: 0 0 0 2px var(--accent-color), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pricing-plans .pricing-note {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

@media (max-width: 575px) {
  .pricing-plans .billing-switch label {
    padding: 8px 14px;
  }
}
