/* ==========================================================================
   Zettar Tech: components.css
   Header, navigation, buttons, cards, forms, footer, WordPress classes
   ========================================================================== */

/* --- Buttons -------------------------------------------------------------- */

.zt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--zt-font-display);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--zt-r);
  cursor: pointer;
  text-align: center;
  transition: background-color .2s var(--zt-ease), color .2s var(--zt-ease),
              border-color .2s var(--zt-ease);
}
.zt-btn svg { width: 15px; height: 15px; flex: none; }

.zt-btn--solid { background: var(--zt-fg); color: var(--zt-bg); border-color: var(--zt-fg); }
.zt-btn--solid:hover { background: var(--zt-accent); border-color: var(--zt-accent); color: var(--zt-accent-ink); }

.zt-btn--teal { background: var(--zt-accent); color: var(--zt-accent-ink); border-color: var(--zt-accent); }
.zt-btn--teal:hover { background: var(--zt-teal-deep); border-color: var(--zt-teal-deep); color: var(--zt-accent-ink); }

.zt-btn--line { background: transparent; color: var(--zt-fg); border-color: var(--zt-line); }
.zt-btn--line:hover { border-color: var(--zt-accent); color: var(--zt-accent); }

.zt-btn--onink { background: transparent; color: var(--zt-band-strong); border-color: var(--zt-band-line); }
.zt-btn--onink:hover { background: var(--zt-band-strong); color: var(--zt-band-bg); border-color: var(--zt-band-strong); }

.zt-btn--sm { padding: .68rem 1.1rem; font-size: .86rem; }
.zt-btn--block { width: 100%; }

.zt-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.zt-tlink {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--zt-font-display);
  font-weight: 500;
  font-size: .93rem;
  letter-spacing: .02em;
  color: var(--zt-accent);
}
.zt-tlink svg { width: 14px; height: 14px; transition: transform .2s var(--zt-ease); }
.zt-tlink:hover svg { transform: translateX(4px); }

/* --- Header --------------------------------------------------------------- */

.zt-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--zt-bg);
  background: color-mix(in srgb, var(--zt-bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--zt-ease);
}
.zt-header.is-stuck { border-bottom-color: var(--zt-line); }
.zt-header__in { display: flex; align-items: center; gap: 2rem; min-height: var(--zt-head-h); }

/* --- Lockup --------------------------------------------------------------- */

.zt-lockup { display: flex; align-items: center; gap: .72rem; flex: none; }
.zt-lockup:hover { color: inherit; }
.zt-lockup svg { width: 30px; height: 30px; flex: none; }
.zt-lockup img { max-height: 42px; width: auto; }
.zt-lockup__type {
  font-family: var(--zt-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--zt-fg);
  white-space: nowrap;
}
.zt-lockup__type em { font-style: normal; font-weight: 400; color: var(--zt-stone); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .zt-lockup__type em { color: var(--zt-muted); }
}
:root[data-theme="dark"] .zt-lockup__type em { color: var(--zt-muted); }

/* --- Navigation ----------------------------------------------------------- */

.zt-nav { margin-left: auto; }
.zt-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.zt-nav li { margin: 0; position: relative; }

.zt-nav ul a {
  display: block;
  position: relative;
  font-family: var(--zt-font-display);
  font-size: .945rem;
  font-weight: 400;
  letter-spacing: .015em;
  color: var(--zt-fg-2);
  padding: .5rem .8rem;
}
.zt-nav ul a::after {
  content: '';
  position: absolute;
  left: .8rem; right: .8rem; bottom: .28rem;
  height: 1px;
  background: var(--zt-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--zt-ease);
}
.zt-nav ul a:hover { color: var(--zt-fg); }
.zt-nav ul a:hover::after { transform: scaleX(1); }
.zt-nav .current-menu-item > a,
.zt-nav .current_page_item > a,
.zt-nav .current-menu-ancestor > a { color: var(--zt-fg); }

