/* 2F Media — editable WordPress block layouts and Astra header. */

/* Page foundation */
body:has(.tf-page) {
  background: #fff;
}

body:has(.tf-page) #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

body:has(.tf-page) #content #primary,
body:has(.tf-page) #primary .site-main,
body:has(.tf-page) #primary .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.tf-page) #primary article.ast-article-single {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body:has(.tf-page) .entry-header,
body:has(.tf-page) #secondary,
body:has(.tf-page) #colophon {
  display: none;
}

.tf-page {
  --tf-blue: var(--ast-global-color-0, #0081c5);
  --tf-ink: var(--ast-global-color-2, #1e293b);
  --tf-body: var(--ast-global-color-3, #334155);
  --tf-white: var(--ast-global-color-4, #fff);
  --tf-pale: var(--ast-global-color-5, #f0f5fa);
  --tf-link: #00699f;
  --tf-muted: #58677b;
  --tf-rule: #d7e0e9;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tf-body);
  background: var(--tf-white);
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.tf-page *,
.tf-page *::before,
.tf-page *::after {
  box-sizing: border-box;
}

.tf-page > * {
  width: 100% !important;
  max-width: none !important;
  margin-block: 0 !important;
}

.tf-page .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

.tf-page .tf-wrap {
  width: 100%;
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: 32px;
}

.tf-page :where(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-buttons) {
  min-width: 0;
}

.tf-page .wp-block-columns {
  margin-block: 0;
}

.tf-page .wp-block-column > :first-child {
  margin-block-start: 0;
}

.tf-page .wp-block-column > :last-child {
  margin-block-end: 0;
}

.tf-page :where(h1, h2, h3, h4) {
  margin: 0 0 20px;
  color: var(--tf-ink);
  font-family: inherit;
  font-weight: 700;
  text-wrap: balance;
}

.tf-page h2 {
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -1.6px;
}

.tf-page h3 {
  font-size: 25px;
  line-height: 1.24;
  letter-spacing: -0.6px;
}

.tf-page h4 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.25px;
}

.tf-page p {
  margin: 0 0 1.2em;
  color: var(--tf-body);
  overflow-wrap: break-word;
}

.tf-page p:last-child {
  margin-bottom: 0;
}

.tf-page a {
  color: var(--tf-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.tf-page a:hover {
  text-decoration-thickness: 2px;
}

.tf-page :focus-visible,
body:has(.tf-page) #masthead :focus-visible {
  outline: 3px solid #0081c5;
  outline-offset: 5px;
}

.tf-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tf-page figure {
  margin: 0;
}

.tf-page .tf-kicker,
.tf-page .tf-meta {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.tf-page .tf-kicker {
  margin-bottom: 24px;
  color: var(--tf-link);
}

.tf-page .tf-meta {
  color: var(--tf-muted);
  font-size: 11px;
  letter-spacing: 1.1px;
}

.tf-page .tf-intro {
  max-width: 47ch;
  font-size: 19px;
  line-height: 1.6;
}

.tf-page .tf-note {
  color: var(--tf-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Home opening */
.tf-page .tf-hero {
  padding-block: 76px 88px;
}

.tf-page .tf-hero-columns {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 48px;
}

.tf-page .tf-hero-columns > .tf-hero-copy {
  flex: 1.05 1 0 !important;
}

.tf-page .tf-hero-columns > .tf-hero-media {
  flex: 1 1 0 !important;
}

.tf-page .tf-title {
  margin-bottom: 28px;
  font-size: clamp(72px, 5.8vw, 82px);
  line-height: 1.03;
  letter-spacing: -3.3px;
  text-wrap: initial;
}

.tf-page .tf-hero .tf-intro {
  max-width: 43ch;
}

.tf-page .tf-hero .wp-block-buttons {
  margin-top: 28px;
}

.tf-page .tf-broadcast-image,
.tf-page .tf-broadcast-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.tf-page .tf-broadcast-image {
  margin: 0 !important;
  background: #111b2a;
}

.tf-page .tf-broadcast-image > a {
  display: block;
  width: 100%;
}

.tf-page .tf-broadcast-image img {
  height: auto;
  object-fit: contain;
}

.tf-page .tf-image-caption {
  --tf-ink: #fff;
  --tf-body: #dbe5ef;
  --tf-link: #a4d9ff;
  --tf-muted: #c0d0e0;
  margin: 0 !important;
  padding: 22px 24px 24px;
  color: #fff;
  background: #1e293b;
  font-size: 14px;
  line-height: 1.55;
}

.tf-page .tf-image-caption p {
  margin-bottom: 8px;
}

.tf-page .tf-image-caption p:last-child {
  margin-bottom: 0;
}

.tf-page .tf-image-caption .tf-featured-title {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.tf-page .tf-soft-section {
  background: var(--tf-pale);
}

.tf-page .tf-project-grid + .tf-project-grid {
  margin-top: 56px;
}

.tf-page .tf-project-grid + .tf-note {
  margin-top: 24px;
}

.tf-page .tf-project-note {
  padding: 32px;
  border-top: 3px solid var(--tf-blue);
  background: var(--tf-white);
}

/* Buttons remain native WordPress blocks. */
.tf-page .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tf-page .wp-block-button {
  max-width: 100%;
}

.tf-page .wp-block-button__link,
.tf-page a.tf-button-primary,
.tf-page a.tf-button-secondary {
  display: inline-flex;
  min-height: 48px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 1px solid #1e293b;
  border-radius: 2px;
  color: #fff;
  background: #1e293b;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tf-page .tf-button-primary .wp-block-button__link,
.tf-page .wp-block-button__link.tf-button-primary {
  border-color: #1e293b;
  color: #fff;
  background: #1e293b;
}

.tf-page .tf-button-secondary .wp-block-button__link,
.tf-page .wp-block-button__link.tf-button-secondary,
.tf-page a.tf-button-secondary {
  border-color: #1e293b;
  color: #1e293b;
  background: transparent;
}

.tf-page .wp-block-button__link:hover,
.tf-page a.tf-button-primary:hover,
.tf-page a.tf-button-secondary:hover {
  border-color: #00699f;
  color: #fff;
  background: #00699f;
  text-decoration: none;
}

/* Shared sections and work. */
.tf-page .tf-section {
  padding-block: 88px;
}

.tf-page .tf-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.tf-page .tf-section-heading > * {
  min-width: 0;
}

.tf-page .tf-section-heading h2,
.tf-page .tf-section-heading > p {
  margin: 0;
}

.tf-page .tf-section-heading > p {
  max-width: 43ch;
}

.tf-page .tf-split-heading {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: start !important;
  gap: 64px;
  margin-bottom: 44px;
}

.tf-page .tf-split-heading h2 {
  max-width: 16ch;
}

.tf-page .tf-project-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 36px;
}

.tf-page .tf-project {
  min-width: 0;
  margin: 0;
}

.tf-page .tf-project-image {
  width: 100%;
  margin: 0 0 20px !important;
  background: #e8eef4;
}

.tf-page .tf-project-image a {
  display: block;
}

.tf-page .tf-project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.tf-page .tf-project-image.tf-project-logo {
  background: var(--tf-pale);
}

.tf-page .tf-project-image.tf-project-logo img {
  padding: clamp(24px, 4vw, 48px);
  object-fit: contain;
  object-position: center;
}

.tf-page .tf-project-title {
  margin: 0 0 9px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.55px;
}

.tf-page .tf-project-title a {
  color: var(--tf-ink);
  text-decoration: none;
}

.tf-page .tf-project-title a:hover {
  color: var(--tf-link);
  text-decoration: underline;
}

.tf-page .tf-project-type {
  margin-bottom: 12px;
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tf-page .tf-project > p:last-child {
  max-width: 58ch;
  font-size: 16px;
}

/* The service index uses ruled rows, with no decorative card treatment. */
.tf-page .tf-services-band,
.tf-page .tf-footer,
.tf-page .tf-contact-panel {
  --tf-ink: #fff;
  --tf-body: #d8e3ee;
  --tf-link: #a4d9ff;
  --tf-muted: #b9c9db;
  --tf-rule: #465367;
  color: var(--tf-body);
  background: #1e293b;
}

.tf-page .tf-services-band .tf-kicker {
  color: #a4d9ff;
}

.tf-page .tf-service-row {
  display: grid !important;
  grid-template-columns: minmax(32px, 0.15fr) minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  margin: 0 !important;
  padding-block: 30px;
  border-top: 1px solid var(--tf-rule);
}

.tf-page .tf-service-row:last-child {
  border-bottom: 1px solid var(--tf-rule);
}

.tf-page .tf-service-row > * {
  min-width: 0;
  margin: 0;
}

.tf-page .tf-service-no {
  padding-top: 5px;
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.tf-page .tf-service-name {
  padding-right: 16px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.65px;
}

.tf-page .tf-service-name a {
  color: var(--tf-ink);
  text-decoration: none;
}

.tf-page .tf-service-name a:hover {
  text-decoration: underline;
}

.tf-page .tf-service-copy p {
  margin-bottom: 16px;
  font-size: 16px;
}

.tf-page .tf-service-copy p:last-child {
  margin: 0;
}

.tf-page .tf-service-copy a {
  font-size: 14px;
  font-weight: 700;
}

.tf-page .tf-about-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center !important;
  gap: 72px;
}

.tf-page .tf-about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tf-page .tf-about-image.tf-founder-portrait {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.tf-page .tf-about-image.tf-founder-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
}

.tf-page .tf-founder-portrait figcaption {
  margin-top: 12px;
  color: var(--tf-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Subpages */
.tf-page .tf-page-hero {
  padding-block: 76px 68px;
  border-bottom: 1px solid var(--tf-rule);
}

.tf-page .tf-page-title {
  max-width: 100%;
  margin-bottom: 28px;
  font-size: clamp(58px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -2.6px;
}

.tf-page .tf-page-hero .tf-intro {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.55;
}

.tf-page .tf-page-hero .wp-block-buttons {
  margin-top: 28px;
}

.tf-page .tf-content-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start !important;
  gap: 64px;
}

.tf-page .tf-detail-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 64px;
  margin: 0 !important;
  padding-block: 36px;
  border-top: 1px solid var(--tf-rule);
}

.tf-page .tf-detail-row:last-child {
  border-bottom: 1px solid var(--tf-rule);
}

.tf-page .tf-detail-row > * {
  min-width: 0;
  margin-block: 0;
}

.tf-page .tf-detail-row :is(h2, h3) {
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.65px;
}

.tf-page :is(ul, ol),
.tf-page .tf-list {
  margin: 0 0 24px;
  padding-left: 22px;
}

.tf-page :is(ul, ol) li,
.tf-page .tf-list li {
  margin-block: 8px;
  padding-left: 4px;
}

.tf-page li::marker {
  color: var(--tf-link);
}

.tf-page .tf-price-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tf-page .tf-price-box {
  height: 100%;
  margin: 0;
  padding: 28px;
  border: 1px solid #cbd6e2;
  border-radius: 0;
  color: #334155;
  background: #fff;
  box-shadow: none;
}

.tf-page .tf-price-box h3 {
  margin-bottom: 24px;
  color: #1e293b;
  font-size: 22px;
}

.tf-page .tf-price-value {
  margin-bottom: 24px;
  color: #1e293b;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.6px;
  font-variant-numeric: lining-nums;
}

.tf-page .tf-price-period {
  color: #58677b;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.tf-page .tf-price-box :is(p, ul, ol) {
  color: #334155;
  font-size: 15px;
}

.tf-page .tf-price-box .tf-price-value {
  color: #1e293b;
  font-size: 44px;
}

.tf-page .tf-price-box .tf-price-period {
  color: #58677b;
  font-size: 18px;
}

.tf-page .tf-faq {
  margin: 0 !important;
  padding-block: 20px;
  border-bottom: 1px solid var(--tf-rule);
}

.tf-page .tf-faq summary {
  color: var(--tf-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.tf-page .tf-faq summary::marker {
  color: var(--tf-link);
  font-size: 14px;
}

.tf-page .tf-faq[open] > summary {
  margin-bottom: 16px;
}

.tf-page .tf-faq p:last-child {
  margin-bottom: 0;
}

.tf-page .tf-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tf-page .tf-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: transparent;
  font-size: 16px;
}

.tf-page .tf-table :is(th, td) {
  padding: 16px 14px;
  border: 0;
  border-bottom: 1px solid var(--tf-rule);
  vertical-align: top;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tf-page .tf-table th {
  color: var(--tf-ink);
  background: var(--tf-pale);
  font-weight: 700;
}

.tf-page .tf-specimen {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--tf-pale);
}

.tf-page .tf-specimen figure {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.tf-page .tf-specimen img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Contact */
.tf-page .tf-contact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start !important;
  gap: 64px;
}

.tf-page .tf-contact-panel {
  min-width: 0;
  margin: 0;
  padding: 40px;
}

.tf-page .tf-big-email {
  margin-bottom: 24px;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}

.tf-page .tf-big-email a {
  color: inherit;
  overflow-wrap: anywhere;
}

.tf-page label {
  display: block;
  margin-bottom: 8px;
  color: var(--tf-ink);
  font-size: 15px;
  font-weight: 700;
}

.tf-page input:is([type="text"], [type="email"], [type="url"], [type="tel"]),
.tf-page textarea,
.tf-page select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid #97a6b8;
  border-radius: 2px;
  color: #1e293b;
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.tf-page textarea {
  min-height: 180px;
  height: 180px;
  resize: vertical;
}

.tf-page input::placeholder,
.tf-page textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

/* Shared footer, kept within the editable page content. */
.tf-page .tf-footer {
  margin: 0;
  padding-block: 72px 28px;
}

.tf-page .tf-footer-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start !important;
  gap: 72px;
  padding-bottom: 56px;
}

.tf-page .tf-footer-title {
  max-width: 14ch;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.7px;
}

.tf-page .tf-footer-email,
.tf-page .tf-footer-email a {
  color: #fff;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

.tf-page .tf-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--tf-rule);
}

.tf-page .tf-footer-bottom p {
  margin: 0;
  color: #b9c9db;
  font-size: 13px;
  line-height: 1.7;
}

.tf-page .tf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.tf-page .tf-footer-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #d8e3ee;
  font-size: 13px;
}

.tf-page :is(.tf-footer, .tf-services-band, .tf-contact-panel) .wp-block-button__link {
  border-color: #fff;
  color: #1e293b;
  background: #fff;
}

.tf-page :is(.tf-footer, .tf-services-band, .tf-contact-panel) .tf-button-secondary .wp-block-button__link {
  border-color: #b9c9db;
  color: #fff;
  background: transparent;
}

.tf-page :is(.tf-footer, .tf-services-band, .tf-contact-panel) .wp-block-button__link:hover {
  border-color: #a4d9ff;
  color: #1e293b;
  background: #a4d9ff;
}

/* Astra remains responsible for navigation and mobile menu behaviour. */
body #masthead {
  color: #1e293b;
  background: #fff;
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body .ast-primary-header-bar,
body .main-header-bar {
  min-height: 90px;
  border-bottom: 1px solid #e1e7ee;
  background: #fff;
  box-shadow: none;
}

body .site-primary-header-wrap.ast-container,
body .main-header-bar > .ast-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 32px;
}

body .site-primary-header-wrap .ast-builder-grid-row {
  min-height: 90px;
}

body #masthead .custom-logo,
body #masthead .site-logo-img img {
  width: 160px;
  max-width: 160px;
  height: auto;
}

body #masthead .site-title,
body #masthead .site-description {
  display: none;
}

body #masthead .site-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

body #masthead .main-header-menu {
  gap: 26px;
  background: #fff;
}

body #masthead .main-header-menu > .menu-item > .menu-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

body #masthead .main-header-menu > .menu-item > .menu-link:hover,
body #masthead .main-header-menu > :is(.current-menu-item, .current-menu-ancestor) > .menu-link {
  color: #00699f;
  text-decoration: underline;
  text-underline-offset: 5px;
}

body #masthead .main-header-menu > .tf-nav-contact > .menu-link {
  padding: 12px 20px;
  border: 1px solid #1e293b;
  border-radius: 2px;
  color: #fff;
  background: #1e293b;
  text-decoration: none;
}

body #masthead .main-header-menu > .tf-nav-contact > .menu-link:hover {
  border-color: #00699f;
  color: #fff;
  background: #00699f;
}

body #masthead .main-header-menu .sub-menu {
  width: 250px;
  padding: 8px;
  border: 1px solid #d7e0e9;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body #masthead .main-header-menu .sub-menu .menu-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 14px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

body #masthead .main-header-menu .sub-menu .menu-link:hover,
body #masthead .main-header-menu .sub-menu .current-menu-item > .menu-link {
  color: #00699f;
  background: #f0f5fa;
}

body #masthead .menu-toggle {
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid #b7c4d2;
  border-radius: 2px;
  color: #1e293b;
  background: #fff;
  box-shadow: none;
}

/* Responsive layouts: preserve reading order and natural document height. */
body #masthead .ast-primary-header-bar,
body #masthead .ast-primary-header-bar .ast-builder-grid-row {
  min-height: 90px;
}

