:root {
  --tz-primary: #173552;
  --tz-accent: #B88A35;
  --tz-accent-strong: #9E742B;
  --tz-bg: #F4F0E8;
  --tz-surface: #FFFFFF;
  --tz-text: #1F2630;
  --tz-muted: #6D7280;
  --tz-border: #E3DDD2;
  --tz-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --tz-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.05);
  --tz-radius-sm: 12px;
  --tz-radius-md: 20px;
  --tz-radius-lg: 28px;
  --tz-container: 1200px;
  --tz-space-xs: 10px;
  --tz-space-sm: 16px;
  --tz-space-md: 24px;
  --tz-space-lg: 40px;
  --tz-space-xl: 64px;
  --tz-space-2xl: 96px;
  --tz-title-font: "Playfair Display", serif;
  --tz-body-font: "Inter", sans-serif;
  --tz-font-scale: 1;
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: var(--tz-body-font);
  font-size: calc(1rem * var(--tz-font-scale));
  color: var(--tz-text);
  background: var(--tz-bg);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(780px 380px at -8% -12%, rgba(184,138,53,0.14), transparent 65%),
    radial-gradient(720px 320px at 108% -8%, rgba(23,53,82,0.11), transparent 68%),
    linear-gradient(180deg, #f8f4ec 0%, #f4f0e8 62%, #f7f3eb 100%);
}

img { display: block; max-width: 100%; height: auto; }

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

button, input, textarea, select { font: inherit; }

/* WP resets */
ul, ol { margin: 0; padding: 0; list-style: none; }

.tz-list {
  padding-left: 20px;
  list-style: disc;
  color: var(--tz-muted);
}

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

.tz-section { padding: var(--tz-space-2xl) 0; }

.tz-section--light { background: var(--tz-surface); }

.tz-section--accent {
  background: linear-gradient(180deg, rgba(30,58,95,0.05), rgba(200,155,60,0.06));
}

.tz-section-head {
  max-width: 780px;
  margin: 0 0 36px;
}

.tz-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--tz-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tz-title,
.tz-heading {
  margin: 0 0 14px;
  color: var(--tz-primary);
  font-family: var(--tz-title-font);
  line-height: 1.12;
}

.tz-title { font-size: clamp(2.1rem, 4vw, 3.8rem); }
.tz-heading { font-size: clamp(1.6rem, 3vw, 2.5rem); }

.tz-subtitle,
.tz-text,
.tz-intro {
  margin: 0;
  color: var(--tz-muted);
  font-size: 1.04rem;
}

.tz-note {
  margin: 0;
  color: var(--tz-muted);
  font-size: 0.95rem;
}

.tz-grid { display: grid; gap: 24px; }
.tz-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tz-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tz-stack { display: grid; gap: 16px; }

.tz-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tz-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform .28s ease, opacity .2s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .28s ease;
}

.tz-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.28) 52%, rgba(255,255,255,0) 82%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  z-index: -1;
}

.tz-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.tz-btn:hover::after { transform: translateX(115%); }

.tz-btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.1);
}

.tz-btn--primary { background: var(--tz-primary); color: #fff; }
.tz-btn--primary:hover { background: #17304F; }

.tz-btn--secondary {
  border-color: var(--tz-primary);
  color: var(--tz-primary);
  background: transparent;
}

.tz-btn--secondary:hover {
  background: rgba(30,58,95,0.08);
  border-color: #17304F;
  color: #17304F;
}

.tz-btn--accent { background: var(--tz-accent); color: #fff; }
.tz-btn--accent:hover { background: var(--tz-accent-strong); }

.tz-card {
  position: relative;
  background: var(--tz-surface);
  border: 1px solid var(--tz-border);
  border-radius: var(--tz-radius-md);
  box-shadow: var(--tz-shadow-soft);
  overflow: hidden;
  animation: tz-card-enter .7s ease both;
  transition: transform .32s ease, box-shadow .32s ease, border-color .3s ease;
}

.tz-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30,58,95,0.24);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.14);
}

.tz-grid .tz-card:nth-child(2) { animation-delay: .08s; }
.tz-grid .tz-card:nth-child(3) { animation-delay: .16s; }
.tz-grid .tz-card:nth-child(4) { animation-delay: .24s; }
.tz-grid .tz-card:nth-child(5) { animation-delay: .32s; }

.tz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 120px at -12% -22%, rgba(200,155,60,0.18), transparent 58%);
  opacity: 0;
  transition: opacity .32s ease;
  pointer-events: none;
}

