/* Tyler Manufacturing — site styles. Mobile first; one stylesheet for the main site and the shop. */

:root {
  --charcoal: #2B2B2B;
  --ink: #1E1E1E;
  --steel: #6E747A;       /* borders and rules only: too light for text on paper */
  --steel-text: #575C62;  /* steel gray darkened to pass WCAG AA as text */
  --rust: #A34A24;        /* brand rust #B5532A darkened to pass AA on paper and under white text */
  --rust-dark: #8A3D1D;
  --rust-light: #E2834F;  /* rust for text on charcoal */
  --paper: #F3EFE6;
  --paper-2: #E9E3D6;
  --line: #CDC5B5;
  --ph: #D5D1C9;
  --heading: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 4vw, 2.125rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--rust); text-underline-offset: 0.15em; }
a:hover { color: var(--rust-dark); }

:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .wrap { padding: 0 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -100px;
  background: var(--paper); color: var(--ink);
  padding: 8px 12px; z-index: 10; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--rust);
  color: #fff;
  border: 2px solid var(--rust);
  border-radius: var(--radius);
  padding: 0.6em 1.2em;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn-lg { font-size: 1.125rem; padding: 0.75em 1.5em; }
.btn-small { font-size: 0.875rem; padding: 0.45em 0.9em; }
.btn[disabled], .btn[aria-disabled="true"] {
  background: var(--paper-2); border-color: var(--line); color: var(--steel-text); cursor: not-allowed;
}
.btn-ghost { background: transparent; color: var(--rust); }
.btn-ghost:hover { background: var(--rust); color: #fff; }

.text-link { font-weight: 600; }

/* Header */
.site-header { background: var(--charcoal); color: var(--paper); border-bottom: 4px solid var(--rust); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 12px; padding-bottom: 12px;
}
.brand { color: var(--paper); display: block; }
.brand svg { height: 40px; width: auto; }
@media (min-width: 48rem) { .brand svg { height: 52px; } }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.main-nav a {
  color: var(--paper); text-decoration: none;
  font-family: var(--heading); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--rust-light); }