@media (max-width: 1000px) {
  .tf-page .tf-hero-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .tf-page .tf-hero-copy {
    max-width: 760px;
  }

  .tf-page .tf-hero .tf-intro {
    max-width: 49ch;
  }

  .tf-page .tf-hero-media {
    width: 100%;
    max-width: 760px;
  }
}

@media (max-width: 920px) {
  body #masthead .ast-primary-header-bar,
  body #masthead .ast-primary-header-bar .ast-builder-grid-row {
    min-height: 80px;
  }

  .tf-page .tf-section {
    padding-block: 68px;
  }

  .tf-page .tf-hero {
    padding-block: 58px 68px;
  }

  .tf-page .tf-page-hero {
    padding-block: 58px;
  }

  .tf-page :is(.tf-about-columns, .tf-content-columns, .tf-contact-grid, .tf-footer-top, .tf-split-heading) {
    gap: 40px;
  }

  .tf-page .tf-service-row {
    grid-template-columns: minmax(28px, 0.1fr) minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 24px;
  }

  .tf-page .tf-service-name {
    font-size: 25px;
  }

  .tf-page .tf-price-grid {
    gap: 16px;
  }

  .tf-page .tf-price-box {
    padding: 24px 20px;
  }

  .tf-page .tf-price-value,
  .tf-page .tf-price-box .tf-price-value {
    font-size: 39px;
  }

  .tf-page .tf-contact-panel {
    padding: 28px;
  }

  .tf-page .tf-big-email {
    font-size: 29px;
  }

  body .ast-primary-header-bar,
  body .main-header-bar,
  body .site-primary-header-wrap .ast-builder-grid-row {
    min-height: 80px;
  }

  body #masthead .ast-mobile-header-content,
  body #masthead .ast-builder-menu-mobile .main-header-menu {
    background: #fff;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu {
    display: block;
    padding-block: 8px 16px;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu > .menu-item > .menu-link {
    min-height: 52px;
    padding: 14px 32px;
    border: 0;
    border-radius: 0;
    font-size: 16px;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu > .tf-nav-contact > .menu-link {
    width: auto;
    max-width: calc(100% - 64px);
    margin: 8px 32px 0;
    padding: 14px 20px;
    border-radius: 2px;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu .sub-menu {
    width: 100%;
    padding: 0 16px 8px;
    border: 0;
    background: #f0f5fa;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu .sub-menu .menu-link {
    min-height: 48px;
    padding: 12px 32px;
    font-size: 15px;
  }

  body #masthead .ast-menu-toggle {
    top: 2px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    color: #1e293b;
  }
}

