/*
Theme Name:  Triumph
Theme URI:   https://triumphkm.com
Description: Custom theme for triumphkm.com — Kitchens and Millwork.
Version:     1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Author:      Nazmul H
Author URI:  https://onenazmul.dev
Text Domain: triumphkm
*/

/* ==========================================================================
   CORE CSS — tokens, base, and everything in the header, footer and the
   Assistant launcher. Page sections live in css/ (base-home.css, front-page.css…).
   Rule: every class owned by the header/footer starts with "tk-" so page CSS
   can never collide with it. Header/footer ids (#TB #NV #MM #FT #TA-fab) stay.
   ========================================================================== */

/* --- Azo Sans (self-hosted) ------------------------------------------------
   Put the woff2 files in assets/fonts/ and uncomment. Weights the design uses:
   200 (display), 300 (body), 400, 500. Inter stays as the fallback.

@font-face { font-family: 'azo-sans-web'; font-weight: 200; font-style: normal; font-display: swap; src: url('assets/fonts/azo-sans-200.woff2') format('woff2'); }
@font-face { font-family: 'azo-sans-web'; font-weight: 300; font-style: normal; font-display: swap; src: url('assets/fonts/azo-sans-300.woff2') format('woff2'); }
@font-face { font-family: 'azo-sans-web'; font-weight: 400; font-style: normal; font-display: swap; src: url('assets/fonts/azo-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'azo-sans-web'; font-weight: 500; font-style: normal; font-display: swap; src: url('assets/fonts/azo-sans-500.woff2') format('woff2'); }
*/

/* ── TOKENS ── */
:root {
  --cream:  #f6f3ef;
  --cream2: #eeebe5;
  --rule:   #e0dbd2;
  --body:   #5c5852;
  --head:   #1c1a17;
  --gold:   #ada175;
  --goldh:  #b8ae88;
  --gold-ink:  #726844;
  --gold-inkh: #5f5739;
  --foot:   #131110;
  --white:  #ffffff;
  --top: 34px;   /* topbar height */
  --nav: 60px;   /* nav height */
  --ch:  94px;   /* top + nav + 0 → offset for fixed header */
}
@media (min-width: 768px) {
  :root { --top: 34px; --nav: 62px; --ch: 96px; }
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: azo-sans-web, 'Inter', Helvetica, Arial, sans-serif;
  font-weight: 300; background: var(--cream); color: var(--head);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }

main.pg { margin-top: var(--ch); }

/* Site-wide polish */
::selection { background: var(--gold); color: var(--head); }
* { -webkit-tap-highlight-color: transparent; }
[id] { scroll-margin-top: calc(var(--ch) + 14px); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
input, select, textarea { font-size: max(16px, 1em); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-ink); outline-offset: 3px;
}

/* Scroll reveal (js/main.js adds .rv, then .in when visible) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
  .rv.in { opacity: 1; transform: none; }
}

/* Accessibility helpers */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus.tk-skip {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  background: var(--head); color: var(--white); padding: 12px 18px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* Header + footer set their own type so they look identical on every page,
   whatever line-height/size the page CSS puts on <body>. */
#TB, #NV, #MM, #FT, #TA-fab { font-size: 16px; line-height: normal; }

/* ── BUTTONS (header / footer) ── */
.tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 20px;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.tk-btn--gold { background: var(--gold); color: var(--head); }
.tk-btn--gold:hover { background: var(--goldh); color: var(--head); }
.tk-btn--block { display: flex; width: 100%; padding: 0 16px; font-size: 9.5px; letter-spacing: .2em; }
.tk-btn--line-gold { color: var(--gold); border: 1px solid rgba(173,161,117,.28); font-size: 9px; letter-spacing: .2em; }
.tk-btn--line-gold:hover { background: rgba(173,161,117,.07); }

/* ── TOPBAR ── */
#TB {
  height: var(--top); background: var(--cream2);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; position: fixed; top: 0; left: 0; right: 0; z-index: 300;
}
.tk-tb-phone { font-size: 10px; color: var(--body); letter-spacing: .03em; }
.tk-tb-partner {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); font-weight: 500; transition: color .15s;
}
.tk-tb-partner:hover { color: var(--goldh); }
/* Contact page only (header arg 'topbar_call') — values from contact.html. */
.tk-tb-call { margin-top: 10px; font-size: 14px; }

/* ── NAV ── */
#NV {
  position: fixed; top: var(--top); left: 0; right: 0; z-index: 200;
  height: var(--nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
#NV.on { border-bottom-color: var(--rule); box-shadow: 0 2px 24px rgba(0,0,0,.04); }

.tk-logo { display: flex; align-items: center; gap: 10px; }
.tk-logo-icon { width: 21px; height: auto; flex-shrink: 0; }
.tk-logo-name { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--head); }
.tk-logo-tag { font-size: 7px; letter-spacing: .18em; text-transform: uppercase; color: var(--body); opacity: .5; margin-top: 2px; display: none; }
/* Logo uploaded in Site Identity */
#NV .custom-logo-link { display: flex; align-items: center; }
#NV .custom-logo { width: auto; max-width: 200px; max-height: 34px; height: auto; }

