/*
Theme Name: JOINNECT
Theme URI: https://www.joinnect.com
Author: JOINNECT
Description: Pro-grade card readers, SSD enclosures and hubs for creators. Apple-style typography, no page-builder dependency, built for speed and paid-traffic landing pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joinnect
*/

/* ============================================================
   Design tokens — Apple-inspired palette + JOINNECT brand blue
   ============================================================ */
:root{
  /* brand blue sampled from logo */
  --brand:#2277bd;
  --brand-hover:#1d68a3;
  --link:#2277bd;
  /* Apple palette */
  --ink:#1d1d1f;
  --body:#6e6e73;
  --muted:#86868b;
  --line:#d2d2d7;
  --bg:#ffffff;
  --bg-soft:#f5f5f7;
  --radius:18px;
  --maxw:1180px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Helvetica,"Segoe UI",Arial,sans-serif;
  font-size:17px;line-height:1.47059;letter-spacing:-.022em;
  color:var(--body);background:var(--bg);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
img,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 28px}
.container-narrow{max-width:760px;margin:0 auto;padding:0 28px}
h1,h2,h3,h4{color:var(--ink);font-weight:600;letter-spacing:-.022em;line-height:1.1}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ---------- buttons: pill style ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 26px;border-radius:980px;font-weight:400;font-size:17px;
  letter-spacing:-.022em;transition:.2s ease;border:none;cursor:pointer;
  font-family:inherit;
}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-hover)}
.btn-sm{padding:7px 15px;font-size:13px}
.link-chev{
  display:inline-flex;align-items:center;gap:3px;
  color:var(--link);font-size:17px;font-weight:400;letter-spacing:-.022em;
  background:none;border:none;cursor:pointer;font-family:inherit;padding:0;
}
.link-chev .chev{font-size:18px;line-height:1;transition:transform .2s ease;display:inline-block}
.link-chev:hover .chev{transform:translateX(3px)}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.88);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;gap:20px}
.logo{display:flex;align-items:center;flex-shrink:0}
.logo img{height:24px;width:auto;display:block}
.logo .custom-logo-link{display:flex;align-items:center}
.nav{display:flex;align-items:center;gap:28px}
.nav a{font-size:14px;font-weight:400;color:var(--ink);opacity:.88}
.nav a:hover{color:var(--brand);opacity:1}
.nav-toggle{
  display:none;background:none;border:none;cursor:pointer;padding:8px;
}
.nav-toggle span{display:block;width:20px;height:2px;background:var(--ink);margin:5px 0;transition:.2s}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------- hero ---------- */
.hero{padding:80px 0 72px;background:var(--bg-soft)}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.eyebrow{
  display:inline-block;font-size:13px;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;color:var(--muted);margin-bottom:16px;
}
.hero h1{font-size:56px;font-weight:600;line-height:1.07;letter-spacing:-.028em;margin-bottom:18px;color:var(--ink)}
.hero p.lead{font-size:21px;line-height:1.38;letter-spacing:-.014em;margin-bottom:30px;max-width:520px}
.hero-actions{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.hero-visual{border-radius:var(--radius);overflow:hidden;background:#fff;aspect-ratio:3/4}
.hero-visual img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- trust strip ---------- */
.trust{border-bottom:1px solid var(--line);background:#fff}
.trust-inner{
  display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
  padding:26px 0;text-align:center;
}
.trust-item{font-size:15px;font-weight:400;color:var(--ink)}
.trust-item span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:2px}

/* ---------- section shell ---------- */
.section{padding:88px 0}
.section-soft{background:var(--bg-soft)}
.section-head{max-width:680px;margin-bottom:44px}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}
.section-head h2{font-size:40px;font-weight:600;line-height:1.1;letter-spacing:-.021em;margin-bottom:12px}
.section-head p{font-size:19px;line-height:1.42}

/* ---------- category pills ---------- */
.cat-pills{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:34px}
.pill{
  font-size:14px;font-weight:400;color:var(--ink);background:var(--bg-soft);
  border:1px solid var(--line);border-radius:980px;padding:8px 18px;cursor:pointer;transition:.15s;
  font-family:inherit;
}
.pill.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.pill:hover{border-color:var(--ink)}

/* ---------- products ---------- */
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.product-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;transition:.2s ease;
}
.product-card:hover{border-color:var(--brand);transform:translateY(-3px);box-shadow:0 14px 30px -18px rgba(34,119,189,.3)}
.product-media{aspect-ratio:4/3;overflow:hidden;background:#0b1226}
.product-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.product-card:hover .product-media img{transform:scale(1.03)}
.product-body{padding:22px 24px 26px;flex:1;display:flex;flex-direction:column}
.tag{
  font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:10px;
}
.product-body h3{font-size:21px;font-weight:600;letter-spacing:-.019em;margin-bottom:8px}
.product-body h3 a{color:inherit}
.product-body h3 a:hover{color:var(--brand)}
.product-body p{font-size:15px;line-height:1.5;margin-bottom:18px}
.spec-list{list-style:none;font-size:14px;color:var(--muted);margin-bottom:20px}
.spec-list li{padding:7px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:14px}
.spec-list li span:last-child{color:var(--ink);font-weight:400}
.product-card .link-chev{margin-top:auto;font-size:15px}
.view-all{margin-top:34px;text-align:center}

/* ---------- single product ---------- */
.product-single{padding:56px 0 88px}
.product-back{font-size:15px;margin-bottom:28px;display:inline-block}
.product-single-inner{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:start}
.product-media-large{background:#0b1226;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3}
.product-media-large img{width:100%;height:100%;object-fit:cover;display:block}
.product-info h1{font-size:44px;font-weight:600;line-height:1.08;letter-spacing:-.025em;margin-bottom:14px}
.product-info .tag{margin-bottom:12px}
.product-info .product-desc{font-size:19px;line-height:1.45;margin-bottom:28px}
.spec-table{list-style:none;font-size:15px;color:var(--muted)}
.spec-table li{padding:10px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:18px}
.spec-table li span:first-child{font-weight:600;color:var(--muted)}
.spec-table li span:last-child{color:var(--ink)}
.product-cta{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:30px}
.product-more{margin-top:40px}
.product-more h2{font-size:28px;font-weight:600;letter-spacing:-.019em;margin-bottom:14px}
.product-more .entry-content{font-size:17px;line-height:1.5}

/* ---------- why / use cases ---------- */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.why-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 24px}
.why-num{
  width:36px;height:36px;border-radius:50%;background:var(--bg-soft);color:var(--muted);
  display:flex;align-items:center;justify-content:center;font-weight:400;font-size:13px;margin-bottom:16px;
}
.why-card h3{font-size:21px;font-weight:600;letter-spacing:-.019em;margin-bottom:8px}
.why-card p{font-size:15px;line-height:1.5}

.cases-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.case-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:30px 24px;border-top:3px solid var(--brand);
}
.case-card h3{font-size:21px;font-weight:600;letter-spacing:-.019em;margin-bottom:8px}
.case-card p{font-size:15px;line-height:1.5}

