/*
Theme Name: Deskora Starter
Theme URI: https://deskora.it/starter
Author: Deskora Development
Author URI: https://deskora.it
Description: A clean, modern starter theme built for performance and flexibility. Designed for Deskora S.r.l.
Version: 1.4.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deskora-starter
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* Base */
html { scroll-behavior: smooth; }

.skip-link.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Scroll animations */
.animate-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header scroll state */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Button hover micro-interactions */
.wp-element-button {
  transition: all 0.2s ease;
}
.wp-element-button:hover {
  transform: scale(1.02);
}
.wp-element-button:active {
  transform: scale(0.98);
}

/* Card hover */
[style*="border-box"] {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
[style*="border-box"]:hover {
  transform: translateY(-2px);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

/* Link hover */
a {
  transition: color 0.15s ease;
}

/* Highlight marker heading pseudo */
.prose h2 {
  position: relative;
  display: inline;
}

/* Cookie banner entrance */
#cookie-banner {
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu transition */
#mobile-menu {
  transition: opacity 0.3s ease;
}
#mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
}
#mobile-menu:not(.hidden) {
  opacity: 1;
}

/* Columns masonry for testimonials */
@media (min-width: 640px) {
  .columns-1.sm\:columns-2 { columns: 2; }
}
@media (min-width: 1024px) {
  .columns-1.sm\:columns-2.lg\:columns-3 { columns: 3; }
}

/* Gradient border cards */
.gradient-border-card {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #4ade80, #16a34a) border-box;
  border: 2px solid transparent;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .site-header, .site-footer, #cookie-banner, #mobile-menu { display: none !important; }
  main { padding-top: 0 !important; }
}
