:root {
  --color-white: #f6f1ea;
  --color-text: #44515c;
  --color-text-soft: #66727c;
  --color-title: #1f2933;

  --color-primary: #1f2933;
  --color-primary-2: #314252;
  --color-primary-3: #5b6b7a;
  --color-accent: #b46e3c;
  --color-accent-soft: #d49766;
  --color-brown-soft: #8f6547;
  --color-burgundy: #2f6b5f;
  --color-burgundy-light: #588376;

  --rgb-slate: 31, 41, 51;
  --rgb-steel: 91, 107, 122;
  --rgb-copper: 180, 110, 60;
  --rgb-sand: 217, 199, 176;
  --rgb-forest: 47, 107, 95;

  --color-surface: rgba(246, 241, 234, 0.88);
  --color-surface-strong: #d9c7b0;
  --color-border: rgba(31, 41, 51, 0.12);
  --gradient-main: linear-gradient(
    135deg,
    #1f2933 0%,
    #4e6273 58%,
    #b46e3c 100%
  );
  --gradient-soft: linear-gradient(
    135deg,
    rgba(31, 41, 51, 0.08),
    rgba(91, 107, 122, 0.1),
    rgba(180, 110, 60, 0.14)
  );

  --shadow-sm: 0 10px 24px rgba(31, 41, 51, 0.1);
  --shadow-md: 0 22px 54px rgba(31, 41, 51, 0.14);
  --shadow-lg: 0 36px 90px rgba(31, 41, 51, 0.18);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --container: 1200px;

  --font-body: "Manrope", sans-serif;
  --font-title: "Syne", sans-serif;

  --transition: 0.35s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(
      circle at top left,
      rgba(180, 110, 60, 0.15),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(91, 107, 122, 0.14),
      transparent 26%
    ),
    linear-gradient(180deg, #f6f1ea 0%, #e7ddd1 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
iframe,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea {
  outline: none;
}

textarea {
  resize: none;
  min-height: 150px;
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

iframe {
  width: 100%;
  border: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section-padding {
  padding: 108px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(246, 241, 234, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
  margin-bottom: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--color-title);
  line-height: 1.08;
  text-wrap: balance;
}

p {
  color: var(--color-text-soft);
  font-size: 1rem;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: var(--gradient-main);
  box-shadow: 0 18px 34px rgba(180, 110, 60, 0.24);
}

.btn-secondary {
  color: var(--color-title);
  background: rgba(248, 244, 239, 0.94);
  border: 1px solid rgba(31, 41, 51, 0.08);
  box-shadow: var(--shadow-sm);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.section-head p {
  max-width: 68ch;
  margin: 0 auto;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 36px;
  align-items: center;
}

.section-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.section-copy p + p {
  margin-top: 16px;
}

.section-copy p {
  max-width: 68ch;
}

.section-copy .btn {
  margin-top: 24px;
}

.section-soft-bg {
  position: relative;
}

.section-soft-bg::before {
  content: "";
  position: absolute;
  inset: 28px 0;
  background: var(--gradient-soft);
  z-index: -1;
  border-radius: 48px;
}

.section-bg-image {
  position: relative;
  background-image: url("../images/global/section-fons.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 1;
}

.section-bg-image > * {
  position: relative;
  z-index: 2;
}

.site-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(255, 248, 241, 0.86),
    rgba(235, 220, 205, 0.86)
  );
  border: 1px solid rgba(75, 55, 40, 0.1);
  box-shadow: var(--shadow-sm);
}

.site-disclaimer::before {
  content: "Note";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 42, 22, 0.08);
  color: var(--color-primary-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-disclaimer p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.inline-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(79, 55, 40, 0.78);
}

.cards-2,
.cards-3,
.cards-4 {
  display: grid;
  gap: 18px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.step-card,
.note-card,
.route-card,
.situation-card,
.principle-card,
.use-case-card,
.helper-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: var(--shadow-sm);
}

.cards-3 > * {
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.cards-3 > *::before {
  content: none;
}

.cards-3 > *::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  --dash-color: rgba(92, 61, 44, 0.88);
  --dash-on: 12px;
  --dash-off: 10px;
  --dash-w: 2px;
  background:
    repeating-linear-gradient(
        90deg,
        var(--dash-color) 0 var(--dash-on),
        transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))
      )
      0 0 / 100% var(--dash-w) no-repeat,
    repeating-linear-gradient(
        180deg,
        var(--dash-color) 0 var(--dash-on),
        transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))
      )
      100% 0 / var(--dash-w) 100% no-repeat,
    repeating-linear-gradient(
        270deg,
        var(--dash-color) 0 var(--dash-on),
        transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))
      )
      0 100% / 100% var(--dash-w) no-repeat,
    repeating-linear-gradient(
        0deg,
        var(--dash-color) 0 var(--dash-on),
        transparent var(--dash-on) calc(var(--dash-on) + var(--dash-off))
      )
      0 0 / var(--dash-w) 100% no-repeat;
  animation: cards3DashClockwise 1.4s linear infinite;
}

