/*
Theme Name: Clementines
Theme URI: https://orocube.net
Author: Orocube LLC
Author URI: https://orocube.com
Description: Clementines — Precision Light. Clean modern B2B portal.
Version: 3.0.0
License: MIT
Text Domain: clementines
*/

/* ─── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --bg:       #FFFFFF;
  --bg-soft:  #FAFAFA;
  --bg-dark:  #0A0A0A;

  --ink:      #0A0A0A;
  --ink-2:    #171717;
  --muted:    #737373;
  --faint:    #A3A3A3;

  --border:   #E5E5E5;
  --border-2: #D4D4D4;

  --blue:     #2563EB;
  --blue-h:   #1D4ED8;
  --blue-bg:  #EFF6FF;

  --font:     'Poppins', system-ui, sans-serif;
  --r:        6px;
  --ease:     cubic-bezier(.16,1,.3,1);
  --t:        .18s ease;
}

/* ─── RESET ──────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--font); font-size:16px; line-height:1.7; color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; }
img  { max-width:100%; height:auto; display:block; }
a    { color:var(--blue); text-decoration:none; transition:color var(--t); }
a:hover { color:var(--blue-h); }
ul   { list-style:none; }
h1,h2,h3,h4,h5 { font-family:var(--font); line-height:1.15; color:var(--ink); font-weight:700; }

/* ─── UTILITIES ──────────────────────────────────────────────────────── */
.container { width:100%; max-width:1140px; margin:0 auto; padding:0 1.5rem; }
.section    { padding:5rem 0; }
.section-soft { background:var(--bg-soft); }
.text-muted { color:var(--muted); }
.text-center{ text-align:center; }

.grid-2 { display:grid; grid-template-columns:1fr; gap:3rem; align-items:center; }
.grid-3 { display:grid; grid-template-columns:1fr; gap:1.5rem; }
@media(min-width:768px){
  .grid-2 { grid-template-columns:1fr 1fr; }
  .grid-3 { grid-template-columns:repeat(3,1fr); }
}

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.6rem 1.4rem;
  border-radius:var(--r);
  font-family:var(--font); font-size:.875rem; font-weight:600;
  cursor:pointer; transition:all var(--t); border:1px solid transparent;
  white-space:nowrap; letter-spacing:0;
}

/* Primary — solid ink (Stripe move) */
.btn-ink {
  background:var(--ink); color:#fff; border-color:var(--ink);
}
.btn-ink:hover { background:var(--ink-2); color:#fff; }

/* Secondary — outlined ink */
.btn-ghost {
  background:transparent; color:var(--ink); border-color:var(--border-2);
}
.btn-ghost:hover { border-color:var(--ink); }

/* Accent — blue */
.btn-blue {
  background:var(--blue); color:#fff; border-color:var(--blue);
}
.btn-blue:hover { background:var(--blue-h); color:#fff; }

/* Dark section use */
.btn-white {
  background:#fff; color:var(--ink); border-color:#fff;
}
.btn-white:hover { background:#F5F5F5; }

/* ─── NOTICE BAR ─────────────────────────────────────────────────────── */
.top-bar {
  background:var(--bg-soft); border-bottom:1px solid var(--border);
  font-size:.75rem; color:var(--muted); text-align:center; padding:.45rem 0;
}
.top-bar a { color:var(--blue); font-weight:500; }
.top-bar a:hover { color:var(--blue-h); }

/* ─── NAV ────────────────────────────────────────────────────────────── */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between; height:60px;
}
.site-logo { display:inline-flex; align-items:center; }
.site-logo img { height:32px; width:auto; }

.site-nav { display:none; gap:2rem; align-items:center; }
.site-nav a {
  color:var(--muted); font-size:.85rem; font-weight:500;
  transition:color var(--t); position:relative; padding-bottom:2px;
}
.site-nav a::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:1px; background:var(--ink);
  transition:width var(--t);
}
.site-nav a:hover { color:var(--ink); }
.site-nav a:hover::after { width:100%; }

.nav-login {
  background:var(--ink) !important; color:#fff !important;
  border-radius:var(--r); padding:.4rem 1.1rem;
  font-size:.8rem; font-weight:600; border:none;
  transition:background var(--t);
}
.nav-login:hover { background:var(--ink-2) !important; }
.nav-login::after { display:none !important; }

@media(min-width:768px){ .site-nav { display:flex; } }

/* ─── HERO ───────────────────────────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn  { from{opacity:0;transform:translateX(24px)} to{opacity:1;transform:translateX(0)} }

.hero {
  background:var(--bg);
  padding:6rem 0 5rem;
  border-bottom:1px solid var(--border);
}

.hero-inner {
  display:grid; grid-template-columns:1fr; gap:3rem; align-items:center;
}
@media(min-width:820px){ .hero-inner { grid-template-columns:1fr 1fr; gap:4rem; } }

/* ── Left ── */
.hero-tag {
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.72rem; font-weight:600; color:var(--blue);
  margin-bottom:1.25rem; letter-spacing:.02em;
  animation:fadeUp .5s var(--ease) both;
}
.hero-tag-dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--blue); flex-shrink:0;
}

