/*
 * RG Tecnoservice Theme — Foundation
 * Version: 1.0.1
 * Scope: .rg-site
 * Global tokens, typography, layout and section headers.
 */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

.rg-site {
  --rg-blue-950: #061a35;
  --rg-blue-900: #08264f;
  --rg-blue-800: #0a3472;
  --rg-blue-700: #125094;
  --rg-blue-100: #eaf1f8;

  --rg-green-800: #066524;
  --rg-green-700: #087b2a;
  --rg-green-600: #0a8b2d;
  --rg-green-100: #e9f6ed;

  --rg-ink: #202a36;
  --rg-muted: #667383;
  --rg-line: #dce3ea;
  --rg-surface: #ffffff;
  --rg-surface-soft: #f4f7f9;
  --rg-surface-warm: #faf9f7;

  --rg-success: #147a38;
  --rg-danger: #c43d3d;
  --rg-warning: #a66c00;

  --rg-shadow-xs: 0 4px 12px rgba(6, 26, 53, .045);
  --rg-shadow-sm: 0 8px 22px rgba(6, 26, 53, .065);
  --rg-shadow-md: 0 18px 48px rgba(6, 26, 53, .10);

  --rg-radius-xs: 4px;
  --rg-radius-sm: 6px;
  --rg-radius-md: 10px;
  --rg-radius-lg: 16px;

  --rg-container: 1222px;
  --rg-gutter: 20px;
  --rg-section-y: 88px;
  --rg-header-offset: 92px;

  --rg-font-title: "Kumbh Sans", Arial, Helvetica, sans-serif;
  --rg-font-text: "Inter", Arial, Helvetica, sans-serif;

  --rg-ease: cubic-bezier(.2, .7, .2, 1);
  --rg-transition: .22s var(--rg-ease);

  color: var(--rg-ink);
  font-family: var(--rg-font-text);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;

  /* Legacy aliases retained during the WoodMart migration.
     They are plain CSS variables and do not load or depend on WoodMart. */
  --wd-primary-color: var(--rg-green-600);
  --wd-alternative-color: var(--rg-blue-800);
  --wd-title-color: var(--rg-blue-950);
  --wd-text-color: var(--rg-muted);
  --wd-link-color: var(--rg-blue-800);
  --wd-link-color-hover: var(--rg-green-700);

  --btn-accented-bgcolor: var(--rg-green-600);
  --btn-accented-bgcolor-hover: var(--rg-green-700);
  --btn-accented-color: #fff;
  --btn-accented-color-hover: #fff;
  --btn-accented-brd-radius: var(--rg-radius-xs);
  --btn-accented-box-shadow: none;
  --btn-accented-box-shadow-hover: var(--rg-shadow-xs);

  --wd-form-brd-width: 1px;
  --wd-form-brd-radius: var(--rg-radius-xs);
}

/* ==========================================================================
   02. SCOPED BASE
   ========================================================================== */

.rg-site,
.rg-site *,
.rg-site *::before,
.rg-site *::after {
  box-sizing: border-box;
}

.rg-site img,
.rg-site svg,
.rg-site video {
  display: block;
  max-width: 100%;
}

.rg-site a {
  color: var(--rg-blue-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color var(--rg-transition),
    background-color var(--rg-transition),
    border-color var(--rg-transition),
    opacity var(--rg-transition),
    transform var(--rg-transition),
    box-shadow var(--rg-transition);
}

.rg-site a:hover {
  color: var(--rg-green-700);
}

.rg-site button,
.rg-site input,
.rg-site select,
.rg-site textarea {
  font: inherit;
}

.rg-site :is(section, [id]) {
  scroll-margin-top: var(--rg-header-offset);
}

.rg-site :focus-visible {
  outline: 3px solid rgba(18, 80, 148, .22);
  outline-offset: 3px;
}

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

.rg-site :is(h1, h2, h3, h4, h5, h6),
.rg-site .title {
  margin-top: 0;
  color: var(--rg-blue-950);
  font-family: var(--rg-font-title);
  font-style: normal;
  letter-spacing: -.02em;
}

.rg-site h1,
.rg-site .rg-h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.rg-site h2,
.rg-site .rg-h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.11;
}

.rg-site h3,
.rg-site .rg-h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.rg-site h4,
.rg-site .rg-h4 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.rg-site :is(p, li) {
  color: var(--rg-muted);
  font-family: var(--rg-font-text);
}

.rg-site p {
  margin-top: 0;
  margin-bottom: 18px;
}

.rg-site p:last-child {
  margin-bottom: 0;
}

.rg-site .rg-lead {
  max-width: 760px;
  color: var(--rg-muted);
  font-size: 18px;
  line-height: 1.72;
}

.rg-site .rg-small {
  font-size: 13px;
  line-height: 1.55;
}

.rg-site .rg-kicker,
.rg-site .title-subtitle,
.rg-site .rg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--rg-green-700) !important;
  font-family: var(--rg-font-title);
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.rg-site .rg-kicker::before,
.rg-site .rg-eyebrow::before {
  content: "";
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  background: currentColor;
}

/* ==========================================================================
   04. LAYOUT
   ========================================================================== */

.rg-site .rg-container {
  width: min(calc(100% - (var(--rg-gutter) * 2)), var(--rg-container));
  margin-inline: auto;
}

.rg-site .rg-section {
  position: relative;
  padding-block: var(--rg-section-y);
}

.rg-site .rg-section--white {
  background: var(--rg-surface);
}

.rg-site .rg-section--soft {
  background: var(--rg-surface-soft);
}

.rg-site .rg-section--warm {
  background: var(--rg-surface-warm);
}

.rg-site .rg-section--dark {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 48%),
    var(--rg-blue-950);
}

.rg-site .rg-section--blue {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .05), transparent 50%),
    var(--rg-blue-900);
}

.rg-site .rg-grid {
  display: grid;
  gap: 24px;
}

.rg-site .rg-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rg-site .rg-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rg-site .rg-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rg-site .rg-stack {
  display: grid;
  gap: 20px;
}

.rg-site .rg-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rg-site .rg-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

/* ==========================================================================
   05. SECTION HEADERS
   ========================================================================== */

.rg-site .rg-section-head {
  max-width: 790px;
  margin-bottom: 44px;
}

.rg-site .rg-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.rg-site .rg-section-head--center :is(.rg-kicker, .rg-eyebrow) {
  justify-content: center;
}

.rg-site .rg-section-head > :last-child {
  margin-bottom: 0;
}

.rg-site .rg-section--dark :is(h1, h2, h3, h4, h5, h6),
.rg-site .rg-section--blue :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
}

.rg-site .rg-section--dark :is(p, li),
.rg-site .rg-section--blue :is(p, li) {
  color: rgba(255, 255, 255, .74);
}

.rg-site .rg-section--dark :is(.rg-kicker, .rg-eyebrow),
.rg-site .rg-section--blue :is(.rg-kicker, .rg-eyebrow) {
  color: #6de391 !important;
}