.cards-3 > *:hover {
  transform: translateY(-7px) rotateX(4deg) rotateY(-3deg);
  box-shadow: 0 14px 30px rgba(48, 28, 18, 0.14);
}

.cards-3 > *:nth-child(even):hover {
  transform: translateY(-7px) rotateX(4deg) rotateY(3deg);
}

.cards-3 > * > * {
  position: relative;
  z-index: 2;
  transform: translateZ(16px);
}

.cards-3 h3 {
  color: var(--color-title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cards-3 p {
  color: rgba(48, 31, 22, 0.94);
}

.cards-3 i,
.cards-3 .step-card span {
  transform: translateZ(28px);
}

.info-card i,
.note-card i,
.route-card i,
.situation-card i,
.principle-card i,
.use-case-card i,
.helper-card i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 60, 40, 0.12);
  color: var(--color-primary-2);
  margin-bottom: 18px;
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: middle;
}

.step-card span {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1;
  vertical-align: middle;
}

@media (max-width: 991px) {
  .section-padding {
    padding: 76px 0;
  }

  .section-grid,
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }

  .cards-3 > *:hover,
  .cards-3 > *:nth-child(even):hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 62px 0;
  }

  .container {
    width: min(100% - 20px, var(--container));
  }

  .section-grid,
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .cards-3 > *:hover,
  .cards-3 > *:nth-child(even):hover {
    transform: none;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards-3 > * {
    transition: none;
  }

  .cards-3 > *::after {
    animation: none;
  }

  .cards-3 > *:hover,
  .cards-3 > *:nth-child(even):hover {
    transform: none;
  }
}

@keyframes cards3DashClockwise {
  to {
    background-position:
      44px 0,
      100% 44px,
      -44px 100%,
      0 -44px;
  }
}

/* Modern UI refresh: quieter palette, tighter radii, flatter surfaces */
:root {
  --color-white: #f7f5f2;
  --color-text: #475467;
  --color-text-soft: #667085;
  --color-title: #111827;
  --color-primary: #111827;
  --color-primary-2: #1f2937;
  --color-primary-3: #344054;
  --color-accent: #b35c2e;
  --color-accent-soft: #cc7a4f;
  --color-surface: rgba(255, 255, 255, 0.94);
  --color-surface-strong: #f1ede6;
  --color-border: rgba(17, 24, 39, 0.1);
  --gradient-main: linear-gradient(180deg, #111827 0%, #111827 100%);
  --gradient-soft: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.035),
    rgba(17, 24, 39, 0.035)
  );
  --shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 16px 36px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 24px 56px rgba(17, 24, 39, 0.1);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-title: "Manrope", sans-serif;
}

body {
  background: #f7f5f2;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--color-border);
  box-shadow: none;
}

.btn {
  min-height: 52px;
  border-radius: var(--radius-sm);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  box-shadow: 0 8px 20px rgba(179, 92, 46, 0.18);
}

.btn-primary:hover {
  background: #9c5323;
}

.btn-secondary {
  background: #fff;
  border-color: var(--color-border);
  box-shadow: none;
}

.section-soft-bg::before {
  inset: 0;
  border-radius: 24px;
  background: #f1ede6;
}

.site-disclaimer {
  border-radius: var(--radius-md);
  background: #fff;
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-disclaimer::before {
  background: rgba(17, 24, 39, 0.06);
}

.inline-disclaimer {
  color: var(--color-text-soft);
}

.info-card,
.step-card,
.note-card,
.route-card,
.situation-card,
.principle-card,
.use-case-card,
.helper-card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.cards-3 {
  perspective: none;
  transform-style: flat;
}

.cards-3 > * {
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform-style: flat;
}

.cards-3 > *::after {
  content: none;
}

.cards-3 > *:hover,
.cards-3 > *:nth-child(even):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cards-3 > * > * {
  transform: none;
}

.cards-3 h3,
.cards-3 p {
  text-shadow: none;
}

.cards-3 p {
  color: var(--color-text-soft);
}

.info-card i,
.note-card i,
.route-card i,
.situation-card i,
.principle-card i,
.use-case-card i,
.helper-card i {
  background: rgba(17, 24, 39, 0.05);
}

.step-card span,
.checklist-item span {
  background: var(--color-accent);
}