.main-nav a[aria-current="page"] { color: var(--rust-light); text-decoration: underline; text-underline-offset: 0.35em; }
.main-nav .btn { color: #fff; }
.main-nav .btn:hover { color: #fff; }
.main-nav .btn[aria-current="page"] { color: #fff; text-decoration: none; border-color: var(--paper); }

.shop-label { margin: 0; font-family: var(--heading); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; }
.shop-label a { color: var(--rust-light); text-decoration: none; }
.shop-header .header-inner { justify-content: flex-start; }
.shop-header .shop-nav { flex-basis: 100%; }
@media (min-width: 48rem) {
  .shop-header .shop-nav { flex-basis: auto; margin-left: auto; }
}

.promo {
  margin: 0; background: var(--rust); color: #fff; text-align: center;
  padding: 8px 16px; font-weight: 600;
}

/* Sections */
.section { padding-block: 48px; }
@media (min-width: 48rem) { .section { padding-block: 72px; } }
.section-alt { background: var(--paper-2); }
.section-title { margin-bottom: 1em; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--rust); margin-top: 0.35em;
}

.page-head { padding-block: 40px 8px; }
@media (min-width: 48rem) { .page-head { padding-block: 64px 16px; } }
.page-head .lede { max-width: 40rem; }
.lede { font-size: 1.2rem; color: var(--steel-text); }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.5em; }

/* Hero */
.hero {
  position: relative;
  background-color: var(--charcoal);
  background-size: cover; background-position: center;
  color: var(--paper);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero::before {
  /* darkens a photo so the text stays readable; harmless on the plain placeholder */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,30,30,0.85) 0%, rgba(30,30,30,0.55) 100%);
}
.hero-inner { position: relative; }
.hero h1 { color: var(--paper); max-width: 18em; }
.hero .lede { color: #DDD7CB; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.on-dark a:not(.btn), .hero a:not(.btn) { color: var(--rust-light); }
.on-dark a:not(.btn):hover, .hero a:not(.btn):hover { color: #F2A77F; }
.ph-hero-label {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  max-width: 22rem; font-size: 0.8rem; color: #CFC9BE;
  border: 1px dashed #8C8C8C; padding: 6px 10px; border-radius: var(--radius);
}
@media (min-width: 48rem) { .hero { padding: 120px 0 112px; } }

/* Photo placeholders */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ph) repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.035) 14px 28px);
  border: 1px dashed var(--steel);
  color: #3A3A3A; font-size: 0.875rem; font-weight: 600;
  padding: 16px; border-radius: var(--radius);
  width: 100%;
}
.ph-3x2 { aspect-ratio: 3 / 2; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-1x1 { aspect-ratio: 1 / 1; }
.ph-16x9 { aspect-ratio: 16 / 9; }
.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.quality-photo { max-width: 760px; margin-bottom: 32px; }

/* Tiles (home "What we do") */
.tiles { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 20px;
}
.tile:hover { border-color: var(--rust); }
.tile h3 { margin: 16px 4px 6px; }
.tile h3 a { color: var(--charcoal); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { margin: 0 4px; color: var(--steel-text); }
.tile:focus-within { outline: 3px solid var(--rust); outline-offset: 2px; }
.tile h3 a:focus-visible { outline: none; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 36rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--rust);
  padding: 16px 18px; border-radius: var(--radius);
  display: flex; align-items: baseline; gap: 14px;
}
.step-num { font-family: var(--heading); font-weight: 700; font-size: 1.75rem; color: var(--steel-text); }
.step-text { font-family: var(--heading); font-weight: 500; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; }
.steps-note { margin-top: 28px; max-width: 46rem; font-size: 1.1rem; }

/* Two-column feature rows (capabilities, about) */
.feature { display: grid; gap: 24px; align-items: start; grid-template-columns: 1fr; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; }
@media (min-width: 48rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; }
}
.feature.feature-solo { grid-template-columns: 1fr; }
.feature-solo .feature-body { max-width: 44rem; }
.feature h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.feature-body > :last-child { margin-bottom: 0; }

/* Tables */
.spec-table { border-collapse: collapse; width: 100%; max-width: 28rem; margin: 8px 0 12px; background: #fff; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); }
.spec-table thead th { background: var(--charcoal); color: var(--paper); font-family: var(--heading); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.9rem; }
.spec-table tbody th { font-weight: 600; }
.note { font-size: 0.95rem; color: var(--steel-text); }

/* Points (quality) */
.points { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 8px 0 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(2, 1fr); } }
.points li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--charcoal); padding: 20px 22px; border-radius: var(--radius); }
.points h2 { font-size: 1.25rem; margin-bottom: 0.4em; }
.points p { margin: 0; }

