/* idz-base: only what theme.json cannot express. */

:focus-visible {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 2px;
}

.has-brand-background-color :focus-visible,
.has-brand-background-color .wp-element-button:focus-visible {
  outline-color: var(--wp--preset--color--on-brand);
}

.wp-element-button,
.wp-block-button__link {
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

/* Text on brand or accent fills always uses the computed on-color (ADR-0019). */
.has-brand-background-color,
.has-brand-background-color :is(h1, h2, h3, h4, h5, h6, p, li, cite, summary) {
  color: var(--wp--preset--color--on-brand);
}

.has-brand-background-color a:not(.wp-element-button) {
  color: var(--wp--preset--color--on-brand);
}

.has-accent-background-color,
.has-accent-background-color :is(h1, h2, h3, h4, h5, h6, p, li, cite, summary),
.has-accent-background-color a:not(.wp-element-button) {
  color: var(--wp--custom--idz--on-accent);
}

/* Secondary button: ink label (4.5:1 text), brand border (3:1 UI), brand fill on hover. */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink);
  padding-top: calc(0.875rem - 2px);
  padding-bottom: calc(0.875rem - 2px);
}

.has-brand-background-color .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--on-brand);
  border-color: var(--wp--preset--color--on-brand);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
}

/* Eyebrow label used above headings. */
.idz-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Details (FAQ) without JS. */
.wp-block-details {
  border-bottom: 1px solid var(--wp--preset--color--surface-alt);
  padding: var(--wp--preset--spacing--30) 0;
}

.wp-block-details > summary {
  cursor: pointer;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--surface);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Pattern helpers (presentation only). */
.idz-logo-wall img {
  filter: grayscale(1);
  opacity: 0.7;
  max-height: 40px;
  width: auto;
}

.idz-step-number {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--wp--preset--color--brand);
  letter-spacing: 0.04em;
}

.idz-stat {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  line-height: 1;
  color: var(--wp--preset--color--brand);
}

.idz-card {
  border-radius: var(--wp--custom--idz--radius-default);
}

.wp-block-table.idz-fees table {
  border-collapse: collapse;
}

.wp-block-table.idz-fees td,
.wp-block-table.idz-fees th {
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--surface-alt);
  padding: var(--wp--preset--spacing--20) 0;
}

.wp-block-table.idz-fees td:last-child,
.wp-block-table.idz-fees th:last-child {
  text-align: right;
  font-weight: 600;
}

.idz-announcement a {
  color: inherit;
  text-decoration: underline;
}

/* Adjacent full-width sections touch; only padding separates them. */
.wp-block-post-content > .alignfull + .alignfull {
  margin-block-start: 0;
}

/* Portrait slot: 4:5, card radius, no wider than 70% on phones. */
.idz-portrait img {
  width: 100%;
  height: auto;
}

@media (max-width: 781px) {
  .idz-portrait {
    max-width: 70%;
  }
}

/* Quotes: text in the heading font, attribution in the body font. */
.wp-block-quote cite {
  display: block;
  margin-top: var(--wp--preset--spacing--20);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--sm);
  font-style: normal;
  color: var(--wp--preset--color--muted);
}

.wp-block-table.idz-fees td:last-child {
  white-space: nowrap;
}

/* Contact Form 7 inside the cta-contact-form pattern: inputs and the submit button follow the tokens. */
.wpcf7 form {
  display: grid;
  gap: var(--wp--preset--spacing--30);
}

.wpcf7 form > p,
.wpcf7 form label {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
}

.wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='radio']),
.wpcf7 textarea,
.wpcf7 select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--muted);
  border-radius: var(--wp--custom--idz--radius--sm);
}

.wpcf7 textarea {
  min-height: 9rem;
}

.wpcf7 input:focus-visible,
.wpcf7 textarea:focus-visible {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 2px;
  border-color: var(--wp--preset--color--brand);
}

.wpcf7 input[type='submit'] {
  display: inline-block;
  width: auto;
  padding: 0.875rem 1.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--custom--idz--on-accent);
  background: var(--wp--preset--color--accent);
  border: 0;
  border-radius: var(--wp--custom--idz--radius-default);
  cursor: pointer;
}

.wpcf7 input[type='submit']:hover {
  color: var(--wp--custom--idz--on-accent-hover);
  background: var(--wp--custom--idz--accent-hover);
}

.wpcf7 .wpcf7-spinner {
  margin-left: 0.5rem;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
}

.wpcf7 .wpcf7-response-output {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--wp--preset--color--brand);
  border-radius: var(--wp--custom--idz--radius--sm);
  font-size: var(--wp--preset--font-size--sm);
}

/* ------------------------------------------------------------------------
   Client one-page layout (ADR-0055): the demo designs' structure. Values that
   differ per look come from theme.json custom tokens idz.look.* (set by the
   generator from the design's LOOKS table); the body carries idz-look-<slug>.
   ------------------------------------------------------------------------ */

