@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

/* --- 1. CORE VARIABLES (non-color) --- */
:root {
  --ernies-radius: 4px;
  --ernies-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --ernies-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 !important;
  font-family: 'Inter', sans-serif;
  color: var(--wp--preset--color--text);
  background-color: var(--wp--preset--color--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Force zero margins between all top-level sections */
.wp-site-blocks > *,
main.wp-block-group > *,
.ernies-section {
  margin-top: 0;
  margin-bottom: 0;
}

/* --- 3. TYPOGRAPHY - REFINED PREMIUM --- */
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6,
.wp-site-blocks .wp-block-heading,
.wp-site-blocks .wp-block-post-title,
.wp-site-blocks .ernies-site-title {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.25rem 0;
  color: var(--wp--preset--color--black);
}

.wp-site-blocks h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.wp-site-blocks h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.wp-site-blocks h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.wp-site-blocks p,
.wp-site-blocks li,
.wp-site-blocks span:not(.wp-block-cover__background),
.wp-site-blocks div:not([class*="wp-block"]),
.wp-site-blocks blockquote {
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.25rem;
  color: var(--wp--preset--color--muted);
}

.wp-site-blocks strong {
  color: var(--wp--preset--color--text);
  font-weight: 600;
}

.wp-site-blocks cite {
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--text);
}

.wp-site-blocks a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wp-site-blocks a:hover {
  color: var(--wp--preset--color--primary-dark);
  text-decoration: none;
  opacity: 0.85;
}

/* Dark Mode Spacing & Colors */
.ernies-section-dark,
.has-black-background-color,
.wp-block-cover.is-dark {
  color: var(--wp--preset--color--white);
}

.ernies-section-dark h1, .ernies-section-dark h2, .ernies-section-dark h3, .ernies-section-dark h4, .ernies-section-dark h5, .ernies-section-dark h6,
.has-black-background-color h1, .has-black-background-color h2, .has-black-background-color h3,
.wp-block-cover.is-dark h1, .wp-block-cover.is-dark h2, .wp-block-cover.is-dark h3 {
  color: var(--wp--preset--color--white);
}

.ernies-section-dark p, .ernies-section-dark li,
.has-black-background-color p, .has-black-background-color li,
.wp-block-cover.is-dark p, .wp-block-cover.is-dark li {
  color: rgba(255, 255, 255, 0.9);
}

.ernies-section-dark a,
.has-black-background-color a,
.wp-block-cover.is-dark a {
  color: var(--wp--preset--color--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 4px;
}

.ernies-section-dark a:hover,
.has-black-background-color a:hover,
.wp-block-cover.is-dark a:hover {
  color: var(--wp--preset--color--primary);
  text-decoration-color: var(--wp--preset--color--primary);
}

/* Outline buttons in dark sections */
.ernies-section-dark .is-style-outline .wp-block-button__link,
.has-black-background-color .is-style-outline .wp-block-button__link,
.wp-block-cover.is-dark .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--wp--preset--color--white);
}

.ernies-section-dark .is-style-outline .wp-block-button__link:hover,
.has-black-background-color .is-style-outline .wp-block-button__link:hover,
.wp-block-cover.is-dark .is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- 4. LAYOUT & SPACING --- */
.ernies-section {
  padding: 120px 24px;
  max-width: 100%;
  display: block;
}

.ernies-section-gray { background-color: var(--wp--preset--color--gray-50); }
.ernies-section-dark { background-color: var(--wp--preset--color--black); }

/* Standardize columns gap */
.wp-site-blocks .wp-block-columns { gap: 60px; }

/* Standardize internal block stacking */
.wp-block-group > * + *,
.wp-block-column > * + * {
  margin-top: 1.5rem;
}

/* --- 5. HEADER --- */
.ernies-site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid var(--wp--preset--color--gray-200);
}

.ernies-site-logo img {
  height: auto;
  max-height: 48px;
  width: auto;
}

.wp-block-navigation .wp-block-navigation-item__content {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wp--preset--color--text);
  padding: 8px 16px;
  line-height: 1.2;
}

/* Dropdown Submenus */
.wp-block-navigation-item.has-child {
  position: relative;
}

.wp-block-navigation__submenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--gray-200);
  box-shadow: var(--ernies-shadow-lg);
  padding: 12px 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  transform: translateY(10px);
  list-style: none;
  margin: 0;
}

.wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 10px 24px;
  font-size: 0.85rem;
  display: block;
  white-space: nowrap;
}

.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--gray-50);
  color: var(--wp--preset--color--primary);
}

/* Ensure mobile overlay works correctly */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  background: transparent;
  padding-left: 20px;
}

.ernies-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 32px;
}

/* Mobile Navigation Overlay */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--black);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 1.25rem;
  color: var(--wp--preset--color--white);
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: none;
}

/* --- 6. BUTTONS --- */
.wp-site-blocks .wp-block-button__link,
.wp-site-blocks .wp-element-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  padding: 16px 32px;
  border-radius: var(--ernies-radius);
  transition: all 0.3s ease;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wp-site-blocks .wp-block-button__link:hover,
