/* Non-Skid Oil Change & More — site styles.
   Fonts are self-hosted (see assets/fonts) so the CSP can stay locked to 'self'. */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}  /* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}  /* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}  /* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}  /* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-400-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}  /* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-400-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}  /* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/oswald-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}  /* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/oswald-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}  /* latin */

:root{
    --ink:#121210;
    --ink-soft:#1b1b17;
    --yellow:#F6C500;
    --yellow-deep:#D9A700;
    --red:#C8102E;
    --paper:#F5F2E7;
    --paper-dim:#E9E4D3;
    --steel:#4B4E4D;
    --steel-light:#8b8d86;
    --white:#FFFFFF;
    --radius:2px;
    --stripe: repeating-linear-gradient(135deg, var(--ink) 0 18px, var(--yellow) 18px 36px);
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Inter', sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  /* height:auto is load-bearing. Every <img> carries width/height attributes to
     reserve layout space, and browsers apply those as presentational hints. A
     rule that sets only width leaves the height hint in force, so the image
     renders at its full pixel height at a shrunken width — see .about-photo.
     Rules that set height explicitly (.hero-photo, .gallery-grid) still win. */
  img{max-width:100%;height:auto;display:block;}
  a{color:inherit;}

  h1,h2,h3{
    font-family:'Oswald', sans-serif;
    text-transform:uppercase;
    letter-spacing:0.01em;
    margin:0;
  }

  .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:12.5px;
    letter-spacing:0.18em;
    text-transform:uppercase;
    font-weight:600;
  }

  .wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 28px;
  }

  .stripe-bar{
    height:10px;
    background:var(--stripe);
    background-size:50px 50px;
    animation:stripeMove 1.6s linear infinite;
  }
  @keyframes stripeMove{
    from{background-position:0 0;}
    to{background-position:36px 0;}
  }

  /* ---------- NAV ---------- */
  .nav{
    position:sticky;
    top:0;
    z-index:50;
    background:var(--ink);
    border-bottom:4px solid var(--yellow);
  }
  .nav .wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:14px;
    padding-bottom:14px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--paper);
    text-decoration:none;
  }
  .brand img{
    height:44px;
    width:44px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid var(--yellow);
  }
  .brand-name{
    font-family:'Oswald', sans-serif;
    font-size:19px;
    font-weight:600;
    letter-spacing:0.03em;
    line-height:1.05;
  }
  .brand-name span{
    display:block;
    font-family:'IBM Plex Mono', monospace;
    font-size:10px;
    color:var(--yellow);
    letter-spacing:0.16em;
    margin-top:3px;
  }
  .nav-links{
    display:flex;
    align-items:center;
    gap:28px;
  }
  .nav-links a{
    color:var(--paper);
    text-decoration:none;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    opacity:0.85;
  }
  .nav-links a:hover{opacity:1; color:var(--yellow);}
  .nav-call{
    background:var(--yellow);
    color:var(--ink)!important;
    padding:10px 18px;
    font-weight:700!important;
    border-radius:var(--radius);
    opacity:1!important;
  }
  .nav-call:hover{background:var(--white);}
  .nav-toggle{display:none;}

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    background:var(--ink);
    color:var(--paper);
    overflow:hidden;
    padding-top:64px;
  }
  .hero-grid{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    align-items:center;
    gap:40px;
    padding:56px 0 0;
  }
  .hero-eyebrow{color:var(--yellow); margin-bottom:18px;}
  .hero h1{
    font-size:clamp(40px,5.6vw,68px);
    line-height:0.98;
    font-weight:700;
    color:var(--white);
  }
  .hero h1 em{
    font-style:normal;
    color:var(--yellow);
  }
  .hero p.lede{
    font-family:'Inter';
    font-size:17px;
    line-height:1.65;
    color:#D8D5C7;
    max-width:480px;
    margin-top:22px;
  }
  .cta-row{
    display:flex;
    gap:14px;
    margin-top:34px;
    flex-wrap:wrap;
  }
  .btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family:'IBM Plex Mono', monospace;
    font-size:13px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    font-weight:600;
    padding:16px 26px;
    border-radius:var(--radius);
    text-decoration:none;
    border:2px solid transparent;
    transition:transform .15s ease;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{background:var(--yellow); color:var(--ink);}
  .btn-primary:hover{background:var(--white);}
  .btn-ghost{border-color:var(--paper); color:var(--paper);}
  .btn-ghost:hover{border-color:var(--yellow); color:var(--yellow);}

  .hero-photo{
    position:relative;
    border:4px solid var(--yellow);
    aspect-ratio:4/3;
    overflow:hidden;
  }
  .hero-photo img{
    width:100%;height:100%;object-fit:cover;
  }
  .hero-photo .tag{
    position:absolute;
    bottom:16px;
    left:16px;
    background:var(--ink);
    color:var(--yellow);
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    padding:8px 12px;
    border:1px solid var(--yellow);
  }

  .hero-banners{
    margin-top:52px;
    border-top:1px solid #333;
  }
  .banner-strip{
    display:flex;
    flex-wrap:wrap;
  }
  .banner-strip .b{
    flex:1 1 220px;
    padding:18px 6px;
    text-align:center;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.12em;
    text-transform:uppercase;
    color:#B9B6A8;
    border-right:1px solid #333;
  }
  .banner-strip .b:last-child{border-right:none;}
  .banner-strip .b strong{color:var(--yellow); display:block; font-family:'Oswald'; font-size:15px; letter-spacing:0.04em; margin-bottom:4px;}

  /* ---------- SECTION HEADERS ---------- */
  .section{padding:96px 0;}
  .section.tight{padding:72px 0;}
  .sec-head{
    max-width:640px;
    margin-bottom:52px;
  }
  .sec-head .eyebrow{color:var(--red);}
  .sec-head h2{
    font-size:clamp(30px,4vw,44px);
    margin-top:14px;
    color:var(--ink);
  }
  .sec-head p{
    font-size:16px;
    line-height:1.7;
    color:var(--steel);
    margin-top:16px;
  }
  .on-dark .sec-head h2{color:var(--white);}
  .on-dark .sec-head .eyebrow{color:var(--yellow);}
  .on-dark .sec-head p{color:#C9C6B8;}

  /* ---------- SERVICES ---------- */
  .services{background:var(--paper);}
  .manifest{
    background:var(--ink);
  }
  .manifest-group{
    padding:36px 40px;
    border-bottom:1px solid #2c2c26;
  }
  .manifest-group:last-child{border-bottom:none;}
  .manifest-group-title{
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.18em;
    text-transform:uppercase;
    color:var(--yellow);
    margin-bottom:20px;
    display:block;
  }
  .manifest-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
  }
  .manifest-chip{
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--ink-soft);
    border:1px solid #2c2c26;
    color:var(--paper);
    padding:13px 20px;
    font-family:'Oswald', sans-serif;
    font-size:16px;
    font-weight:500;
    letter-spacing:0.01em;
    text-transform:uppercase;
    border-radius:2px;
  }
  .manifest-chip::before{
    content:'';
    width:7px;
    height:7px;
    background:var(--yellow);
    flex-shrink:0;
  }
  .manifest-chip.flag{
    background:var(--yellow);
    border-color:var(--yellow);
    color:var(--ink);
    font-weight:600;
  }
  .manifest-chip.flag::before{
    background:var(--ink);
  }

  /* ---------- ABOUT ---------- */
  .about{background:var(--paper-dim);}
  .about-grid{
    display:grid;
    grid-template-columns:0.9fr 1.1fr;
    gap:56px;
    align-items:center;
  }
  .about-photo{
    position:relative;
    border:4px solid var(--ink);
  }
  .about-photo img{width:100%;display:block;}
  .about-copy .eyebrow{color:var(--red); margin-bottom:16px; display:block;}
  .about-copy h2{
    font-size:clamp(28px,3.6vw,40px);
    margin-bottom:20px;
  }
  .about-copy p{
    font-size:16px;
    line-height:1.75;
    color:var(--steel);
    margin-bottom:16px;
  }
  .badge-row{
    display:flex;
    gap:16px;
    margin-top:28px;
    flex-wrap:wrap;
  }
  .badge{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
    letter-spacing:0.06em;
    text-transform:uppercase;
    background:var(--ink);
    color:var(--yellow);
    padding:10px 16px;
    border-radius:var(--radius);
  }

  /* ---------- GALLERY ---------- */
  .gallery{background:var(--ink);}
  .gallery-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    grid-template-rows:auto auto;
    gap:16px;
  }
  .gallery-grid figure{
    margin:0;
    overflow:hidden;
    border:2px solid #333;
    position:relative;
  }
  .gallery-grid img{
    width:100%;height:100%;object-fit:cover;
    transition:transform .5s ease;
  }
  .gallery-grid figure:hover img{transform:scale(1.05);}
  .g-1{grid-row:1 / span 2;}
  .gallery-grid figcaption{
    position:absolute;
    bottom:0;left:0;right:0;
    background:linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
    color:var(--yellow);
    font-family:'IBM Plex Mono', monospace;
    font-size:11px;
    letter-spacing:0.1em;
    text-transform:uppercase;
    padding:26px 14px 12px;
  }

  /* ---------- HOURS / LOCATION ---------- */
  .plaque-section{
    background:var(--paper);
    padding:96px 0;
  }
  .plaque-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
    border:3px solid var(--ink);
  }
  .plaque{
    padding:44px 42px;
  }
  .plaque.dark{
    background:var(--ink);
    color:var(--paper);
  }
  .plaque.light{
    background:var(--yellow);
    color:var(--ink);
    border-left:3px solid var(--ink);
  }
  .plaque .eyebrow{margin-bottom:18px; display:block;}
  .plaque.dark .eyebrow{color:var(--yellow);}
  .plaque.light .eyebrow{color:var(--ink); opacity:0.65;}
  .plaque h3{
    font-size:26px;
    margin-bottom:22px;
  }
  .hours-list{
    list-style:none;
    padding:0;
    margin:0;
    font-family:'IBM Plex Mono', monospace;
    font-size:14px;
  }
  .hours-list li{
    display:flex;
    justify-content:space-between;
    padding:11px 0;
    border-bottom:1px solid rgba(255,255,255,0.12);
  }
  .plaque.light .hours-list li{border-bottom:1px solid rgba(0,0,0,0.15);}
  .hours-list li span:last-child{color:var(--yellow); font-weight:600;}
  .plaque.light .hours-list li span:last-child{color:var(--ink);}
  .plaque.light .hours-list li span:first-child{opacity:0.75;}

  .contact-block p{
    font-family:'IBM Plex Mono', monospace;
    font-size:15px;
    margin:0 0 14px;
  }
  .contact-block .phone-link{
    font-family:'Oswald', sans-serif;
    font-size:32px;
    font-weight:600;
    text-decoration:none;
    display:inline-block;
    margin-bottom:18px;
    letter-spacing:0.01em;
  }
  .contact-block .phone-link:hover{text-decoration:underline;}

  .map-panel{
    margin-top:28px;
    background:var(--ink);
    border:3px solid var(--ink);
    padding:48px 40px;
    text-align:center;
    position:relative;
    overflow:hidden;
  }
  .map-panel::before{
    content:'';
    position:absolute;
    inset:0;
    background-image:radial-gradient(circle at 18% 20%, rgba(246,197,0,0.08), transparent 55%);
    pointer-events:none;
  }
  .map-pin{
    width:44px;
    height:44px;
    color:var(--yellow);
    margin:0 auto 18px;
    display:block;
    position:relative;
  }
  .map-address{
    font-family:'IBM Plex Mono', monospace;
    font-size:15px;
    color:var(--paper);
    letter-spacing:0.03em;
    line-height:1.7;
    margin-bottom:28px;
    position:relative;
  }
  .map-btns{
    display:flex;
    gap:14px;
    justify-content:center;
    flex-wrap:wrap;
    position:relative;
  }

  /* ---------- FINAL CTA ---------- */
  .final-cta{
    background:var(--red);
    color:var(--white);
    text-align:center;
    padding:80px 0;
    position:relative;
  }
  .final-cta h2{
    font-size:clamp(30px,4.4vw,50px);
    color:var(--white);
    margin-bottom:18px;
  }
  .final-cta p{
    font-family:'IBM Plex Mono', monospace;
    font-size:14px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:#FFD8DC;
    margin-bottom:34px;
  }
  .final-cta .btn-primary{background:var(--ink); color:var(--yellow);}
  .final-cta .btn-primary:hover{background:var(--white); color:var(--ink);}

  /* ---------- FOOTER ---------- */
  footer{
    background:var(--ink);
    color:#8b8d86;
    padding:40px 0;
    font-family:'IBM Plex Mono', monospace;
    font-size:12px;
  }
  footer .wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
  }
  /* Padding grows the touch target to the 44px WCAG 2.5.8 minimum; the matching
     negative margin cancels the extra box out, so the footer layout is unchanged. */
  footer a{
    color:var(--yellow); text-decoration:none;
    padding:15px 6px; margin:-15px -6px;
  }
  .footer-right{
    display:flex;
    align-items:center;
    gap:24px;
  }
  .social-links{
    display:flex;
    align-items:center;
    gap:14px;
  }
  .social-icon{
    display:flex;
    color:#8b8d86;
    transition:color .2s ease;
  }
  .social-icon:hover{color:var(--yellow);}
  .social-icon svg{width:18px; height:18px;}

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 880px){
    .nav-links{
      position:fixed; inset:64px 0 0 0; background:var(--ink);
      flex-direction:column; align-items:flex-start; padding:24px 28px;
      transform:translateX(100%); transition:transform .25s ease, visibility .25s;
      gap:22px;
      /* The closed menu is only pushed off-screen, so without this it stays
         keyboard-focusable and readable by screen readers. */
      visibility:hidden;
    }
    .nav-links.open{transform:translateX(0); visibility:visible;}
    /* Thumb-sized targets in the slide-out menu. min-height rather than padding
       so .nav-call keeps its own button padding. */
    .nav-links a{display:flex; align-items:center; min-height:44px;}
    .nav-toggle{
      display:block; background:none; border:none; color:var(--paper);
      font-size:26px; cursor:pointer;
    }
    .hero-grid{grid-template-columns:1fr; padding-top:36px;}
    .banner-strip .b{border-right:none; border-bottom:1px solid #333;}
    .about-grid{grid-template-columns:1fr;}
    .about-photo{order:-1;}
    .manifest-group{padding:28px 22px;}
    .manifest-chip{font-size:14px; padding:11px 16px;}
    .gallery-grid{grid-template-columns:1fr 1fr;}
    .g-1{grid-row:auto; grid-column:1 / span 2;}
    .plaque-grid{grid-template-columns:1fr;}
    .plaque.light{border-left:none; border-top:3px solid var(--ink);}
  }
  @media (max-width: 560px){
    .manifest-chip{width:100%;}
    .gallery-grid{grid-template-columns:1fr;}
    .g-1{grid-column:auto;}
  }

  @media (prefers-reduced-motion: reduce){
    *{transition:none!important; animation:none!important; scroll-behavior:auto!important;}
    .js .reveal{opacity:1!important; transform:none!important;}
  }

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

  /* ---------- MOTION ---------- */
  @keyframes fadeUp{
    from{opacity:0; transform:translateY(20px);}
    to{opacity:1; transform:translateY(0);}
  }
  .hero-eyebrow{animation:fadeUp .6s ease both;}
  .hero h1{animation:fadeUp .7s ease .1s both;}
  .hero p.lede{animation:fadeUp .7s ease .2s both;}
  .cta-row{animation:fadeUp .7s ease .3s both;}
  .hero-photo{animation:fadeUp .8s ease .25s both;}
  .hero-banners{animation:fadeUp .8s ease .45s both;}

  /* Scoped to .js (set by main.js in the <head>) so that with scripting off the
     content is simply visible — replaces the old inline <noscript><style>, which
     would have forced 'unsafe-inline' into the CSP. */
  .js .reveal{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .7s ease, transform .7s ease;
  }
  .js .reveal.is-visible{
    opacity:1;
    transform:translateY(0);
  }

  /* ---------- UTILITIES ----------
     Replacements for the style="" attributes in the original single-file build;
     inline style attributes are blocked by the CSP in _headers. */
  .banner-strip.flush{padding-left:0; padding-right:0;}
  .about-manager{margin-top:22px; font-size:14px;}
  .contact-text{font-size:12px; opacity:0.75;}
  /* Inline padding widens the tap target without disturbing the line box. */
  .contact-text a{color:inherit; padding:10px 4px; margin:-10px -4px;}
  .contact-block .btn{margin-top:6px;}

  /* ---------- 404 ---------- */
  .error-page{
    background:var(--ink);
    color:var(--paper);
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:80px 24px;
  }
  .error-page h1{
    font-family:'Oswald',sans-serif;
    font-size:clamp(46px,10vw,96px);
    line-height:0.95;
    letter-spacing:-0.01em;
    margin:14px 0 10px;
    text-transform:uppercase;
  }
  .error-page h1 em{color:var(--yellow); font-style:normal;}
  .error-page p{
    color:#cfcdc4;
    max-width:44ch;
    margin:0 auto 28px;
    font-size:17px;
  }
  .error-page .eyebrow{color:var(--yellow);}
  .error-page .cta-row{justify-content:center; margin-top:0;}
