/*
Theme Name: Tobias Navy & Champagne
Description: A bilingual memorial website in navy, champagne, and white for Tobias Monument Center.
Version: 2.1.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: tobias-warm-stone
*/

@font-face {
  font-family: "Literata";
  src: url("./assets/fonts/Literata72pt-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --tm-header-height: 81px;
  scroll-padding-top: var(--tm-header-height);
}

body.tm-site {
  --tm-paper: #ffffff;
  --tm-panel: #f3f5f7;
  --tm-ink: #263c53;
  --tm-muted: #536577;
  --tm-accent: #314e69;
  --tm-champagne: #d7c5a4;
  --tm-line: #dce2e7;
  --tm-serif: Georgia, "Times New Roman", serif;
  --tm-sans: "Segoe UI", system-ui, sans-serif;
  background: var(--tm-paper);
  color: var(--tm-ink);
  font: 17px/1.7 var(--tm-sans);
  margin: 0;
  overflow-wrap: anywhere;
}

html[lang|="vi"] body.tm-site {
  --tm-serif: "Literata", "Times New Roman", serif;
}

.tm-site *, .tm-site *::before, .tm-site *::after { box-sizing: border-box; }
.tm-site a { color: inherit; text-underline-offset: .23em; }
.tm-site a:focus-visible, .tm-site button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.tm-site img { display: block; max-width: 100%; height: auto; }
.tm-site figure { margin: 0; }
.tm-site h1, .tm-site h2, .tm-site h3 { font-family: var(--tm-serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
html[lang|="vi"] .tm-site :is(h1, h2, h3) { letter-spacing: -.018em; line-height: 1.18; }
.tm-site h1, .tm-site h2, .tm-site h3, .tm-site p { margin: 0; }
.tm-site h1 { font-size: clamp(2.65rem, 6vw, 5.2rem); }
.tm-site h2 { font-size: clamp(2rem, 4vw, 3rem); }
.tm-site h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.tm-site [hidden] { display: none !important; }

.tm-wrap { width: min(100% - 104px, 1200px); margin-inline: auto; }
.tm-skip { position: absolute; top: 4px; left: 8px; padding: 8px 12px; background: var(--tm-ink); color: var(--tm-paper) !important; z-index: 10001; transform: translateY(-130%); }
.tm-skip:focus { transform: translateY(0); }
.tm-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--tm-paper); border-bottom: 1px solid var(--tm-line);
  box-shadow: 0 5px 24px #263c5306;
}
.tm-utility { background: #263c53; color: #ffffff; }
.tm-utility-inner, .tm-header-inner { display: flex; align-items: center; justify-content: space-between; }
.tm-utility-inner { min-height: 44px; padding-block: 4px; flex-wrap: wrap; gap: 4px 16px; }
.tm-showroom-hours { font-size: .88rem; }
.tm-header-inner { min-height: 80px; padding-block: 9px; gap: 12px 24px; }
.tm-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.tm-monogram {
  display: grid;
  place-items: center;
  width: 46px;
  height: 49px;
  border: 1px solid currentColor;
  border-radius: 21px 21px 2px 2px;
  font: 31px/1 var(--tm-serif);
}
.tm-name { display: grid; gap: 4px; line-height: 1; }
.tm-name strong { font: 25px/1 var(--tm-serif); letter-spacing: -.025em; }
.tm-name small, .tm-kicker, .tm-hero-figure figcaption, .tm-about-figure figcaption {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tm-custom-logo img { width: auto; max-width: 210px; max-height: 65px; object-fit: contain; }
.tm-primary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 20px; margin-inline-start: auto; }
.tm-menu, .tm-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.tm-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 24px; font-size: 1.0625rem; }
.tm-menu > li { position: relative; }
.tm-menu a { display: block; padding: 12px 0; text-decoration: none; }
.tm-menu a:hover, .tm-menu .current-menu-item > a, .tm-menu .current-menu-ancestor > a { text-decoration: underline; }
.tm-menu > .menu-item-has-children > a { display: flex; align-items: center; gap: .45em; }
.tm-menu > .menu-item-has-children > a::after {
  content: ""; flex: none; width: .42em; height: .42em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.12em) rotate(45deg);
}
.tm-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: -15px; width: max-content; max-width: 250px;
  padding: 6px 14px; z-index: 5; background: var(--tm-paper); border: 1px solid var(--tm-line);
  box-shadow: 0 12px 28px #263c5319;
}
.tm-menu .sub-menu a { padding: 7px 0; }
.tm-menu > li:hover > .sub-menu, .tm-menu > li:focus-within > .sub-menu { display: block; }
.tm-header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.tm-header-call, .tm-header-login {
  display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 10px;
  border: 1px solid #cdbd9e; border-radius: 5px; font-size: .88rem; font-weight: 650; white-space: nowrap; text-decoration: none;
}
.tm-header-login { background: var(--tm-accent); }
.tm-header-call:hover, .tm-header-login:hover { text-decoration: underline; }
.tm-languages { display: inline-flex; border: 1px solid #cdbd9e; border-radius: 5px; overflow: hidden; white-space: nowrap; }
.tm-languages a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px;
  padding: 5px 9px; font-size: .86rem; font-weight: 650; text-decoration: none;
}
.tm-languages a + a { border-left: 1px solid #cdbd9e; }
.tm-languages a[aria-current="page"] { color: #263c53; background: var(--tm-champagne); }
.tm-languages a:hover { text-decoration: underline; }
.tm-language-short { display: none; }
.tm-menu-button {
  display: none; font: inherit; color: var(--tm-ink); border: 1px solid var(--tm-line);
  background: var(--tm-paper); padding: 9px 14px; min-height: 44px; cursor: pointer;
}

.tm-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(35px, 6vw, 80px); align-items: center; padding: 60px 0 46px; }
.tm-hero-copy { display: grid; justify-items: start; gap: clamp(16px, 2.5vw, 25px); }
.tm-hero-copy h1 { font-size: clamp(2.5rem, 5.2vw, 4.55rem); text-wrap: balance; }
.tm-hero-copy h1 > span { display: block; }
.tm-hero-copy p, .tm-page-title p { color: var(--tm-muted); max-width: 44ch; font-size: clamp(1rem, 1.4vw, 1.13rem); }
.tm-kicker { display: inline-flex; align-items: center; gap: 11px; color: var(--tm-muted); }
.tm-kicker::before { content: ""; width: 21px; height: 1px; background: currentColor; flex: 0 0 21px; }
.tm-actions { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; }
.tm-site .tm-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px;
  border: 1px solid var(--tm-accent); background: var(--tm-accent); color: #ffffff;
  font-size: .98rem; font-weight: 650; line-height: 1.45; text-align: center; text-decoration: none;
  border-radius: 7px;
  box-shadow: 0 4px 12px #263c5312;
  transition: filter 160ms ease, box-shadow 160ms ease;
}
.tm-site .tm-button:hover { filter: brightness(1.1); box-shadow: 0 7px 18px #263c5322; }
.tm-site .tm-button.tm-outline { background: transparent; color: var(--tm-accent); }
.tm-site .tm-header-visit { min-height: 44px; padding: 8px 13px; }
.tm-text-link { display: inline-block; font-size: 1rem; font-weight: 650; line-height: 1.45; padding-block: 7px; }
.tm-text-link span { margin-left: 2px; }
.tm-hero-image {
  aspect-ratio: .94; overflow: hidden;
  border-radius: 48% 48% 10px 10px / 20% 20% 10px 10px;
  background: linear-gradient(145deg, #f6f7f8, #e8edf1);
  border: 1px solid var(--tm-champagne); padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 18px 46px #263c530d;
}
.tm-hero-image img, .tm-service-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.tm-hero-figure { position: relative; isolation: isolate; padding: 10px; }
.tm-hero-figure::before { position: absolute; content: ""; inset: 0 0 34px; border: 1px solid var(--tm-line); border-radius: 48% 48% 13px 13px / 19% 19% 13px 13px; pointer-events: none; }
.tm-hero-figure figcaption, .tm-about-figure figcaption { padding-top: 12px; color: var(--tm-muted); }
.tm-hero-figure figcaption { font-size: .84rem; font-weight: 500; letter-spacing: .035em; text-transform: none; text-align: center; }
.tm-hero-location { display: grid; grid-template-columns: 1fr auto; column-gap: 25px; margin-top: 3px; padding-top: 17px; border-top: 1px solid var(--tm-line); font-size: .88rem; line-height: 1.5; text-decoration: none; }
.tm-hero-location > span:first-child { color: var(--tm-muted); }
.tm-hero-location strong { grid-column: 1; font-weight: 600; }
.tm-hero-location-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.3rem; }
.tm-hero-location:hover strong { text-decoration: underline; }
.tm-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 24px 0; border-block: 1px solid var(--tm-line);
}
.tm-facts > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--tm-line); }
.tm-facts strong { display: block; font: 1.38rem/1.2 var(--tm-serif); }
.tm-facts span { display: block; color: var(--tm-muted); font-size: .94rem; margin-top: 6px; }
.tm-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px 55px; padding: 42px 0; }
.tm-story .tm-kicker, .tm-section-title .tm-kicker { margin-bottom: 10px; }
.tm-story p { color: var(--tm-muted); max-width: 65ch; margin-bottom: 8px; }
.tm-featured { padding-block: 48px 56px; border-top: 1px solid var(--tm-line); }
.tm-section-title { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; margin-bottom: 28px; }
.tm-section-title h2 { text-wrap: balance; }
.tm-section-end { margin-top: 23px; }
.tm-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tm-service-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; border: 1px solid var(--tm-line); border-radius: 14px; overflow: hidden; background: var(--tm-paper); box-shadow: 0 6px 24px #263c5307; transition: border-color 180ms ease, box-shadow 180ms ease; }
.tm-service-card:hover, .tm-service-card:focus-within { border-color: var(--tm-champagne); box-shadow: 0 14px 30px #263c5310; }
.tm-service-card:hover .tm-text-link { text-decoration: underline; }
.tm-service-image { aspect-ratio: 1.45; padding: 12px; background: linear-gradient(145deg, #f4f6f8, #ebeff2); overflow: hidden; }
.tm-service-card-copy { display: grid; gap: 10px; align-content: start; flex: 1; padding: 21px; }
.tm-service-card-copy p { font-size: 1rem; color: var(--tm-muted); }
.tm-service-card .tm-text-link { color: var(--tm-accent); }
.tm-home-services { border-top: 0; }
.tm-home-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tm-home-tile-grid .tm-service-card h3 { font-size: clamp(1.18rem, 2.3vw, 1.52rem); }
.tm-home-tile-grid .tm-service-card-copy { gap: 10px; padding: 22px 20px; }
.tm-home-tile-grid .tm-text-link { justify-self: start; }
.tm-home-process { padding: clamp(26px, 4vw, 44px); margin-bottom: 52px; border: 1px solid var(--tm-line); border-radius: 16px; background: linear-gradient(115deg, #f2f5f7, #faf9f6); }
.tm-home-process .tm-section-title { align-items: center; }
.tm-home-process .tm-section-title > div { max-width: 650px; }
.tm-home-process .tm-section-title > p { max-width: 28ch; color: var(--tm-muted); font-size: 1rem; }
.tm-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; list-style: none; padding: 0; margin: 34px 0 24px; }
.tm-process-grid li { min-width: 0; padding-top: 20px; border-top: 1px solid #c7d0d8; }
.tm-process-number { display: inline-block; margin-bottom: 17px; color: #715b39; font: 1rem/1.2 var(--tm-sans); letter-spacing: .08em; }
.tm-process-grid h3 { margin-bottom: 13px; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; }
.tm-process-grid p { color: var(--tm-muted); font-size: 1rem; line-height: 1.7; }
.tm-home-about {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 26px 55px;
  align-items: center; padding: 4px 0 60px;
}
.tm-home-about-copy { display: grid; justify-items: start; gap: 14px; }
.tm-home-about-copy p { color: var(--tm-muted); max-width: 65ch; }
.tm-home-about-photo img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 12px 12px 40px 12px; }
.tm-home-about-photo figcaption { color: var(--tm-muted); padding-top: 10px; font-size: .94rem; }
.tm-home-reviews {
  position: relative; isolation: isolate; overflow: hidden; color: #ffffff;
  padding: clamp(28px, 5vw, 55px); margin-bottom: 46px; background: radial-gradient(ellipse at right top, #d7c5a42b, transparent 65%), #263c53; border: 1px solid #42576c; border-radius: 16px;
}
.tm-home-reviews > h2 { max-width: 24ch; text-wrap: balance; }
.tm-home-reviews > p { max-width: 65ch; margin-block: 20px 24px; color: #e3eaf0; }
.tm-home-reviews .tm-button { background: #d7c5a4; border-color: #d7c5a4; color: #263c53; }
.tm-home-reviews .tm-home-reviews-stone {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center; z-index: -2;
}
.tm-home-reviews .tm-kicker { color: #e4d5ba; margin-bottom: 14px; }
.tm-home-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; margin-top: 26px; }
.tm-home-review-grid blockquote { margin: 0; padding-left: 15px; border-left: 1px solid #d8b891; font: 1.24rem/1.45 var(--tm-serif); }
.tm-home-review-grid figcaption { color: #f0d6b5; font-size: .83rem; margin: 8px 0 0 16px; }
.tm-home-work { border-top: 0; padding-top: 10px; }
.tm-home-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tm-home-preview { display: grid; text-decoration: none; border: 1px solid var(--tm-line); border-radius: 12px; overflow: hidden; background: var(--tm-paper); transition: border-color 180ms ease, box-shadow 180ms ease; }
.tm-home-preview:hover, .tm-home-preview:focus-visible { border-color: var(--tm-champagne); box-shadow: 0 12px 24px #263c530d; }
.tm-home-preview > span { display: flex; justify-content: space-between; gap: 10px; padding: 17px 19px; font: 1.25rem/1.35 var(--tm-serif); }
.tm-home-preview:hover > span { text-decoration: underline; }

.tm-page-title { display: grid; justify-items: start; gap: 13px; padding: 48px 0 27px; }
.tm-page-title h1 { font-size: clamp(2.65rem, 5.5vw, 4.5rem); }
.tm-page-title p { max-width: 55ch; }
.tm-breadcrumb { text-decoration: none; }
.tm-breadcrumb:hover { text-decoration: underline; }
.tm-entry-content { max-width: 68ch; padding-bottom: 30px; }
.tm-entry-content > * + * { margin-top: 16px; }
.tm-entry-content h2 { font-size: clamp(1.6rem, 3.1vw, 2.25rem); margin-top: 27px; }
.tm-entry-content h2:first-child { margin-top: 0; }
.tm-entry-content h3 { margin-top: 22px; }
.tm-entry-content p { color: var(--tm-muted); }
.tm-entry-content p + p { margin-top: 14px; }
.tm-entry-content ul, .tm-entry-content ol { padding-left: 1.3em; }
.tm-service-body, .tm-about-body { display: grid; grid-template-columns: 1.14fr .86fr; align-items: start; gap: 22px 55px; padding-block: 13px 34px; }
.tm-about-body { padding-block: 47px 40px; }
.tm-about-figure img { width: 100%; max-height: 510px; object-fit: cover; }
.tm-about-banner { position: relative; isolation: isolate; overflow: hidden; background: #263c53; color: #fff; margin-top: 0; }
.tm-about-banner .tm-granite { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 77% center; z-index: -2; }
.tm-about-banner::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, #263c53f0, #263c53d6 62%, #263c5366); z-index: -1; }
.tm-about-title { display: grid; justify-items: start; gap: 15px; padding-block: 67px; }
.tm-about-title .tm-kicker { color: #e4d5ba; }
.tm-about-title p { color: #e8edf3; }
.tm-contact-actions { margin-bottom: 42px; }
.tm-quote-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 28px clamp(28px, 5vw, 65px); margin-bottom: 48px; }
.tm-quote-form, .tm-quote-confirmation { display: grid; gap: 23px; background: var(--tm-panel); border: 1px solid var(--tm-line); padding: clamp(16px, 3vw, 30px); }
.tm-quote-form fieldset { display: grid; gap: 13px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tm-quote-form legend { margin-bottom: 12px; padding: 0; font: 1.28rem/1.4 var(--tm-serif); }
.tm-quote-field { display: grid; min-width: 0; gap: 5px; }
.tm-quote-field label { font-weight: 650; }
.tm-quote-field label span { font-size: .85rem; font-weight: 400; color: var(--tm-muted); }
.tm-quote-field :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--tm-muted);
  border-radius: 3px; background: var(--tm-paper); color: var(--tm-ink); font: inherit;
}
.tm-quote-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--tm-accent); outline-offset: 2px; }
.tm-quote-field textarea { resize: vertical; }
.tm-quote-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tm-quote-note { color: var(--tm-muted); font-size: .85rem; }
.tm-quote-submit { display: grid; justify-items: start; gap: 9px; }
.tm-quote-submit .tm-button { cursor: pointer; }
.tm-quote-error { padding: 12px 16px; border-inline-start: 4px solid var(--tm-accent); background: var(--tm-paper); }
.tm-quote-error ul { margin: 4px 0 0; padding-inline-start: 20px; }
.tm-quote-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tm-quote-help { display: grid; gap: 10px; border-top: 2px solid var(--tm-accent); padding-top: 16px; }
.tm-quote-layout :is(.tm-quote-help, .tm-quote-confirmation) h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.tm-quote-help p, .tm-quote-confirmation p { color: var(--tm-muted); }
.tm-quote-help a, .tm-quote-confirmation a { justify-self: start; }
.tm-archive { padding-block: 50px; }

.tm-footer { --tm-muted: #d5dfe8; --tm-line: #52677c; background: #263c53; color: #fff; border-top: 1px solid #d7c5a4; }
.tm-footer .tm-kicker { color: #e4d5ba; }
.tm-footer .tm-button { background: #d7c5a4; border-color: #d7c5a4; color: #263c53; }
.tm-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 35px; padding-block: 36px; flex-wrap: wrap; }
.tm-footer-inner .tm-kicker { margin-bottom: 8px; }
.tm-footer-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.tm-footer-inner p { color: var(--tm-muted); margin-top: 10px; font-size: .92rem; }
.tm-footer-note {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px;
  border-top: 1px solid var(--tm-line); padding-block: 18px; color: var(--tm-muted); font-size: .9rem;
}

.tm-contact-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; margin-bottom: 60px; align-items: start; }
.tm-contact-card { display: grid; justify-items: start; gap: 19px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--tm-line); border-top: 4px solid var(--tm-champagne); border-radius: 12px; background: var(--tm-panel); }
.tm-contact-card h2 { font-size: 1.8rem; }
.tm-contact-phone { font: 600 clamp(1.8rem, 3vw, 2.6rem)/1.2 var(--tm-sans); text-decoration: none; }
.tm-contact-email { font-size: 1.05rem; }
.tm-contact-details { display: grid; gap: 18px; margin: 0; }
.tm-contact-details dt { font-size: .88rem; font-weight: 700; margin-bottom: 3px; }
.tm-contact-details dd { margin: 0; color: var(--tm-muted); }
.tm-contact-card .tm-entry-content { padding: 10px 0 0; font-size: 1rem; }
.tm-contact-map { overflow: hidden; border: 1px solid var(--tm-line); border-radius: 12px; background: var(--tm-panel); }
.tm-contact-map iframe { display: block; width: 100%; height: 620px; border: 0; }
.tm-contact-map p { padding: 15px 18px; font-size: .94rem; }
.tm-review-consent input { width: 20px; height: 20px; vertical-align: middle; accent-color: var(--tm-accent); }
.tm-review-consent label { cursor: pointer; }
.tm-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 20px 28px; }
.tm-review-card { padding: 22px; border: 1px solid var(--tm-line); border-radius: 10px; background: var(--tm-paper); color: var(--tm-ink); }
.tm-review-card blockquote { margin: 12px 0; }
.tm-review-card figcaption { font-weight: 650; }
.tm-review-rating { color: #806334; letter-spacing: .1em; }
.tm-review-source { margin-top: 12px !important; color: var(--tm-muted); }
.tm-home-reviews .tm-review-source { color: #e3eaf0; }
.tm-home-reviews .tm-reviews { margin-top: 30px; }

@media (max-width: 1000px) {
  .tm-wrap { width: calc(100% - 60px); }
  .tm-header-inner { gap: 14px; }
  .tm-menu { gap: 2px 15px; }
  .tm-home-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  :root { --tm-header-height: 73px; }
  .tm-header-inner { min-height: 72px; flex-wrap: wrap; gap: 9px 12px; padding-block: 10px; }
  .tm-menu-button:not([hidden]) { display: block; margin-inline-start: auto; }
  .tm-header-call, .tm-header-login { min-height: 44px; }
  .tm-languages a { min-height: 42px; }
  .tm-primary { width: 100%; flex-direction: column; align-items: flex-start; padding-bottom: 4px; }
  .tm-primary[data-collapsible="true"]:not([data-open="true"]) { display: none; }
  .tm-menu { display: flex; padding: 0 0 4px; gap: 0 18px; }
  .tm-menu > .menu-item-has-children > a::after { content: none; }
  .tm-menu .menu-item-has-children > .sub-menu { display: none; }
}
@media (max-width: 760px) {
  .tm-wrap { width: calc(100% - 38px); }
  .tm-hero, .tm-story, .tm-service-body, .tm-about-body, .tm-home-about { grid-template-columns: 1fr; gap: 20px; }
  .tm-hero { padding: 32px 0; gap: 30px; }
  .tm-hero-figure { width: min(100%, 530px); justify-self: center; }
  .tm-hero-image { aspect-ratio: 1; }
  .tm-facts { gap: 11px; }
  .tm-facts strong { font-size: 1.15rem; }
  .tm-facts span { font-size: .9rem; }
  .tm-facts > div + div { padding-inline-start: 13px; }
  .tm-story, .tm-featured { padding-block: 26px; }
  .tm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .tm-home-process { margin-bottom: 32px; }
  .tm-home-process .tm-section-title > p { max-width: 55ch; }
  .tm-process-grid { grid-template-columns: 1fr; gap: 23px; margin-block: 26px 18px; }
  .tm-process-number { margin-bottom: 10px; }
  .tm-home-about { padding-block: 4px 34px; gap: 25px; }
  .tm-home-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tm-page-title { padding-top: 32px; }
  .tm-about-title { padding-block: 42px; }
  .tm-about-body { padding-block: 30px; }
  .tm-service-body .tm-entry-content, .tm-about-body .tm-entry-content { padding-bottom: 0; }
  .tm-quote-layout { grid-template-columns: minmax(0, 1fr); }
  .tm-contact-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tm-contact-map iframe { height: 390px; }
  .tm-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tm-utility-inner { flex-direction: column; justify-content: center; padding-block: 7px; text-align: center; }
  .tm-facts { grid-template-columns: 1fr; gap: 0; padding-block: 7px; }
  .tm-facts > div { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 16px; padding-block: 14px; }
  .tm-facts > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--tm-line); }
  .tm-facts strong { font-size: 1.22rem; line-height: 1.3; }
  .tm-facts span { margin: 0; font-size: .94rem; line-height: 1.5; }
}
@media (max-width: 920px) and (max-height: 450px) {
  .tm-header { max-height: 100dvh; overflow: auto; }
}
@media (max-width: 455px) {
  .tm-quote-contact-fields { grid-template-columns: minmax(0, 1fr); }
  .tm-header-tools { column-gap: 8px; }
  .tm-language-full { display: none; }
  .tm-language-short { display: inline; }
  .tm-languages a { padding-inline: 8px; min-width: 44px; }
  .tm-service-grid { grid-template-columns: 1fr; }
  .tm-home-tile-grid { grid-template-columns: 1fr; gap: 18px; }
  .tm-home-tile-grid .tm-service-card-copy { padding: 20px; }
  .tm-home-tile-grid .tm-service-card-copy p { font-size: 1rem; }
  .tm-home-review-grid { grid-template-columns: 1fr; }
  .tm-home-preview > span { font-size: 1.1rem; padding: 14px; }
  .tm-brand { gap: 7px; }
  .tm-monogram { width: 34px; height: 39px; font-size: 25px; }
  .tm-name strong { font-size: 21px; }
  .tm-name small { font-size: .57rem; }
  .tm-menu-button { padding-inline: 9px; }
  .tm-menu { gap: 0 12px; }
  .tm-menu a { min-height: 44px; }
  .tm-footer-inner { padding-block: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-site :is(.tm-button, .tm-service-card, .tm-home-preview) { transition: none; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  [data-tm-scroll-reveal] {
    transition: opacity 950ms cubic-bezier(.22, 1, .36, 1), border-color 180ms ease, box-shadow 180ms ease;
  }
  [data-tm-scroll-reveal] > * {
    transition: translate 1s cubic-bezier(.22, 1, .36, 1);
  }
  [data-tm-scroll-reveal="hidden"]:not(:focus-within, :target) {
    opacity: 0;
    pointer-events: none;
    transition-duration: 550ms;
  }
  [data-tm-scroll-reveal="hidden"]:not(:focus-within, :target) > * {
    translate: 0 16px;
    transition-duration: 550ms;
  }
  [data-tm-scroll-reveal]:is(:focus-within, :target),
  [data-tm-scroll-reveal]:is(:focus-within, :target) > * {
    transition: none;
  }
}
