/* Cowdin Custom Welding — dark, minimal site styles */
:root {
  --bg: #121518;        /* blued graphite */
  --bg-2: #181c20;      /* raised section */
  --bg-3: #20252a;      /* fields, hover */
  --line: #2b3137;
  --text: #ebe7e0;      /* warm off-white */
  --muted: #a1a6ac;
  --dim: #8a9198;
  --accent: #c49a62;    /* brass */
  --accent-hi: #d8b27c;
  --heat: linear-gradient(90deg, #e4c47f 0%, #c38c50 32%, #8d5b7d 64%, #3f6aa3 100%); /* stainless heat tint */

  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--f); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-weight: 300; font-stretch: 118%; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 500; font-stretch: 110%; letter-spacing: 0; }
p { margin: 0 0 1.1em; max-width: 64ch; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 300; line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--raised { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Signature: the heat-tint line that forms beside a stainless TIG weld */
.heat { display: block; width: 120px; height: 2px; background: var(--heat); border: 0; margin: 28px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font: 500 1rem/1 var(--f); font-stretch: 110%; letter-spacing: .01em; text-decoration: none; padding: 1.05em 1.7em; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--solid { background: var(--accent); color: #15120d; }
.btn--solid:hover { background: var(--accent-hi); color: #15120d; }
.btn--line { border-color: #4a5158; color: var(--text); background: transparent; }
.btn--line:hover { border-color: var(--accent); color: var(--accent-hi); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link { display: inline-flex; align-items: center; gap: .55em; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.link svg { width: 1em; height: 1em; transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 21, 24, .86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 128px; height: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.nav a, .nav .nav-drop { color: var(--muted); text-decoration: none; font: 400 .97rem/1 var(--f); padding: 10px 12px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav .nav-drop:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; top: calc(100% + 12px); left: -12px; background: var(--bg-2); list-style: none; margin: 0; padding: 14px 0; border: 1px solid var(--line); width: 560px; columns: 2; column-gap: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .sub a { display: block; padding: 9px 22px; font-size: .95rem; }
.nav .has-sub:hover .sub, .nav .has-sub.open .sub, .nav .has-sub:focus-within .sub { display: block; }
.header-call { flex: none; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: .97rem; font-weight: 500; }
.header-call svg { width: 16px; height: 16px; color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .nav { position: fixed; inset: 77px 0 0 0; background: var(--bg); overflow-y: auto; display: none; padding: 16px var(--gutter) 120px; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav .nav-drop { font-size: 1.5rem; font-weight: 300; font-stretch: 115%; color: var(--text); padding: 16px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav .sub { position: static; display: none; columns: 1; width: auto; border: 0; box-shadow: none; padding: 6px 0 12px 14px; background: transparent; }
  .nav .has-sub:hover .sub { display: none; }
  .nav .has-sub.open .sub { display: block; }
  .nav .sub a { font-size: 1.05rem; border: 0; padding: 10px 0; color: var(--muted); }
}

/* Hero */
.hero { position: relative; min-height: min(92svh, 920px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 30%; filter: saturate(.85); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,21,24,.15) 0%, rgba(18,21,24,.35) 45%, rgba(18,21,24,.96) 100%), linear-gradient(90deg, rgba(18,21,24,.55) 0%, rgba(18,21,24,0) 45%, rgba(18,21,24,.55) 75%, rgba(18,21,24,.92) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 160px; padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { max-width: 12ch; margin: 0; }
.hero p { color: #c9c5be; max-width: 48ch; font-size: 1.1rem; }
.hero .btn-row { margin-top: 36px; gap: 28px; }

/* Inner page hero */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0; }
.page-hero p { color: var(--muted); font-size: 1.1rem; }
.page-hero .btn-row { margin-top: 32px; gap: 28px; }
.page-hero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); }
.page-hero--simple .wrap { grid-template-columns: 1fr; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero__img img { aspect-ratio: 4 / 3; } }

.crumbs { font-size: .88rem; margin-bottom: 28px; color: var(--dim); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* About */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); }
.about h2 { font-size: 1rem; font-weight: 500; font-stretch: 110%; color: var(--accent); letter-spacing: 0; margin-bottom: 24px; }
.about p { color: var(--muted); }
.about p:first-of-type { color: var(--text); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Services index */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); }
.svc-grid li { border-bottom: 1px solid var(--line); }
.svc-grid a { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; padding: 30px 0; text-decoration: none; }
.svc-grid strong { font-weight: 300; font-stretch: 116%; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.svc-grid span { grid-column: 1; color: var(--dim); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.svc-grid svg { grid-column: 2; grid-row: 1; width: 20px; height: 20px; color: var(--dim); margin-top: 6px; transition: transform .2s, color .2s; }
.svc-grid a:hover strong { color: var(--accent-hi); }
.svc-grid a:hover span { color: var(--muted); }
.svc-grid a:hover svg { color: var(--accent); transform: translateX(4px); }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* Selected work */
.work { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(520px, 62vw, 760px); }
.work a { overflow: hidden; display: block; }
.work a:first-child { grid-row: 1 / span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.92); transition: transform .6s ease, filter .4s; }
.work a:hover img { transform: scale(1.03); filter: saturate(1) brightness(1); }
@media (max-width: 760px) { .work { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; } .work a:first-child { grid-column: 1 / -1; grid-row: auto; } .work img { aspect-ratio: 1; } .work a:first-child img { aspect-ratio: 4 / 3; } }
.more { margin-top: 40px; }

/* Why choose */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(32px, 5vw, 72px); }
.reasons h3 { margin-bottom: .6em; }
.reasons p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

/* Reviews */
.quote-big { margin: 0 0 clamp(56px, 8vw, 96px); max-width: 30ch; }
.quote-big blockquote { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 300; font-stretch: 112%; line-height: 1.25; letter-spacing: -0.01em; }
.quote-big figcaption { margin-top: 24px; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--line); padding-top: 48px; }
.review { margin: 0; }
.review blockquote { margin: 0 0 16px; }
.review blockquote p { color: var(--muted); font-size: 1rem; }
.review figcaption { font-weight: 500; font-size: .95rem; }
.reviews--all { grid-template-columns: repeat(2, 1fr); gap: 56px 72px; border-top: 0; padding-top: 0; }
.reviews--all .review { border-top: 1px solid var(--line); padding-top: 32px; }
.reviews--all .review blockquote p { color: var(--text); font-size: 1.15rem; font-weight: 300; }
@media (max-width: 860px) { .reviews, .reviews--all { grid-template-columns: 1fr; } }

/* Areas */
.areas { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 64px; align-items: start; }
.areas h2 { margin-bottom: .3em; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.area-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 300; font-stretch: 112%; font-size: 1.15rem; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 48px; filter: grayscale(1) invert(.92) contrast(.9); opacity: .85; }

/* Contact / form */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list strong { display: block; font-weight: 400; color: var(--dim); font-size: .9rem; margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--accent-hi); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1.02rem; padding: 12px 0; border: 0; border-bottom: 1px solid #626a72; border-radius: 0; background: transparent; color: var(--text); color-scheme: dark; }
.form select { padding-right: 24px; }
.form select option { background: var(--bg-2); }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; min-height: 1.5em; color: var(--accent-hi); }
.form button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Closing call-to-action */
.cta { padding: clamp(80px, 11vw, 150px) 0; background: var(--bg-2); position: relative; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--heat); opacity: .9; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; }
.cta h2 { margin: 0 0 .25em; max-width: 18ch; }
.cta p { margin: 0; color: var(--muted); }
.cta .btn-row { gap: 28px; }

/* Service detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(48px, 8vw, 128px); align-items: start; }
.prose p { color: #cfcbc4; font-size: 1.1rem; line-height: 1.75; }
.prose p:first-child { font-size: clamp(1.25rem, 1.8vw, 1.45rem); font-weight: 300; line-height: 1.55; color: var(--text); }
.prose h2 { font-size: 1rem; font-weight: 500; font-stretch: 110%; color: var(--muted); letter-spacing: 0; margin: 64px 0 18px; }
.aside { position: sticky; top: 120px; border-top: 1px solid var(--line); padding-top: 28px; }
.aside h3 { font-weight: 300; font-stretch: 115%; font-size: 1.5rem; line-height: 1.2; }
.aside p { color: var(--muted); }
.aside .btn { width: 100%; margin-top: 12px; }
.aside dl { margin: 32px 0 0; font-size: .95rem; }
.aside dt { color: var(--dim); font-size: .85rem; margin-top: 18px; }
.aside dd { margin: 2px 0 0; color: var(--muted); }
.aside a { text-decoration: none; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 56px 0 0; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85); }

.inline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.inline-list a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.inline-list a:hover { border-color: var(--accent); }

/* Gallery */
.gallery { columns: 3 300px; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; filter: saturate(.85); transition: transform .6s ease, filter .4s; }
.gallery a:hover img { transform: scale(1.02); filter: saturate(1); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10,12,14,.94); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; margin: 0 auto; }
.lightbox p:empty { display: none; }
.lightbox button { position: fixed; top: 16px; right: 20px; background: transparent; color: var(--text); border: 1px solid #4a5158; font: 400 1rem var(--f); width: 44px; height: 44px; cursor: pointer; }

/* Footer */
.site-footer { position: relative; padding: clamp(72px, 9vw, 112px) 0 32px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-footer h2 { font-size: .9rem; font-weight: 500; font-stretch: 105%; color: var(--dim); letter-spacing: 0; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand img { width: 150px; margin-bottom: 24px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address strong { color: var(--text); font-weight: 500; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.social a:hover { border-color: var(--accent); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.legal { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--dim); }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* Mobile call / quote bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(18,21,24,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; font-weight: 500; text-decoration: none; border-radius: 2px; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .mobile-bar .call { border: 1px solid #4a5158; color: var(--text); }
  .mobile-bar .quote-btn { background: var(--accent); color: #15120d; }
}

.mt { margin-top: 40px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Google reviews: cards laid out like Google's own review list */
.g-summary { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; text-decoration: none; margin-bottom: 32px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; }
.g-summary:hover { border-color: #4a5158; color: var(--text); }
.g-summary .g-score { font-size: 1.35rem; font-weight: 500; }
.g-logo { display: inline-flex; flex: none; }
.g-logo svg { width: 22px; height: 22px; }
.g-stars { color: #fbbc04; letter-spacing: 1px; font-size: 1.05rem; line-height: 1; }
.g-meta { color: var(--dim); font-size: .85rem; }
.g-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.g-reviews--one { grid-template-columns: minmax(0, 640px); }
.g-review { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 18px; display: flex; flex-direction: column; }
.section--raised .g-review { background: var(--bg-3); }
.g-review__head { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.g-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 1.1rem; }
.g-name { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.g-review__head .g-meta { display: block; line-height: 1.3; }
.g-rating { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.g-rating time { color: var(--dim); font-size: .85rem; }
.g-review blockquote { margin: 0; }
.g-review blockquote p { margin: 0; color: #d4d0c9; font-size: .98rem; line-height: 1.6; }
.about__img img { object-position: center 65%; }
.area-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.area-list a { text-decoration: none; display: block; }
.area-list a:hover { color: var(--accent-hi); }
.areas--list-only { grid-template-columns: 1fr; }
.areas--list-only .area-list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .areas--list-only .area-list { grid-template-columns: 1fr 1fr; } }
