/*
Theme Name: 3 Phase & Control — Simple
Theme URI: https://3phaseandcontrol.com
Author: 3 Phase & Control Limited
Description: A deliberately minimal three-page brochure website for 3 Phase & Control Limited.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: three-phase-control-simple
*/

:root {
  --tpc-black: #090b0d;
  --tpc-white: #f5f6f7;
  --tpc-muted: #a4abb1;
  --tpc-line: #2a3035;
  --tpc-red: #c51f32;
  --tpc-red-bright: #dc263c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--tpc-black);
}

body {
  margin: 0;
  background: var(--tpc-black);
  color: var(--tpc-white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.tpc-site {
  min-height: 100vh;
}

.tpc-header {
  align-items: center;
  background: rgba(9, 11, 13, 0.96);
  border-bottom: 1px solid var(--tpc-line);
  display: flex;
  height: 68px;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-bar .tpc-header {
  top: 32px;
}

.tpc-nav {
  display: flex;
  gap: 8px;
}

.tpc-nav a {
  align-items: center;
  border: 1px solid transparent;
  color: var(--tpc-muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
  width: 46px;
}

.tpc-nav a:hover,
.tpc-nav a:focus-visible {
  border-color: #555e65;
  color: var(--tpc-white);
  outline: none;
}

.tpc-nav a.is-current {
  background: var(--tpc-red);
  color: var(--tpc-white);
}

.tpc-image-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  padding: clamp(18px, 4vw, 64px);
  width: 100%;
}

.tpc-image-stage img {
  background: #d9e5eb;
  border: 1px solid #30363b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  display: block;
  height: auto;
  max-height: calc(100vh - 116px);
  object-fit: contain;
  width: auto;
}

.tpc-image-stage.is-portrait img {
  max-width: min(100%, 820px);
}

.tpc-image-stage.is-landscape img {
  max-width: min(100%, 1240px);
}

.tpc-footer {
  align-items: center;
  border-top: 1px solid var(--tpc-line);
  display: flex;
  flex-direction: column;
  padding: 58px max(20px, 4vw) 44px;
  text-align: center;
}

.tpc-contact-button {
  background: var(--tpc-red);
  border: 1px solid var(--tpc-red);
  color: var(--tpc-white);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.1em;
  min-width: 174px;
  padding: 16px 24px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 150ms ease, transform 150ms ease;
}

.tpc-contact-button:hover,
.tpc-contact-button:focus-visible {
  background: var(--tpc-red-bright);
  outline: none;
  transform: translateY(-2px);
}

.tpc-legal {
  color: var(--tpc-muted);
  font-size: 11px;
  line-height: 1.65;
  margin-top: 34px;
  max-width: 780px;
}

.tpc-legal p {
  margin: 3px 0;
}

.tpc-legal strong {
  color: var(--tpc-white);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.tpc-contact-details {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  justify-content: center;
  margin-top: 12px !important;
}

.tpc-legal a {
  text-decoration: none;
}

.tpc-legal a:hover,
.tpc-legal a:focus-visible {
  color: var(--tpc-white);
}

.tpc-not-found {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 100vh;
}

.tpc-not-found p {
  font-size: 64px;
  font-weight: 800;
  margin: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 782px) {
  .admin-bar .tpc-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .tpc-header {
    height: 58px;
  }

  .tpc-image-stage {
    min-height: 0;
    padding: 14px;
  }

  .tpc-image-stage img {
    max-height: none;
    width: 100%;
  }

  .tpc-footer {
    padding-top: 42px;
  }

  .tpc-contact-details {
    flex-direction: column;
  }

  .tpc-contact-details span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