.tk-nav-links { display: none; list-style: none; gap: 0; }
.tk-nav-links a {
  display: block; padding: 0 11px; height: var(--nav); line-height: var(--nav);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--body); font-weight: 400; transition: color .15s; white-space: nowrap;
}
.tk-nav-links a:hover { color: var(--head); }
.tk-nav-links a.is-active { color: var(--head); border-bottom: 1.5px solid var(--gold-ink); }

/* Dropdowns */
.tk-nav-links li.tk-has-dd { position: relative; }
.tk-nav-links li.tk-has-dd > ul {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--cream); border: 1px solid var(--rule); border-top: 2px solid var(--gold);
  box-shadow: 0 18px 44px rgba(28,26,23,.14); padding: 8px 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 400;
}
.tk-nav-links li.tk-has-dd:hover > ul,
.tk-nav-links li.tk-has-dd:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.tk-nav-links li.tk-has-dd > ul li { display: block; margin: 0; }
.tk-nav-links li.tk-has-dd > ul a {
  display: block; height: auto; line-height: 1.55; padding: 9px 18px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--head); white-space: nowrap; border-bottom: none;
}
.tk-nav-links li.tk-has-dd > ul a:hover { color: var(--gold-ink); background: rgba(173,161,117,.08); }
.tk-nav-links li.tk-has-dd > ul .tk-dd-sep { border-top: 1px solid var(--rule); margin: 8px 0; }
@media (max-width: 1279px) { .tk-nav-links li.tk-has-dd > ul { display: none; } }

.tk-nav-actions { display: flex; align-items: center; gap: 10px; }
.tk-burger { font-size: 20px; color: var(--head); line-height: 1; padding: 6px; min-width: 44px; min-height: 44px; }

/* ── MOBILE MENU ── */
#MM { display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(84vw, 340px); background: var(--cream); z-index: 401; flex-direction: column; transform: translateX(105%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; box-shadow: -14px 0 44px rgba(28,26,23,.16); }
#MMbk { position: fixed; inset: 0; background: rgba(28,26,23,.35); z-index: 400; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#MMbk.open { opacity: 1; pointer-events: auto; }
#MM.open { transform: translateX(0); visibility: visible; transition: transform .28s ease; }
.tk-mm-top { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--rule); flex-shrink: 0; }
.tk-mm-logo { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.tk-mm-close { font-size: 22px; color: var(--head); min-width: 44px; min-height: 44px; }
.tk-mm-list { list-style: none; flex: 1; overflow-y: auto; }
.tk-mm-list li { border-bottom: 1px solid var(--rule); }
.tk-mm-list li a { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; font-size: 15px; font-weight: 300; color: var(--head); }
.tk-mm-list li a span { font-size: 12px; color: var(--rule); }
.tk-mm-list .tk-mm-build a { color: var(--gold-ink); }
.tk-mm-row { display: flex; align-items: stretch; }
.tk-mm-row > a { flex: 1; }
.tk-mm-toggle {
  width: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 300; color: var(--gold-ink);
  border-left: 1px solid var(--rule); background: none; cursor: pointer; transition: transform .2s ease;
}
.tk-mm-has.open .tk-mm-toggle { transform: rotate(45deg); }
.tk-mm-sub { display: none; list-style: none; margin: 0; padding: 0; background: var(--white); border-top: 1px solid var(--rule); }
.tk-mm-has.open .tk-mm-sub { display: block; }
.tk-mm-sub li { border-bottom: 1px solid var(--rule); }
.tk-mm-sub li:last-child { border-bottom: none; }
.tk-mm-list .tk-mm-sub a { padding: 13px 20px 13px 32px; font-size: 14px; }
.tk-mm-foot { padding: 20px; border-top: 1px solid var(--rule); flex-shrink: 0; }

/* ── FOOTER ── */
#FT { background: var(--foot); padding: 52px 20px 28px; }
.tk-ft-in { max-width: 1160px; margin: 0 auto; }
.tk-ft-logo { width: 210px; max-width: 60vw; height: auto; margin-bottom: 14px; opacity: .9; }
.tk-ft-tag { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.22); line-height: 1.7; margin-bottom: 18px; max-width: 300px; }
.tk-ft-serving { font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.45); margin: 18px 0 24px; line-height: 2; max-width: 720px; }
.tk-ft-serving a { color: inherit; }
.tk-ft-serving a:hover { color: rgba(255,255,255,.8); }
.tk-ft-soc { display: flex; gap: 16px; margin-bottom: 24px; }
.tk-ft-soc a { font-size: 15px; color: rgba(255,255,255,.18); transition: color .15s; }
.tk-ft-soc a:hover { color: var(--gold); }
.tk-ft-partner { margin-bottom: 32px; padding: 0 14px; }
.tk-ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.tk-ft-col h4 { font-size: 7.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.18); font-weight: 400; margin-bottom: 12px; }
.tk-ft-col ul { list-style: none; }
.tk-ft-col li { margin-bottom: 7px; }
.tk-ft-col a { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.3); transition: color .15s; }
.tk-ft-col a:hover { color: rgba(255,255,255,.8); }
.tk-ft-addr { line-height: 1.7; display: inline-block; }
.tk-ft-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 16px; font-size: 9px; color: rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 3px; }