.wp-site-blocks .wp-element-button:hover {
  background-color: var(--wp--preset--color--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(225, 6, 19, 0.15);
}

.wp-site-blocks .is-style-outline .wp-block-button__link,
.wp-site-blocks .is-style-outline .wp-element-button {
  background-color: transparent;
  border: 1px solid var(--wp--preset--color--gray-300);
  color: var(--wp--preset--color--text);
}

.wp-site-blocks .is-style-outline .wp-block-button__link:hover,
.wp-site-blocks .is-style-outline .wp-element-button:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  background-color: var(--wp--preset--color--gray-50);
}

/* --- 7. CARDS --- */
:where(.ernies-card) {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--gray-200);
  padding: 40px;
  border-radius: var(--ernies-radius);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

:where(.ernies-card):hover {
  transform: translateY(-8px);
  box-shadow: var(--ernies-shadow-lg);
  border-color: var(--wp--preset--color--primary);
}

:where(.ernies-card) img {
  margin-bottom: 20px;
  border-radius: var(--ernies-radius);
}

/* --- 8. HERO --- */
.ernies-hero-panel {
  padding: 60px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  border-radius: var(--ernies-radius);
  box-shadow: var(--ernies-shadow-lg);
  max-width: 760px;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.ernies-hero-panel h1, .ernies-hero-panel p {
  color: var(--wp--preset--color--black);
}

/* --- 9. ACCORDION --- */
.wp-site-blocks .wp-block-details {
  border: 1px solid var(--wp--preset--color--gray-200);
  border-radius: var(--ernies-radius);
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.wp-site-blocks .wp-block-details summary {
  padding: 24px 32px;
  background: var(--wp--preset--color--white);
  font-size: 1.15rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  margin: 0;
}

.wp-site-blocks .wp-block-details summary:hover {
  background: var(--wp--preset--color--gray-50);
}

/* --- 10. LISTS --- */
.is-style-checkmarks {
  list-style: none;
  padding-left: 0;
}

.is-style-checkmarks li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 1.5rem;
}

.is-style-checkmarks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- 11. FOOTER SPECIFIC --- */
.ernies-site-footer {
  font-size: 0.9rem;
  padding: 80px 24px;
}

.ernies-site-footer h4,
.ernies-site-footer .wp-block-heading {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--wp--preset--color--white);
  letter-spacing: 0.05em;
}

.ernies-site-footer p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ernies-site-footer .alignwide[style*="border-top"] {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  opacity: 0.8;
}

/* --- 12. ACCESSIBILITY --- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  padding: 10px 20px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* --- 13. PAGE-SCOPED HEADER OVERRIDE (ATC replica) --- */
body.wp-template-page-atc-replica .ernies-site-header,
body.page-template-page-atc-replica .ernies-site-header,
body[class*="page-atc-replica"] .ernies-site-header {
  background: var(--wp--preset--color--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.wp-template-page-atc-replica .wp-block-navigation .wp-block-navigation-item__content,
body.page-template-page-atc-replica .wp-block-navigation .wp-block-navigation-item__content,
body[class*="page-atc-replica"] .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--wp--preset--color--white);
}

body.wp-template-page-atc-replica .ernies-site-header .is-style-outline .wp-block-button__link,
body.page-template-page-atc-replica .ernies-site-header .is-style-outline .wp-block-button__link,
body[class*="page-atc-replica"] .ernies-site-header .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--wp--preset--color--white);
}

body.wp-template-page-atc-replica .ernies-site-header .is-style-outline .wp-block-button__link:hover,
body.page-template-page-atc-replica .ernies-site-header .is-style-outline .wp-block-button__link:hover,
body[class*="page-atc-replica"] .ernies-site-header .is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}

body.wp-template-page-atc-replica .ernies-site-header .wp-block-navigation__submenu-icon svg,
body.page-template-page-atc-replica .ernies-site-header .wp-block-navigation__submenu-icon svg,
body[class*="page-atc-replica"] .ernies-site-header .wp-block-navigation__submenu-icon svg {
  fill: var(--wp--preset--color--white);
}

/* --- 14. FULL PAGE REPLICA (ATC V1) --- */
.atc-replica-page > * {
  margin: 0;
}

.atc-replica-page {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--atc-font-body);
  /* ATC v1 style guide tokens */
  --atc-red: #e10613;
  --atc-red-dark: #b9040f;
  --atc-black: #050505;
  --atc-charcoal: #121212;
  --atc-light: #efefef;
  --atc-font-display: 'Oswald', sans-serif;
  --atc-font-body: 'Inter', sans-serif;
  --atc-section-title-size: clamp(30px, 3.3vw, 52px);
  --atc-subheading-size: clamp(17px, 1.55vw, 20px);
  --atc-copy-size: 16px;
  --atc-card-title-size: clamp(22px, 2.5vw, 30px);
  --atc-meta-title-size: clamp(18px, 1.7vw, 22px);
  --atc-section-space: 52px;
  --atc-copy-max: 900px;
  --atc-line-tight: 1.1;
  --atc-line-regular: 1.5;
  --atc-surface-950: #080808;
  --atc-surface-900: #0e0e0f;
  --atc-surface-800: #161616;
  --atc-border-soft: rgba(255, 255, 255, 0.14);
  --atc-border-strong: rgba(255, 255, 255, 0.26);
  --atc-shadow-card: 0 10px 22px rgba(0, 0, 0, 0.26);
  --atc-shadow-pop: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.atc-replica-page h1,