/* ---------- faq ---------- */
.faq-wrap{max-width:820px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--line);padding:22px 0}
.faq-item h3{font-size:19px;font-weight:600;letter-spacing:-.019em;display:flex;gap:12px;align-items:flex-start}
.faq-item h3::before{content:"Q";color:var(--muted);font-weight:600;font-size:13px;flex-shrink:0;padding-top:3px}
.faq-item p{font-size:15px;padding-left:24px;margin-top:8px;line-height:1.5}

/* ---------- cta band ---------- */
.cta-band{background:var(--bg-soft);text-align:center;padding:88px 0}
.cta-band h2{color:var(--ink);font-size:40px;font-weight:600;line-height:1.1;letter-spacing:-.021em;margin-bottom:14px}
.cta-band p{font-size:19px;margin-bottom:30px;max-width:580px;margin-left:auto;margin-right:auto}
.cta-band .link-chev{font-size:19px}

/* ---------- generic page ---------- */
.page-hero{background:var(--bg-soft);padding:56px 0 40px}
.page-hero h1{font-size:44px;font-weight:600;line-height:1.08;letter-spacing:-.025em}
.page-hero p{font-size:19px;margin-top:12px;max-width:620px}
.entry-content{font-size:17px;line-height:1.5}
.entry-content p{margin-bottom:1.2em}
.entry-content h2{font-size:32px;font-weight:600;letter-spacing:-.021em;margin:1.4em 0 .5em}
.entry-content h3{font-size:22px;font-weight:600;letter-spacing:-.019em;margin:1.3em 0 .4em}
.entry-content ul{padding-left:22px;margin-bottom:1.2em}
.entry-content li{margin-bottom:.5em}
.entry-content a{color:var(--link)}
.entry-content a:hover{text-decoration:underline}