/* Header: monogram, name and descriptor, nav, pill call to action. */
.idz-header-row {
  gap: var(--wp--preset--spacing--40);
}

.idz-brand {
  flex: 1;
  min-width: 0;
}

.idz-monogram img {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--wp--custom--idz--look--mono, 50%);
  object-fit: cover;
}

.idz-brand-text > * {
  margin: 0;
  line-height: 1.1;
}

.idz-site-title {
  font-size: var(--wp--preset--font-size--lg);
}

.idz-descriptor {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  margin-top: 0.15rem;
}

.idz-nav {
  gap: var(--wp--preset--spacing--40);
  align-items: center;
}

.idz-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.idz-nav .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--xs);
  padding: 0.6875rem 1.125rem;
  border-radius: var(--wp--custom--idz--look--radius, var(--wp--custom--idz--radius-default));
  white-space: nowrap;
}

.idz-nav .wp-block-navigation-item:last-child .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--ink);
}

@media (max-width: 781px) {
  .idz-nav .wp-block-navigation-item:not(:last-child) {
    display: none;
  }
}

/* Hero: copy left, framed portrait right, aligned to the bottom. */
.idz-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--wp--preset--spacing--50) clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.idz-hero-copy > *,
.idz-hero-portrait > * {
  margin-block: 0;
}

.idz-hero-copy > * + * {
  margin-block-start: 1.875rem;
}

.idz-eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  font-size: 0.8125rem;
}

.idz-eyebrow-rule::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--wp--preset--color--accent);
}

.idz-hero-headline {
  /* Each look's size is measured from its demo design (ADR-0055); the default is Calm's. */
  font-size: var(--wp--custom--idz--look--headline, clamp(3rem, 6.4vw, 6.25rem));
  line-height: 0.95;
  text-wrap: balance;
}

.idz-hero-headline em,
.idz-cta-card h2 em {
  color: var(--wp--preset--color--brand);
  font-style: italic;
}

.idz-look-editorial .idz-hero-headline em,
.idz-look-fresh .idz-hero-headline em {
  font-style: normal;
}

.idz-hero-lede {
  max-width: 30em;
  line-height: 1.6;
  text-wrap: pretty;
}

.idz-hero-actions {
  align-items: center;
}

.idz-link-down .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--ink);
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
  border-radius: 0;
}

.idz-link-down .wp-block-button__link::after {
  content: ' ↓';
}

.idz-link-down .wp-block-button__link:hover {
  background: transparent;
  color: var(--wp--preset--color--brand);
}

.idz-hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 28.75rem);
}

.idz-hero-portrait::before {
  content: '';
  position: absolute;
  inset: var(--wp--custom--idz--look--deco-inset, 0);
  background: var(--wp--custom--idz--look--deco-bg, transparent);
  border: var(--wp--custom--idz--look--deco-border, 0);
  border-radius: var(--wp--custom--idz--look--deco-radius, 0);
  transform: var(--wp--custom--idz--look--deco-tf, none);
}

.idz-portrait-framed,
.idz-portrait-framed img {
  position: relative;
  width: 100%;
  max-width: none;
}

.idz-portrait-framed img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
  border-radius: var(--wp--custom--idz--look--img, var(--wp--custom--idz--radius-default));
  filter: var(--wp--custom--idz--look--filter, none);
  transform: var(--wp--custom--idz--look--img-tf, none);
  padding: var(--wp--custom--idz--look--pad, 0);
  background: var(--wp--custom--idz--look--pad-bg, transparent);
  border: var(--wp--custom--idz--look--img-border, 0);
}

.idz-hero-chip {
  position: absolute;
  left: var(--wp--custom--idz--look--chip-x, -0.875rem);
  bottom: 2.25rem;
  background: var(--wp--custom--idz--look--chip-bg, var(--wp--preset--color--surface));
  color: var(--wp--custom--idz--look--chip-ink, var(--wp--preset--color--brand));
  border-radius: 1rem;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 0, 0, 0.35);
}

.idz-hero-chip-value {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.875rem;
  line-height: 1;
  color: inherit;
}

.idz-hero-chip-label {
  color: inherit;
  opacity: 0.8;
  margin-top: 0.125rem;
}

/* Credentials strip: one ruled band, items spaced across. */
.idz-strip {
  border-top: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  border-bottom: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
}

.idz-strip-row {
  gap: 0.625rem 2.5rem;
}

.idz-strip-row > p {
  margin: 0;
}

/* Services: intro left, numbered list right (numerals follow the look). */
.idz-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--50) clamp(2.5rem, 6vw, 6rem);
}

@media (min-width: 1000px) {
  .idz-split {
    grid-template-columns: 1fr 2fr;
  }
}

.idz-split-intro > *,
.idz-split-body > * {
  margin-block: 0;
}

.idz-split-intro > * + * {
  margin-block-start: 1.125rem;
}

.idz-split-intro h2 {
  line-height: 1;
}

