/*
Theme Name: Twins Ventures Light
Theme URI: https://twinsventures.com
Author: Twins Ventures
Author URI: https://twinsventures.com
Description: Official WordPress theme for Twins Ventures — white header variant. Fully standalone parent theme. Features a custom Companies post type, dynamically managed footer DBA listing, WordPress Customizer social icons, and full block-editor support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twins-ventures
Tags: business, portfolio, custom-post-types, full-site-editing, responsive-layout, light-header
*/

/* ============================================================
   BRAND TOKENS — extracted from twins-ventures.svg
   ============================================================ */
:root {
  --tv-teal:       #00968f;
  --tv-teal-dark:  #007870;
  --tv-teal-light: #e0f4f3;
  --tv-slate:      #dbe2e9;
  --tv-dark:       #1d252d;
  --tv-dark-mid:   #2e3a45;
  --tv-white:      #ffffff;
  --tv-gray:       #f5f7f9;
  --tv-text:       #1d252d;
  --tv-text-mid:   #3d4f5d;
  --tv-text-light: #6b7c8d;
  --tv-border:     #e4e9ef;
  --tv-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --tv-radius:     6px;
  --tv-radius-lg:  10px;
  --tv-shadow:     0 1px 4px rgba(29,37,45,0.08);
  --tv-shadow-md:  0 4px 16px rgba(29,37,45,0.12);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--tv-font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tv-text);
  background: var(--tv-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tv-teal);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--tv-teal-dark); text-decoration: underline; }

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: 500;
  line-height: 1.3;
  color: var(--tv-dark);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin: 0 0 1.25em; }
li { margin-bottom: 0.35em; }

blockquote {
  border-left: 3px solid var(--tv-teal);
  margin: 1.5em 0;
  padding: 0.75em 1.25em;
  background: var(--tv-teal-light);
  border-radius: 0 var(--tv-radius) var(--tv-radius) 0;
  font-style: italic;
  color: var(--tv-text-mid);
}

code, pre {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.875em;
  background: var(--tv-gray);
  border-radius: var(--tv-radius);
}
code { padding: 0.15em 0.4em; }
pre { padding: 1em 1.25em; overflow-x: auto; }

hr {
  border: none;
  border-top: 1px solid var(--tv-border);
  margin: 2em 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.tv-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tv-section {
  padding: 5rem 0;
}

.tv-section--light { background: var(--tv-white); }
.tv-section--gray  { background: var(--tv-gray); }
.tv-section--slate { background: var(--tv-slate); }
.tv-section--dark  { background: var(--tv-dark-mid); }

.tv-section-tag {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tv-teal);
  margin-bottom: 0.6em;
}

.tv-section-heading {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--tv-dark);
  margin-bottom: 0.5em;
}

.tv-section-sub {
  font-size: 1rem;
  color: var(--tv-text-light);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* Grid helpers */
.tv-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tv-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.tv-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tv-btn,
.wp-block-button__link {
  display: inline-block;
  padding: 0.7em 1.5em;
  border-radius: var(--tv-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
}

.tv-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--tv-teal);
  color: var(--tv-white) !important;
  border-color: var(--tv-teal);
}
.tv-btn--primary:hover { background: var(--tv-teal-dark); border-color: var(--tv-teal-dark); text-decoration: none; }

.tv-btn--outline {
  background: transparent;
  color: var(--tv-teal);
  border-color: var(--tv-teal);
}
.tv-btn--outline:hover { background: var(--tv-teal); color: var(--tv-white); text-decoration: none; }

.tv-btn--ghost {
  background: transparent;
  color: var(--tv-slate);
  border-color: rgba(219, 226, 233, 0.35);
}
.tv-btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--tv-white); text-decoration: none; }

/* ============================================================
   SITE HEADER — light/white variant
   ============================================================ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tv-white);
  border-bottom: 1px solid var(--tv-border);
  transition: box-shadow 0.2s;
}

#masthead.scrolled {
  box-shadow: 0 2px 12px rgba(29,37,45,0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-branding .custom-logo {
  max-height: 40px;
  width: auto;
}

.site-branding__text {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--tv-dark);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.site-name span { color: var(--tv-teal); }

.site-description {
  font-size: 0.6875rem;
  color: var(--tv-text-light);
  letter-spacing: 0.05em;
}

/* Primary navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-navigation ul li a {
  display: block;
  padding: 0.5em 0.875em;
  font-size: 0.875rem;
  color: var(--tv-text-mid);
  border-radius: var(--tv-radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-ancestor > a {
  color: var(--tv-dark);
  background: var(--tv-gray);
}

.main-navigation ul li.current-menu-item > a {
  color: var(--tv-teal);
  background: var(--tv-teal-light);
}

/* Dropdown support */
.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--tv-white);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  box-shadow: 0 4px 16px rgba(29,37,45,0.1);
  padding: 0.5rem 0;
  flex-direction: column;
  gap: 0;
  display: none;
  z-index: 200;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li:hover > ul {
  display: flex;
}