.atc-replica-page h2,
.atc-replica-page h3 {
  letter-spacing: 0;
  line-height: var(--atc-line-tight);
}

.atc-replica-page p {
  letter-spacing: 0;
  font-size: var(--atc-copy-size);
  line-height: var(--atc-line-regular);
}

.atc-replica-page .atc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.atc-replica-page .atc-header {
  background: var(--atc-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.atc-replica-page .atc-top-strip {
  height: 8px;
  background: linear-gradient(90deg, var(--atc-red), #ff2c39);
}

.atc-replica-page .atc-header-inner {
  padding: 14px 0 12px;
}

.atc-replica-page .atc-header-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.atc-replica-page .atc-phone-btn {
  min-width: 280px;
  background: var(--atc-red);
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--atc-red);
  transition: all 0.2s ease;
}

.atc-replica-page .atc-phone-btn:hover {
  color: #fff;
  background: var(--atc-red-dark);
  border-color: var(--atc-red-dark);
  opacity: 1;
}

.atc-replica-page .atc-header-row-brand {
  margin-top: 0;
  gap: 20px;
}

.atc-replica-page .atc-logo-link img {
  width: 220px;
  max-width: 100%;
  display: block;
}

.atc-replica-page .atc-nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex: 1;
}

.atc-replica-page .atc-nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.atc-replica-page .atc-nav-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.atc-replica-page .atc-hero {
  position: relative;
  background-image: url('/wp-content/themes/ernies-block/assets/images/photos/ernies-emergency-responsee-wrecker-towing-larger-landscape-truck-with-vh-police-assisting-traffic-local-partnerships-police.jpg');
  background-size: cover;
  background-position: center 42%;
  border-top: 1px solid #222;
  border-bottom: 4px solid var(--atc-red);
}

.atc-replica-page .atc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.66) 100%);
}

.atc-replica-page .atc-hero-content {
  position: relative;
  padding: 60px 20px 64px;
  text-align: center;
}

.atc-replica-page .atc-hero-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 28px;
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.atc-replica-page .atc-hero-kicker {
  font-family: var(--atc-font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.atc-replica-page .atc-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.06;
}

.atc-replica-page .atc-hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: #fff;
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.atc-replica-page .atc-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.atc-replica-page .atc-cta {
  display: inline-block;
  background: var(--atc-red);
  color: #fff;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.2s ease;
}

.atc-replica-page .atc-cta:hover {
  color: #fff;
  background: var(--atc-red-dark);
  transform: translateY(-1px);
}

.atc-replica-page .atc-intro {
  background: var(--atc-light);
  color: #111;
  border-bottom: 4px solid var(--atc-red);
}

.atc-replica-page .atc-intro .atc-container {
  max-width: 1100px;
  padding-top: var(--atc-section-space);
  padding-bottom: var(--atc-section-space);
}

.atc-replica-page .atc-intro-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  align-items: start;
}

