/* ==========================================================================
   TECHMATIC SYSTEMS - Acumatica Distribution ERP
   --------------------------------------------------------------------------
   The design is the supplied page's own. For WordPress:
     - every rule sits under .tmacd and every class starts with ad-, so nothing
       here can change the theme's header, footer or other pages, and no
       theme or Bootstrap class of the same name can change this page
     - sizes are in px, not rem: the theme changes the root font size at some
       screen widths, which would resize everything here
     - the page's own header and footer rules are gone: the theme has both

   THE THEME'S FIXED HEADER
     distribution-main.js measures how much of the page the fixed header
     covers and writes it to --acd-header-h. The hero's top padding, the stop
     position of "#contact" style links and the sticky photo all add it.

   At the end of the file: "ON THE LIVE THEME" (the theme's own element
   styles, switched off inside this page) and "THE SITE'S CONTACT FORM".
   ========================================================================== */
.tmacd{
  --red:#DA3445; --red-dark:#B82638; --red-tint:#FDEDEF;
  --char:#414042; --char-dark:#262527; --ink:#1f1e20;
  --muted:#5f5e61; --line:#e6e4e6; --bg:#ffffff; --soft:#f6f5f6;
  --radius:14px; --shadow:0 12px 34px rgba(38,37,39,.12);
  --max:1180px;
  --acd-header-h:100px;   /* measured and replaced by distribution-main.js */
}
.tmacd,.tmacd *{box-sizing:border-box}
html{scroll-behavior:smooth}
.tmacd [id]{scroll-margin-top:calc(var(--acd-header-h) + 20px)}
.tmacd{margin:0;font-size:16px;font-weight:400;text-align:left;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);background:var(--bg);line-height:1.65;-webkit-font-smoothing:antialiased}
.tmacd img{max-width:100%;display:block}
.tmacd a{color:var(--red-dark)}
.tmacd .acd-wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.tmacd h1,.tmacd h2,.tmacd h3{line-height:1.15;margin:0 0 .5em;color:var(--char-dark);letter-spacing:-.02em}
.tmacd h1{font-size:clamp(33.6px,4.4vw,54.4px);font-weight:800}
.tmacd h2{font-size:clamp(27.2px,3vw,36.8px);font-weight:800}
.tmacd h3{font-size:19.2px;font-weight:700}
.tmacd p{margin:0 0 1em}
.tmacd .acd-eyebrow{display:inline-block;font-size:12.48px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--red);margin-bottom:14.4px}
.tmacd .acd-lead{font-size:17.6px;color:var(--muted)}

