/*
Theme Name: Welding
Theme URI: https://eastcoastit.net
Author: Your Studio
Author URI: https://eastcoastit.net
Description: Custom theme for Truefield Group.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: welding
*/

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

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-md: 4px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 var(--space-3);
}
h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
h6 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.screen-reader-text { position: absolute !important; left: -9999px; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-surface { background: var(--color-surface); }
.section-accent { background: var(--color-accent-900); color: var(--color-neutral-100); }
.section-accent h2, .section-accent h3 { color: var(--color-neutral-100); }

/* blueprint frame */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
.section-accent .blueprint > .corner { color: color-mix(in srgb, #fff 55%, transparent); }

.duotone { position: relative; overflow: hidden; background: var(--color-neutral-300); }
/* duotone tint disabled for comparison — .duotone::after removed */
.duotone img { width: 100%; height: 100%; object-fit: cover; }

/* image placeholder — replace with a real <img> or featured image once photos are supplied */
.img-placeholder {
  width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--color-neutral-300) 0 2px, var(--color-neutral-200) 2px 14px);
  color: color-mix(in srgb, var(--color-text) 55%, transparent); font-size: 12px; text-align: center; padding: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-md); border: 1px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; text-decoration: none; }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); text-decoration: none; }
.section-accent .btn-secondary { border-color: color-mix(in srgb, #fff 30%, transparent); color: #fff; }

.tag { display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .04em; padding: 5px 12px; border: 1px solid var(--color-accent); color: var(--color-accent-700); }
.section-accent .tag { border-color: color-mix(in srgb, #fff 55%, transparent); color: #fff; }

.card { position: relative; padding: 24px; border: 1px solid var(--color-divider); }
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: 0 0 8px; }
.card-body { margin: 0; font-size: 14px; opacity: .8; }

/* header / nav */
.site-header { border-bottom: 1px solid var(--color-divider); background: var(--color-bg); }
.nav { display: flex; align-items: center; gap: var(--space-6); padding: 18px 40px; max-width: 1240px; margin: 0 auto; }
.nav-brand { font-family: var(--font-heading); font-weight: 600; font-size: 19px; margin-right: auto; color: var(--color-text); }
.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 32px; }
.nav-links a { color: var(--color-text); font-size: 15px; text-decoration: none; }
.nav-links a:hover, .nav-links .current-menu-item > a { color: var(--color-accent); text-decoration: none; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 0; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-nav.is-open { display: flex; flex-direction: column; gap: 4px; padding: 8px 40px 24px; border-top: 1px solid var(--color-divider); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--color-text); font-size: 16px; }
.mobile-nav a:hover, .mobile-nav .current-menu-item > a { color: var(--color-accent); }

/* footer */
.site-footer { border-top: 1px solid var(--color-divider); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h6 { margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--color-divider); font-size: 13px; opacity: .6; }

/* grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* contact form */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.input { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
textarea.input { min-height: 120px; resize: vertical; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  h1 { font-size: 38px; }
}