/* ── ASSISTANT LAUNCHER ── */
#TA-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 350;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cream2); color: var(--head); border: 1px solid var(--gold);
  padding: 11px 16px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; box-shadow: 0 4px 14px rgba(28,26,23,.16);
}
#TA-fab svg { color: var(--gold-ink); flex-shrink: 0; }
#TA-fab:hover { background: var(--gold); border-color: var(--gold); color: var(--head); }
#TA-fab:hover svg { color: var(--head); }

/* ── HEADER/FOOTER RESPONSIVE ── */
@media (min-width: 640px) {
  #TB, #NV { padding: 0 32px; }
  .tk-ft-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 760px) {
  #TA-fab { right: 24px; bottom: 24px; padding: 13px 20px; font-size: 10.5px; }
}
@media (min-width: 768px) {
  #TB, #NV { padding: 0 48px; }
  .tk-logo-tag { display: block; }
  .tk-nav-links { display: flex; }
  .tk-burger { display: none; }
  #FT { padding: 68px 48px 36px; }
  .tk-ft-cols { grid-template-columns: repeat(4, 1fr); }
  .tk-ft-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  #TB, #NV { padding: 0 64px; }
  #FT { padding: 80px 64px 44px; }
}

/* ── LOGGED-IN ADMIN BAR OFFSET ── */
.admin-bar #TB { top: 32px; }
.admin-bar #NV { top: calc(var(--top) + 32px); }
.admin-bar #MM { top: 32px; }
@media (max-width: 782px) {
  .admin-bar #TB { top: 46px; }
  .admin-bar #NV { top: calc(var(--top) + 46px); }
  .admin-bar #MM { top: 46px; }
}


/* ==========================================================================
   QUOTE — templates/quote.php  (/quote/)
   Needs: style.css + css/base-inner.css. JS: js/quote.js.
   Rules are quote.html's own; former inline styles are the q- classes.
   The form is Contact Form 7 (cf7/quote-form.txt); shared CF7 basics are in css/cf7.css.
   ========================================================================== */

/* ── HERO — photo band ── */
.q-hero { position: relative; overflow: hidden; padding: 0; border-bottom: 1px solid var(--rule); }
.q-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(19,17,16,.55), rgba(19,17,16,.35)); }
.q-hero-in { position: relative; padding-top: clamp(64px, 10vw, 110px); padding-bottom: clamp(64px, 10vw, 110px); text-align: center; }
.q-hero .q-hero-eb { color: rgba(255,255,255,.85); }
.q-hero-h1 { margin-top: 12px; color: #fff; }
.q-hero-sub { margin: 14px auto 0; color: rgba(255,255,255,.82); max-width: 520px; }

/* ── FORM + SIDE RAIL ── */
.q-main { padding: clamp(36px, 6vw, 64px) 0; }
#qcols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 900px) {
  #qcols { grid-template-columns: 1fr !important; gap: 24px !important; }
}