.hero-h1 {
  font-size:clamp(2.25rem,5vw,3.75rem);
  font-weight:800; line-height:1.05;
  letter-spacing:-.03em; color:var(--ink);
  margin-bottom:1.25rem;
  animation:fadeUp .55s var(--ease) both; animation-delay:.08s;
}
.hero-h1 em {
  font-style:normal; color:var(--blue);
}

.hero-sub {
  font-size:1rem; color:var(--muted); line-height:1.75;
  max-width:420px; margin-bottom:2rem;
  animation:fadeUp .55s var(--ease) both; animation-delay:.15s;
}

.hero-actions {
  display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom:2rem;
  animation:fadeUp .55s var(--ease) both; animation-delay:.22s;
}

.hero-meta {
  display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap;
  animation:fadeUp .55s var(--ease) both; animation-delay:.3s;
}
.hero-meta-item {
  display:flex; align-items:center; gap:.35rem;
  font-size:.78rem; color:var(--faint); font-weight:500;
}
.hero-meta-item svg { width:13px; height:13px; flex-shrink:0; }

/* ── Right ── */
.hero-video {
  animation:slideIn .7s var(--ease) both; animation-delay:.15s;
}

/* ─── SECTION LABELS ─────────────────────────────────────────────────── */
.label {
  display:inline-block; font-size:.72rem; font-weight:600;
  color:var(--blue); letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:.6rem;
}
.section-title {
  font-size:clamp(1.6rem,3vw,2.1rem); font-weight:700;
  color:var(--ink); margin-bottom:.75rem; letter-spacing:-.02em;
}
.section-sub {
  color:var(--muted); font-size:.95rem; max-width:520px;
  margin:0 auto 3rem;
}

