/* ==========================================================================
   Kinmon Steel Company — shared stylesheet
   Loaded by every page. Palette is charcoal and white, taken from the shop's
   own signage. No build step: edit this file and all five pages update.
   ========================================================================== */

:root{
  --ink:#2b2b2e;
  --body:#4d4d54;
  --muted:#75757d;
  --faint:#b2b2b8;
  --line:#e5e5e9;
  --tint:#f6f6f7;
  --bg:#ffffff;
  --radius:14px;
  --radius-lg:18px;
  --shadow:0 10px 30px rgba(30,30,35,.12);
  --maxw:1140px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:88px;overflow-x:hidden}
body{
  margin:0;font-family:"Nunito Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--body);background:var(--bg);line-height:1.65;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;width:100%;max-width:100%;
}
h1,h2,h3{color:var(--ink);letter-spacing:-.02em;line-height:1.12;margin:0 0 .4em}
h1{font-size:clamp(2rem,4vw,2.85rem);font-weight:800}
h2{font-size:clamp(1.55rem,3vw,2.15rem);font-weight:800}
h3{font-size:1.08rem;font-weight:800;margin-bottom:.3em}
p{margin:0 0 1rem}
a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
img{max-width:100%;display:block}
ul{margin:0;padding:0;list-style:none}
address{font-style:normal}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px;border-radius:6px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.section{padding:84px 0}
.section.tint{background:var(--tint)}
.lead{font-size:1.08rem;color:var(--muted);max-width:62ch}
.sec-head{max-width:66ch;margin-bottom:42px}
.sec-head.center{margin:0 auto 42px;text-align:center}
.sec-head.center .lead{margin-inline:auto}
h2.rule::after{content:"";display:block;width:46px;height:3px;background:var(--ink);
  border-radius:2px;margin-top:16px}
.center h2.rule::after{margin-inline:auto}

.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--ink);color:#fff;padding:.7em 1.2em;border-radius:0 0 10px 0;font-weight:700;text-decoration:none}
.skip:focus{left:0}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;font-weight:800;font-size:1rem;
  padding:.8em 1.55em;border-radius:999px;border:1.5px solid transparent;cursor:pointer;transition:.15s ease;
  text-decoration:none;white-space:nowrap;font-family:inherit}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:#000}
.btn-outline{background:#fff;color:var(--ink);border-color:#cfcfd6}
.btn-outline:hover{border-color:var(--ink)}

/* Inline "See all →" link used at the foot of homepage sections */
.seeall{display:inline-flex;align-items:center;gap:.45em;margin-top:30px;
  font-weight:800;font-size:.95rem;color:var(--ink);text-decoration:none}
.seeall:hover{text-decoration:underline;text-underline-offset:4px}
.seeall svg{transition:transform .15s ease}
.seeall:hover svg{transform:translateX(3px)}
.section.dark .seeall{color:#fff}

/* ---------- Header ---------- */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.93);
  backdrop-filter:saturate(140%) blur(10px);-webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;height:72px}
.brand{display:block;color:var(--ink);text-decoration:none}
.brand svg{display:block;height:44px;width:auto}
.nav-links{display:flex;align-items:center;gap:26px}
.nav-links a{color:var(--body);font-weight:700;font-size:.95rem;text-decoration:none}
.nav-links a:hover{color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--ink);text-decoration:underline;
  text-underline-offset:6px;text-decoration-thickness:2px}
.nav-quote-m{display:none}
.nav-cta{display:flex;align-items:center;gap:16px}
.nav-phone{font-weight:800;color:var(--ink);white-space:nowrap;text-decoration:none}
.nav-phone:hover{text-decoration:underline;text-underline-offset:3px}
.menu-btn{display:none;background:none;border:0;cursor:pointer;padding:8px}
.menu-btn span{display:block;width:24px;height:2.5px;background:var(--ink);margin:5px 0;border-radius:2px}

/* ---------- Hero (homepage only) ----------
   A CHARCOAL scrim, not a white one: washing white over a white-table photo
   reads as fog. Dark ground + white type is legible by construction and
   matches the ink used in the buttons, contact section, and the shop sign. */
.hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;
  min-height:clamp(540px,50vw,660px)}
.hero-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;
  object-fit:cover;object-position:70% 52%}
.hero-scrim{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,
  rgba(28,28,32,.96) 0%,rgba(28,28,32,.93) 30%,rgba(28,28,32,.68) 46%,
  rgba(28,28,32,.2) 63%,rgba(28,28,32,0) 77%)}
/* width:100% is required here — .wrap has no width, so as a flex item it would
   shrink-to-fit and the copy would drift off the page's left alignment. */