/* ---------- contact form ---------- */
.hp{position:absolute;left:-9999px;top:-9999px}
.jn-form{max-width:640px}
.jn-form .field{margin-bottom:18px}
.jn-form label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:6px;letter-spacing:-.01em}
.jn-form input,.jn-form textarea{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;
  font:inherit;font-size:15px;color:var(--ink);background:#fff;letter-spacing:normal;
  transition:border-color .15s;
}
.jn-form input:focus,.jn-form textarea:focus{outline:none;border-color:var(--brand)}
.jn-form textarea{min-height:130px;resize:vertical}
.jn-form .btn{margin-top:6px}
.jn-success{
  border:1px solid #b7dfbf;background:#effaf1;color:#1d6b34;
  padding:14px 18px;border-radius:12px;margin-bottom:24px;font-size:15px;
}
.jn-error{
  border:1px solid #f3c1c1;background:#fdf0f0;color:#a33;
  padding:14px 18px;border-radius:12px;margin-bottom:24px;font-size:15px;
}

/* ---------- footer ---------- */
.site-footer{background:#fff;border-top:1px solid var(--line);color:var(--muted);padding:56px 0 28px;font-size:13px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:36px}
.footer-logo{margin-bottom:14px}
.footer-logo img{height:20px;width:auto}
.site-footer h4{color:var(--ink);font-size:12px;font-weight:600;letter-spacing:.01em;margin-bottom:12px}
.site-footer li{list-style:none;margin-bottom:8px}
.site-footer li a:hover{color:var(--link)}
.footer-bottom{
  border-top:1px solid var(--line);padding-top:22px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:12px;
}

/* ---------- landing page template ---------- */
.landing-header{padding:24px 0;text-align:center}
.landing-header img{height:22px;width:auto;margin:0 auto}
.landing-hero{padding:40px 0 56px;text-align:center}
.landing-hero h1{font-size:48px;font-weight:600;line-height:1.08;letter-spacing:-.025em;margin:0 auto 18px;max-width:720px}
.landing-hero .landing-lead{font-size:20px;line-height:1.4;max-width:600px;margin:0 auto 34px}
.landing-visual{border-radius:var(--radius);overflow:hidden;background:#0b1226;max-width:880px;margin:0 auto 56px;aspect-ratio:16/9}
.landing-visual img{width:100%;height:100%;object-fit:cover}
.landing-bullets{max-width:640px;margin:0 auto 56px;text-align:left;list-style:none}
.landing-bullets li{padding:14px 0;border-bottom:1px solid var(--line);font-size:17px;color:var(--ink)}
.landing-bullets li::before{content:"✓";color:var(--brand);margin-right:12px;font-weight:600}
.landing-form-wrap{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);padding:40px;max-width:640px;margin:0 auto;text-align:left}
.landing-form-wrap h2{font-size:24px;font-weight:600;letter-spacing:-.019em;margin-bottom:6px}
.landing-form-wrap>p{font-size:15px;margin-bottom:24px}
.landing-footer{padding:32px 0 48px;text-align:center;font-size:12px;color:var(--muted)}

/* ---------- responsive ---------- */
@media(max-width:980px){
  .hero-inner{grid-template-columns:1fr;gap:40px}
  .hero h1{font-size:44px}
  .hero-visual{aspect-ratio:4/3}
  .section-head h2{font-size:32px}
  .cta-band h2{font-size:32px}
  .products-grid,.why-grid,.cases-grid{grid-template-columns:repeat(2,1fr)}
  .trust-inner{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .nav{
    display:none;position:absolute;top:64px;left:0;right:0;
    background:#fff;border-bottom:1px solid var(--line);
    flex-direction:column;align-items:flex-start;gap:0;padding:8px 28px 16px;
  }
  .nav.open{display:flex}
  .nav a{padding:12px 0;font-size:16px;width:100%}
  .nav-toggle{display:block}
  .product-single-inner{grid-template-columns:1fr;gap:32px}
  .product-info h1{font-size:36px}
  .page-hero h1{font-size:36px}
  .landing-hero h1{font-size:36px}
}
@media(max-width:600px){
  .products-grid,.why-grid,.cases-grid{grid-template-columns:1fr}
  .hero h1{font-size:34px}
  .section-head h2,.cta-band h2{font-size:28px}
  .section{padding:64px 0}
  .header-inner .btn-sm{display:none}
  .landing-form-wrap{padding:26px 20px}
}
