/*
Theme Name: SmartSafe Europe Child
Theme URI: https://smartsafe-europe.com/
Description: Child theme for the SmartSafe Europe B2B catalogue, based on Blocksy.
Author: SmartSafe Europe
Author URI: https://smartsafe-europe.com/
Template: blocksy
Version: 1.0.0
Text Domain: smartsafe-europe
Requires at least: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ss-red: #a12312;
  --ss-red-dark: #7f1b0e;
  --ss-anthracite: #383e42;
  --ss-anthracite-dark: #252a2d;
  --ss-surface: #f1f3f4;
  --ss-border: #d4d8da;
  --ss-text: #2a2e31;
  --ss-muted: #626a70;
  --ss-white: #ffffff;
  --ss-radius: 10px;
  --ss-shadow: 0 18px 45px -28px rgb(37 42 45 / 42%);
}

/* Base brand typography. System fallbacks keep the site fast and GDPR-friendly. */
body {
  color: var(--ss-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.025em;
}

/* Reusable components for the pages that will be migrated from the AI site. */
.ss-section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.ss-section--light {
  background:
    radial-gradient(circle at 85% 5%, rgb(161 35 18 / 7%), transparent 34%),
    var(--ss-surface);
}

.ss-section--dark {
  background:
    radial-gradient(circle at 85% 5%, rgb(161 35 18 / 22%), transparent 36%),
    linear-gradient(150deg, var(--ss-anthracite-dark), var(--ss-anthracite));
  color: var(--ss-white);
}

.ss-eyebrow {
  align-items: center;
  color: var(--ss-red);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ss-eyebrow::before {
  background: currentColor;
  content: "";
  height: 1px;
  width: 1.75rem;
}

.ss-card {
  background: var(--ss-white);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  box-shadow: var(--ss-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ss-card:hover {
  border-color: rgb(161 35 18 / 45%);
  box-shadow: 0 24px 54px -28px rgb(37 42 45 / 52%);
  transform: translateY(-4px);
}

.ss-button,
.wp-element-button.ss-button {
  align-items: center;
  background: var(--ss-red);
  border: 1px solid var(--ss-red);
  border-radius: 6px;
  color: var(--ss-white);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ss-button:hover,
.ss-button:focus-visible,
.wp-element-button.ss-button:hover,
.wp-element-button.ss-button:focus-visible {
  background: var(--ss-red-dark);
  border-color: var(--ss-red-dark);
  color: var(--ss-white);
  transform: translateY(-1px);
}

.ss-button:focus-visible {
  outline: 3px solid rgb(161 35 18 / 28%);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .ss-card,
  .ss-button,
  .wp-element-button.ss-button {
    transition: none;
  }
}
