/* ==========================================================================
   Fusion Welding Engineering - shared stylesheet (all pages except index/home,
   which keep their own inline styles; header/nav values here match them).
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', Arial, sans-serif; }
html { scroll-behavior: smooth; }
body.fwe { background-color: #000; color: #fff; line-height: 1.6; overflow-x: hidden; }
body.fwe img { max-width: 100%; height: auto; }
body.fwe a { color: #fff; }

/* ---------- Header / navigation (same look as the homepage) ---------- */
.fwe header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 15px 50px; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fwe .brand-container { display: flex; align-items: center; gap: 15px; text-decoration: none; color: #fff; }
.fwe .header-logo-img { width: 180px; height: auto; display: block; }
.fwe .logo-text { font-weight: bold; letter-spacing: 3px; font-size: 1rem; text-transform: uppercase; }
.fwe nav ul { list-style: none; display: flex; align-items: center; }
.fwe nav ul li { margin-left: 25px; position: relative; }
.fwe nav ul li a {
    text-decoration: none; color: #fff; font-size: 0.75rem; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1.5px; padding: 10px 0; display: block;
}
.fwe nav ul li a:hover, .fwe nav ul li a.current { color: #aaa; }
.fwe .dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: rgba(0,0,0,0.95); min-width: 260px;
    border: 1px solid rgba(255,255,255,0.1); padding: 10px 0; z-index: 1001;
}
.fwe .dropdown-content li { margin: 0; width: 100%; }
.fwe .dropdown-content li a { padding: 10px 20px; font-size: 0.65rem; color: #888; transition: 0.3s; }
.fwe .dropdown-content li a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.fwe .nav-item-dropdown:hover .dropdown-content,
.fwe .nav-item-dropdown:focus-within .dropdown-content { display: block; }
.fwe .hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1100; padding: 15px; margin-right: -15px; background: none; border: 0; }
.fwe .hamburger span { display: block; width: 25px; height: 2px; background: #fff; transition: 0.3s; }

/* ---------- Layout ---------- */
.page { padding: 260px 60px 40px; }
.wrap { max-width: 1100px; margin: 0 auto; }
.page-hero { padding-bottom: 50px; margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.label { font-size: 0.8rem; letter-spacing: 4px; text-transform: uppercase; color: #888; margin-bottom: 12px; }
.fwe h1 { font-size: 2.6rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px; }
.fwe h2 { font-size: 1.6rem; line-height: 1.25; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fwe h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; color: #fff; }
.fwe p { color: #ccc; margin-bottom: 18px; font-size: 1.05rem; }
.label.name-line { color: #fff; font-size: 0.95rem; letter-spacing: 4px; font-weight: bold; }
.lead { font-size: 1.2rem !important; color: #ddd !important; max-width: 820px; }
.block { margin-bottom: 70px; }
.muted { color: #888 !important; }
.small { font-size: 0.9rem !important; }
.fwe strong { color: #fff; }

/* Lists */
.list { list-style: none; margin: 0 0 20px; }
.list li { position: relative; padding: 9px 0 9px 26px; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 1.02rem; }
.list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 12px; height: 1px; background: #888; }
.list li strong { color: #fff; }

/* Card grid */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border: 1px solid rgba(255,255,255,0.12); padding: 30px; background: #0a0a0a; display: flex; flex-direction: column; }
.card p { font-size: 0.98rem; }
.card .card-link { margin-top: auto; font-size: 0.7rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid #555; align-self: flex-start; padding-bottom: 3px; }
.card .card-link:hover { border-color: #fff; }
.card .num { font-size: 0.75rem; letter-spacing: 3px; color: #888; margin-bottom: 14px; display: block; }

/* Process steps */
.steps { counter-reset: step; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 0 0 30px 70px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px; font-size: 1.5rem; font-weight: bold; color: #666; letter-spacing: 1px; }
.steps li h3 { margin-bottom: 8px; }
.steps li p { margin-bottom: 0; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.split.wide-left { grid-template-columns: 3fr 2fr; }

/* Figures */
.figure { margin: 10px 0 40px; }
.figure img { display: block; width: 100%; border: 1px solid #333; }
.figure.narrow { max-width: 560px; }
.figure figcaption { font-size: 0.8rem; color: #888; letter-spacing: 1px; margin-top: 10px; text-transform: uppercase; }

/* Profile (about) */
.profile { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.profile img { width: 240px; border: 1px solid #333; filter: grayscale(100%); }
.cv-row { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cv-row .cv-key { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: #888; padding-top: 4px; }
.cv-row .cv-val p:last-child, .cv-row .cv-val ul:last-child { margin-bottom: 0; }
.cv-row .list li:last-child { border-bottom: none; }
.pub { margin-bottom: 18px; color: #ccc; }
.pub a { color: #fff; text-decoration: underline; text-decoration-color: #666; text-underline-offset: 3px; }
.pub .tag { display: inline-block; font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase; border: 1px solid #555; color: #aaa; padding: 2px 8px; margin-right: 8px; vertical-align: 2px; }

/* Callout */
.callout { border-left: 2px solid #fff; padding: 22px 28px; background: #0c0c0c; margin: 0 0 30px; }
.callout p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-block; padding: 15px 36px; border: 2px solid #fff; background: transparent; color: #fff !important; text-decoration: none !important; text-transform: uppercase; font-weight: bold; letter-spacing: 2px; font-size: 0.78rem; transition: 0.25s; }
.btn:hover { background: #fff; color: #000 !important; }
.btn.solid { background: #fff; color: #000 !important; }
.btn.solid:hover { background: transparent; color: #fff !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }

/* CTA band */
.cta { border: 1px solid rgba(255,255,255,0.15); padding: 50px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; margin: 20px 0 40px; }
.cta h2 { border: none; padding: 0; margin-bottom: 8px; }
.cta p { margin-bottom: 0; }

/* Contact */
.contact-line { font-size: 1.4rem !important; color: #fff !important; letter-spacing: 1px; margin-bottom: 6px !important; }
.contact-line a { text-decoration: none; }
.placeholder { background: #3a2c00; color: #ffd36b; padding: 0 6px; font-family: monospace; font-size: 0.95em; }

/* Legal pages */
.legal h3 { margin-top: 34px; }
.legal p { font-size: 1rem; }
.legal a { color: #aaa; }

/* ---------- Footer (shared) ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(255,255,255,0.1); padding: 60px 60px 30px; }
.site-footer .footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .footer-brand { font-weight: bold; letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; color: #fff; margin-bottom: 12px; }
.site-footer p { color: #888; font-size: 0.85rem; margin: 0 0 8px; line-height: 1.6; }
.site-footer h4 { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #888; text-decoration: none; font-size: 0.85rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { max-width: 1100px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #888; }
.site-footer .footer-bottom span { color: #fff; }
.site-footer .footer-bottom a { font-size: 0.7rem; }

/* ---------- Nav call-to-action ---------- */
.fwe nav ul li a.nav-cta { border: 1px solid #fff; padding: 8px 14px; }
.fwe nav ul li a.nav-cta:hover, .fwe nav ul li a.nav-cta.current { background: #fff; color: #000; }
.hero-cta { margin-top: -30px; }
.hero-split { align-items: center; }
.hero-figure { margin: 0; }
.figure.tall { max-width: 300px; margin-left: auto; margin-right: auto; }
.block-sm { margin: 10px 0 24px; }

/* ---------- Forms (quote request) ---------- */
.form { max-width: 860px; }
.form fieldset { border: 1px solid rgba(255,255,255,0.12); padding: 30px; margin: 0 0 30px; background: #0a0a0a; }
.form legend { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: #888; padding: 0 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.75rem; font-weight: bold; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; margin-bottom: 8px; }
.field .req { color: #aaa; font-weight: normal; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
    width: 100%; background: #000; color: #fff; border: 1px solid #444; padding: 13px 14px; font-size: 1rem; border-radius: 0;
    -webkit-appearance: none; appearance: none; transition: border-color 0.2s;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
    background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.field input[type=file] { width: 100%; color: #ccc; font-size: 0.9rem; padding: 10px; border: 1px dashed #444; background: #000; }
.field input[type=file]::file-selector-button { background: #fff; color: #000; border: 0; padding: 8px 14px; margin-right: 12px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; font-size: 0.7rem; cursor: pointer; }
.help { font-size: 0.85rem !important; color: #888 !important; margin: 8px 0 0 !important; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: #fff; }
.check label { text-transform: none; letter-spacing: 0; font-weight: normal; font-size: 1rem; color: #ccc; margin: 0; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ff9b9b !important; font-size: 0.9rem !important; min-height: 1em; }
button.btn { cursor: pointer; font-family: inherit; }
@media (max-width: 700px) {
    .form-grid { grid-template-columns: 1fr; }
    .form fieldset { padding: 22px 18px; }
}

/* ---------- Responsive (same 1200px breakpoint as the homepage) ---------- */
@media (max-width: 1200px) {
    .fwe header { padding: 15px 20px; }
    .fwe .brand-container { gap: 10px; }
    .fwe .logo-text { font-size: 0.7rem; letter-spacing: 1px; }
    .fwe .hamburger { display: flex; }
    .fwe nav {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: #000; padding: 100px 30px; transition: 0.4s ease;
        border-left: 1px solid rgba(255,255,255,0.1); overflow-y: auto;
    }
    .fwe nav.active { right: 0; }
    .fwe nav ul { flex-direction: column; align-items: flex-start; }
    .fwe nav ul li { margin: 12px 0; }
    .fwe .dropdown-content { position: static; display: block; border: none; background: transparent; padding-left: 15px; min-width: 0; }
    .page { padding: 250px 5% 30px; }
    .site-footer { padding: 50px 5% 30px; }
}
@media (max-width: 860px) {
    .split, .split.wide-left, .grid.two { grid-template-columns: 1fr; gap: 30px; }
    .profile { grid-template-columns: 1fr; gap: 30px; }
    .cv-row { grid-template-columns: 1fr; gap: 8px; }
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .cta { padding: 30px; }
}
@media (max-width: 600px) {
    .fwe .header-logo-img { width: 120px; }
    .page { padding-top: 190px; }
    .fwe h1 { font-size: 1.75rem; }
    .fwe h2 { font-size: 1.25rem; }
    .lead { font-size: 1.08rem !important; }
    .fwe p { font-size: 1rem; }
    .card { padding: 24px; }
    .steps li { padding-left: 50px; }
    .steps li::before { font-size: 1.2rem; }
    .grid { grid-template-columns: 1fr; }
    .figure.tall { max-width: 220px; }
    .contact-line { font-size: 1.15rem !important; }
    .site-footer .footer-bottom { flex-direction: column; }
}