.tz-card:hover::before { opacity: 1; }

.tz-card__body { padding: 24px; }

.tz-card__title {
  margin: 0 0 10px;
  color: var(--tz-primary);
  font-family: var(--tz-title-font);
  font-size: 1.35rem;
  line-height: 1.2;
}

.tz-card__text {
  margin: 0 0 16px;
  color: var(--tz-muted);
}

.tz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tz-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(30,58,95,0.08);
  color: var(--tz-primary);
  font-size: 0.88rem;
  font-weight: 600;
}

.tz-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f0f0, #dddddd);
  border: 1px solid var(--tz-border);
  transition: transform .5s ease, box-shadow .5s ease;
}

.tz-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--tz-radius-md);
  border: 1px solid var(--tz-border);
  background: linear-gradient(180deg, #efefef, #dedede);
  transition: transform .5s ease, box-shadow .5s ease;
}

.tz-cover::after,
.tz-media::after {
  content: "";
  position: absolute;
  inset: -10% 0;
  background: linear-gradient(112deg, rgba(255,255,255,0) 28%, rgba(255,255,255,0.34) 48%, rgba(255,255,255,0) 68%);
  transform: translateX(-135%);
  transition: transform .8s ease;
  pointer-events: none;
}

.tz-cover img,
.tz-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  filter: saturate(0.93) contrast(1.04);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .7s ease;
}

.tz-card:hover .tz-cover,
.tz-card:hover .tz-media,
.tz-cover:hover,
.tz-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.tz-card:hover .tz-cover::after,
.tz-card:hover .tz-media::after,
.tz-cover:hover::after,
.tz-media:hover::after {
  transform: translateX(120%);
}

.tz-card:hover .tz-cover img,
.tz-card:hover .tz-media img,
.tz-cover:hover img,
.tz-media:hover img {
  transform: scale(1.065);
  filter: saturate(1.06) contrast(1.08);
}

.tz-media--wide { aspect-ratio: 16 / 9; }
.tz-media--square { aspect-ratio: 1 / 1; }
.tz-media--portrait { aspect-ratio: 4 / 5; }

.tz-price {
  font-weight: 700;
  color: var(--tz-primary);
  font-size: 1.1rem;
}

.tz-quote {
  background: var(--tz-surface);
  border-left: 4px solid var(--tz-accent);
  border-radius: 0 var(--tz-radius-md) var(--tz-radius-md) 0;
  box-shadow: var(--tz-shadow-soft);
  padding: 28px;
}

.tz-quote__text {
  margin: 0 0 12px;
  color: var(--tz-primary);
  font-family: var(--tz-title-font);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.45;
}

.tz-quote__meta {
  color: var(--tz-muted);
  font-size: 0.95rem;
}

.tz-input,
.tz-select,
.tz-textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--tz-border);
  border-radius: 14px;
  color: var(--tz-text);
}

.tz-textarea {
  min-height: 140px;
  padding: 16px;
  resize: vertical;
}

.tz-divider {
  width: 100%;
  height: 1px;
  background: var(--tz-border);
  margin: 0;
}

@media (max-width: 991px) {
  .tz-grid--4,
  .tz-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .tz-section { padding: 70px 0; }
  .tz-grid--4,
  .tz-grid--3,
  .tz-grid--2 { grid-template-columns: 1fr; }
  .tz-btn-group { flex-direction: column; align-items: stretch; }
}


.tz-stack--mt { margin-top: 16px; }
.tz-btn-group--center { justify-content: center; }
.tz-btn--white { background: #fff; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .62s ease, transform .62s ease;
  transition-delay: var(--tz-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-a11y-contrast="high"] {
  --tz-bg: #f1ecdf;
  --tz-surface: #ffffff;
  --tz-primary: #0f2d4c;
  --tz-accent: #916515;
  --tz-accent-strong: #7b540f;
  --tz-text: #141822;
  --tz-muted: #3d4655;
  --tz-border: #c9c0b1;
}

html[data-a11y-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-a11y-motion="reduced"] *,
html[data-a11y-motion="reduced"] *::before,
html[data-a11y-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
}

@keyframes tz-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tz-btn,
  .tz-card,
  .tz-cover,
  .tz-media,
  .js [data-reveal] {
    transition: none;
    animation: none;
  }

  .tz-btn::after,
  .tz-card::before,
  .tz-cover::after,
  .tz-media::after {
    display: none;
  }

  .tz-cover img,
  .tz-media img {
    transition: none;
    transform: none;
  }
}
