/*
Theme Name: TavisMade
Version: 1.0.3
Description: Custom manufacturing website for TavisMade.
Text Domain: tavis-works
*/

:root {
    --ink: #161b21;
    --muted: #4f5964;
    --steel: #edf0f2;
    --line: #d9dfe3;
    --accent: #ad4221;
    --glow: #ffc2a9;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--ink); background: #fff; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
h1 { font-size: clamp(2.55rem, 5vw, 4.55rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.05rem); }
h3 { font-size: 1.28rem; letter-spacing: -.027em; }
p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #be572e; outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .6rem 1rem; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 2; background: #fff; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.09rem; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.brand-secondary { font-weight: 560; color: #545e67; }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.35vw, 1.65rem); white-space: nowrap; }
.site-nav a, .mobile-nav a { color: var(--ink); font-weight: 620; font-size: .87rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current], .mobile-nav a:hover, .mobile-nav a[aria-current] { color: var(--accent); }
.mobile-nav { display: none; }
.button, .tavis-rfq__button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 50px; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font: 700 .91rem/1.3 var(--sans); cursor: pointer; }
.button-primary, .tavis-rfq__button { background: var(--accent); color: #fff; }
.button-primary:hover, .tavis-rfq__button:hover { background: #863019; }
.button-outline { border-color: #858d95; color: #fff; }
.button-outline:hover { background: #ffffff16; }
.header-quote { flex: none; }
.header-quote .button { min-height: 42px; white-space: nowrap; }
.home-hero, .inner-hero, .quote-band { color: #f7f9fb; background: linear-gradient(116deg, #11161c 7%, #1b222a 56%, #323a43 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 4rem); min-height: 570px; align-items: center; padding-block: 3rem; }
.hero-copy h1 { max-width: 700px; }
.hero-copy > p, .inner-hero p { max-width: 56ch; color: #ced5dc; margin-top: 1.25rem; font-size: clamp(1rem, 1.45vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.hero-copy .file-note { color: #c1c9d1; font-size: .78rem; margin-top: .85rem; }
.reference-photo { overflow: hidden; border-radius: 4px; background: #e3e7ea; }
.reference-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.reference-photo figcaption { padding: .36rem .72rem; background: #eef0f2; color: #515b66; font-size: .72rem; line-height: 1.5; }
.reference-photo figcaption a { color: inherit; }
.hero-media .reference-photo { border: 1px solid #727a82; box-shadow: 0 16px 52px #0a0c1166; }
.hero-media img { aspect-ratio: 5 / 4; }
.hero-media figcaption, .service-hero-photo figcaption { background: #222932; color: #d4dbe0; }
.capability-strip { background: #e9edef; border-bottom: 1px solid #d5dde2; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip-grid a { position: relative; display: grid; padding: 1.2rem 1.35rem; color: var(--ink); border-left: 1px solid #cdd6de; text-decoration: none; }
.strip-grid a:first-child { border-left: 0; padding-left: 0; }
.strip-grid a:hover strong { color: var(--accent); }
.strip-grid strong { font-size: 1rem; }
.strip-grid span { font-size: .86rem; color: var(--muted); }
.section { padding-block: clamp(3.2rem, 6.4vw, 5.6rem); }
.section-heading { margin-bottom: 2rem; }
.section-heading p, .feature-copy > p { margin-top: .9rem; max-width: 65ch; }
.split-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.section-steel, .section-faq { background: var(--steel); }
.section-heading .card-image-note { margin-top: .55rem; font-size: .8rem; }
.service-eyebrow { display: block; margin-bottom: .55rem; color: var(--accent); font-size: .75rem; font-weight: 750; letter-spacing: .065em; line-height: 1.35; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.service-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.service-card .reference-photo { border-radius: 0; }
.service-card .reference-photo img { aspect-ratio: 3 / 2; object-fit: contain; }
.service-card-copy { padding: clamp(1rem, 1.8vw, 1.5rem); display: flex; align-items: flex-start; flex-direction: column; flex: 1; }
.service-card-copy h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.service-card-copy p { margin: .7rem 0 1rem; }
.service-card-copy .service-card-subtitle { margin: .65rem 0 0; font-weight: 700; line-height: 1.4; }
.service-card-copy .text-link { margin-top: auto; }
.text-link { display: inline-flex; gap: .55rem; align-items: center; font-weight: 710; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.factory-strength { background: #f7f8f9; border-block: 1px solid var(--line); }
.factory-intro { padding: clamp(3rem, 7vw, 6.2rem) 0 clamp(2.5rem, 4.8vw, 4.1rem); background: url("assets/world-land.webp") no-repeat center 28% / min(1080px, 100%) auto; }
.factory-intro h2 { max-width: 22ch; }
.factory-intro p { margin-top: 1.2rem; max-width: 69ch; }
.factory-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.1rem 0 0; }
.factory-facts > div { padding-top: .8rem; border-top: 1px solid #aeb9c2; }
.factory-facts dt { color: var(--accent); font-size: clamp(1.05rem, 2.05vw, 1.7rem); font-weight: 750; line-height: 1.2; letter-spacing: -.04em; }
.factory-facts .factory-number { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.factory-facts dd { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.factory-intro .factory-source { margin-top: .85rem; font-size: .78rem; }
.factory-gallery-wrap { padding-bottom: clamp(2.8rem, 5.5vw, 4.8rem); }
.factory-gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.factory-gallery-heading h3 { font-size: clamp(1.4rem, 2.7vw, 2.2rem); }
.factory-controls { display: flex; gap: .4rem; }
.factory-controls[hidden] { display: none; }
.factory-controls button { width: 44px; height: 44px; background: #fff; color: var(--ink); border: 1px solid #aab4bc; border-radius: 4px; font-size: 1.15rem; cursor: pointer; }
.factory-controls button:hover:not(:disabled) { color: #fff; border-color: var(--accent); background: var(--accent); }
.factory-controls button:disabled { opacity: .38; cursor: default; }
.factory-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 4); gap: 1rem; padding: 0 0 .65rem; margin: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #8e9aa4 #e3e8eb; }
.factory-gallery li { min-width: 0; scroll-snap-align: start; }
.factory-gallery .reference-photo { display: flex; flex-direction: column; height: 100%; background: #222932; }
.factory-gallery .reference-photo img { aspect-ratio: 4 / 3; }
.factory-gallery .reference-photo figcaption { flex: 1; background: #222932; color: #fff; font-size: .84rem; font-weight: 650; padding: .7rem .8rem; }
.steps { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { border-top: 2px solid #8b969e; padding: 1rem .5rem 0 0; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: .85rem; letter-spacing: .06em; color: var(--accent); font-weight: 750; display: block; margin-bottom: .7rem; }
.steps h3 + p { margin-top: .55rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.mini-spec { margin: 1.2rem 0; }
.mini-spec > div { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.65fr); gap: .75rem; padding: .8rem 0; border-bottom: 1px solid #cbd3d9; }
.mini-spec > div:first-child { border-top: 1px solid #cbd3d9; }
.mini-spec dt { font-weight: 700; }
.mini-spec dd { margin: 0; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: .9fr 1.5fr; gap: clamp(1.5rem, 5vw, 4rem); }
.faq-items { border-top: 1px solid #c5cfd6; }
.faq-items details { border-bottom: 1px solid #c5cfd6; }
.faq-items summary { padding: 1rem 2rem 1rem 0; list-style: none; font-weight: 680; position: relative; cursor: pointer; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after { content: "+"; color: var(--accent); position: absolute; right: .5rem; }
.faq-items details[open] summary::after { content: "−"; }
.faq-items details p { padding: 0 1.9rem 1rem 0; margin: 0; }
.quote-band { padding-block: clamp(2rem, 4.5vw, 4rem); }
.quote-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.quote-band p { color: #d2dae1; margin-top: .65rem; }
.quote-band .button { flex: none; }
.site-footer { padding: 3rem 0 1rem; background: #11161c; color: #f4f5f7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; padding-bottom: 2.1rem; }
.brand-inverse { color: #fff; }
.brand-inverse .brand-secondary { color: #b2bdc7; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .75rem; }
.footer-grid a:not(.brand), .footer-grid p { display: block; color: #c2cbd4; font-size: .9rem; margin: .35rem 0; text-decoration: none; }
.footer-grid a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-grid p { margin-top: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; padding-top: 1.1rem; border-top: 1px solid #444c55; color: #bfc8d0; font-size: .76rem; }
.footer-bottom a { color: inherit; }
.privacy-copy { max-width: 76ch; }
.privacy-copy h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.privacy-copy h2:not(:first-child) { margin-top: 1.6rem; }
.privacy-copy h2 + p { margin-top: .5rem; }
.inner-hero { padding: 1.5rem 0 3.4rem; }
.inner-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: .82rem; margin-bottom: 1.6rem; color: #d6dee5; }
.breadcrumbs a { color: #f1f4f6; }
.service-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.service-hero-grid .button { margin-top: 1rem; }
.service-hero-photo img { aspect-ratio: 1.9 / 1; }
.jump-nav { background: #f3f5f6; border-bottom: 1px solid var(--line); }
.jump-nav .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1.75rem; padding-block: .85rem; }
.jump-nav a { color: var(--ink); font-weight: 680; font-size: .9rem; text-decoration: none; }
.jump-nav a:hover { color: var(--accent); text-decoration: underline; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.spec-grid article { padding: 1.3rem; border: 1px solid var(--line); border-top: 3px solid #828e98; }
.spec-grid h3 + p { margin-top: .65rem; }
.design-guidelines { border-bottom: 1px solid var(--line); }
.guideline-grid article { display: flex; flex-direction: column; }
.guideline-grid .spec-source { margin-top: auto; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: .7rem 1rem; }
thead { background: #e4e9ed; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f6f8f9; }
.spec-table, .inspection-table { background: #fff; }
.spec-table th:first-child { width: 44%; }
.spec-table tbody th, .inspection-table tbody th { font-weight: 650; }
.spec-note, .spec-source { font-size: .9rem; }
.spec-note { margin: 1rem 0 .4rem; }
.spec-source { margin-top: .4rem; }
.inspection-sample-label { margin-bottom: .7rem; }
.inspection-table table { min-width: 560px; }
.inspection-reference { margin-top: 1.5rem; padding: 1.25rem; border-left: 3px solid var(--accent); background: var(--steel); }
.inspection-reference p { margin-top: .55rem; max-width: 70ch; }
.part-example-grid { align-items: start; }
.part-example-photo img { aspect-ratio: 4 / 3; object-fit: contain; }
.part-example-photo .reference-photo { background: #f1f3f4; }
.part-example-grid h3 { font-size: clamp(1.5rem, 2.55vw, 2.15rem); }
.part-example-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.25rem; align-items: center; }
.part-example-actions .text-link { font-size: .91rem; }
.rfq-section { background: #f2f4f5; }
.rfq-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.rfq-panel, .rfq-aside { border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.2rem, 3vw, 2.25rem); background: #fff; }
.rfq-panel h2, .rfq-aside h2 { font-size: clamp(1.5rem, 2.55vw, 2.2rem); margin-bottom: 1.1rem; }
.rfq-aside ul { padding-left: 1.2rem; margin-bottom: 1.6rem; color: var(--muted); }
.rfq-aside li { margin-bottom: .45rem; }
.rfq-aside h3 + p { margin-top: .55rem; }
.rfq-response-time { padding: .7rem .8rem; border-left: 3px solid var(--accent); background: #f5f0ed; color: var(--ink); }
.tavis-rfq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tavis-rfq__field { display: block; position: relative; min-width: 0; font-size: .9rem; font-weight: 650; }
.tavis-rfq__field--wide { grid-column: 1 / -1; }
.tavis-rfq__optional, .tavis-rfq__field small { color: var(--muted); font-weight: 400; }
.tavis-rfq__privacy { display: block; margin-top: .55rem; }
.tavis-rfq input:not([type=hidden]), .tavis-rfq select, .tavis-rfq textarea { display: block; width: 100%; min-height: 45px; padding: .55rem .65rem; margin-top: .3rem; border: 1px solid #9ba6af; border-radius: 4px; color: var(--ink); background: #fff; font: 400 1rem/1.4 var(--sans); }
.tavis-rfq textarea { resize: vertical; }
.tavis-rfq__attachment {
    padding: clamp(.85rem, 2.4vw, 1.3rem);
    border: 1px solid #3d4853;
    border-top: 2px solid #b87d62;
    border-radius: 4px;
    background: linear-gradient(135deg, #29333e, #1a222b 74%);
    color: #f4f6f7;
}
.tavis-rfq__attachment > label { font-weight: 700; }
.tavis-rfq__attachment .tavis-rfq__optional,
.tavis-rfq__attachment small { color: #d1d9df; }
.tavis-rfq__attachment small { display: block; line-height: 1.55; }
.tavis-rfq__attachment a { color: #f2b7a4; text-underline-offset: .16em; }
.tavis-rfq .tavis-rfq__attachment input[type=file] {
    min-height: 0;
    padding: .25rem;
    margin: .65rem 0 .55rem;
    border-color: #81909d;
    background: #182029;
    color: #eff3f6;
    font-size: .875rem;
    cursor: pointer;
}
.tavis-rfq__attachment input[type=file]::file-selector-button {
    min-height: 44px;
    margin-inline-end: .75rem;
    padding: .55rem .8rem;
    border: 1px solid #f0f3f5;
    border-radius: 3px;
    background: linear-gradient(#f3f5f6, #c9d1d8);
    color: #19222c;
    font: 700 .875rem/1.35 var(--sans);
    cursor: pointer;
}
.tavis-rfq__attachment input[type=file]::file-selector-button:hover {
    border-color: #f2b7a4;
    background: #fff;
}
.tavis-rfq__attachment :focus-visible { outline-color: #ffc4af; }
.tavis-rfq__message { border-left: 4px solid; padding: .75rem; margin: 0 0 1rem; }
.tavis-rfq__message--success { color: #175237; background: #e8f5ed; }
.tavis-rfq__message--error { color: #802a1b; background: #f8ece8; }
@media (max-width: 1200px) {
    .site-nav, .header-quote { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav summary { display: flex; gap: .65rem; align-items: center; list-style: none; cursor: pointer; padding: .55rem .8rem; border: 1px solid #c8d0d7; border-radius: 4px; font-weight: 700; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .menu-lines { width: 14px; height: 11px; border-block: 2px solid; position: relative; }
    .menu-lines::after { content: ""; position: absolute; top: 3px; inset-inline: 0; border-top: 1px solid; }
    .mobile-nav nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: .3rem 28px 1rem; background: #fff; box-shadow: 0 8px 20px #14191c24; }
    .mobile-nav nav a { padding: .55rem 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1050px) {
    .wrap { width: min(1200px, calc(100% - 56px)); }
    .hero-grid { min-height: 490px; }
    .factory-gallery { grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (max-width: 950px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 36px); }
    .header-inner { min-height: 64px; }
    .hero-grid, .service-hero-grid, .feature-grid, .faq-grid, .rfq-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { min-height: auto; padding-block: 2.25rem 1.7rem; gap: 1.55rem; }
    .hero-media img { aspect-ratio: 16 / 10; }
    .mobile-nav nav { padding-inline: 18px; }
    .strip-grid a { padding: .85rem .65rem; }
    .strip-grid strong { font-size: .84rem; }
    .strip-grid span { font-size: .75rem; line-height: 1.4; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-heading, .quote-band-inner { flex-direction: column; align-items: flex-start; }
    .spec-grid { grid-template-columns: 1fr; }
    .service-hero-grid { gap: 1.3rem; }
    .inner-hero { padding-bottom: 2.2rem; }
    .detail-photo img { aspect-ratio: 16 / 10; }
    .factory-intro { background-size: 135% auto; background-position: center top; }
    .factory-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .factory-gallery { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 490px) {
    .service-grid, .tavis-rfq__grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .button { min-height: 46px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    th, td { padding: .6rem .55rem; font-size: .86rem; }
    .factory-gallery { grid-auto-columns: 84%; }
}