.atc-replica-page .atc-eyebrow {
  color: var(--atc-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px;
  font-family: var(--atc-font-display);
}

.atc-replica-page .atc-intro h2,
.atc-replica-page .atc-experts h2,
.atc-replica-page .atc-services h2,
.atc-replica-page .atc-contact-quick h2,
.atc-replica-page .atc-office-hours h2,
.atc-replica-page .atc-footer-cta h2,
.atc-replica-page .atc-coverage h2 {
  margin: 0 0 16px;
  font-size: var(--atc-section-title-size);
  line-height: var(--atc-line-tight);
  font-family: var(--atc-font-display);
  text-transform: uppercase;
}

.atc-replica-page .atc-services h2,
.atc-replica-page .atc-contact-quick h2,
.atc-replica-page .atc-office-hours h2,
.atc-replica-page .atc-footer-cta h2 {
  color: #fff;
}

.atc-replica-page .atc-subheading {
  font-size: var(--atc-subheading-size);
  line-height: var(--atc-line-regular);
  margin: 0 0 24px;
  font-weight: 500;
  max-width: var(--atc-copy-max);
}

.atc-replica-page .atc-intro .atc-subheading {
  color: #333;
}

.atc-replica-page .atc-services .atc-subheading,
.atc-replica-page .atc-contact-quick .atc-subheading {
  color: rgba(255, 255, 255, 0.9);
}

.atc-replica-page .atc-intro-panel {
  background: #0a0a0a;
  color: #fff;
  padding: 30px;
  border-top: 4px solid var(--atc-red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.atc-replica-page .atc-panel-header {
  margin-bottom: 20px;
}

.atc-replica-page .atc-intro-panel h3 {
  color: #fff;
  margin: 0 0 12px;
  font-family: var(--atc-font-display);
  font-size: var(--atc-card-title-size);
  text-transform: uppercase;
}

.atc-replica-page .atc-intro-panel .atc-divider {
  width: 60px;
  height: 3px;
  background: var(--atc-red);
  margin: 0;
}

.atc-replica-page .atc-intro-panel p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.atc-replica-page .atc-divider {
  width: 420px;
  max-width: 100%;
  height: 2px;
  background: var(--atc-red);
  margin-bottom: 16px;
}

.atc-replica-page .atc-check-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.atc-replica-page .atc-check-list li {
  margin-bottom: 8px;
  color: #111;
  font-weight: 600;
}

.atc-replica-page .atc-check-list li::before {
  content: '✓';
  margin-right: 8px;
  color: var(--atc-red);
}

.atc-replica-page .atc-services {
  background: radial-gradient(circle at 20% 0%, #131313 0%, #030303 55%);
  padding: var(--atc-section-space) 0;
}

.atc-replica-page .atc-services-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.atc-replica-page .atc-services-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.atc-replica-page .atc-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--atc-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.atc-replica-page .atc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.atc-replica-page .atc-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  margin: 0;
}

.atc-replica-page .atc-card-lead img {
  height: 330px;
}

.atc-replica-page .atc-card-heavy img {
  height: clamp(270px, 31vw, 360px);
  object-position: center 32%;
}

.atc-replica-page .atc-card-light-medium img {
  object-position: center 62%;
}

.atc-replica-page .atc-card-emergency img {
  object-position: center 66%;
}

.atc-replica-page .atc-card-body {
  background: linear-gradient(180deg, var(--atc-red) 0%, #cc0511 100%);
  padding: 14px 12px 16px;
  text-align: center;
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: auto;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.atc-replica-page .atc-card-body h3 {
  color: #fff;
  margin: 0;
  font-family: var(--atc-font-display);
  font-size: var(--atc-card-title-size);
  line-height: var(--atc-line-tight);
}

.atc-replica-page .atc-card-featured .atc-card-body p {
  color: #fff;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.atc-replica-page .atc-card-lead .atc-card-body {
  min-height: 114px;
  margin-top: 0;
}

.atc-replica-page .atc-service-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.atc-replica-page .atc-service-pill {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--atc-red);
  padding: 14px 14px 12px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.atc-replica-page .atc-service-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: #111;
}

.atc-replica-page .atc-service-pill h3 {
  color: #fff;
  margin: 0 0 6px;
  font-family: var(--atc-font-display);
  font-size: var(--atc-meta-title-size);
  line-height: var(--atc-line-tight);
}

.atc-replica-page .atc-service-pill p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.4;
}

.atc-replica-page .atc-services-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.atc-replica-page .atc-services-actions .atc-cta,
.atc-replica-page .atc-final-actions .atc-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.atc-replica-page .atc-services-actions .atc-cta {
  flex: 1 1 0;
  max-width: 320px;
}

.atc-replica-page .atc-cta-outline {
  background: transparent;
  border: 1px solid var(--atc-red);
}

.atc-replica-page .atc-cta-outline:hover {
  background: #e10613;
  color: #fff;
}

.atc-replica-page .atc-experts {
  background: linear-gradient(180deg, #f3f3f3 0%, #ececec 100%);
  color: #111;
  padding: var(--atc-section-space) 0;
}

.atc-replica-page .atc-experts .atc-subheading {
  color: #232323;
  margin: 0 0 24px;
  max-width: var(--atc-copy-max);
}

.atc-replica-page .atc-experts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.atc-replica-page .atc-why-grid {
  margin-bottom: 14px;
}

.atc-replica-page .atc-experts-grid article {
  background: #fff;
  padding: 20px;
  border-top: 4px solid var(--atc-red);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atc-replica-page .atc-experts-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
}

.atc-replica-page .atc-experts-grid h3 {
  color: #1a1a1a;
  font-family: var(--atc-font-display);
  font-size: var(--atc-card-title-size);
  margin-bottom: 8px;
  line-height: var(--atc-line-tight);
}

.atc-replica-page .atc-experts-grid p {
  color: #1a1a1a;
  margin: 0;
  font-size: 15px;
}

.atc-replica-page .atc-contact-quick,
.atc-replica-page .atc-office-hours,
.atc-replica-page .atc-site-footer {
  background: var(--atc-black);
  color: #fff;
}

.atc-replica-page .atc-contact-quick {
  padding: var(--atc-section-space) 0;
}

.atc-replica-page .atc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.atc-replica-page .atc-contact-grid article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090909;
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atc-replica-page .atc-contact-grid article:hover {
  border-color: rgba(225, 6, 19, 0.8);
  transform: translateY(-3px);
}

.atc-replica-page .atc-contact-grid h3 {
  font-family: var(--atc-font-display);
  font-size: var(--atc-meta-title-size);
  line-height: var(--atc-line-tight);
  color: #fff;
  margin: 0 0 10px;
  text-align: center;
}

.atc-replica-page .atc-contact-grid p {
  text-align: center;
  color: #fff;
  margin: 0 0 14px;
  font-weight: 500;
  flex: 1;
}

.atc-replica-page .atc-contact-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.atc-replica-page .atc-cta-line {
  width: 100%;
  text-transform: none;
  text-align: center;
  font-size: 14px;
  padding: 9px 10px;
}

.atc-replica-page .atc-office-hours {
  padding: var(--atc-section-space) 0;
}

.atc-replica-page .atc-office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.atc-replica-page .atc-info-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px;
  height: 100%;
}

.atc-replica-page .atc-office-hours p,
.atc-replica-page .atc-office-hours li {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}

.atc-replica-page .atc-disclaimer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.atc-replica-page .atc-office-hours ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.atc-replica-page .atc-office-hours h3 {
  color: var(--atc-red);
  margin-top: 14px;
  margin-bottom: 8px;
  font-family: var(--atc-font-display);
  font-size: var(--atc-meta-title-size);
  line-height: var(--atc-line-tight);
}

.atc-replica-page .atc-mini-list li {
  position: relative;
  padding-left: 14px;
}

.atc-replica-page .atc-mini-list {
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}

.atc-replica-page .atc-mini-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--atc-red);
}

.atc-replica-page .atc-office-hours a {
  color: #ff2c39;
}

.atc-replica-page .atc-coverage {
  background: linear-gradient(180deg, #f3f3f3 0%, #ececec 100%);
  color: #111;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
}

.atc-replica-page .atc-coverage .atc-container {
  padding-top: var(--atc-section-space);
  padding-bottom: var(--atc-section-space);
}

.atc-replica-page .atc-coverage h2 {
  color: #111;
  margin: 0 0 12px;
}

.atc-replica-page .atc-coverage .atc-subheading {
  margin: 0;
  color: #232323;
}

.atc-replica-page .atc-map-wrap {
  margin: 14px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.atc-replica-page .atc-map-wrap iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.atc-replica-page .atc-divider-center {
  margin-left: auto;
  margin-right: auto;
  width: 80px;
}

.atc-replica-page .atc-site-footer {
  border-top: none;
}

.atc-replica-page .atc-footer-cta {
  padding: 36px 20px;
  text-align: center;
}

.atc-replica-page .atc-footer-cta p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: 17px;
}

.atc-replica-page .atc-cta-full {
  display: block;
  width: 100%;
  text-align: center;
}

.atc-replica-page .atc-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.atc-replica-page .atc-footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  padding: 24px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.atc-replica-page .atc-footer-main h3 {
  font-family: var(--atc-font-display);
  font-size: var(--atc-meta-title-size);
  line-height: var(--atc-line-tight);
  color: #fff;
  margin: 0 0 8px;
}

.atc-replica-page .atc-footer-main p,
.atc-replica-page .atc-footer-main a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
  text-decoration: none;
}

.atc-replica-page .atc-social-list {
  display: grid;
  gap: 12px;
}

.atc-replica-page .atc-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.atc-replica-page .atc-social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  flex: 0 0 auto;
}

