/* Livstag static site — design tokens aligned with Next.js globals.css */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(240 10% 3.9%);
  --primary: hsl(158 68% 41%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(0 0% 96.1%);
  --secondary-30: hsl(0 0% 96.1% / 0.85);
  --muted-foreground: hsl(0 0% 45.1%);
  --border: hsl(0 0% 89.8%);
  --radius: 0.5rem;
  --container-max: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}

.font-headline {
  font-family: Inter, system-ui, sans-serif;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 12rem;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: auto;
  max-height: 7rem;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  border-radius: 0.75rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(240 10% 3.9% / 0.8);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language dropdown */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: inherit;
}

.lang-btn:hover {
  background: hsl(0 0% 96.1%);
}

.lang-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lang-details {
  position: relative;
}

.lang-details > summary {
  list-style: none;
  cursor: pointer;
}

.lang-details > summary::-webkit-details-marker {
  display: none;
}

.lang-details[open] .lang-btn {
  background: hsl(0 0% 96.1%);
}

.lang-details .lang-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  min-width: 11rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.08);
  z-index: 60;
}

.lang-details[open] .lang-panel {
  display: block;
}

html[dir="rtl"] .lang-details .lang-panel {
  right: auto;
  left: 0;
}

.lang-details .lang-panel a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
}

.lang-details .lang-panel a:hover {
  background: hsl(128 50% 55% / 0.15);
}

.lang-details .lang-panel a.is-current {
  font-weight: 600;
  background: hsl(128 50% 55% / 0.2);
}

/* Mobile menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle:hover {
  background: hsl(0 0% 96.1%);
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.mobile-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(400px, 88vw);
  background: #fff;
  box-shadow: 4px 0 24px rgb(0 0 0 / 0.12);
  padding: 1.25rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mobile-drawer nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.mobile-drawer nav a:hover {
  background: hsl(0 0% 96.1%);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(to bottom right, var(--background), var(--secondary-30));
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 10rem 0;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  color: hsl(240 10% 3.9% / 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero .btn-wrap {
  margin-top: 2.5rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.section-muted {
  background: hsl(0 0% 96.1% / 0.85);
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 1rem auto 0;
  max-width: 36rem;
  text-align: center;
  font-size: 1.125rem;
  color: hsl(240 10% 3.9% / 0.8);
}

/* Cards grid */
.grid-cards {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-cards.cols-refs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-cards.cols-services {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cards.cols-refs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-cards.cols-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-cards.cols-products {
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-cards.cols-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.card-header {
  padding: 1rem;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 640px) {
  .card-title {
    font-size: 1.125rem;
  }
}

.card-body {
  padding: 1rem;
}

.card-body.center {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  background: var(--background);
}

.ref-logo-wrap {
  position: relative;
  width: 8rem;
  height: 4rem;
}

@media (min-width: 640px) {
  .ref-logo-wrap {
    width: 9rem;
    height: 5rem;
  }
}

.ref-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-icon-wrap {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 9999px;
  background: hsl(158 68% 41% / 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-icon-wrap svg {
  width: 2rem;
  height: 2rem;
}

.service-card .card-header {
  text-align: center;
  align-items: center;
}

.service-card .card-title {
  font-size: 1.25rem;
}

.card-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* Products */
.product-card .card-title {
  text-align: left;
  font-size: 1.5rem;
}

.product-card .card-desc {
  text-align: left;
  margin-bottom: 1.5rem;
}

.product-link-wrap {
  margin: 1.5rem 0 0;
}

/* Home product banner */
.home-app-banner {
  padding: 2.25rem 0 3rem;
  background: hsl(220 18% 12%);
  border-top: 1px solid hsl(0 0% 100% / 0.06);
}

.home-app-banner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
  color: #fff;
  text-align: center;
  padding: 0.25rem 0;
}

.home-app-banner-icon {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.55rem;
  object-fit: cover;
  overflow: hidden;
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.12),
    0 10px 28px hsl(0 0% 0% / 0.4);
  flex-shrink: 0;
}

.home-app-banner-copy {
  min-width: 0;
}

.home-app-banner-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-app-banner-text {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: hsl(0 0% 100% / 0.72);
  max-width: 36rem;
}

.home-app-banner-cta {
  flex-shrink: 0;
  pointer-events: none;
  background: hsl(0 0% 100% / 0.1);
  color: #fff;
  border: 1px solid hsl(0 0% 100% / 0.18);
}

.home-app-banner-link:hover .home-app-banner-cta {
  background: hsl(0 0% 100% / 0.16);
}

@media (min-width: 768px) {
  .home-app-banner {
    padding: 2.5rem 0 3.25rem;
  }

  .home-app-banner-link {
    flex-direction: row;
    text-align: left;
    gap: 1.35rem;
  }

  .home-app-banner-copy {
    flex: 1;
  }

  .home-app-banner-text {
    max-width: none;
  }
}

.features-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.feature-list svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: #22c55e;
}

/* Contact */
.contact-grid {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .error-msg {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: hsl(0 84% 50%);
  display: none;
}

.form-group.is-invalid .error-msg {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid textarea {
  border-color: hsl(0 84% 50%);
}

.btn-block {
  width: 100%;
}

.alert {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-side h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

html[dir="rtl"] .contact-row {
  flex-direction: row-reverse;
}

.contact-row svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.15rem;
}

.contact-row.centered {
  align-items: center;
}

.contact-row a {
  color: inherit;
  text-decoration: none;
}

.contact-row a:hover {
  color: var(--primary);
}

.legal-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-block h4 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.legal-block p {
  margin: 0.35rem 0;
  font-size: 0.875rem;
  color: hsl(240 10% 3.9% / 0.8);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}

.wa-fab:hover {
  transform: scale(1.08);
  background: #15803d;
}

.wa-fab svg {
  width: 1.75rem;
  height: 1.75rem;
}

html[dir="rtl"] .wa-fab {
  right: auto;
  left: 1.5rem;
}

/* Privacy / legal pages */
.privacy-content {
  max-width: 48rem;
  margin: 0 auto;
}

.privacy-meta {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.privacy-section {
  margin-top: 2.5rem;
}

.privacy-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.privacy-section p {
  margin: 0 0 0.75rem;
  color: hsl(240 10% 3.9% / 0.85);
  line-height: 1.7;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

/* Utilities */
.text-center {
  text-align: center;
}
.mt-12 {
  margin-top: 3rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
