/* Palm Beach Welding shared quality layer — 2026-09-01 */
:root {
  color-scheme: dark;
  --pbw-header-height: 118px;
  --pbw-focus: #ffd166;
  --pbw-panel: rgba(17, 17, 17, 0.94);
}

html {
  scroll-padding-top: calc(var(--pbw-header-height) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  color: transparent;
}

.service-img,
.content-image,
.footer-logo,
.brand-art {
  object-position: center;
}

/* Photos keep their natural ratio instead of inheriting conflicting page rules. */
.service-img,
.content-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

/* Certificates and organization marks must never be cropped or stretched. */
.gallery-item:has(.brand-art) {
  background: #f7f7f7;
}

.gallery-item .brand-art,
.blog-img .brand-art,
.brand-art {
  width: 100% !important;
  height: 100% !important;
  padding: 12px;
  object-fit: contain !important;
  object-position: center !important;
  background: #f7f7f7;
}

.footer-logo {
  width: auto !important;
  height: auto !important;
  max-width: 112px;
  max-height: 50px;
  object-fit: contain !important;
}

/* One consistent, proportional brand lockup on every service page. */
header:not(.article-header) {
  min-height: var(--pbw-header-height);
  padding-block: 8px !important;
}

header:not(.article-header) .nav-flex {
  min-height: 98px;
  gap: 20px;
}

.logo-group {
  flex: 0 1 auto;
  min-width: 0;
  gap: 10px !important;
  transform: none !important;
}

.logo-group:hover {
  transform: none !important;
}

.titan-logo-svg {
  display: block;
  flex: 0 0 112px;
  width: 112px !important;
  height: 112px !important;
  margin: 0 -10px 0 0 !important;
  aspect-ratio: 1 / 1;
  animation: pbwLogoPulse 2.5s infinite ease-in-out !important;
  transform-origin: center;
  will-change: filter, transform;
}

.logo-text {
  max-width: 260px;
  margin: 0 !important;
  font-size: clamp(29px, 2.8vw, 41px) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.025em !important;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 50, 24, 0.48);
  animation: pbwLogoTextGlow 2.5s infinite ease-in-out;
}

.logo-text span {
  white-space: nowrap;
}

header.scrolled:not(.article-header) {
  min-height: 84px;
}

header.scrolled:not(.article-header) .nav-flex {
  min-height: 70px;
}

header.scrolled .titan-logo-svg {
  flex-basis: 76px;
  width: 76px !important;
  height: 76px !important;
  margin-right: -5px !important;
}

header.scrolled .logo-text {
  font-size: 27px !important;
}

@keyframes pbwLogoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(255, 34, 0, 0.52));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 0 18px rgba(255, 34, 0, 0.96))
      drop-shadow(0 0 46px rgba(255, 88, 0, 0.64));
    transform: scale(1.055);
  }
}

@keyframes pbwLogoTextGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 34, 0, 0.38);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 34, 0, 0.82),
      0 0 42px rgba(255, 88, 0, 0.48);
  }
}

header.scrolled {
  padding-block: 6px !important;
}

.hero {
  padding-top: clamp(180px, 18vw, 225px) !important;
}

@media (max-width: 1024px) {
  :root {
    --pbw-header-height: 88px;
  }

  header:not(.article-header),
  header.scrolled:not(.article-header) {
    min-height: 88px;
  }

  header:not(.article-header) .nav-flex,
  header.scrolled:not(.article-header) .nav-flex {
    min-height: 70px;
  }

  .titan-logo-svg,
  header.scrolled .titan-logo-svg {
    flex-basis: 76px;
    width: 76px !important;
    height: 76px !important;
    margin-right: -5px !important;
  }

  .logo-text,
  header.scrolled .logo-text {
    font-size: 27px !important;
  }

  .hero {
    padding-top: 145px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .header-center-btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .titan-logo-svg,
  .logo-text {
    animation: none !important;
  }
}

/* Accessible controls and readable tap targets. */
a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(255, 140, 26, 0.25);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--pbw-focus) !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 14px;
  color: #050505;
  background: var(--pbw-focus);
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hamburger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lang-btn {
  min-height: 34px;
}