.atc-replica-page .atc-social-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atc-replica-page .atc-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.atc-replica-page .atc-footer-main a:hover {
  color: #fff;
}

.atc-replica-page .atc-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 20px;
}

.atc-replica-page .atc-copyright-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.atc-replica-page .atc-copyright p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.atc-replica-page .atc-copyright a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-left: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.atc-replica-page .atc-copyright a:hover {
  color: #fff;
  border-bottom-color: var(--atc-red);
}

.atc-replica-page .atc-credits {
  text-transform: lowercase;
  opacity: 0.8;
}

/* --- 14B. ATC V1 VISUAL POLISH --- */
.atc-replica-page section,
.atc-replica-page footer {
  position: relative;
  overflow: hidden;
}

.atc-replica-page .atc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.atc-replica-page .atc-top-strip {
  height: 6px;
  box-shadow: 0 0 14px rgba(225, 6, 19, 0.34);
}

.atc-replica-page .atc-nav-links a {
  background: rgba(255, 255, 255, 0.03);
}

.atc-replica-page .atc-nav-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.44);
}

.atc-replica-page .atc-phone-btn {
  box-shadow: 0 8px 16px rgba(225, 6, 19, 0.22);
}

.atc-replica-page .atc-hero {
  min-height: clamp(430px, 56vw, 620px);
  display: flex;
  align-items: center;
}

.atc-replica-page .atc-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.68) 100%);
}

.atc-replica-page .atc-hero-shell {
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(11, 11, 11, 0.78) 0%, rgba(11, 11, 11, 0.56) 100%);
  box-shadow: var(--atc-shadow-pop);
}

