/*
Theme Name: Pen Cases 4 U
Author: Pen Cases 4 U
Version: 1.0
*/
/* ==========================================================================
   Pen Cases 4 U — Stylesheet
   Brand: navy #0d2a5e, bright blue #1f7ee0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0d2a5e;
  --navy-soft: #1a3a73;
  --blue: #1f7ee0;
  --blue-soft: #e8f1fc;
  --ink: #0d2a5e;
  --muted: #5a6b85;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --grey: #d6dce6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(13,42,94,.06), 0 2px 8px rgba(13,42,94,.04);
  --shadow-md: 0 8px 24px rgba(13,42,94,.08);
  --shadow-lg: 0 20px 60px rgba(13,42,94,.12);
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  cursor: pointer; transition: all .25s var(--ease);
}
.burger:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.burger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.burger .bars { width: 18px; height: 12px; position: relative; }
.burger .bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger .bars span:nth-child(1) { top: 0; }
.burger .bars span:nth-child(2) { top: 5px; }
.burger .bars span:nth-child(3) { top: 10px; }
.burger.is-open .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.burger.is-open .bars span:nth-child(2) { opacity: 0; }
.burger.is-open .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: 44px; border-radius: 10px; object-fit: contain; background: #fff; padding: 2px; border: 1px solid var(--line); }
.brand-name {
  font-weight: 800; letter-spacing: -0.01em; font-size: 18px; color: var(--navy);
  white-space: nowrap;
}
.brand-name span { color: var(--blue); }
@media (max-width: 520px) { .brand-name { display: none; } }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.header-cta:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

/* ---------- Off-canvas drawer ---------- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(340px, 86vw);
  background: #fff;
  border-right: 1px solid var(--line);
  transform: translateX(-105%);
  transition: transform .35s var(--ease);
  z-index: 70;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--navy);
}
.drawer-close:hover { border-color: var(--blue); color: var(--blue); }
.drawer-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600; color: var(--navy); font-size: 16px;
}
.drawer-nav a:hover { background: var(--blue-soft); color: var(--navy); }
.drawer-nav a.active { background: var(--navy); color: #fff; }
.drawer-nav a.active:hover { background: var(--navy-soft); color: #fff; }
.drawer-nav .nav-icon {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue);
}
.drawer-nav a.active .nav-icon { color: #fff; }
.drawer-foot {
  margin-top: auto; padding: 20px 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.drawer-foot strong { color: var(--navy); }

.scrim {
  position: fixed; inset: 0; background: rgba(13,42,94,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 60;
  backdrop-filter: blur(2px);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

body.no-scroll { overflow: hidden; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
  padding: 6px 14px;
  background: var(--blue-soft);
  border-radius: 999px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: none;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary {
  background: var(--navy); color: #fff;
}
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: #fff; color: var(--navy); border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(31,126,224,.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(13,42,94,.08), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 { margin-top: 20px; }
.hero .lead { margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--blue-soft), #fff);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-image img { border-radius: 16px; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--navy); color: #fff;
  padding: 14px 18px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(31,126,224,.25); }
.hero-badge strong { font-size: 14px; }
.hero-badge span { font-size: 12px; color: rgba(255,255,255,.7); display: block; }

@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { padding: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 14px auto 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(31,126,224,.35); }
.feature .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }

/* ---------- Colour range ---------- */
.colours-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.colour-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.colour-card img { width: 100%; }
.colours-text ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.colours-text li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 600;
}
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); }
@media (max-width: 880px) { .colours-grid { grid-template-columns: 1fr; } }

/* ---------- Who it's for ---------- */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.who-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.who-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.who-list .check {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.who-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
@media (max-width: 880px) { .who { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
details.faq-item[open] { border-color: var(--blue); box-shadow: var(--shadow-sm); }
details.faq-item summary {
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 500; color: var(--blue);
  transition: transform .25s var(--ease);
}
details.faq-item[open] summary::after { content: '−'; transform: rotate(0); }
details.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, var(--blue) 130%);
  color: #fff;
  border-radius: 22px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin: 0 0 8px; }
.cta-banner p { color: rgba(255,255,255,.78); margin: 0; max-width: 50ch; }
.cta-banner .btn-primary { background: #fff; color: var(--navy); }
.cta-banner .btn-primary:hover { background: var(--blue-soft); color: var(--navy); }
@media (max-width: 720px) { .cta-banner { padding: 36px 28px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 60px 0 28px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--blue); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 36ch; }
.footer-col h4 {
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (legal / about) ---------- */
.page-header {
  padding: 80px 0 60px;
  background:
    radial-gradient(700px 380px at 95% -10%, rgba(31,126,224,.10), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-top: 14px; }
.page-header .lead { margin-top: 14px; }

/* ---------- Legal layout ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; }
.legal-toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  align-self: start;
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.legal-toc h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin: 0 0 12px;
}
.legal-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: 14px; color: var(--navy); font-weight: 600; }
.legal-toc a:hover { color: var(--blue); }
.legal-content section { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 { font-size: 28px; margin-bottom: 16px; }
.legal-content h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: #2c3a55; font-size: 15.5px; line-height: 1.75; }
.legal-content ul { padding-left: 20px; }
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; border-bottom: 1px solid var(--line); padding: 0 0 20px; }
  .legal-toc ul { flex-direction: row; flex-wrap: wrap; gap: 12px; }
}

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.about-content h2 { margin-top: 32px; }
.about-content p { color: #2c3a55; font-size: 16.5px; line-height: 1.8; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.value-card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.value-card h3 { font-size: 18px; margin: 0 0 6px; }
.value-card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 880px) {
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }

.site-header .brand img,
.drawer-head .brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.site-header .brand {
  gap: 14px;
}
.site-header .brand img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    object-position: center;
}

.drawer-head .brand img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover;
    object-position: center;
}

.site-header .brand-name {
    font-size: 2rem;
    font-weight: 700;
}