/* Custom styles for hinauslaite.fi */

/* Ensure brand colors are applied consistently */
.bg-brand {
  background-color: #1f7b6e;
}

.text-brand {
  color: #1f7b6e;
}

.border-brand {
  border-color: #1f7b6e;
}

.hover\:bg-brand:hover {
  background-color: #1f7b6e;
}

.hover\:text-brand:hover {
  color: #1f7b6e;
}

.hover\:border-brand:hover {
  border-color: #1f7b6e;
}

/* Focus states for accessibility */
.focus\:ring-brand:focus {
  --tw-ring-color: #1f7b6e;
}

/* Button styles */
.btn-brand {
  background-color: #1f7b6e;
  color: white;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-brand:hover {
  background-color: #1a695d;
}

/* Gradient backgrounds */
.bg-gradient-brand {
  background: linear-gradient(135deg, #1f7b6e 0%, #146559 100%);
}

/* Section spacing */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Product card styles */
.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.product-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-buttons {
  margin-top: auto;
  padding-top: 1rem;
}

.product-card .card-buttons .inline-flex {
  flex: 1;
}

/* Responsive improvements for product cards */
@media (max-width: 640px) {
  .product-card .card-buttons {
    flex-direction: column;
  }
  
  .product-card .card-buttons .inline-flex {
    width: 100%;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Navigation link active states */
.nav-link-active {
  color: #1f7b6e;
  font-weight: 600;
}

/* Form styles */
.form-input {
  border-color: #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.form-input:focus {
  border-color: #1f7b6e;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(31, 123, 110, 0.2);
}

/* Critical inline styles moved from head.php */
.link:hover {
  text-decoration: underline;
}

.hp-trap {
  position: absolute !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.font-ui {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.font-heading {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

/* Critical layout styles to prevent FOUC */
.min-h-\[28rem\] {
  min-height: 28rem;
}

@media (min-width: 768px) {
  .md\:min-h-\[38rem\] {
    min-height: 38rem;
  }
}

.object-cover {
  object-fit: cover;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  inset: 0;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}