.main-navigation ul ul li a {
  border-radius: 0;
  padding: 0.5em 1.25em;
  white-space: nowrap;
}

/* Header social icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-social__divider {
  width: 1px;
  height: 20px;
  background: var(--tv-border);
  margin: 0 0.25rem;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tv-text-light);
  font-size: 1.0625rem;
  transition: color 0.15s;
  text-decoration: none;
}

.header-social a:hover {
  color: var(--tv-teal);
  text-decoration: none;
}

.header-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  padding: 0.4em 0.6em;
  cursor: pointer;
  color: var(--tv-text-mid);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  border-radius: 1px;
  transition: all 0.2s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.tv-hero {
  background: var(--tv-dark);
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.tv-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: var(--tv-teal);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.tv-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: var(--tv-teal);
  opacity: 0.04;
  border-radius: 50%;
  pointer-events: none;
}

.tv-hero__inner {
  position: relative;
  z-index: 1;
}

.tv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(0,150,143,0.12);
  border: 1px solid rgba(0,150,143,0.3);
  border-radius: 2em;
  padding: 0.3em 1em;
  font-size: 0.75rem;
  color: var(--tv-teal);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.tv-hero__eyebrow {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tv-teal);
  font-weight: 500;
  margin-bottom: 0.875rem;
}

.tv-hero__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--tv-white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.tv-hero__heading em,
.tv-hero__heading span.accent {
  color: var(--tv-teal);
  font-style: normal;
}

.tv-hero__sub {
  font-size: 1.0625rem;
  color: var(--tv-slate);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2rem;
}

.tv-hero__ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.tv-stats {
  background: var(--tv-dark-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tv-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tv-stat {
  padding: 1.75rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.tv-stat:last-child { border-right: none; }

.tv-stat__number {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--tv-teal);
  line-height: 1;
  margin-bottom: 0.3em;
}

.tv-stat__label {
  font-size: 0.8125rem;
  color: var(--tv-slate);
  line-height: 1.4;
}

/* ============================================================
   COMPANY CARDS (CPT archive / homepage grid)
   ============================================================ */
.tv-companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.company-card {
  background: var(--tv-white);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.company-card:hover {
  box-shadow: var(--tv-shadow-md);
  transform: translateY(-2px);
}

.company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tv-teal);
}

.company-card__icon {
  width: 44px;
  height: 44px;
  background: var(--tv-teal-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.company-card__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--tv-teal);
}

.company-card__thumbnail {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.company-card__status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2em 0.75em;
  border-radius: 2em;
  background: var(--tv-teal-light);
  color: var(--tv-teal);
}

.company-card__name {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--tv-dark);
  margin-bottom: 0.5rem;
}

.company-card__desc {
  font-size: 0.875rem;
  color: var(--tv-text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.company-card__actions {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.company-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8125rem;
  color: var(--tv-teal);
  font-weight: 500;
  transition: gap 0.15s;
}
.company-card__link:hover { gap: 0.5em; text-decoration: none; }

/* ============================================================
   ABOUT / SPLIT SECTION
   ============================================================ */
.tv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tv-split__visual {
  background: var(--tv-teal-light);
  border-radius: var(--tv-radius-lg);
  border: 1px solid rgba(0,150,143,0.15);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-header {
  background: var(--tv-teal-light);
  border-bottom: 1px solid rgba(0,150,143,0.15);
  padding: 3rem 0;
}

.page-header__breadcrumb {
  font-size: 0.8125rem;
  color: var(--tv-teal);
  margin-bottom: 0.625rem;
}

.page-header__breadcrumb a {
  color: var(--tv-teal);
}

.page-header__title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--tv-dark);
  margin: 0 0 0.4rem;
}

.page-header__desc {
  font-size: 1rem;
  color: var(--tv-text-light);
  margin: 0;
}

/* Entry content — full block editor output styles */
.entry-content {
  max-width: 720px;
}

.entry-content > * + * { margin-top: 1.5em; }

.entry-content .wp-block-image figcaption {
  font-size: 0.8125rem;
  color: var(--tv-text-light);
  text-align: center;
  margin-top: 0.5em;
}

/* Gutenberg alignment classes */
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }
.alignwide  { margin-left: -4rem; margin-right: -4rem; max-width: calc(100% + 8rem); }
.aligncenter { text-align: center; }
.alignright { float: right; margin-left: 1.5em; }
.alignleft  { float: left; margin-right: 1.5em; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ============================================================
   SINGLE COMPANY PROFILE
   ============================================================ */
.company-single__header {
  background: var(--tv-dark);
  padding: 4rem 0;
  color: var(--tv-white);
}

.company-single__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.company-single__logo {
  max-height: 60px;
  background: var(--tv-white);
  padding: 0.5rem;
  border-radius: var(--tv-radius);
}

.company-single__industry {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tv-teal);
  font-weight: 500;
}