.atc-replica-page .atc-hero h1 {
  text-wrap: balance;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.atc-replica-page .atc-hero p {
  text-wrap: pretty;
}

.atc-replica-page .atc-cta {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #ed1c24 0%, #bf0712 100%);
  box-shadow: 0 6px 14px rgba(225, 6, 19, 0.2);
}

.atc-replica-page .atc-cta-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.atc-replica-page .atc-intro {
  background: linear-gradient(180deg, #f7f7f7 0%, #ececec 100%);
}

.atc-replica-page .atc-intro-grid {
  gap: 36px;
}

.atc-replica-page .atc-intro > .atc-container > div > p:not(.atc-eyebrow):not(.atc-subheading) {
  color: #2b2b2b;
  max-width: 72ch;
}

.atc-replica-page .atc-intro-panel {
  border-radius: 12px;
  border: 1px solid var(--atc-border-soft);
  background: linear-gradient(170deg, #111111 0%, #070707 100%);
  box-shadow: var(--atc-shadow-pop);
}

.atc-replica-page .atc-intro-panel .atc-mini-list li {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
  padding-left: 16px;
  line-height: 1.45;
}

.atc-replica-page .atc-intro-panel .atc-mini-list li::before {
  top: 8px;
  background: #ff3b46;
  box-shadow: 0 0 0 2px rgba(225, 6, 19, 0.14);
}

.atc-replica-page .atc-intro-panel .atc-cta {
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.atc-replica-page .atc-services::before {
  content: '';
  position: absolute;
  right: -240px;
  top: -240px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(225, 6, 19, 0.14) 0%, rgba(225, 6, 19, 0) 76%);
  pointer-events: none;
}

.atc-replica-page .atc-services .atc-container {
  position: relative;
  z-index: 1;
}

.atc-replica-page .atc-card,
.atc-replica-page .atc-service-pill,
.atc-replica-page .atc-contact-grid article,
.atc-replica-page .atc-info-card {
  border-radius: 12px;
}

.atc-replica-page .atc-card {
  box-shadow: var(--atc-shadow-card);
}

.atc-replica-page .atc-card img {
  filter: saturate(1.04);
  transition: transform 0.45s ease, filter 0.35s ease;
}

.atc-replica-page .atc-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.08);
}

.atc-replica-page .atc-card-body {
  padding: 16px 14px 18px;
  background: linear-gradient(180deg, #ef1a24 0%, #a9040f 100%);
}

.atc-replica-page .atc-card-body h3 {
  text-wrap: balance;
  letter-spacing: 0.02em;
}

.atc-replica-page .atc-card-body p {
  margin: 8px auto 0;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.atc-replica-page .atc-card-featured .atc-card-body p,
.atc-replica-page .atc-card-lead .atc-card-body p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.atc-replica-page .atc-card-featured .atc-card-body h3 {
  font-size: clamp(20px, 2vw, 24px);
}

.atc-replica-page .atc-card-lead .atc-card-body h3 {
  font-size: clamp(24px, 2.9vw, 32px);
}

.atc-replica-page .atc-card-lead {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.atc-replica-page .atc-card-lead img {
  height: 100%;
  min-height: 430px;
}

.atc-replica-page .atc-service-pill {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  background: linear-gradient(180deg, #111214 0%, #08090b 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 2px 0 rgba(255, 32, 48, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.atc-replica-page .atc-service-pill-image {
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  margin: 0;
  display: block;
  background: transparent;
  border-bottom: 0;
}

.atc-replica-page .atc-service-pill-lift .atc-service-pill-image,
.atc-replica-page .atc-service-pill-scene .atc-service-pill-image,
.atc-replica-page .atc-service-pill-lowboy .atc-service-pill-image {
  object-position: center bottom;
}

.atc-replica-page .atc-service-pill h3 {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: 0.02em;
}

.atc-replica-page .atc-service-pill p {
  padding: 0 14px 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
}

.atc-replica-page .atc-card-heavy .atc-card-body,
.atc-replica-page .atc-card-light-medium .atc-card-body,
.atc-replica-page .atc-card-emergency .atc-card-body {
  padding: 14px 12px 16px;
  min-height: 0;
  margin-top: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
}

.atc-replica-page .atc-card-heavy .atc-card-body h3,
.atc-replica-page .atc-card-light-medium .atc-card-body h3,
.atc-replica-page .atc-card-emergency .atc-card-body h3,
.atc-replica-page .atc-card-heavy .atc-card-body p,
.atc-replica-page .atc-card-light-medium .atc-card-body p,
.atc-replica-page .atc-card-emergency .atc-card-body p {
  margin: 8px 0 0;
  padding: 0;
  max-width: none;
}

.atc-replica-page .atc-card-heavy.atc-card-lead .atc-card-body {
  min-height: 0;
}

.atc-replica-page .atc-card-heavy,
.atc-replica-page .atc-card-light-medium,
.atc-replica-page .atc-card-emergency {
  border-bottom: 0;
}

.atc-replica-page .atc-services-actions {
  margin-top: 22px;
}

.atc-replica-page .atc-experts .atc-services-actions .atc-cta {
  flex: 0 1 560px;
  width: min(100%, 560px);
  max-width: 560px;
}

.atc-replica-page .atc-experts {
  border-top: 0;
}

.atc-replica-page .atc-experts-visual {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.atc-replica-page .atc-experts-visual img {
  width: 100%;
  height: clamp(230px, 32vw, 320px);
  object-fit: cover;
  display: block;
}

.atc-replica-page .atc-experts-grid article {
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.atc-replica-page .atc-experts-grid article::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--atc-red) 0%, #ff6e76 100%);
}

.atc-replica-page .atc-experts-grid article:hover {
  transform: translateY(-6px);
}

.atc-replica-page .atc-coverage {
  background: linear-gradient(160deg, #f1f1f1 0%, #e8e8e8 100%);
}

.atc-replica-page .atc-coverage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 22%, rgba(225, 6, 19, 0.05) 0%, rgba(225, 6, 19, 0) 56%);
  pointer-events: none;
}

.atc-replica-page .atc-coverage .atc-subheading {
  max-width: 760px;
}

.atc-replica-page .atc-coverage-map-wrap {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.atc-replica-page .atc-coverage-map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.atc-replica-page .atc-contact-quick {
  background: linear-gradient(180deg, #070707 0%, #000000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.atc-replica-page .atc-contact-grid article {
  border: 1px solid var(--atc-border-soft);
  background: linear-gradient(180deg, #111111 0%, #090909 100%);
}

.atc-replica-page .atc-contact-grid article:hover {
  box-shadow: var(--atc-shadow-card);
}

.atc-replica-page .atc-experts .atc-cta-outline,
.atc-replica-page .atc-coverage .atc-cta-outline {
  color: #141414;
  background: #ffffff;
  border-color: rgba(20, 20, 20, 0.22);
}

.atc-replica-page .atc-experts .atc-cta-outline:hover,
.atc-replica-page .atc-coverage .atc-cta-outline:hover {
  color: #fff;
  border-color: var(--atc-red);
}

.atc-replica-page .atc-footer-cta .atc-cta-outline {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

.atc-replica-page .atc-footer-cta .atc-cta-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.atc-replica-page .atc-cta-line {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.atc-replica-page .atc-contact-note {
  text-align: center;
  max-width: 760px;
  margin: 20px auto 0;
}

.atc-replica-page .atc-office-grid {
  gap: 24px;
}

.atc-replica-page .atc-info-card {
  border: 1px solid var(--atc-border-soft);
  background: linear-gradient(180deg, #111111 0%, #090909 100%);
  box-shadow: var(--atc-shadow-card);
}

.atc-replica-page .atc-map-wrap {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.atc-replica-page .atc-office-photo-wrap {
  margin: 12px 0 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.atc-replica-page .atc-office-photo-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.atc-replica-page .atc-office-hours a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 44, 57, 0.5);
  text-underline-offset: 3px;
}

.atc-replica-page .atc-site-footer {
  padding: 20px 0 0;
  background:
    radial-gradient(120% 56% at 50% -16%, rgba(225, 6, 19, 0.12) 0%, rgba(225, 6, 19, 0) 68%),
    linear-gradient(180deg, #070708 0%, #020203 58%, #000 100%);
}

.atc-replica-page .atc-footer-cta {
  position: relative;
  overflow: hidden;
  padding: 54px 32px 46px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 66% at 50% -10%, rgba(225, 6, 19, 0.16) 0%, rgba(225, 6, 19, 0) 64%),
    linear-gradient(180deg, rgba(20, 12, 14, 0.9) 0%, rgba(10, 10, 11, 0.97) 52%, rgba(6, 6, 8, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.34);
}

.atc-replica-page .atc-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

.atc-replica-page .atc-footer-support {
  color: rgba(255, 255, 255, 0.78);
  margin: 2px auto 16px;
  font-size: 15px;
  max-width: 760px;
}

.atc-replica-page .atc-final-actions {
  margin-top: 18px;
}

.atc-replica-page .atc-footer-main {
  gap: 24px;
  padding: 30px 24px 28px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.74) 0%, rgba(5, 6, 8, 0.86) 100%);
  border-radius: 18px;
}

.atc-replica-page .atc-footer-main::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 28%, rgba(255, 255, 255, 0.22) 72%, rgba(255, 255, 255, 0) 100%);
}

.atc-replica-page .atc-footer-main h3 {
  margin-bottom: 12px;
}

.atc-replica-page .atc-footer-main p,
.atc-replica-page .atc-footer-main a {
  color: rgba(255, 255, 255, 0.92);
}

.atc-replica-page .atc-social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.atc-replica-page .atc-social-list li {
  margin: 0;
}

.atc-replica-page .atc-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-decoration: none;
  border-bottom-color: transparent;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.atc-replica-page .atc-social-link span {
  line-height: 1;
}

.atc-replica-page .atc-social-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: none;
}

.atc-replica-page .atc-footer-main a {
  border-bottom: 1px solid transparent;
}

.atc-replica-page .atc-social-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atc-replica-page .atc-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, rgba(225, 6, 19, 0.2) 0%, rgba(225, 6, 19, 0.12) 100%);
  color: #fff;
  border-bottom-color: transparent;
}

.atc-replica-page .atc-footer-main a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.atc-replica-page .atc-copyright {
  margin-top: 16px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* --- 12. MOBILE --- */
@media (max-width: 781px) {
  .ernies-section { padding: 80px 24px !important; }
  .ernies-hero-panel { padding: 40px !important; }
  .ernies-site-logo img { max-width: 140px; }
  .ernies-header-actions { display: none !important; }
  .wp-site-blocks .wp-block-columns { gap: 32px !important; }
  :where(.ernies-card) { padding: 32px !important; }

  .wp-site-blocks h1 { font-size: 2.25rem !important; }
  .wp-site-blocks h2 { font-size: 1.75rem !important; }

  .ernies-site-footer .wp-block-column + .wp-block-column {
    margin-top: 48px !important;
  }
}

@media (max-width: 1000px) {
  .atc-replica-page .atc-hero-shell {
    padding: 30px 24px;
  }

  .atc-replica-page .atc-intro-grid {
    gap: 24px;
  }

  .atc-replica-page .atc-header-row-brand {
    flex-wrap: wrap;
  }

  .atc-replica-page .atc-nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .atc-replica-page .atc-services-layout {
    grid-template-columns: 1fr;
  }

  .atc-replica-page .atc-services-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .atc-replica-page .atc-card-lead img {
    height: 260px;
    min-height: 260px;
  }

  .atc-replica-page .atc-service-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atc-replica-page .atc-experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atc-replica-page .atc-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  .atc-replica-page {
    --atc-section-title-size: clamp(26px, 8.2vw, 34px);
    --atc-subheading-size: 16px;
    --atc-card-title-size: clamp(20px, 7vw, 24px);
    --atc-meta-title-size: 19px;
    --atc-section-space: 40px;
  }

  .atc-replica-page .atc-header {
    position: relative;
  }

  .atc-replica-page .atc-hero {
    min-height: auto;
  }

  .atc-replica-page .atc-hero-content {
    padding: 44px 20px 46px;
  }

  .atc-replica-page .atc-coverage-map-wrap iframe {
    height: 300px;
  }

  .atc-replica-page .atc-service-pill-image {
    height: 118px;
  }

  .atc-replica-page .atc-intro-panel {
    padding: 22px;
  }

  .atc-replica-page .atc-header-row {
    display: block;
  }

  .atc-replica-page .atc-copyright-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .atc-replica-page .atc-header-row-brand {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .atc-replica-page .atc-phone-btn {
    display: block;
    min-width: 0;
    margin-top: 0;
  }

  .atc-replica-page .atc-nav-links {
    justify-content: flex-start;
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .atc-replica-page .atc-hero-kicker {
    font-size: 18px;
  }

  .atc-replica-page .atc-hero h1 {
    font-size: 32px !important;
  }

  .atc-replica-page .atc-hero p {
    font-size: 16px;
  }

  .atc-replica-page .atc-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .atc-replica-page .atc-hero-actions .atc-cta {
    width: 100%;
  }

  .atc-replica-page .atc-services-layout,
  .atc-replica-page .atc-services-side,
  .atc-replica-page .atc-service-matrix,
  .atc-replica-page .atc-intro-grid,
  .atc-replica-page .atc-experts-grid,
  .atc-replica-page .atc-contact-grid,
  .atc-replica-page .atc-office-grid,
  .atc-replica-page .atc-final-actions,
  .atc-replica-page .atc-footer-main {
    grid-template-columns: 1fr;
  }

  .atc-replica-page .atc-services-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .atc-replica-page .atc-services-actions .atc-cta {
    max-width: none;
  }

  .atc-replica-page .atc-final-actions .atc-cta {
    width: 100%;
  }

  .atc-replica-page .atc-card-body h3 {
    font-size: 22px;
  }

  .atc-replica-page .atc-card-body p {
    font-size: 13px;
  }

  .atc-replica-page .atc-experts-visual img {
    height: 220px;
  }

  .atc-replica-page .atc-card-lead img {
    height: 220px;
    min-height: 220px;
  }

  .atc-replica-page .atc-card-heavy img {
    height: 240px;
    object-position: center 34%;
  }

  .atc-replica-page .atc-card-light-medium img {
    object-position: center 60%;
  }

  .atc-replica-page .atc-card-emergency img {
    object-position: center 62%;
  }

  .atc-replica-page .atc-hero-shell {
    padding: 24px 18px;
  }

  .atc-replica-page .atc-contact-note {
    text-align: left;
  }

  .atc-replica-page .atc-office-photo-wrap img {
    height: 190px;
  }

  .atc-replica-page .atc-footer-cta {
    padding: 38px 20px 34px;
    border-radius: 16px;
  }

  .atc-replica-page .atc-footer-main {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .atc-replica-page .atc-social-link {
    width: 100%;
    justify-content: flex-start;
  }
}