.lang-btn img {
  width: 20px !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

iframe {
  display: block;
  width: 100%;
  border: 0;
}

.video-box iframe {
  aspect-ratio: 16 / 9;
  height: auto !important;
}

/* Commercial partnership section on the bilingual homepages. */
.b2b-contracts {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    linear-gradient(135deg, rgba(255, 50, 24, 0.08), transparent 46%),
    #090909;
  border-block: 1px solid #2c2c2c;
}

.b2b-contracts::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(var(--orange, #ff8c1a), var(--flame-red, #ff3218));
}

.b2b-eyebrow {
  margin: 0 0 10px;
  color: var(--orange, #ff8c1a);
  font: 800 15px/1.2 "Rajdhani", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.b2b-contracts h3 {
  max-width: 940px;
  margin: 0 0 18px;
  text-align: left;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.02;
}

.b2b-intro {
  max-width: 880px;
  margin: 0 0 34px;
  color: #c8c8c8;
  font-size: 19px;
}

.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.b2b-card {
  padding: 28px;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid #333;
  border-top: 3px solid var(--orange, #ff8c1a);
}

.b2b-card i {
  margin-bottom: 18px;
  color: var(--orange, #ff8c1a);
  font-size: 28px;
}

.b2b-card h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 23px;
}

.b2b-card p {
  margin: 0;
  color: #aaa;
  font-size: 16px;
}

.b2b-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.b2b-actions p {
  max-width: 690px;
  margin: 0;
  color: #a8a8a8;
  font-size: 15px;
}

@media (max-width: 900px) {
  .b2b-grid {
    grid-template-columns: 1fr;
  }

  .b2b-contracts {
    padding: 68px 0;
  }
}

/* Crawlable, user-facing internal link network. */
.coverage-network {
  padding: 64px 0;
  background: linear-gradient(180deg, #090909, #111);
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
}

.coverage-network .coverage-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.coverage-network h2 {
  margin: 0 0 12px;
  color: #fff;
  font: 800 clamp(28px, 4vw, 40px)/1.05 "Rajdhani", system-ui, sans-serif;
  text-transform: uppercase;
}

.coverage-network p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #bdbdbd;
}

.coverage-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-links a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 11px 14px;
  color: #f2f2f2;
  background: #151515;
  border: 1px solid #303030;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.coverage-links a:hover {
  color: #fff;
  background: #21150c;
  border-color: var(--orange, #ff8c1a);
}

.coverage-subhead {
  margin: 30px 0 12px;
  color: var(--orange, #ff8c1a);
  font: 800 18px/1.2 "Rajdhani", system-ui, sans-serif;
  text-transform: uppercase;
}

/* Contain expensive decorative work and reduce layout/paint pressure. */
section,
.card,
.review-card,
.blog-card {
  overflow-wrap: anywhere;
}

.card,
.review-card,
.mobile-visual,
.video-box,
.contact-form {
  will-change: auto !important;
}

/* Keep the PBW rig visible above the shared plasma/glass card background. */
.mobile-visual.plasma-border {
  overflow: hidden;
  padding: 0;
  background: #080808;
}

.mobile-visual.plasma-border > img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

@media (max-width: 1024px) {
  :root { --pbw-header-height: 76px; }

  header:not(.article-header) .nav-flex {
    min-height: 60px;
    padding-inline: 0 !important;
  }

  .titan-logo-svg,
  header.scrolled .titan-logo-svg {
    flex-basis: 56px;
    width: 56px !important;
    height: 56px !important;
  }

  .logo-text,
  header.scrolled .logo-text {
    max-width: 210px;
    font-size: clamp(18px, 4.2vw, 25px) !important;
  }

  .hamburger {
    display: flex !important;
  }

  body:has(.mobile-bottom-bar) {
    padding-bottom: 76px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 18px !important;
  }

  .logo-group {
    gap: 6px !important;
  }

  .titan-logo-svg,
  header.scrolled .titan-logo-svg {
    flex-basis: 50px;
    width: 50px !important;
    height: 50px !important;
  }

  .logo-text,
  header.scrolled .logo-text {
    max-width: 154px;
    font-size: clamp(16px, 5vw, 21px) !important;
  }

  .lang-switcher {
    right: 55px !important;
  }

  .lang-btn {
    padding: 4px 6px !important;
    font-size: 11px !important;
  }

  .lang-btn img {
    width: 16px !important;
  }

  .hero {
    padding-top: 126px !important;
  }

  .coverage-network {
    padding: 48px 0;
  }

  .coverage-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .logo-text,
  header.scrolled .logo-text {
    max-width: 132px;
    font-size: 16px !important;
  }

  .lang-btn img {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #global-spark-container {
    display: none !important;
  }
}

@media (max-width: 768px), (pointer: coarse) {
  #global-spark-container {
    display: none !important;
  }
}

@media print {
  header,
  .mobile-bottom-bar,
  .booking-overlay,
  #global-spark-container,
  .coverage-network {
    display: none !important;
  }

  body {
    color: #111 !important;
    background: #fff !important;
  }
}