.hero-copy{position:relative;width:100%;padding-block:clamp(56px,6vw,80px)}
.kick{font-size:.78rem;font-weight:800;letter-spacing:.26em;text-transform:uppercase;
  color:rgba(255,255,255,.72);margin:0 0 14px}
.hero h1{color:#fff;max-width:16ch}
.hero p.sub{font-size:1.12rem;color:rgba(255,255,255,.88);max-width:44ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:13px;margin-top:24px}
.hero-stats{display:flex;gap:36px;margin-top:38px;flex-wrap:wrap}
.hero-stats strong{display:block;font-weight:800;font-size:1.75rem;color:#fff;line-height:1.1}
.hero-stats span{font-size:.9rem;color:rgba(255,255,255,.7)}
.hero .btn-primary{background:#fff;color:var(--ink)}
.hero .btn-primary:hover{background:#e8e8ed}
.hero .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.hero .btn-outline:hover{background:rgba(255,255,255,.12);border-color:#fff}

/* ---------- Page header (interior pages) ---------- */
.pagehead{background:var(--tint);border-bottom:1px solid var(--line);
  padding-block:clamp(38px,5vw,62px)}
.pagehead h1{max-width:20ch;margin-bottom:0}
.pagehead .lead{margin-top:16px}
.crumb{font-size:.86rem;color:var(--muted);margin-bottom:14px}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.crumb span{padding:0 .45em}

/* ---------- Services ---------- */
.svc{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.svc article{border:1px solid var(--line);border-radius:var(--radius);padding:24px;background:#fff}
.svc .n{display:block;font-weight:800;font-size:.78rem;letter-spacing:.08em;color:var(--faint);margin-bottom:12px}
.svc p{color:var(--muted);margin:0;font-size:.93rem;line-height:1.6}

/* ---------- Equipment & materials ---------- */
.specs{display:grid;grid-template-columns:1fr 1fr;gap:44px}
/* Supporting shop photo: 16:9 on desktop trims only ceiling and floor;
   relaxes to the source's native 4:3 on mobile so nothing is cropped. */
.eq-photo{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 45%;
  border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-top:48px}
.specs h3{padding-bottom:10px;border-bottom:2px solid var(--ink);margin-bottom:0}
.specs li{padding:11px 0;border-bottom:1px solid var(--line);color:var(--body);font-size:.97rem;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.specs li em{font-style:normal;color:var(--muted);font-size:.88rem}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-auto-rows:205px;gap:14px}
.gallery figure{position:relative;overflow:hidden;border-radius:var(--radius);margin:0;background:#ededf0}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.gallery figure:hover img{transform:scale(1.03)}
.gallery .big{grid-row:span 2}
.gallery figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 15px 11px;color:#fff;
  font-size:.85rem;font-weight:700;background:linear-gradient(to top,rgba(25,25,28,.72),rgba(25,25,28,0))}
.gallery .contain img{object-fit:contain;padding:10px}

/* ---------- History ---------- */
.about{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.about img{border-radius:var(--radius-lg);box-shadow:var(--shadow);width:100%;
  height:clamp(280px,32vw,410px);object-fit:cover}
.about p:last-of-type{margin-bottom:0}

/* ---------- Team ---------- */
.team{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:860px;margin:0 auto}
.person{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;
  display:flex;align-items:center;gap:20px}
.person img{width:90px;height:90px;border-radius:50%;object-fit:cover;object-position:50% 18%;flex:none}
.person b{display:block;font-size:1.1rem;font-weight:800;color:var(--ink)}
.person .role{color:var(--muted);font-size:.92rem;margin-bottom:7px}
.person a{font-size:.92rem;display:block;line-height:1.75;color:var(--body)}

/* ---------- Contact — closes in the sign's charcoal ---------- */
.section.dark{background:var(--ink)}
.section.dark h2{color:#fff}
.section.dark h2.rule::after{background:#fff}
.section.dark .lead{color:#b9b9c0}
.contact{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:start}
.contact .lead{margin-bottom:1.6rem}
.contact-actions{display:flex;flex-wrap:wrap;gap:13px}
.section.dark .btn-primary{background:#fff;color:var(--ink)}
.section.dark .btn-primary:hover{background:#e8e8ec}
.section.dark .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.section.dark .btn-outline:hover{border-color:#fff}
.cpanel{border:1px solid rgba(255,255,255,.22);border-radius:var(--radius);padding:26px 28px}
.cpanel .row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.14);font-size:.97rem;flex-wrap:wrap}
.cpanel .row:first-child{padding-top:0}
.cpanel .row:last-of-type{border-bottom:0;padding-bottom:0}
.cpanel .row b{color:#fff;font-weight:800;flex:none}
.cpanel .row > span, .cpanel .row address{text-align:right;color:#c9c9cf}
.cpanel a{color:#fff}
.cpanel .maplink{margin-top:16px}

/* Compact quote band that closes the interior pages */
.ctaband{display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap}
.ctaband h2{margin-bottom:.25em}
.ctaband p{color:#b9b9c0;margin:0;max-width:52ch}
.ctaband .contact-actions{flex:none}

/* ---------- Footer ---------- */
footer.site{background:var(--tint);padding:48px 0 24px}
footer.site .cols{display:grid;grid-template-columns:1.6fr 1fr 1.2fr 1.2fr;gap:32px;margin-bottom:34px}
footer.site h4{font-size:.95rem;margin:0 0 12px;font-weight:800;color:var(--ink)}
footer.site a{color:var(--body);display:block;margin-bottom:8px;font-size:.94rem;text-decoration:none}
footer.site a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
footer .flogo{color:var(--ink)}
footer .flogo svg{display:block;height:74px;width:auto}
footer .ftagline{display:block;font-size:.68rem;font-weight:800;letter-spacing:.24em;
  text-transform:uppercase;color:var(--muted);margin-top:10px}
footer .tag{color:var(--muted);max-width:36ch;font-size:.94rem;margin-top:14px}
footer address{font-size:.94rem;line-height:1.8;color:var(--body)}
footer .fx{font-size:.94rem;color:var(--body);margin-bottom:8px}
footer .bottom{border-top:1px solid var(--line);padding-top:18px;display:flex;
  justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.87rem;color:var(--muted)}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Narrow viewports: a full-height photo only reveals ~49% of its width, which
   crops the outer two yokes off entirely. So the photo becomes a full-width
   2:1 band across the top — all three parts visible — and the copy sits below
   it on solid ink, with the scrim fading the band's base into that ink. */
@media(max-width:900px){
  .hero{align-items:flex-end;min-height:0;background:var(--ink)}
  .hero-bg{position:absolute;top:0;left:0;width:100%;height:auto;aspect-ratio:2/1;
    object-fit:cover;object-position:50% 46%;transform:none}
  .hero-scrim{top:0;bottom:auto;height:50vw;background:linear-gradient(180deg,
    rgba(28,28,32,0) 0%,rgba(28,28,32,0) 54%,rgba(28,28,32,.42) 78%,
    rgba(28,28,32,.93) 95%,rgba(28,28,32,1) 100%)}
  .hero-copy{padding-block:calc(50vw + 20px) 48px}
  .hero h1{max-width:none;font-size:clamp(1.75rem,6.4vw,2.2rem)}
  .hero p.sub{font-size:1.02rem;max-width:none}
  .hero-cta{margin-top:20px}
  .hero-stats{gap:26px;margin-top:28px}
  .hero-stats strong{font-size:1.45rem}
}

@media(max-width:1100px){
  .svc{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:980px){
  .about,.contact{grid-template-columns:1fr;gap:32px}
  .specs{grid-template-columns:1fr;gap:34px}
  .ctaband{display:block}
  .ctaband .contact-actions{margin-top:22px}
}
@media(max-width:900px){
  .nav-links{display:none}
  .menu-btn{display:block}
  .nav-links.open{display:flex;position:absolute;top:72px;left:0;right:0;flex-direction:column;
    align-items:flex-start;gap:2px;background:#fff;border-bottom:1px solid var(--line);
    padding:12px 22px 16px;box-shadow:var(--shadow)}
  .nav-links.open a{padding:9px 0;width:100%}
  .nav-links.open .nav-quote-m{display:block;font-weight:800}
}
@media(max-width:760px){
  .section{padding:54px 0}
  .team{grid-template-columns:1fr}
  .eq-photo{aspect-ratio:4/3;margin-top:34px}
  /* Cells follow the source ratio instead of a pinned pixel height —
     most part photos are square, the featured shot is 4:3. */
  .gallery{grid-template-columns:1fr 1fr;grid-auto-rows:auto}
  .gallery figure{aspect-ratio:1/1}
  .gallery .big{grid-column:span 2;grid-row:span 1;aspect-ratio:4/3}
  footer.site .cols{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .nav-cta .btn-primary{display:none}
  .hero-cta .btn{padding:.72em 1.15em;font-size:.94rem}
}
@media(max-width:480px){
  .nav-phone{display:none}
  .svc{grid-template-columns:1fr}
  /* Single column: no forced ratio, so every part shows in full — no crop. */
  .gallery{grid-template-columns:1fr}
  .gallery figure,.gallery .big{grid-column:span 1;aspect-ratio:auto}
  .gallery img{height:auto}
  .hero-stats{gap:22px 30px}
  .person{flex-direction:column;text-align:center;gap:14px}
  .cpanel .row > span, .cpanel .row address{text-align:left}
  footer.site .cols{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
