/*
Theme Name: Scrap-Complex
Theme URI: https://scrapcomplex.pl
Author: Scrap-Complex
Description: Motyw dla Scrap-Complex — skup złomu i skład opału w Bobowie. Wygenerowany na podstawie statycznej strony HTML, z pełną obsługą edytora blokowego (Gutenberg).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: scrap-complex
*/

:root{
    --paper:#E4E8EC;
    --paper-2:#D6DCE2;
    --ink:#131A21;
    --steel:#44515C;
    --steel-soft:#67757F;
    --line:#BFC9D1;
    --rust:#1E6091;
    --rust-deep:#123F5F;
    --copper:#3C7EA6;
    --panel:#0F161D;
    --panel-2:#1B2530;
    --panel-line:#2C3946;
    --cream-on-dark:#E6ECF0;
    --ok:#3E7C5C;
    --radius:0;
    --cut:14px;
    --maxw:1180px;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.01ms !important; transition-duration:0.01ms !important;}
  }
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'IBM Plex Sans', system-ui, sans-serif;
    font-size:16px;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{
    font-family:'Big Shoulders Display', sans-serif;
    font-weight:800;
    line-height:0.95;
    letter-spacing:0.002em;
    margin:0;
    color:var(--ink);
  }
  p{margin:0;}
  a{color:inherit;}
  .mono{font-family:'IBM Plex Mono', monospace;}
  .wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
  img{max-width:100%; display:block;}
  button{font-family:inherit;}

  /* ---------- shear / cut-corner shape, the recurring signature device ---------- */
  .cut{
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  }
  .cut-sm{
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }

  /* ---------- top utility bar ---------- */
  .utility{
    background:var(--panel);
    color:var(--cream-on-dark);
    font-family:'IBM Plex Mono', monospace;
    font-size:12.5px;
    letter-spacing:0.02em;
  }
  .utility .wrap{
    display:flex; justify-content:space-between; align-items:center;
    padding-top:8px; padding-bottom:8px; gap:16px; flex-wrap:wrap;
  }
  .utility a{ text-decoration:none; color:var(--cream-on-dark); }
  .utility a:hover{ color:var(--rust); }
  .utility .dot{ color:var(--rust); }

  /* ---------- header / nav ---------- */
  header.site{
    background:var(--panel);
    border-bottom:1px solid var(--panel-line);
    position:sticky; top:0; z-index:50;
  }
  .nav-row{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 0;
    gap:24px;
  }
  .logo{
    display:flex; align-items:baseline; gap:10px;
    text-decoration:none; color:var(--cream-on-dark);
    cursor:pointer; border:0; background:none;
  }
  .logo .mark{
    width:34px; height:34px;
    background:var(--rust);
    display:flex; align-items:center; justify-content:center;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    color:var(--panel);
    font-family:'Big Shoulders Display', sans-serif;
    font-weight:900; font-size:20px;
  }
  .logo .word{
    font-family:'Big Shoulders Display', sans-serif;
    font-weight:800; font-size:22px; letter-spacing:0.01em;
  }
  .logo .word b{ color:var(--rust); font-weight:800; }

  nav.primary{ display:flex; align-items:center; gap:2px; }
  nav.primary .navlink{
    position:relative;
    background:none; border:0; cursor:pointer;
    color:var(--cream-on-dark);
    font-family:'IBM Plex Sans', sans-serif;
    font-weight:500; font-size:15px;
    padding:10px 14px;
    text-decoration:none;
  }
  nav.primary .navlink:hover{ color:var(--rust); }
  nav.primary .navlink.is-active{ color:var(--rust); }
  nav.primary .navlink.is-active::after{
    content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background:var(--rust);
  }
  .call-btn{
    display:flex; align-items:center; gap:8px;
    background:var(--rust); color:var(--panel);
    text-decoration:none;
    padding:11px 18px;
    font-weight:600; font-size:14.5px;
    border:0; cursor:pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }
  .call-btn:hover{ background:#2A72A6; }
  .call-btn svg{ width:15px; height:15px; }

  .burger{ display:none; background:none; border:1px solid var(--panel-line); color:var(--cream-on-dark); padding:8px 10px; cursor:pointer; }

  /* ---------- generic section spacing ---------- */
  section{ padding:76px 0; }
  .section-tight{ padding:56px 0; }
  .eyebrow-line{
    display:flex; align-items:center; gap:10px;
    font-family:'IBM Plex Mono', monospace;
    font-size:12.5px; color:var(--steel-soft);
    margin-bottom:14px;
  }
  .eyebrow-line .num{ color:var(--rust); }
  .eyebrow-line .rule{ flex:1; height:1px; background:var(--line); }

  /* ---------- HERO ---------- */
  .hero{
    background:var(--panel);
    color:var(--cream-on-dark);
    position:relative;
    overflow:hidden;
    padding:64px 0 0 0;
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background-image: repeating-linear-gradient(90deg, rgba(237,232,218,0.035) 0px, rgba(237,232,218,0.035) 1px, transparent 1px, transparent 64px);
    pointer-events:none;
  }
  .hero-grid{
    display:grid; grid-template-columns:1.15fr 0.85fr; gap:40px; align-items:end;
    position:relative;
  }
  .hero-tag{
    display:inline-flex; align-items:center; gap:8px;
    font-family:'IBM Plex Mono', monospace; font-size:12.5px;
    color:var(--rust); border:1px solid var(--rust);
    padding:6px 12px; margin-bottom:22px;
  }
  .hero h1{
    font-size:clamp(40px, 6vw, 74px);
    color:var(--cream-on-dark);
  }
  .hero h1 .accent{ color:var(--rust); }
  .hero .sub{
    margin-top:22px; max-width:46ch;
    font-size:17.5px; color:#B9C4CC;
  }
  .hero-ctas{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
  .btn{
    display:inline-flex; align-items:center; gap:9px;
    padding:14px 22px; font-weight:600; font-size:15px;
    text-decoration:none; border:0; cursor:pointer;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  }
  .btn-primary{ background:var(--rust); color:var(--panel); }
  .btn-primary:hover{ background:#2A72A6; }
  .btn-ghost{ background:transparent; color:var(--cream-on-dark); border:1px solid var(--panel-line); }
  .btn-ghost:hover{ border-color:var(--rust); color:var(--rust); }

  .hero-figure{
    position:relative;
    border:1px solid var(--panel-line);
    padding:22px;
    background:var(--panel-2);
  }
  .hero-figure .lines{ display:grid; gap:14px; }
  .hero-stat{ display:flex; justify-content:space-between; align-items:baseline; padding-bottom:12px; border-bottom:1px dashed var(--panel-line); }
  .hero-stat:last-child{ border-bottom:0; padding-bottom:0; }
  .hero-stat .label{ font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:#8B98A3; }
  .hero-stat .value{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:26px; color:var(--cream-on-dark); }
  .hero-stat .value .u{ font-size:14px; color:var(--rust); margin-left:4px; }

  /* ---------- weighbridge ticket strip ---------- */
  .ticket-strip{
    background:var(--rust);
    color:var(--panel);
    margin-top:56px;
  }
  .ticket-inner{
    display:grid; grid-template-columns:repeat(4, 1fr);
  }
  .ticket-cell{
    padding:20px 26px;
    border-left:1px dashed rgba(22,24,26,0.35);
  }
  .ticket-cell:first-child{ border-left:0; }
  .ticket-cell .k{ font-family:'IBM Plex Mono', monospace; font-size:12px; opacity:0.8; }
  .ticket-cell .v{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:24px; margin-top:4px; }

  /* ---------- offer cards (home) ---------- */
  .cards-3{
    display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-top:36px;
  }
  .offer-card{
    background:#fff;
    border:1px solid var(--line);
    display:flex; flex-direction:column;
  }
  .offer-card .media{
    height:150px;
    background:linear-gradient(135deg, var(--steel) 0%, var(--panel) 100%);
    position:relative;
    display:flex; align-items:flex-end;
  }
  .offer-card .media .tagchip{
    position:absolute; top:14px; left:14px;
    background:var(--rust); color:#fff;
    font-family:'IBM Plex Mono', monospace; font-size:11px;
    padding:4px 9px;
  }
  .offer-card .media .idx{
    font-family:'Big Shoulders Display', sans-serif;
    font-weight:900; font-size:56px; color:rgba(237,232,218,0.16);
    padding:0 16px 6px;
  }
  .offer-card .body{ padding:22px 22px 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
  .offer-card h3{ font-size:25px; }
  .offer-card p{ color:var(--steel); font-size:14.8px; }
  .offer-card .go{
    margin-top:auto; padding-top:12px;
    display:flex; align-items:center; gap:8px;
    font-weight:600; font-size:14px; color:var(--rust);
    text-decoration:none; border-top:1px solid var(--line); margin-top:16px;
    background:none; border-left:0; border-right:0; border-bottom:0; cursor:pointer; width:100%;
    justify-content:flex-start;
  }
  .offer-card .go svg{ width:13px; height:13px; transition:transform .15s ease; }
  .offer-card:hover .go svg{ transform:translateX(3px); }

  /* ---------- about / split ---------- */
  .split{
    display:grid; grid-template-columns:0.95fr 1.05fr; gap:56px; align-items:center;
  }
  .split .panel-photo{
    aspect-ratio:4/3.1;
    background:
      repeating-linear-gradient(45deg, var(--steel) 0px, var(--steel) 2px, var(--panel) 2px, var(--panel) 34px);
    border:1px solid var(--ink);
    position:relative;
  }
  .panel-photo .cornertag{
    position:absolute; bottom:0; left:0;
    background:var(--ink); color:var(--cream-on-dark);
    font-family:'IBM Plex Mono', monospace; font-size:12px;
    padding:8px 14px;
  }
  .split h2{ font-size:clamp(30px,3.6vw,44px); }
  .split .lede{ margin-top:18px; font-size:16.5px; color:var(--steel); max-width:52ch; }
  .split .lede + .lede{ margin-top:12px; }

  /* ---------- USP grid ---------- */
  .usp-grid{
    display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
    background:var(--line); border:1px solid var(--line); margin-top:36px;
  }
  .usp-item{ background:var(--paper); padding:28px 22px; }
  .usp-item .n{ font-family:'IBM Plex Mono', monospace; color:var(--rust); font-size:12.5px; }
  .usp-item h4{ font-size:22px; margin-top:10px; }
  .usp-item p{ margin-top:8px; font-size:14.2px; color:var(--steel); }

  /* ---------- news banner ---------- */
  .news{
    background:var(--ink); color:var(--cream-on-dark);
    display:flex; align-items:center; gap:22px; padding:22px 26px;
    margin-top:56px;
  }
  .news .badge{
    background:var(--rust); color:#fff; font-family:'IBM Plex Mono', monospace;
    font-size:11.5px; padding:5px 10px; flex-shrink:0;
  }
  .news p{ font-size:16px; }
  .news p b{ color:var(--rust); }
  .news .btn-ghost{ margin-left:auto; flex-shrink:0; padding:10px 18px; font-size:13.5px; }

  /* ---------- footer ---------- */
  footer.site{
    background:var(--panel); color:#A9B4BC; margin-top:0;
    border-top:1px solid var(--panel-line);
  }
  .footer-grid{
    display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px;
    padding:56px 0 32px;
  }
  .footer-grid h5{
    font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:var(--cream-on-dark);
    margin-bottom:14px; font-weight:500;
  }
  .footer-grid ul{ list-style:none; padding:0; margin:0; display:grid; gap:9px; }
  .footer-grid a{ text-decoration:none; color:#A9B4BC; font-size:14.5px; }
  .footer-grid a:hover{ color:var(--rust); }
  .footer-brand .word{ font-family:'Big Shoulders Display', sans-serif; font-size:24px; font-weight:800; color:var(--cream-on-dark); }
  .footer-brand p{ margin-top:14px; font-size:14px; color:#7C8A94; max-width:32ch; }
  .footer-bottom{
    border-top:1px solid var(--panel-line);
    padding:18px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
    font-family:'IBM Plex Mono', monospace; font-size:12px;
  }
  .footer-bottom a{ text-decoration:none; color:#7C8A94; }
  .footer-bottom a:hover{ color:var(--rust); }

  /* ---------- page banner (oferta / kontakt) ---------- */
  .page-banner{
    background:var(--panel); color:var(--cream-on-dark);
    padding:46px 0 40px;
    position:relative; overflow:hidden;
  }
  .page-banner::before{
    content:"";
    position:absolute; inset:0;
    background-image: repeating-linear-gradient(90deg, rgba(237,232,218,0.035) 0px, rgba(237,232,218,0.035) 1px, transparent 1px, transparent 64px);
  }
  .crumb{
    font-family:'IBM Plex Mono', monospace; font-size:12.5px; color:#8B98A3;
    display:flex; gap:8px; align-items:center; position:relative; margin-bottom:16px;
  }
  .crumb a{ text-decoration:none; color:#8B98A3; }
  .crumb a:hover{ color:var(--rust); }
  .crumb .sep{ color:var(--rust); }
  .page-banner h1{ font-size:clamp(34px,5vw,54px); position:relative; }
  .page-banner .sub{ margin-top:12px; max-width:60ch; color:#B9C4CC; font-size:16px; position:relative; }

  /* ---------- OFERTA text page ---------- */
  .offer-doc{ display:grid; grid-template-columns:250px 1fr; gap:56px; padding-top:56px; align-items:start; }
  .toc{ position:sticky; top:88px; }
  .toc .toc-title{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--steel-soft); margin-bottom:12px; }
  .toc ul{ list-style:none; margin:0; padding:0; display:grid; gap:2px; border-left:2px solid var(--line); }
  .toc a{
    display:block; padding:8px 0 8px 16px; text-decoration:none; color:var(--steel);
    font-size:14.5px; border-left:2px solid transparent; margin-left:-2px;
  }
  .toc a:hover{ color:var(--rust); border-left-color:var(--rust); }
  .toc-call{ margin-top:26px; padding:18px; background:var(--ink); color:var(--cream-on-dark); }
  .toc-call .k{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:#8B98A3; }
  .toc-call .v{ font-family:'Big Shoulders Display', sans-serif; font-weight:800; font-size:22px; margin-top:6px; color:var(--rust); text-decoration:none; display:block; }

  .offer-doc article{ max-width:76ch; }
  .offer-doc h2{ font-size:clamp(28px,3vw,38px); scroll-margin-top:90px; }
  .offer-doc h3{ font-size:22px; margin-top:34px; scroll-margin-top:90px; color:var(--rust-deep); }
  .offer-doc .intro-p{ margin-top:16px; font-size:16.5px; color:var(--steel); }
  .offer-block{ padding-top:52px; margin-top:52px; border-top:1px solid var(--line); }
  .offer-block:first-child{ border-top:0; margin-top:0; padding-top:0; }
  .spec-list{ list-style:none; margin:16px 0 0; padding:0; display:grid; gap:10px; }
  .spec-list li{
    display:flex; gap:12px; font-size:15.2px; color:var(--ink); align-items:baseline;
  }
  .spec-list li::before{
    content:""; width:7px; height:7px; background:var(--rust); flex-shrink:0; margin-top:6px;
    clip-path:polygon(2px 0,100% 0,100% calc(100% - 2px),calc(100% - 2px) 100%,0 100%,0 2px);
  }
  .subgrid{ display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:8px; }
  .p-body{ font-size:15.6px; color:var(--steel); margin-top:10px; }
  .p-body + .p-body{ margin-top:10px; }
  .pull{
    margin:26px 0; padding:20px 22px; background:var(--paper-2); border-left:3px solid var(--rust);
    font-size:15.5px; color:var(--ink);
  }
  .offer-cta{
    margin-top:56px; padding:32px; background:var(--ink); color:var(--cream-on-dark);
    display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  }
  .offer-cta h3{ color:var(--cream-on-dark); font-size:26px; }
  .offer-cta p{ color:#B9C4CC; margin-top:6px; font-size:14.5px; }

  /* ---------- KONTAKT ---------- */
  .contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:48px; padding-top:56px; align-items:start; }
  .info-ticket{
    border:1px solid var(--ink); background:#fff;
  }
  .info-ticket .head{
    background:var(--ink); color:var(--cream-on-dark); padding:16px 20px;
    display:flex; justify-content:space-between; align-items:center;
    font-family:'IBM Plex Mono', monospace; font-size:12px;
  }
  .info-ticket .rows{ padding:6px 0; }
  .info-row{
    padding:18px 20px; border-bottom:1px dashed var(--line);
    display:grid; grid-template-columns:26px 1fr; gap:14px;
  }
  .info-row:last-child{ border-bottom:0; }
  .info-row .ic{ color:var(--rust); }
  .info-row .k{ font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--steel-soft); text-transform:none; }
  .info-row .v{ margin-top:4px; font-size:15.5px; }
  .info-row .v a{ text-decoration:none; color:var(--ink); }
  .info-row .v a:hover{ color:var(--rust); }
  .map-link{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:16px 20px; background:var(--paper-2); text-decoration:none; color:var(--ink);
    font-size:14.5px; font-weight:600;
  }
  .map-link:hover{ color:var(--rust); }

  .form-panel{ background:#fff; border:1px solid var(--line); padding:34px; }
  .form-panel h3{ font-size:26px; }
  .form-panel .req-note{ font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--steel-soft); margin-top:8px; }
  .frow{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:22px; }
  .fgroup{ display:flex; flex-direction:column; gap:7px; }
  .fgroup.full{ grid-column:1/-1; }
  .fgroup label{ font-size:13.5px; font-weight:600; color:var(--ink); }
  .fgroup label .opt{ font-weight:400; color:var(--steel-soft); }
  .fgroup input, .fgroup textarea{
    border:1px solid var(--line); background:var(--paper);
    padding:12px 14px; font-family:'IBM Plex Sans', sans-serif; font-size:14.5px; color:var(--ink);
  }
  .fgroup input:focus, .fgroup textarea:focus{
    outline:2px solid var(--rust); outline-offset:1px; border-color:var(--rust); background:#fff;
  }
  .fgroup textarea{ resize:vertical; min-height:120px; }
  .consent{ display:flex; gap:10px; align-items:flex-start; margin-top:22px; }
  .consent input{ margin-top:4px; flex-shrink:0; }
  .consent p{ font-size:12.8px; color:var(--steel-soft); line-height:1.5; }
  .consent a{ color:var(--rust); text-decoration:underline; }
  .form-panel .submit-row{ margin-top:24px; display:flex; align-items:center; gap:16px; }
  .form-status{ font-size:13.5px; color:var(--ok); display:none; font-family:'IBM Plex Mono', monospace; }
  .form-status.show{ display:inline-flex; align-items:center; gap:6px; }

  .hours-hint{ display:flex; gap:10px; margin-top:14px; font-size:13px; color:var(--steel-soft); }

  /* ---------- focus visibility ---------- */
  a:focus-visible, button:focus-visible{ outline:2px solid var(--rust); outline-offset:2px; }

  /* ---------- responsive ---------- */
  @media (max-width: 980px){
    nav.primary{ display:none; }
    .burger{ display:inline-flex; }
    .hero-grid{ grid-template-columns:1fr; }
    .ticket-inner{ grid-template-columns:repeat(2,1fr); }
    .ticket-cell:nth-child(3){ border-left:0; }
    .cards-3{ grid-template-columns:1fr; }
    .split{ grid-template-columns:1fr; }
    .usp-grid{ grid-template-columns:repeat(2,1fr); }
    .footer-grid{ grid-template-columns:1fr 1fr; }
    .offer-doc{ grid-template-columns:1fr; }
    .toc{ position:static; display:flex; gap:20px; overflow-x:auto; padding-bottom:10px; }
    .toc ul{ display:flex; border-left:0; gap:4px; }
    .toc a{ border-left:0; border-bottom:2px solid transparent; padding:6px 10px; white-space:nowrap; }
    .toc a:hover{ border-bottom-color:var(--rust); }
    .toc-call{ display:none; }
    .subgrid{ grid-template-columns:1fr; }
    .contact-grid{ grid-template-columns:1fr; }
    .frow{ grid-template-columns:1fr; }
    .news{ flex-wrap:wrap; }
    .news .btn-ghost{ margin-left:0; }
  }
  @media (max-width: 600px){
    section{ padding:52px 0; }
    .usp-grid{ grid-template-columns:1fr; }
  }
/* ---------- kompatybilność z menu WordPress (Wygląd → Menu) ---------- */
nav.primary ul.nav-list{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:2px;
}
nav.primary ul.nav-list li{ margin:0; position:relative; }

/* ---------- kompatybilność z blokami Gutenberga ---------- */
.wp-block-group{ margin-top:0; margin-bottom:0; }