@media (max-width: 781px) {
  .tf-page .tf-section-heading {
    display: block;
  }

  .tf-page .tf-section-heading > p,
  .tf-page .tf-section-heading > .wp-block-group + .wp-block-group {
    margin-top: 20px;
  }

  .tf-page :is(.tf-split-heading, .tf-about-columns, .tf-content-columns, .tf-contact-grid, .tf-footer-top) {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .tf-page .tf-split-heading h2 {
    max-width: 22ch;
  }

  .tf-page .tf-project-grid {
    gap: 36px 24px;
  }

  .tf-page .tf-project-title {
    font-size: 22px;
  }

  .tf-page .tf-detail-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 30px;
  }

  .tf-page .tf-price-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .tf-page .tf-price-box {
    padding: 28px;
  }

  .tf-page .tf-price-value,
  .tf-page .tf-price-box .tf-price-value {
    font-size: 44px;
  }

  .tf-page .tf-about-image {
    max-width: 680px;
  }

  .tf-page .tf-contact-panel {
    padding: 36px;
  }

  .tf-page .tf-big-email {
    font-size: 34px;
  }

  .tf-page .tf-footer-top {
    padding-bottom: 36px;
  }

  .tf-page .tf-footer-title {
    max-width: 20ch;
  }
}

@media (max-width: 680px) {
  .tf-page .tf-service-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-block: 28px;
  }

  .tf-page .tf-service-no {
    padding-top: 0;
    font-size: 12px;
  }

  .tf-page .tf-service-name {
    padding-right: 0;
    font-size: 27px;
  }

  .tf-page .tf-service-copy {
    max-width: 60ch;
  }
}