.company-single__website {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 1.5rem;
}

/* ============================================================
   CONTACT FORM AREA
   ============================================================ */
.tv-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.tv-contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tv-contact__info-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--tv-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tv-contact__info-icon svg { width: 18px; height: 18px; fill: var(--tv-teal); }

/* CF7 / WPForms overrides */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
  width: 100%;
  padding: 0.65em 1em;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  font-family: var(--tv-font);
  font-size: 0.9375rem;
  color: var(--tv-text);
  background: var(--tv-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: var(--tv-teal);
  box-shadow: 0 0 0 3px rgba(0,150,143,0.15);
  outline: none;
}

.wpcf7-submit,
.wpforms-submit {
  background: var(--tv-teal) !important;
  color: var(--tv-white) !important;
  border: none !important;
  padding: 0.7em 2em !important;
  border-radius: var(--tv-radius) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}
.wpcf7-submit:hover,
.wpforms-submit:hover { background: var(--tv-teal-dark) !important; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
#colophon {
  background: var(--tv-dark);
  color: var(--tv-slate);
}

.site-footer__top {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand__tagline {
  font-size: 0.875rem;
  color: rgba(219,226,233,0.65);
  line-height: 1.7;
  max-width: 240px;
  margin-top: 0.875rem;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(219,226,233,0.65);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--tv-teal);
  border-color: var(--tv-teal);
  color: var(--tv-white);
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Footer widget columns */
.footer-widget-area h3,
.footer-widget-area .widget-title {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tv-teal);
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget-area ul li {
  margin-bottom: 0.6rem;
}

.footer-widget-area ul li a {
  font-size: 0.875rem;
  color: rgba(219,226,233,0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-widget-area ul li a:hover {
  color: var(--tv-teal);
}

/* Dynamic DBA list in footer */
.footer-companies-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-companies-list li {
  margin-bottom: 0.6rem;
}

.footer-companies-list a {
  font-size: 0.875rem;
  color: rgba(219,226,233,0.75);
  transition: color 0.15s;
  text-decoration: none;
}

.footer-companies-list a:hover {
  color: var(--tv-teal);
}

/* Footer bottom bar */
.site-footer__bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: rgba(219,226,233,0.4);
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.site-footer__legal a {
  font-size: 0.75rem;
  color: rgba(219,226,233,0.4);
  transition: color 0.15s;
}

.site-footer__legal a:hover { color: var(--tv-teal); }

/* ============================================================
   WORDPRESS CORE — Admin bar, screen reader, pagination
   ============================================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  clip: auto !important;
  height: auto;
  width: auto;
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--tv-dark);
  color: var(--tv-white);
  border-radius: var(--tv-radius);
  z-index: 999;
}

/* Pagination */
.pagination,
.nav-links {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75em;
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  font-size: 0.875rem;
  color: var(--tv-text-mid);
  transition: all 0.15s;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--tv-teal);
  border-color: var(--tv-teal);
  color: var(--tv-white);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  padding: 8rem 0;
  text-align: center;
}

.error-404__code {
  font-size: 8rem;
  font-weight: 500;
  color: var(--tv-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.15;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tv-grid-3,
  .tv-companies-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .tv-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .tv-split { grid-template-columns: 1fr; gap: 2rem; }
  .tv-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; flex-direction: column; align-items: center; }

  .main-navigation {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--tv-white);
    border-top: 1px solid var(--tv-border);
    border-bottom: 1px solid var(--tv-border);
    box-shadow: 0 4px 12px rgba(29,37,45,0.08);
    padding: 1rem;
    display: none;
    justify-content: flex-start;
  }

  .main-navigation.toggled { display: flex; }
  .main-navigation ul { flex-direction: column; width: 100%; }
  .main-navigation ul li a { padding: 0.75em 1em; width: 100%; }
  .main-navigation ul ul { position: static; display: flex; border: none; padding: 0 0 0 1rem; }

  .tv-grid-3,
  .tv-companies-grid,
  .tv-grid-2,
  .tv-grid-4 { grid-template-columns: 1fr; }

  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .tv-stats__inner { grid-template-columns: repeat(2, 1fr); }

  .tv-hero { padding: 4rem 0 5rem; }
  .tv-hero__heading { font-size: 1.75rem; }

  .tv-section { padding: 3rem 0; }
  .tv-container { padding: 0 1.25rem; }

  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .tv-stats__inner { grid-template-columns: 1fr 1fr; }
  .tv-stat { padding: 1.25rem; }
  .header-social { display: none; }
}

/* ============================================================
   BLOCK EDITOR — Editor styles (loaded via add_editor_style)
   ============================================================ */
.editor-styles-wrapper {
  font-family: var(--tv-font) !important;
  color: var(--tv-text) !important;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
  font-weight: 500;
  color: var(--tv-dark);
}

.wp-block-buttons .wp-block-button__link {
  border-radius: var(--tv-radius) !important;
  font-weight: 500 !important;
}