.formcard { background: #fff; border: 1px solid var(--rule); padding: 40px 36px; }
.formcard.q-card { padding: 0; overflow: hidden; border: 1px solid var(--rule); background: #fff; }
.q-card-top { position: relative; height: 150px; overflow: hidden; }
.q-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q-card-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(19,17,16,.55), rgba(19,17,16,.1)); }
.q-card-cap { position: absolute; left: 22px; bottom: 14px; color: #fff; }
.q-card-k { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.q-card-t { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 19px; margin-top: 2px; }

#qform { padding: 26px 22px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
@media (max-width: 640px) {
  #qform { grid-template-columns: 1fr !important; }
}
.qf { display: flex; flex-direction: column; gap: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.qfull { grid-column: 1/-1; }
.qf input, .qf textarea, .qf select, #qdw { font-family: azo-sans-web, 'Inter', Helvetica, Arial, sans-serif; font-weight: 300; font-size: 16px; color: var(--head); background: var(--cream); border: 1px solid var(--rule); padding: 13px 14px; letter-spacing: normal; text-transform: none; width: 100%; border-radius: 0; -webkit-appearance: none; }
.qf input:focus, .qf textarea:focus, #qdw:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(173,161,117,.18); }
.qf textarea { resize: vertical; min-height: 96px; }
.qseg { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 12px 22px; border: 1px solid var(--rule); background: #fff; color: var(--body); cursor: pointer; }
.qseg.sel { border-color: var(--gold-ink); color: var(--gold-ink); background: var(--cream2); }

.q-segrow { display: flex; gap: 8px; margin-top: 8px; }
.qf .q-segrow [data-name="designer"] { display: none; flex: 1; }           /* design: #qdw display:none, shown by "Yes" */
.qf .q-segrow.is-yes [data-name="designer"] { display: block; }
.q-prefwrap { margin-top: 12px; }
.q-segrow.is-yes + .q-prefwrap { display: none; }
.q-pref-l { margin-bottom: 7px; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 2px; }
/* Design: .btn-gold sets no background on inner pages, so the button shows the browser's
   default button grey (#efefef in Chrome) — pinned here so every browser matches. */
.btn.btn-gold.q-submit { border: 0; background: #efefef; color: var(--head, #1c1a17); }
.q-note { font-size: 12px; color: var(--body); }
.q-alt { text-align: center; font-size: 12.5px; color: var(--body); margin-top: 12px; }
.q-missing { padding: 26px 22px 24px; font-size: 14px; line-height: 1.7; color: var(--body); }

/* ── SIDE RAIL ── */
.q-rail { display: flex; flex-direction: column; gap: 14px; }
.q-box { background: var(--cream2); border: 1px solid var(--rule); padding: 22px; }
.q-box--steps { padding: 22px 22px 18px; }
.q-eb12 { margin-bottom: 12px; }
.q-eb10 { margin-bottom: 10px; }
.q-step { display: flex; gap: 12px; margin-bottom: 12px; }
.q-step--last { margin-bottom: 0; }
.q-step-n { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--gold-ink); padding-top: 2px; }
.q-step-p { font-size: 13.5px; line-height: 1.65; color: var(--body); }
.q-phone { font-size: 15px; color: var(--head); margin-bottom: 4px; }
.q-phone a { color: var(--head); }
.q-small { font-size: 12.5px; color: var(--body); line-height: 1.6; }
.q-mt10 { margin-top: 10px; }
.q-visit { font-size: 13.5px; color: var(--body); line-height: 1.65; }
.q-quote { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; }
.q-quote-p { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 14.5px; line-height: 1.7; color: var(--head); }
.q-quote-by { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--body); margin-top: 6px; }

/* ── CONTACT FORM 7 — field wrappers + messages (shared CF7 basics: css/cf7.css) ── */
.qf .wpcf7-form-control-wrap { display: block; }
.qf .wpcf7-form-control-wrap > input,
.qf .wpcf7-form-control-wrap > textarea,
.qf .wpcf7-form-control-wrap > select { display: block; }
/* Errors: the design's single message (#qerr) above the button; fields marked, no per-field tips. */
.qf .wpcf7-not-valid, .qf .wpcf7-not-valid:focus { border-color: #8a3b2e; }
#qform .wpcf7-response-output { grid-column: 1/-1; font-size: 12.5px; color: #8a3b2e; }
#qform .wpcf7-response-output:empty,
#qform.init .wpcf7-response-output,
#qform.submitting .wpcf7-response-output,
#qform.resetting .wpcf7-response-output { display: none; }
#qform.sent .wpcf7-response-output { color: var(--body); }
#qform.submitting .q-submit { pointer-events: none; }



/* Brand font unification (Rod, Oct 15): headings keep ONE font - no serif-italic accent lines */
h1 em, h2 em, h3 em, .hero-h1 em, .h-xl em, .h-lg em, .h-md em, .h-sm em, .serif, .f, .art-h1 em, .art h2 em, .bp-ask em, .uor-close em {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}


/* qs mobile uniform tiles + posters for self-hosted testimonials */
@media (max-width: 640px) {
  .qslide { width: 100% !important; }
  .qslide.vid { flex-direction: column; }
  .qs-vid { flex: 0 0 auto; width: 100% !important; max-width: none !important; }
  .qs-vtxt { width: 100%; }
}
.qs-vid[data-v="kenny"]  { background-image: url('https://triumphkm.com/wp-content/uploads/2026/10/poster-kenny.jpg'); }
.qs-vid[data-v="sam"]    { background-image: url('https://triumphkm.com/wp-content/uploads/2026/10/poster-sam.jpg'); }
.qs-vid[data-v="riku"]   { background-image: url('https://triumphkm.com/wp-content/uploads/2026/10/poster-riku.jpg'); }
.qs-vid[data-v="cristy"] { background-image: url('https://triumphkm.com/wp-content/uploads/2026/10/poster-cristy.jpg'); }
