/*
Theme Name: Limex
Theme URI: https://limex.ee
Author: Limex OÜ
Description: Limex OÜ — traditsiooniline lubja tootmine Saaremaal
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.2
License: Proprietary
Text Domain: limex
*/

/* CSS Custom Properties — must match React index.css exactly */
:root {
  --background: 0 0% 100%;
  --foreground: 210 40% 18%;
  --card: 0 0% 100%;
  --card-foreground: 210 40% 18%;
  --popover: 0 0% 100%;
  --popover-foreground: 210 40% 18%;
  --primary: 207 65% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 207 50% 92%;
  --secondary-foreground: 210 50% 25%;
  --muted: 207 30% 95%;
  --muted-foreground: 210 15% 45%;
  --accent: 210 55% 38%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 207 30% 88%;
  --input: 207 30% 88%;
  --ring: 207 65% 56%;
  --radius: 0.375rem;
  --hero-overlay: linear-gradient(180deg, hsla(210,50%,20%,0.35) 0%, hsla(210,60%,25%,0.75) 100%);
  --surface-warm: 207 50% 96%;
  --limestone: 207 40% 92%;
}

html, body {
  overflow-x: hidden;
}

/* Custom component classes matching React index.css */
.page-section {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .page-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
@media (min-width: 1024px) {
  .page-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .page-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-title { font-size: 3rem; } }

.content-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .content-prose { font-size: 1.125rem; } }
.content-prose p { line-height: 1.75; }

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s;
}
.image-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

/* bg-surface-warm utility */
.bg-surface-warm { background-color: hsl(var(--surface-warm)); }

/* Nav rohkem right-aligned dropdown */
.nav-rohkem-wrapper > div:last-child {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}
