/*
Theme Name: Sregen Fresh
Theme URI: https://sregenlabs.com
Author: Sregen Labs
Description: Block theme for Sregen Labs: Lovable-aligned look (Inter, indigo–purple gradients, teal accent), Site Editor patterns, contact form.
Version: 1.3.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sregen-fresh
*/

/* Lovable / nexaapps-aligned design tokens (matches theme.json) */
:root {
  --sregen-primary: #4c61f5;
  --sregen-primary-end: #7c52f5;
  --sregen-accent: #14b8a6;
  --sregen-hero-mesh: linear-gradient(
    160deg,
    hsl(234 85% 55% / 0.06) 0%,
    hsl(174 72% 46% / 0.1) 100%
  );
  --sregen-shadow-primary: 0 8px 40px -8px hsl(234 85% 55% / 0.35);
  --sregen-shadow-card: 0 4px 24px -4px hsl(224 30% 12% / 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sticky glass header (Lovable-style navbar) */
.sregen-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgb(255 255 255 / 0.88) !important;
  border-bottom: 1px solid var(--wp--preset--color--border-subtle, #e2e8f0);
}

/* Gradient primary button (block style) */
.wp-block-button.is-style-sregen-gradient .wp-block-button__link {
  background: linear-gradient(
    135deg,
    hsl(234 85% 55%) 0%,
    hsl(258 80% 58%) 100%
  );
  border: none;
  color: #fff !important;
  font-weight: 600;
  box-shadow: var(--sregen-shadow-primary);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button.is-style-sregen-gradient .wp-block-button__link:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 40px -8px hsl(234 85% 55% / 0.45);
}

/* Outline button tuned to Lovable */
.wp-block-button.is-style-sregen-outline .wp-block-button__link {
  background: transparent;
  color: var(--sregen-primary) !important;
  border: 2px solid hsl(234 85% 55% / 0.35);
  font-weight: 600;
}

.wp-block-button.is-style-sregen-outline .wp-block-button__link:hover {
  background: hsl(234 85% 55% / 0.08);
  border-color: hsl(234 85% 55% / 0.55);
}

/* Card surface (group block style) */
.wp-block-group.is-style-sregen-card {
  background-color: var(--wp--preset--color--card, #f8fafc);
  border: 1px solid var(--wp--preset--color--border-subtle, #e2e8f0);
  border-radius: 0.75rem;
  box-shadow: var(--sregen-shadow-card);
}

/* Gradient text utility (wrap heading in span in editor or use pattern HTML) */
.sregen-text-gradient {
  background: linear-gradient(135deg, hsl(234 85% 55%), hsl(258 80% 58%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* Logo mark in header */
.sregen-logo-mark {
  min-width: 2rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