/* Closing call-to-action band */
.cta-band { background: var(--charcoal); color: var(--paper); padding: 48px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-band h2 { color: var(--paper); margin: 0; }

/* Forms */
.contact-layout { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 64px; }
@media (min-width: 60rem) { .contact-layout { grid-template-columns: 2fr 1fr; gap: 56px; } }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 48rem) { .quote-form { padding: 32px; } }
.field { margin-bottom: 20px; }
.field-row { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--steel-text); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--steel); border-radius: var(--radius); background: #fff;
}
input:focus, textarea:focus { outline: 3px solid var(--rust); outline-offset: 1px; border-color: var(--rust); }
textarea { min-height: 9rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.checks { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; }
.checks input { width: 1.15rem; height: 1.15rem; accent-color: var(--rust); }
.hint { font-size: 0.9rem; color: var(--steel-text); margin: 4px 0 0; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.is-error { color: #9B1C1C; }
.botcheck { display: none; }

.aside-box { background: var(--paper-2); border-left: 4px solid var(--rust); padding: 20px 22px; border-radius: var(--radius); }
.aside-box h2 { font-size: 1.2rem; }
.aside-box > :last-child { margin-bottom: 0; }

/* Reference number (thank-you page) */
.ref-box {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: #fff; border: 2px solid var(--charcoal); border-radius: var(--radius);
  padding: 16px 20px; margin: 8px 0 24px;
}
.ref-label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-text); }
.ref-number { font-family: var(--heading); font-weight: 700; font-size: clamp(1.75rem, 7vw, 2.5rem); letter-spacing: 0.06em; }

/* Shop */
.shop-intro { padding-bottom: 24px; }
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 320px));
}
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; }
.product-card > a:first-child, .shop-teaser > a:first-child { text-decoration: none; color: inherit; }
.product-card h3 { margin: 14px 4px 4px; font-size: 1.2rem; }
.product-card h3 a { color: var(--charcoal); text-decoration: none; }
.product-card h3 a:hover { color: var(--rust); }
.product-card .price { margin: 0 4px 14px; }
.product-card .btn { margin: auto 4px 4px; align-self: flex-start; }
.price { font-family: var(--heading); font-weight: 600; font-size: 1.4rem; color: var(--charcoal); }
.shop-custom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

.shop-teaser { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 48rem) { .shop-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.shop-teaser h3 a { color: var(--charcoal); text-decoration: none; }

/* Product page */
.product { display: grid; gap: 32px; grid-template-columns: 1fr; padding-block: 32px 64px; }
@media (min-width: 56rem) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-block-start: 48px; } }
.gallery-thumbs { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.product h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); }
.fits { font-weight: 600; margin-bottom: 0.25em; }
.tm-note { font-size: 0.85rem; color: var(--steel-text); }
.product .price { font-size: 1.9rem; margin: 4px 0 12px; }
.buy { margin: 24px 0 8px; }
.buy .btn { font-size: 1.15rem; padding: 0.8em 2em; }
.ship-line { font-size: 0.95rem; color: var(--steel-text); }
.product .spec-table { margin-top: 12px; }
.details-title { font-size: 1.3rem; margin-top: 32px; }
.details-caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.policy-links { font-size: 0.95rem; }

/* Draft markers: visible on purpose so nothing ships unanswered */
mark.ask { background: #FFE58F; color: var(--ink); padding: 0 0.25em; border-radius: 2px; font-weight: 600; }
.draft-note { background: #FFF4C2; border: 1px dashed #A8892A; padding: 12px 16px; border-radius: var(--radius); font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--ink); color: #CFC9BE; padding: 40px 0 24px; margin-top: 0; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 1fr auto; } }
.site-footer p { margin: 0 0 4px; }
.footer-name { font-family: var(--heading); font-weight: 600; color: var(--paper); letter-spacing: 0.05em; text-transform: uppercase; }
.site-footer a { color: var(--rust-light); }
.site-footer a:hover { color: #F2A77F; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.copyright { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid #3A3A3A; font-size: 0.85rem; }

/* Logo options page */
.logo-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 48px; }
@media (min-width: 60rem) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.logo-card h2 { font-size: 1.15rem; padding: 14px 16px 0; }
.logo-card p { padding: 0 16px; font-size: 0.95rem; color: var(--steel-text); }
.logo-swatch { padding: 32px 24px; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.logo-swatch svg { width: 100%; max-width: 280px; height: auto; }
.logo-swatch.light { background: var(--paper); color: var(--charcoal); }
.logo-swatch.dark { background: var(--charcoal); color: var(--paper); }
.logo-small { display: flex; align-items: center; gap: 16px; padding: 12px 16px 18px; background: var(--charcoal); color: var(--paper); }
.logo-small svg { height: 40px; width: auto; }
.favicon-row { display: flex; align-items: center; gap: 16px; }