/* buttons */
.tmacd .acd-btn{display:inline-block;background:var(--red);color:#fff;text-decoration:none;font-weight:700;font-size:16px;padding:15px 28px;border-radius:10px;border:2px solid var(--red);cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s;font-family:inherit}
.tmacd .acd-btn:hover,.tmacd .acd-btn:focus-visible{background:var(--red-dark);border-color:var(--red-dark);transform:translateY(-2px);box-shadow:0 8px 20px rgba(218,52,69,.3)}
.tmacd .acd-btn:focus-visible,.tmacd a:focus-visible,.tmacd summary:focus-visible,.tmacd input:focus-visible,.tmacd select:focus-visible,.tmacd textarea:focus-visible{outline:3px solid #1a73e8;outline-offset:2px}
.tmacd .acd-btn-light{background:#fff;color:var(--red-dark);border-color:#fff}
.tmacd .acd-btn-light:hover,.tmacd .acd-btn-light:focus-visible{background:var(--char-dark);border-color:var(--char-dark);color:#fff}


/* image placeholders: real image overlays when file exists */
.tmacd .acd-ph{position:relative;overflow:hidden;border-radius:var(--radius);background:linear-gradient(135deg,var(--char) 0%,var(--char-dark) 60%,#3a1a1f 100%);aspect-ratio:4/3;box-shadow:var(--shadow)}
.tmacd .acd-ph::before{content:attr(data-label);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:rgba(255,255,255,.75);font-size:14.4px;font-weight:600;letter-spacing:.02em}
.tmacd .acd-ph::after{content:"";position:absolute;left:0;top:0;width:6px;height:100%;background:var(--red);z-index:2}
.tmacd .acd-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}.tmacd .acd-hero-visual .acd-hero-note{text-align:center;margin-top:16px}

/* hero */
.tmacd .acd-hero{background:linear-gradient(180deg,#fff 0%,var(--soft) 100%);padding:calc(var(--acd-header-h) + 64px) 0 88px;overflow:hidden}
.tmacd .acd-hero .acd-wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.tmacd .acd-powered{display:inline-flex;align-items:center;gap:10px;font-size:13.12px;color:var(--muted);font-weight:600;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 16px 7px 14px;margin-bottom:22px}
.tmacd .acd-powered img{height:20px;width:auto}
.tmacd .acd-hero h1 em{font-style:normal;color:var(--red)}
.tmacd .acd-hero .acd-lead{max-width:34em;margin-bottom:1.6em}
.tmacd .acd-hero-note{margin-top:18px;font-size:14.08px;color:var(--muted)}
.tmacd .acd-hero-visual{position:relative}.tmacd .acd-hero-visual::before{content:"";position:absolute;right:-18px;top:-18px;width:72%;height:72%;background:var(--red-tint);border-radius:28px;z-index:0}.tmacd .acd-hero-ph{aspect-ratio:auto!important;z-index:1;background:#fff;border-radius:18px}.tmacd .acd-hero-ph::after{display:none}.tmacd .acd-hero-ph img{position:static;height:auto;width:100%}

.tmacd .acd-hero-card{position:absolute;left:-34px;bottom:-26px;z-index:3;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:16px 20px;display:flex;gap:14px;align-items:center;max-width:290px}
.tmacd .acd-hero-card .acd-dot{width:42px;height:42px;border-radius:10px;background:var(--red-tint);color:var(--red);display:flex;align-items:center;justify-content:center;font-size:20.8px;flex:none}
.tmacd .acd-hero-card strong{display:block;font-size:14.72px;color:var(--char-dark);line-height:1.3}
.tmacd .acd-hero-card span{font-size:12.8px;color:var(--muted)}
.tmacd .acd-hero-chip{position:absolute;right:-12px;top:22px;z-index:3;background:var(--char-dark);color:#fff;border-radius:12px;padding:12px 16px;font-size:13.12px;font-weight:600;box-shadow:var(--shadow)}
.tmacd .acd-hero-chip b{color:#ff8b98}

.tmacd section{padding:88px 0}
.tmacd .acd-head{max-width:760px;margin:0 auto 52px;text-align:center}
.tmacd .acd-head.acd-left{margin-left:0;text-align:left}

/* challenges */
.tmacd .acd-challenges{background:#fff}
.tmacd .acd-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tmacd .acd-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;transition:box-shadow .2s,transform .2s,border-color .2s}
.tmacd .acd-card:hover{box-shadow:var(--shadow);transform:translateY(-3px);border-color:transparent}
.tmacd .acd-card .acd-ico{width:50px;height:50px;border-radius:12px;background:var(--red-tint);color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
.tmacd .acd-card .acd-ico svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tmacd .acd-card h3{font-size:17.28px}
.tmacd .acd-card p{color:var(--muted);font-size:15.2px;margin:0}

/* solutions */
.tmacd .acd-solutions{background:var(--soft)}
.tmacd .acd-sol{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:44px 0}
.tmacd .acd-sol:nth-of-type(even) .acd-sol-media{order:2}
.tmacd .acd-sol-num{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--red);color:#fff;font-weight:800;font-size:15.2px;margin-bottom:14px}
.tmacd .acd-sol h3{font-size:25.6px}
.tmacd .acd-sol .acd-sub{font-weight:600;color:var(--red-dark);margin-bottom:.8em}
.tmacd .acd-sol ul{padding:0;margin:0 0 1.2em;list-style:none}
.tmacd .acd-sol li{position:relative;padding-left:28px;margin-bottom:.5em;font-size:15.52px}
.tmacd .acd-sol li::before{content:"";position:absolute;left:0;top:.5em;width:14px;height:14px;border-radius:50%;background:var(--red-tint);border:4px solid var(--red);box-sizing:border-box}
.tmacd .acd-use{background:#fff;border-left:4px solid var(--red);border-radius:0 12px 12px 0;padding:16px 20px;font-size:14.88px;color:var(--muted);box-shadow:0 4px 14px rgba(0,0,0,.05)}
.tmacd .acd-use strong{display:block;color:var(--char-dark);font-size:12.48px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:4px}

/* mid CTA */
.tmacd .acd-cta-band{background:linear-gradient(120deg,var(--red) 0%,var(--red-dark) 100%);color:#fff;padding:76px 0;text-align:center}
.tmacd .acd-cta-band h2{color:#fff}
.tmacd .acd-cta-band p{max-width:720px;margin:0 auto 1.8em;color:#ffe9ec;font-size:17.28px}

/* why */
.tmacd .acd-why .acd-wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start}
.tmacd .acd-why .acd-ph{position:sticky;top:calc(var(--acd-header-h) + 24px);aspect-ratio:4/5}
.tmacd .acd-why-list{display:grid;gap:14px;margin:26px 0}
.tmacd .acd-why-item{display:flex;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.tmacd .acd-why-item .acd-n{flex:none;width:34px;height:34px;border-radius:8px;background:var(--char);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:14.4px}
.tmacd .acd-why-item h3{font-size:16.32px;margin-bottom:.25em}
.tmacd .acd-why-item p{margin:0;font-size:14.72px;color:var(--muted)}
.tmacd .acd-pull{border-top:3px solid var(--red);padding-top:18px;font-weight:700;color:var(--char-dark);font-size:16.8px}

/* industries */
.tmacd .acd-industries{background:var(--char-dark)}
.tmacd .acd-industries h2,.tmacd .acd-industries .acd-head p{color:#fff}
.tmacd .acd-industries .acd-head p{color:#cfcdd0}
.tmacd .acd-ind{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.tmacd .acd-ind .acd-ph{border-radius:0;box-shadow:none;aspect-ratio:16/10}
.tmacd .acd-ind{border-top:4px solid var(--red)}.tmacd .acd-ind .acd-body{padding:30px 28px 32px}.tmacd .acd-ind .acd-ico{width:56px;height:56px;border-radius:14px;background:var(--red-tint);color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:18px}.tmacd .acd-ind .acd-ico svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tmacd .acd-ind h3{font-size:17.28px}
.tmacd .acd-ind p{margin:0;font-size:14.88px;color:var(--muted)}

/* faq */
.tmacd .acd-faq .acd-list{max-width:860px;margin:0 auto}
.tmacd details{border:1px solid var(--line);border-radius:12px;margin-bottom:12px;background:#fff}
.tmacd details[open]{border-color:var(--red);box-shadow:0 6px 18px rgba(218,52,69,.1)}
.tmacd summary{cursor:pointer;list-style:none;padding:20px 56px 20px 24px;font-weight:700;font-size:16.32px;color:var(--char-dark);position:relative}
.tmacd summary::-webkit-details-marker{display:none}
.tmacd summary::after{content:"+";position:absolute;right:22px;top:50%;transform:translateY(-50%);font-size:25.6px;color:var(--red);font-weight:500;line-height:1}
.tmacd details[open] summary::after{content:"\2212"}
.tmacd details .acd-ans{padding:0 24px 22px;color:var(--muted);font-size:15.52px}

/* contact */
.tmacd .acd-contact{background:var(--soft)}
.tmacd .acd-contact .acd-wrap{display:grid;grid-template-columns:1fr 1.05fr;gap:56px;align-items:start}
.tmacd .acd-contact .acd-intro li{margin-bottom:.4em}
.tmacd .acd-formcard{background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:34px;border-top:5px solid var(--red)}


/* responsive */
@media(max-width:980px){
  .tmacd .acd-hero .acd-wrap,.tmacd .acd-sol,.tmacd .acd-why .acd-wrap,.tmacd .acd-contact .acd-wrap{grid-template-columns:1fr;gap:40px}
  .tmacd .acd-sol:nth-of-type(even) .acd-sol-media{order:0}
  .tmacd .acd-grid3{grid-template-columns:repeat(2,1fr)}
  .tmacd .acd-why .acd-ph{position:relative;top:0;aspect-ratio:4/3}
  .tmacd .acd-hero-card{left:12px;bottom:-22px}
  .tmacd .acd-hero-chip{right:12px}
  .tmacd section{padding:64px 0}
}
@media(max-width:620px){
  .tmacd .acd-grid3{grid-template-columns:1fr}
  .tmacd .acd-wrap{padding:0 18px}
  .tmacd .acd-hero{padding:calc(var(--acd-header-h) + 40px) 0 70px}
  .tmacd .acd-btn{width:100%;text-align:center}
  .tmacd .acd-formcard{padding:24px 20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tmacd,.tmacd *{transition:none!important}}

/* ---------- ON THE LIVE THEME: the theme styles bare elements; these keep the supplied design ---------- */
.tmacd h1,.tmacd h2,.tmacd h3{font-family:inherit;text-transform:none}
.tmacd p{font-family:inherit;font-weight:inherit;font-style:normal}   /* the site sets every paragraph to Montserrat */
.tmacd a{text-decoration:underline}
.tmacd .acd-btn,.tmacd .acd-btn:hover,.tmacd .acd-btn:focus{text-decoration:none;line-height:1.65}
.tmacd .acd-btn:hover,.tmacd .acd-btn:focus{color:#fff}
.tmacd .acd-btn-light:hover,.tmacd .acd-btn-light:focus{color:#fff}
.tmacd .acd-form-alt{color:var(--muted);margin-bottom:18px}
/* The one rule here that reaches outside .tmacd, on this page only: the theme clips its page
   wrapper with overflow:hidden, which stops the "Why Techmatic" photo from staying in view
   while its list scrolls. overflow:clip clips the same way but lets it stay. Browsers that
   do not know it keep the theme's own rule. */
#wrapper{overflow:clip}

/* ---------- THE SITE'S CONTACT FORM (Contact Form 7), inside the form card.
   Written for any Contact Form 7 form: the fields, the labels, the send
   button and the messages take this page's look. ---------- */
.tmacd .acd-formcard .wpcf7 p{margin:0}
.tmacd .acd-formcard .wpcf7 span{display:inline;margin:0}
.tmacd .acd-formcard .wpcf7 .wpcf7-form-control-wrap{display:block;margin:0 0 18px}
.tmacd .acd-formcard .wpcf7 p.p-lg,.tmacd .acd-formcard .wpcf7 label{display:block;font-weight:600;font-size:14.4px;line-height:1.5;margin:0 0 6px;color:var(--char-dark)}
.tmacd .acd-formcard .wpcf7 .red,.tmacd .acd-formcard .wpcf7 .acd-req{color:var(--red)}
.tmacd .acd-formcard .wpcf7 br{display:none}   /* Contact Form 7 adds a line break after each label */
.tmacd .acd-formcard .wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
.tmacd .acd-formcard .wpcf7 select,
.tmacd .acd-formcard .wpcf7 textarea{display:block;float:none;width:100%;max-width:100%;height:auto;min-height:0;margin:0;padding:13px 14px;border:1.5px solid #cfcdd0;border-radius:9px;font:inherit;line-height:1.4;color:var(--ink);background:#fff;box-shadow:none}
.tmacd .acd-formcard .wpcf7 select{padding-right:40px;-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23414042' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center/12px 8px}
.tmacd .acd-formcard .wpcf7 textarea{height:120px;min-height:120px;resize:vertical}
.tmacd .acd-formcard .wpcf7 input:focus,.tmacd .acd-formcard .wpcf7 select:focus,.tmacd .acd-formcard .wpcf7 textarea:focus{border-color:var(--red)}
.tmacd .acd-formcard .wpcf7 ::placeholder{color:#8f8d91;opacity:1}
.tmacd .acd-formcard .wpcf7 .wpcf7-not-valid{border-color:#b00020}
.tmacd .acd-formcard .wpcf7 .wpcf7-not-valid-tip{display:block;color:#b00020;font-size:13.12px;line-height:1.5;margin-top:5px}
.tmacd .acd-formcard .wpcf7 .form-btn{text-align:left}
.tmacd .acd-formcard .wpcf7 input[type=submit],.tmacd .acd-formcard .wpcf7 button[type=submit]{display:inline-block;width:auto;height:auto;margin:4px 0 0;padding:15px 28px;background:var(--red);color:#fff;font-family:inherit;font-size:16px;font-weight:700;line-height:1.65;letter-spacing:normal;text-transform:none;border:2px solid var(--red);border-radius:10px;box-shadow:none;cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s}
.tmacd .acd-formcard .wpcf7 input[type=submit]:hover,.tmacd .acd-formcard .wpcf7 input[type=submit]:focus-visible,.tmacd .acd-formcard .wpcf7 button[type=submit]:hover,.tmacd .acd-formcard .wpcf7 button[type=submit]:focus-visible{background:var(--red-dark);border-color:var(--red-dark);color:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(218,52,69,.3)}
.tmacd .acd-formcard .wpcf7 .wpcf7-spinner{display:inline-block;margin:0 0 0 14px;vertical-align:middle}
.tmacd .acd-formcard .wpcf7 form .wpcf7-response-output{margin:16px 0 0;padding:14px 16px;border-width:1.5px;border-radius:10px;font-size:15px;color:var(--ink)}
@media(max-width:620px){
  .tmacd .acd-formcard .wpcf7 input[type=submit],.tmacd .acd-formcard .wpcf7 button[type=submit]{width:100%}
}