.zt-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 232px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--zt-bg);
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-r);
  padding: .35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--zt-ease), transform .2s var(--zt-ease), visibility .2s;
}
.zt-nav li:hover > .sub-menu,
.zt-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.zt-nav .sub-menu a { padding: .58rem .8rem; font-size: .9rem; }
.zt-nav .sub-menu a::after { display: none; }
.zt-nav .menu-item-has-children > a { padding-right: 1.5rem; }
.zt-nav .menu-item-has-children > a::before {
  content: '';
  position: absolute;
  right: .72rem; top: 50%;
  width: 5px; height: 5px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .6;
}

.zt-header__cta { flex: none; }

/* --- Burger --------------------------------------------------------------- */

.zt-burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-r);
  background: transparent;
  cursor: pointer;
}
.zt-burger i {
  position: absolute;
  left: 50%; top: 50%;
  width: 17px; height: 1.6px;
  margin-left: -8.5px;
  background: var(--zt-fg);
  transition: transform .25s var(--zt-ease), opacity .2s var(--zt-ease);
}
.zt-burger i:nth-child(1) { transform: translateY(-5px); }
.zt-burger i:nth-child(2) { transform: translateY(0); }
.zt-burger i:nth-child(3) { transform: translateY(5px); }
.zt-burger[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.zt-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.zt-burger[aria-expanded="true"] i:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 960px) {
  .zt-burger { display: block; }
  .zt-header__cta { display: none; }
  .zt-nav {
    position: fixed;
    inset: var(--zt-head-h) 0 auto 0;
    margin: 0;
    padding: .4rem var(--zt-gutter) 1.6rem;
    max-height: calc(100vh - var(--zt-head-h));
    overflow-y: auto;
    background: var(--zt-bg);
    border-bottom: 1px solid var(--zt-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s var(--zt-ease), transform .22s var(--zt-ease), visibility .22s;
  }
  .zt-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .zt-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .zt-nav ul a { padding: .95rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--zt-line-soft); }
  .zt-nav ul a::after { display: none; }
  .zt-nav .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    border: 0; padding: 0 0 .4rem .9rem;
    min-width: 0;
    background: transparent;
  }
  .zt-nav .sub-menu a { font-size: .96rem; color: var(--zt-muted); }
  .zt-nav .menu-item-has-children > a::before { display: none; }
  .zt-nav__cta { display: block; margin-top: 1.2rem; }
}
@media (min-width: 961px) { .zt-nav__cta { display: none; } }

/* --- Cards ---------------------------------------------------------------- */

.zt-card {
  background: var(--zt-bg);
  border: 1px solid var(--zt-line);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.zt-card h3 { font-size: var(--zt-step-1); margin-bottom: .6rem; }
.zt-card p { font-size: .93rem; color: var(--zt-muted); }
.zt-card__tag {
  font-family: var(--zt-font-mono);
  font-size: .705rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--zt-accent);
  margin-bottom: 1rem;
}
.zt-card__foot {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--zt-line-soft);
  font-family: var(--zt-font-mono);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--zt-faint);
}

/* --- Notes / disclosure --------------------------------------------------- */

.zt-note {
  padding: 1.15rem 1.35rem;
  border-left: 2px solid var(--zt-accent);
  background: var(--zt-teal-tint);
  font-size: .91rem;
  color: var(--zt-fg-2);
}
.zt-note p { max-width: 92ch; }

/* --- Forms ---------------------------------------------------------------- */

.zt-form { display: grid; gap: 1.1rem; }
.zt-form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
@media (max-width: 620px) { .zt-form__row { grid-template-columns: minmax(0,1fr); } }

.zt-field { display: grid; gap: .42rem; }
.zt-field label {
  font-family: var(--zt-font-display);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--zt-fg);
}
.zt-field label .req { color: var(--zt-accent); }

