/* Visual Timer theme — brand atmosphere + layout */

:root {
  --vt-theme-surface: #fffaf4;
  --vt-theme-ink: #0f172a;
  --vt-theme-emerald: #0f766e;
  --vt-theme-muted: #475569;
  --vt-header-pad: 0.65rem;
  --vt-page-max: 1200px;
}

body {
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(15, 118, 110, 0.09), transparent 42%),
    linear-gradient(165deg, #fffdf9 0%, #fffaf4 48%, #f5e6d3 100%);
  min-height: 100vh;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Header ——— */
.vt-site-header {
  padding-block: var(--vt-header-pad);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.vt-site-header > .wp-block-group,
.vt-site-header .vt-header__bar {
  max-width: var(--vt-page-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.vt-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
}

.vt-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vt-theme-ink);
  text-decoration: none;
  line-height: 1.1;
}

.vt-brand span {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vt-theme-emerald);
  margin-top: 0.12rem;
}

.vt-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
}

.vt-nav-toggle__bars,
.vt-nav-toggle__bars::before,
.vt-nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--vt-theme-ink);
  border-radius: 2px;
  position: relative;
}

.vt-nav-toggle__bars::before,
.vt-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.vt-nav-toggle__bars::before {
  top: -6px;
}

.vt-nav-toggle__bars::after {
  top: 6px;
}

.vt-primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.25rem;
}

.vt-primary-nav a {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--vt-theme-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.vt-primary-nav a:hover,
.vt-primary-nav a:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  color: #115e59;
  outline: none;
}

@media (max-width: 899px) {
  .vt-primary-nav {
    display: none;
    width: 100%;
    order: 3;
    padding: 0.25rem 0 0.35rem;
  }

  .vt-primary-nav.is-open {
    display: block;
  }

  .vt-primary-nav__list {
    flex-direction: column;
    gap: 0.1rem;
  }

  .vt-primary-nav a {
    padding: 0.65rem 0.8rem;
  }
}

@media (min-width: 900px) {
  .vt-nav-toggle {
    display: none;
  }

  .vt-primary-nav {
    display: block;
  }
}

/* ——— Homepage ——— */
.vt-home {
  padding-inline: 1rem;
  box-sizing: border-box;
  max-width: 100%;
}

.vt-home > .wp-block-group,
.vt-home .vt-home-intro,
.vt-home .vt-home-timer,
.vt-home .vt-popular {
  max-width: var(--vt-page-max);
  width: 100%;
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
}

/* Kill inherited WP block spacing that stretches the hero */
.vt-home .wp-block-group {
  margin-block: 0;
  padding-inline: 0;
}

.vt-home .wp-block-group + .wp-block-group {
  margin-block-start: 0;
}

.vt-home-intro {
  padding-block: 1.35rem 0.85rem;
  text-align: center;
}

.vt-home-intro h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
  line-height: 1.15;
  color: var(--vt-theme-ink);
}

.vt-home-intro__lead {
  margin: 0 auto;
  max-width: 38ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--vt-theme-muted);
}

.vt-home-timer {
  padding-block: 0.5rem 1.5rem;
  min-width: 0;
}

.vt-home-timer .vt-timer {
  --vt-viz-size: min(100%, 300px);
  max-width: none;
  margin: 0;
}

.vt-home-timer .vt-timer__shell--split {
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .vt-home-timer .vt-timer__shell--split {
    padding: 1.75rem;
  }
}

/* Primary Start must stay emerald — beat WP element button styles */
.vt-home-timer .vt-timer .vt-btn--primary {
  background: var(--vt-theme-emerald) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.vt-home-timer .vt-timer__viz {
  width: var(--vt-viz-size);
  max-width: 320px;
}

.vt-home-timer .vt-timer__canvas {
  max-width: 320px;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .vt-home-timer .vt-timer {
    --vt-viz-size: min(100%, 300px);
  }
}

@media (max-width: 767px) {
  .vt-home-timer .vt-timer {
    --vt-viz-size: min(100%, 280px);
  }

  .vt-home-timer .vt-timer__shell--split {
    padding: 1.5rem;
  }
}

/* Popular tools cards */
.vt-section.vt-popular {
  padding-block: 0.75rem 2.25rem;
}

.vt-popular h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

.vt-popular-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .vt-popular-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .vt-popular-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.vt-popular-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 253, 249, 0.85);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}

.vt-popular-card:hover,
.vt-popular-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.45);
  background: #fff;
  outline: none;
}

.vt-popular-card__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

.vt-popular-card__icon svg {
  width: 100%;
  height: 100%;
}

.vt-popular-card__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--vt-theme-ink);
}

.vt-popular-card__desc {
  font-size: 0.88rem;
  color: var(--vt-theme-muted);
  line-height: 1.35;
}

.vt-cta {
  display: inline-block;
  background: var(--vt-theme-emerald);
  color: #fff !important;
  text-decoration: none;
  border-radius: 0.75rem;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}

.vt-cta:focus-visible {
  outline: 3px solid var(--vt-theme-emerald);
  outline-offset: 2px;
}

.vt-cta--ghost {
  background: transparent;
  color: var(--vt-theme-ink) !important;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.vt-theme-notice {
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  color: #115e59;
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.vt-breadcrumbs {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--vt-theme-muted);
}

.vt-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vt-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(15, 23, 42, 0.35);
}

.vt-breadcrumbs a {
  color: var(--vt-theme-emerald);
  text-decoration: none;
}

.vt-breadcrumbs a:hover,
.vt-breadcrumbs a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.vt-site-footer {
  margin-top: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--vt-theme-muted);
  font-size: 0.95rem;
}

.vt-site-footer > .wp-block-group {
  max-width: var(--vt-page-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.vt-site-footer a {
  color: var(--vt-theme-emerald);
}