.idz-split-intro p {
  max-width: 22em;
  line-height: 1.6;
}

.idz-services-list {
  counter-reset: idz-service;
}

.idz-service {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1.875rem 0;
  border-top: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  counter-increment: idz-service;
}

.idz-service::before {
  content: counter(idz-service, decimal-leading-zero) '.';
  grid-row: 1 / span 2;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--wp--preset--color--brand);
}

.idz-look-calm .idz-service::before {
  content: counter(idz-service, lower-roman) '.';
  font-style: italic;
}

.idz-look-trust .idz-service::before,
.idz-look-classic .idz-service::before {
  content: counter(idz-service, upper-roman) '.';
  font-style: italic;
  font-size: 1.125rem;
}

.idz-look-editorial .idz-service::before {
  content: counter(idz-service, decimal-leading-zero) ' /';
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
}

.idz-service > h3,
.idz-service > p {
  grid-column: 2;
  margin: 0;
}

.idz-service > h3 {
  line-height: 1.1;
}

.idz-service > p {
  max-width: 36em;
  line-height: 1.6;
}

/* Steps: brand band, three ruled columns. */
.idz-steps-heading {
  max-width: 12em;
  line-height: 1;
  margin-bottom: var(--wp--preset--spacing--50);
}

.idz-steps-heading em {
  font-style: italic;
  color: inherit;
}

.idz-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: 2.25rem;
}

.idz-step {
  padding-top: 1.375rem;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-brand) 30%, transparent);
}

.idz-step > * {
  margin-block: 0;
}

.idz-step > * + * {
  margin-block-start: 0.875rem;
}

.idz-steps .idz-step-number {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--on-brand);
  opacity: 0.85;
}

.idz-steps .idz-step-number::before {
  content: 'Step ';
}

.idz-step h3 {
  font-size: 1.875rem;
  line-height: 1.1;
}

.idz-step p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Paired bands: testimonial beside the About card, fees beside the questions. */
.idz-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--wp--preset--spacing--50) clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.idz-pair-col > * {
  margin-block: 0;
}

.idz-pair-col > * + * {
  margin-block-start: 1.5rem;
}

.idz-testimonial .idz-quote-large,
.idz-pair-col .idz-quote-large {
  border: 0;
  padding: 0;
  margin: 0;
}

.idz-quote-large::before {
  content: '“';
  display: block;
  height: 3rem;
  font-size: 7.5rem;
  line-height: 0.6;
  color: var(--wp--preset--color--brand);
  margin-bottom: 1.75rem;
}

.idz-quote-large p {
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin: 0;
}

.idz-quote-large cite {
  margin-top: 1.75rem;
}

.idz-quote-large cite::before {
  content: '— ';
}

.idz-about-card {
  border-radius: 1.5rem;
}

.idz-about-card > * {
  margin-block: 0;
}

.idz-about-card > * + * {
  margin-block-start: 1.125rem;
}

.idz-about-card h2 {
  line-height: 1.05;
}

.idz-about-card p {
  line-height: 1.65;
  text-wrap: pretty;
}

.idz-about-link a {
  font-weight: 600;
  color: var(--wp--preset--color--brand);
}

/* Fees and questions. */
.idz-fees-body > *,
.idz-faq-body > * {
  margin-block: 0;
}

.idz-fees-body > * + *,
.idz-faq-body > * + * {
  margin-block-start: 1.5rem;
}

.idz-fees-body h2,
.idz-faq-body h2 {
  line-height: 1;
}

.wp-block-table.idz-fees-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table.idz-fees-table td {
  border: 0;
  border-bottom: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  padding: 1.125rem 0;
  font-size: 1.0625rem;
  vertical-align: baseline;
}

.wp-block-table.idz-fees-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.75rem;
  color: var(--wp--preset--color--brand);
}

.idz-faq-list .wp-block-details {
  border-bottom: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  padding: 1.125rem 0;
  margin: 0;
}

.idz-faq-list .wp-block-details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.0625rem;
  font-weight: 600;
}

.idz-faq-list .wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.idz-faq-list .wp-block-details > summary::after {
  content: '+';
  color: var(--wp--preset--color--brand);
  flex: none;
}

.idz-faq-list .wp-block-details[open] > summary::after {
  content: '−';
}

.idz-faq-list .wp-block-details > p {
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
  padding-top: 0.75rem;
  margin: 0;
}

/* Closing call to action: a rounded brand card inside a small inset. */
.idz-cta-card {
  border-radius: 2rem;
  max-width: 87.5rem;
  margin-inline: auto;
}

.idz-cta-card > * + * {
  margin-block-start: 1.5rem;
}

.idz-cta-card h2 {
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.idz-cta-card h2 em {
  color: inherit;
}

.idz-cta-card p {
  max-width: 28em;
  margin-inline: auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Footer. */
.idz-footer {
  border-top: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
}

.idz-footer p {
  margin: 0;
}