.zt-field input[type="text"],
.zt-field input[type="email"],
.zt-field input[type="tel"],
.zt-field input[type="url"],
.zt-field select,
.zt-field textarea,
.zt-input {
  width: 100%;
  font-family: var(--zt-font-body);
  font-size: .98rem;
  color: var(--zt-fg);
  background: var(--zt-bg);
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-r);
  padding: .85rem .95rem;
  transition: border-color .2s var(--zt-ease), box-shadow .2s var(--zt-ease);
  appearance: none;
}
.zt-field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.zt-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236A7175' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
  padding-right: 2.4rem;
}
.zt-field input:focus,
.zt-field select:focus,
.zt-field textarea:focus {
  outline: none;
  border-color: var(--zt-accent);
  box-shadow: 0 0 0 3px rgba(62,126,146,.16);
}
.zt-hint { font-size: .78rem; color: var(--zt-faint); }
.zt-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.zt-notice {
  padding: 1rem 1.15rem;
  border-left: 2px solid;
  font-size: .92rem;
  margin-bottom: 1.4rem;
}
.zt-notice--ok { border-color: #2F7D5C; background: rgba(47,125,92,.08); color: var(--zt-fg); }
.zt-notice--err { border-color: #A6402F; background: rgba(166,64,47,.08); color: var(--zt-fg); }

/* --- Footer --------------------------------------------------------------- */

.zt-footer {
  background: var(--zt-bg-2);
  border-top: 1px solid var(--zt-line);
  padding-top: clamp(2.75rem, 2rem + 2.5vw, 4rem);
}
.zt-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(1.6rem, 1rem + 2vw, 3rem);
  padding-bottom: 2.75rem;
}
@media (max-width: 860px) { .zt-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .zt-footer__grid { grid-template-columns: 1fr; } }

.zt-footer__blurb { font-size: .92rem; color: var(--zt-muted); max-width: 34ch; margin-top: 1.1rem; }
.zt-footer h2 {
  font-family: var(--zt-font-mono);
  font-size: .705rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--zt-faint);
  margin-bottom: 1.1rem;
}
.zt-footer ul { list-style: none; margin: 0; padding: 0; }
.zt-footer li { margin-bottom: .6rem; font-size: .92rem; }
.zt-footer li a { color: var(--zt-fg-2); }
.zt-footer li a:hover { color: var(--zt-accent); }

.zt-social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.zt-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-r);
  color: var(--zt-fg-2);
}
.zt-social a:hover { border-color: var(--zt-accent); color: var(--zt-accent); }
.zt-social svg { width: 16px; height: 16px; }

.zt-footer__bar {
  border-top: 1px solid var(--zt-line);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  justify-content: space-between;
  font-family: var(--zt-font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--zt-faint);
}
.zt-footer__bar ul { display: flex; gap: 1.2rem; }
.zt-footer__bar li { margin: 0; font-size: .72rem; }
.zt-footer__bar a { color: var(--zt-faint); }

/* --- Floating WhatsApp ---------------------------------------------------- */

.zt-wa {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--zt-fg);
  color: var(--zt-bg);
  transition: background-color .2s var(--zt-ease);
}
.zt-wa:hover { background: var(--zt-accent); color: var(--zt-accent-ink); }
.zt-wa svg { width: 24px; height: 24px; }

/* --- Pagination ----------------------------------------------------------- */

.zt-pagination { margin-top: 3rem; }
.zt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.zt-pagination .page-numbers {
  min-width: 40px; height: 40px;
  padding: 0 .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--zt-line);
  border-radius: var(--zt-r);
  font-family: var(--zt-font-display);
  font-size: .9rem;
  color: var(--zt-fg-2);
}
.zt-pagination .page-numbers:hover { border-color: var(--zt-accent); color: var(--zt-accent); }
.zt-pagination .page-numbers.current { background: var(--zt-fg); border-color: var(--zt-fg); color: var(--zt-bg); }

/* --- WordPress core classes ----------------------------------------------- */

.alignleft { float: left; margin: .4rem 1.6rem 1.2rem 0; }
.alignright { float: right; margin: .4rem 0 1.2rem 1.6rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { margin-block: 2.2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-family: var(--zt-font-mono);
  font-size: .74rem;
  color: var(--zt-faint);
  margin-top: .55rem;
}
.wp-block-image img { border-radius: var(--zt-r); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