@media (max-width: 600px) {
  body #masthead .ast-primary-header-bar,
  body #masthead .ast-primary-header-bar .ast-builder-grid-row {
    min-height: 76px;
  }

  .tf-page {
    font-size: 16px;
    line-height: 1.65;
  }

  .tf-page .tf-wrap {
    padding-inline: 22px;
  }

  .tf-page .tf-hero {
    padding-block: 42px 52px;
  }

  .tf-page .tf-hero-columns {
    gap: 32px;
  }

  .tf-page .tf-title {
    margin-bottom: 24px;
    font-size: 44px;
    line-height: 1.04;
    letter-spacing: -1.8px;
  }

  .tf-page .tf-kicker {
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 1.15px;
  }

  .tf-page .tf-intro,
  .tf-page .tf-page-hero .tf-intro {
    font-size: 18px;
    line-height: 1.6;
  }

  .tf-page .tf-section {
    padding-block: 52px;
  }

  .tf-page h2 {
    font-size: 33px;
    line-height: 1.14;
    letter-spacing: -1.1px;
  }

  .tf-page h3 {
    font-size: 24px;
  }

  .tf-page .tf-section-heading,
  .tf-page .tf-split-heading {
    margin-bottom: 30px;
  }

  .tf-page .tf-project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .tf-page .tf-project-image {
    margin-bottom: 18px !important;
  }

  .tf-page .tf-project-title {
    font-size: 24px;
  }

  .tf-page .tf-image-caption {
    padding: 18px 20px 20px;
    font-size: 13px;
  }

  .tf-page .tf-page-hero {
    padding-block: 42px;
  }

  .tf-page .tf-page-title {
    margin-bottom: 22px;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.7px;
  }

  .tf-page .tf-page-title br {
    display: initial;
  }

  .tf-page .tf-detail-row :is(h2, h3) {
    font-size: 25px;
  }

  .tf-page .tf-faq summary {
    font-size: 18px;
  }

  .tf-page .tf-table table {
    font-size: 14px;
  }

  .tf-page .tf-table :is(th, td) {
    padding: 13px 10px;
  }

  .tf-page .tf-specimen {
    min-height: 190px;
    padding: 28px;
  }

  .tf-page .tf-contact-panel {
    padding: 28px 24px;
  }

  .tf-page .tf-big-email {
    font-size: 28px;
    letter-spacing: -0.6px;
  }

  .tf-page .tf-footer {
    padding-block: 52px 24px;
  }

  .tf-page .tf-footer-title {
    font-size: 36px;
    letter-spacing: -1.3px;
  }

  .tf-page .tf-footer-email,
  .tf-page .tf-footer-email a {
    font-size: 25px;
  }

  .tf-page .tf-footer-bottom {
    display: block;
    padding-top: 20px;
  }

  .tf-page .tf-footer-links {
    gap: 4px 18px;
    margin-top: 12px !important;
  }

  .tf-page .tf-footer-links a {
    min-height: 44px;
  }

  body .ast-primary-header-bar,
  body .main-header-bar,
  body .site-primary-header-wrap .ast-builder-grid-row {
    min-height: 76px;
  }

  body .site-primary-header-wrap.ast-container,
  body .main-header-bar > .ast-container {
    padding-inline: 22px;
  }

  body #masthead .custom-logo,
  body #masthead .site-logo-img img {
    width: 144px;
    max-width: 144px;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu > .menu-item > .menu-link {
    padding-inline: 22px;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu > .tf-nav-contact > .menu-link {
    max-width: calc(100% - 44px);
    margin-inline: 22px;
    padding-inline: 20px;
  }

  body #masthead .ast-builder-menu-mobile .main-header-menu .sub-menu .menu-link {
    padding-inline: 22px;
  }

  body #masthead .ast-menu-toggle {
    right: 14px;
  }
}

@media (max-width: 380px) {
  .tf-page .tf-title,
  .tf-page .tf-page-title {
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  .tf-page .wp-block-buttons {
    align-items: stretch;
  }

  .tf-page .wp-block-buttons > .wp-block-button {
    width: 100%;
  }

  .tf-page .wp-block-buttons .wp-block-button__link {
    width: 100%;
  }

  .tf-page .tf-price-box {
    padding: 24px;
  }

  .tf-page .tf-big-email {
    font-size: 24px;
  }

  .tf-page .tf-footer-email,
  .tf-page .tf-footer-email a {
    font-size: 23px;
  }
}

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

.tf-page .tf-text-link span { font-family: Arial, "DejaVu Sans", sans-serif; }