/* ─── FEATURE CARDS ──────────────────────────────────────────────────── */
.feat-card {
  background:var(--bg); border:1px solid var(--border);
  border-radius:var(--r); padding:1.75rem;
  transition:box-shadow var(--t), transform var(--t);
}
.feat-card:hover {
  box-shadow:0 4px 24px rgba(0,0,0,.07);
  transform:translateY(-2px);
}
.feat-icon {
  width:40px; height:40px; border-radius:var(--r);
  background:var(--blue-bg); display:flex;
  align-items:center; justify-content:center; margin-bottom:1.1rem;
}
.feat-icon svg { width:20px; height:20px; fill:none; stroke:var(--blue); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.feat-card h3 { font-size:.95rem; font-weight:600; margin-bottom:.45rem; color:var(--ink); }
.feat-card p  { font-size:.875rem; color:var(--muted); line-height:1.7; }

/* ─── PRODUCT ROWS ───────────────────────────────────────────────────── */
.product-row {
  display:grid; grid-template-columns:1fr; gap:2.5rem;
  align-items:center; padding:3rem 0;
  border-bottom:1px solid var(--border);
}
.product-row:last-child { border-bottom:none; }
@media(min-width:768px){ .product-row { grid-template-columns:1fr 1fr; } }

.product-img-wrap {
  background:var(--bg-soft); border:1px solid var(--border);
  border-radius:var(--r); overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  min-height:240px;
}
.product-img-wrap img { border-radius:var(--r); }

.product-info h2 { font-size:1.35rem; font-weight:700; letter-spacing:-.02em; margin-bottom:.5rem; }
.product-info p  { color:var(--muted); font-size:.9rem; margin-bottom:1.25rem; line-height:1.75; }

.product-links { display:flex; flex-direction:column; gap:.5rem; }

.product-link {
  display:flex; align-items:center; gap:.75rem;
  padding:.7rem .9rem; border:1px solid var(--border);
  border-radius:var(--r); color:var(--ink);
  transition:border-color var(--t), background var(--t);
  font-size:.875rem;
}
.product-link:hover {
  border-color:var(--blue); background:var(--blue-bg); color:var(--ink);
}
.product-link-logo {
  width:30px; height:30px; border-radius:4px;
  background:var(--bg-soft); border:1px solid var(--border);
  object-fit:contain; padding:3px; flex-shrink:0;
}
.product-link-text strong { display:block; font-size:.82rem; font-weight:600; color:var(--ink); }
.product-link-text span   { font-size:.76rem; color:var(--muted); }
.product-link-arrow { margin-left:auto; color:var(--faint); font-size:.8rem; }

/* ─── CTA BAND ───────────────────────────────────────────────────────── */
.cta-band {
  background:var(--bg-dark); padding:5rem 0; text-align:center;
}
.cta-band h2 {
  color:#fff; font-size:clamp(1.6rem,3.5vw,2.4rem);
  font-weight:700; letter-spacing:-.03em; margin-bottom:.75rem;
}
.cta-band p  { color:#737373; font-size:.95rem; margin-bottom:2rem; max-width:480px; margin-left:auto; margin-right:auto; }
.cta-actions { display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }

/* ─── CLIENTS ────────────────────────────────────────────────────────── */
.clients-wrap { border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:2.5rem 0; }
.clients-label {
  text-align:center; font-size:.72rem; font-weight:600;
  color:var(--faint); text-transform:uppercase; letter-spacing:.1em;
  margin-bottom:2rem;
}
.clients-grid {
  display:flex; flex-wrap:wrap; gap:2.5rem;
  align-items:center; justify-content:center;
}
.clients-grid img {
  height:28px; width:auto; max-width:110px;
  opacity:.35; filter:grayscale(1);
  transition:opacity var(--t), filter var(--t);
  object-fit:contain;
}
.clients-grid img:hover { opacity:.8; filter:grayscale(0); }

/* ─── TESTIMONIAL ────────────────────────────────────────────────────── */
.testi-wrap {
  max-width:620px; margin:0 auto;
  padding:2.25rem 2rem;
  background:var(--bg); border:1px solid var(--border);
  border-radius:var(--r);
}
.testi-body {
  font-size:.975rem; color:var(--ink); line-height:1.8;
  margin-bottom:1.25rem; font-weight:400;
}
.testi-body::before { content:'\201C'; }
.testi-body::after  { content:'\201D'; }
.testi-author { display:flex; align-items:center; gap:.85rem; }
.testi-author img {
  width:40px; height:40px; border-radius:50%;
  object-fit:cover; border:1px solid var(--border);
}
.testi-name  { font-size:.85rem; font-weight:600; color:var(--ink); }
.testi-role  { font-size:.78rem; color:var(--muted); }

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top:1px solid var(--border);
  background:var(--bg); padding:3rem 0 1.5rem;
}
.footer-inner {
  display:grid; grid-template-columns:1fr; gap:2rem;
  margin-bottom:2rem; padding-bottom:2rem;
  border-bottom:1px solid var(--border);
}
@media(min-width:768px){ .footer-inner { grid-template-columns:2fr 1fr 1fr; gap:3rem; } }

.footer-brand p { font-size:.85rem; color:var(--muted); margin-top:.75rem; max-width:260px; line-height:1.7; }
.footer-brand .site-logo { margin-bottom:.25rem; }

.footer-col h5 {
  font-size:.72rem; font-weight:600; text-transform:uppercase;
  letter-spacing:.08em; color:var(--ink); margin-bottom:.85rem;
}
.footer-col li { margin-bottom:.4rem; }
.footer-col li a { font-size:.85rem; color:var(--muted); }
.footer-col li a:hover { color:var(--ink); }

.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:.75rem; font-size:.78rem; color:var(--faint);
}
.footer-bottom a { color:var(--faint); }
.footer-bottom a:hover { color:var(--muted); }

/* ─── VIDEO FRAME ────────────────────────────────────────────────────── */
.video-frame {
  position:relative;
  border:1px solid var(--border);
  border-radius:10px; padding:6px;
  background:var(--bg); cursor:pointer;
  box-shadow:0 2px 12px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.08);
  transition:box-shadow var(--t);
}
.video-frame:hover { box-shadow:0 4px 20px rgba(0,0,0,.1), 0 20px 56px rgba(0,0,0,.12); }

.video-frame__ratio {
  position:relative; width:100%; padding-bottom:56.25%;
  border-radius:6px; overflow:hidden; background:#F5F5F5;
}
.video-frame__thumbnail {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; transition:transform .4s ease;
}
.video-frame:hover .video-frame__thumbnail { transform:scale(1.015); }

.video-frame__overlay {
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top,rgba(0,0,0,.18) 0%,transparent 50%);
}
.video-frame__play {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  background:none; border:none; padding:0; cursor:pointer;
  transition:transform .2s ease;
}
.video-frame:hover .video-frame__play { transform:translate(-50%,-50%) scale(1.08); }

.video-frame__label {
  display:flex; align-items:center; gap:.4rem;
  padding:.45rem .25rem 0;
  font-size:.7rem; font-weight:500; color:var(--faint);
  letter-spacing:.04em;
}
.video-frame__label .dot {
  width:5px; height:5px; border-radius:50%;
  background:var(--blue); flex-shrink:0;
}

.video-frame__ratio video,
.video-frame__ratio iframe {
  position:absolute; inset:0;
  width:100%; height:100%; border:none; border-radius:6px;
}
