/* ===========================
   TechBlurbs — Light Gradient Theme (no dark sections, no horiz scroll)
   =========================== */

/* Global guards against sideways scroll + predictable sizing */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; overflow-x:hidden; }
img, video { max-width:100%; height:auto; display:block; }
:root{
  /* Base */
  --bg:#fcfffa;           /* page background */
  --bg-soft:#f6f8fe;      /* very light tint for “band” */
  --surface:#ffffff;      /* cards/panels */
  --ink-1:#0f172a;        /* headings */
  --ink-2:#475569;        /* body */
  --muted:#64748b;        /* secondary text */
  --lead: #f9fbf5;

  /* Brand accents (entrepreneurial + tech) */
  --accent:#ff7a1a;       /* primary orange */
  --accent-2:#77ff00;     /* deeper orange for hover */
  --cool-1:#0ea5e9;       /* cyan/blue glow */
  --slate:#475569;        /* neutral slate */

  /* Layout */
  --container:1280px;

  /* Radii + shadows */
  --radius:22px;
  --shadow-lg:0 22px 60px rgba(15,23,42,.12);
  --shadow-md:0 12px 34px rgba(15,23,42,.10);
  --shadow-sm:0 8px 18px rgba(15,23,42,.08);
}

/* Base text + links */
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;
  background:var(--bg);
  color:var(--ink-2);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  word-break:break-word;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{position:fixed;left:12px;top:12px;background:#111827;color:#fff;padding:.6rem 1rem;border-radius:.6rem;z-index:9999}

/* Layout */
.container{max-width:var(--container);margin:0 auto;padding:0 1.2rem}
.section{padding:4.5rem 0}   /* no borders, no dark fills */

/* Header (translucent, light) */
/* Make header fixed instead of sticky */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* ensure it's above everything */
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255, 255, 255, 0.85); /* slightly stronger than .7 for contrast */
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* Add padding-top to body so content doesn't hide under header */
body {
  padding-top: 64px; /* match or exceed .site-header height */
}

.header-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 0}
.brand__logo{ height:72px; width:52px; border-radius:10%; -webkit-border-radius:10%; -moz-border-radius:10%; -ms-border-radius:10%; -o-border-radius:10%; }
.nav{display:flex;gap:1rem;align-items:center}
.nav a{color:var(--ink-1);opacity:.9;padding:.35rem .55rem;border-radius:.5rem}
.nav a:hover{background:rgba(15,23,42,.06);text-decoration:none}
.nav__toggle{display:none;background:none;border:0;color:var(--ink-1);font-size:1.2rem}

/* Hero (orange sweep + cool vignette, clamped to viewport) */
.hero{padding-top:2rem;position:relative;isolation:isolate}
.hero::before{
  content:"";position:absolute;left:0;right:0;top:-10%;bottom:30%;z-index:-1; /* clamped: no negative L/R */
  background:
    radial-gradient(60% 55% at 30% 70%, rgba(5, 104, 29, 0.85) 0%, rgba(255,77,0,.40) 55%, rgba(255,255,255,0) 60%),
    radial-gradient(40% 45% at 75% 20%, rgba(14,165,233,.30) 0%, rgba(14,165,233,0) 60%);
  filter:blur(40px);
  pointer-events:none;
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:2.4rem;align-items:center}
.display-gradient{
  font-size:clamp(2.6rem,6vw,4.4rem);line-height:1.04;margin:.35rem 0 .65rem;
  color: #0f172a;
  background:linear-gradient(90deg,#111827 0%, #3b1c06 55%, #ff4d00 100%);
  -webkit-background-clip:text;background-clip:text
}
.pill{
  display:inline-flex;gap:.45rem;align-items:center;
  font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;
  color:#0f0702;
  background: linear-gradient(90deg, #93df06 20%, #ff4d00 80%);
  padding:.28rem .55rem;border-radius:.6rem;border:1px solid rgba(255,122,26,.25)
}
.lead{color:var(--lead);margin:.3rem 0 1.2rem}
.cta-row{display:flex;gap:.9rem;flex-wrap:wrap}

.hero-image{
  border-radius:var(--radius);overflow:hidden;background:var(--surface);
  box-shadow:var(--shadow-lg);
}
.hero-image img{width:100%;height:auto;display:block}

/* Buttons */
.btn{display:inline-block;padding:.78rem 1.05rem;border-radius:999px;font-weight:600;white-space:nowrap}
.btn--primary{
  color:#fff;background:linear-gradient(90deg,var(--accent), #ff6a00 60%, #ff4d00 100%);
  box-shadow:0 10px 24px rgba(255,122,26,.28);border:0
}
.btn--primary:hover{filter:saturate(110%)}
.btn--ghost{
  color:var(--ink-1);background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:var(--shadow-sm)
}
.btn--sm{padding:.55rem .85rem;font-size:.92rem}

/* KPI cards */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin:1.8rem 0 0}
.kpi{background:var(--surface);border-radius:16px;padding:1rem;box-shadow:var(--shadow-sm)}
.kpi__n{font-weight:800;font-size:1.4rem;color:var(--cool-1)}
.kpi__l{display:block;color:var(--muted);font-size:.95rem}
.kpi-footnote{margin-top:.6rem;font-size:.86rem;color:var(--muted)}

/* Two-column */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}
.media img{border-radius:var(--radius);box-shadow:var(--shadow-lg)}
.content h2{margin:0 0 .4rem;color:var(--ink-1)}
.content .muted{color:var(--muted)}
.content .bullets ul{margin:.6rem 0 0;padding-left:1.2rem}

/* Cards + grids */
.cards{display:grid;gap:1.2rem}
.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.cards.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  background:var(--surface);
  border-radius:var(--radius);
  padding:1.2rem;
  box-shadow:var(--shadow-md);
  margin-bottom:2rem; 
  transition:transform .18s ease, box-shadow .18s ease;
  -webkit-transition:transform .18s ease, box-shadow .18s ease;
  -moz-transition:transform .18s ease, box-shadow .18s ease;
  -ms-transition:transform .18s ease, box-shadow .18s ease;
  -o-transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:0 20px 55px rgba(15,23,42,.14)}
.card-head{display:grid;gap:.8rem;margin-bottom:.4rem}
.card-head img{border-radius:16px;box-shadow:var(--shadow-sm)}
.chip{
  display:inline-block;font-size:.95rem;font-weight:700;padding:.18rem .6rem;border-radius:999px;
  color:#fff;background:linear-gradient(90deg,#64748b, #0ea5e9 45%, #1e40af 100%);
}
.list{margin:.45rem 0 0;padding-left:1.2rem}
.list.cols-2{columns:2;column-gap:2rem}
.meta{font-size:.92rem;color:var(--muted)}

/* Portfolio */
.portfolio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem}
.portfolio-card{background:var(--surface);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md)}
.portfolio-card h3 {
  margin:0 0 .4rem;
  font-size: 1.15rem;
  line-height: 1.25;
  color:var(--ink-1)
}
.portfolio-card img{width:100%;height:auto}
.portfolio-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;      /* consistent height */
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #eef2f7;
}
.portfolio-body{
  padding:1rem;
}
.link{color:var(--accent)}
.link:hover{text-decoration:underline}

/* Light “band” sections (still bright) */
.band{
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(255,122,26,.10) 0%, rgba(255,122,26,0) 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(14,165,233,.10) 0%, rgba(14,165,233,0) 65%),
    var(--bg-soft);
}

/* CTA rail */
.cta-rail{
  margin-top:1.6rem;border-radius:var(--radius);background:var(--surface);
  box-shadow:var(--shadow-md);
  display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.3rem
}
.cta-rail__text{display:flex;flex-direction:column}
.cta-rail__actions{display:flex;gap:.7rem}

/* Quotes */
/* Quote Grid */
.testimonial-wrapper {
  position: relative;
}

.quote-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;   /* hide scrollbar (Firefox) */
}

.quote-grid::-webkit-scrollbar {
  display: none;           /* hide scrollbar (WebKit) */
}

.quote {
  flex: 0 0 320px;          /* card width */
  scroll-snap-align: start;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-style: italic;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
}

/* Arrow buttons */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

.arrow:hover {
  background: var(--accent, #f5f5f5);
}

.arrow.left {
  left: -1rem;
}

.arrow.right {
  right: -1rem;
}



/* Forms */
.form{display:grid;gap:.7rem;margin-top:.7rem}
.form label{display:grid;gap:.25rem;font-size:.98rem;color:var(--ink-2)}
.form input,.form textarea{
  background:#fff;color:var(--ink-1);
  border:1px solid rgba(15,23,42,.08);border-radius:14px;padding:.8rem .9rem;
  box-shadow:inset 0 1px 0 rgba(15,23,42,.03)
}
.form input:focus,.form textarea:focus{outline:2px solid rgba(255,122,26,.35);border-color:rgba(255,122,26,.5)}
.form--row{grid-template-columns:1fr auto}

/* Footer (light only) */
.footer{background:var(--bg);margin-top:2.2rem}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.4rem 0;
  border-top:1px solid rgba(15,23,42,.06)
}
.footnav{display:flex;gap:1rem}
.footnav a{color:var(--ink-1)}
.footnav a:hover{text-decoration:underline}

/* Responsive */
@media (max-width:1200px){
  /* Prevent any edge-case overflow from grids on near-desktop widths */
  .container{padding:0 1rem}
}
@media (max-width:1024px){
  .cards.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portfolio-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .portfolio-grid{grid-template-columns:1fr}
  .nav{display:none}
  .nav.open{
    display:flex;position:absolute;right:12px;top:56px;flex-direction:column;gap:.6rem;
    background:var(--surface);border-radius:14px;padding:.6rem .8rem;box-shadow:var(--shadow-md);
    max-width:calc(100vw - 24px); /* clamp menu width */
  }
  .nav__toggle{display:block}
  .footer-bottom{flex-direction:column;align-items:flex-start}
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
/* ==== Patch: utilities, header spacing, focus, mobile menu, contrast ==== */

/* Utility missing but referenced */
.center{ text-align:center; }

/* Prevent sticky header from overlapping first section on tiny screens */
@media (max-width:900px){
  .hero { padding-top: calc(2rem + 8px); }
}

/* Stronger visible focus for a11y (only when using keyboard) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(255,122,26,.7);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Header nav: consistent spacing + hit area */
.nav a{
  display:inline-block;
  padding:.45rem .6rem;          /* slightly larger tap target */
  line-height:1;
}

/* Mobile menu: clamp width + prevent viewport overflow */
@media (max-width:900px){
  .nav.open{
    right:12px;
    left:auto;
    max-width: min(420px, calc(100vw - 24px));
    width: max-content;
    box-sizing: border-box;
  }
}

/* Ghost button border for band sections (light bg) */
.btn--ghost{
  border: 1px solid rgba(15,23,42,.14);
}
.band .btn--ghost{
  border-color: rgba(15,23,42,.18);
}

/* Logo sizing guard (prevents layout shift if a larger png is used) */
.brand__logo{
  width:72px; height:52px; object-fit:contain;
}
.tag-pill {
  background: linear-gradient(90deg, #64748b, #0ea5e9 60%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.3rem;
}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
@media (max-width:1024px){ .blog-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }

.blog-card{
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.blog-card .thumb img{ width:100%; height:auto; display:block; }
.thumb--placeholder{ aspect-ratio: 16/9; background:rgba(15,23,42,.06); }

.blog-card__body{ padding:1rem; }
.blog-card__title{ margin:0 0 .35rem; font-size:1.1rem; }
.blog-card__summary{ color:var(--muted); margin:.25rem 0 .75rem; }

.meta-line, .blog-card__meta{
  display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; color:var(--muted);
}
.tag-list{ display:flex; gap:.35rem; flex-wrap:wrap; margin:0; padding:0; list-style:none; }
/* example pill if you didn’t add one yet:
.tag-pill{ display:inline-block; padding:.22rem .55rem; border-radius:999px; font-size:.8rem;
           background:#0f172a; color:#9fe692; border:1px solid rgba(63,131,246,.35); }
*/
.post-hero img{ width:100%; height:auto; border-radius:var(--radius); box-shadow:var(--shadow-md); margin:.8rem 0 0; }
/* Blog list cards */
.post-card { position: relative; overflow: hidden; }

.post-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #eef2f7;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card .card-body { padding: 1rem; }

.post-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;       /* sits above the card body to capture clicks */
}

/* keep title link above overlay for right-click/keyboard focus */
.post-card .post-title a {
  position: relative;
  z-index: 2;
}



/* === Blog components (scoped) === */
.blog-list__header{margin-bottom:1.25rem}
.blog-list__title{margin:0 0 .25rem}
.blog-list__sub{color:var(--muted);margin:0}
.blog-list__rss{margin-left:.4rem}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.1rem;
}
@media (max-width:1024px){ .blog-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }

.blog-card{
  position:relative;
  display:flex; flex-direction:column;
  background:var(--surface);
  border-radius:20px;
  box-shadow:var(--shadow-md);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }

/* Consistent 16:9 thumbnails with cover fit */
.blog-card__thumb{
  display:block;
  aspect-ratio: 16/9;
  overflow:hidden;
  background: #eef2f7;
}
.blog-card__thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.001); /* avoid hairline gaps on some GPUs */
}

/* Fallback box when no image */
.thumb--placeholder{
  display:block; width:100%; height:100%;
  background:
    linear-gradient(135deg, rgba(14,165,233,.12), rgba(255,122,26,.12));
}

/* Body */
.blog-card__body{ padding:1rem; }
.blog-card__title{ margin:0 0 .35rem; font-size:1.18rem; line-height:1.25; }
.blog-card__title a{ color:var(--ink-1); text-decoration:none; }
.blog-card__title a:hover{ text-decoration:underline; }

.blog-card__meta{
  display:flex; align-items:center; gap:.6rem; flex-wrap:wrap;
  color:var(--muted); font-size:.94rem; margin-bottom:.45rem;
}

.tag-list{ display:flex; gap:.35rem; flex-wrap:wrap; margin:0; padding:0; list-style:none; }
.tag-pill{
  display:inline-block; padding:.22rem .55rem; border-radius:999px;
  font-size:.78rem; font-weight:600;
  color:#fff; background:linear-gradient(90deg,#64748b, #0ea5e9 60%);
}

.blog-card__summary{ color:var(--ink-2); font-size:1rem; }

/* Full-card clickable overlay without blocking text selection */
.blog-card__overlay{
  position:absolute; inset:0; z-index:1;
}

/* Respect motion prefs */
@media (prefers-reduced-motion: reduce){
  .blog-card{ transition:none; }
}


/* === Blog post page (scoped) === */
.blog-post .article{
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: clamp(1rem, 2vw, 1.6rem);
}

.blog-post__crumbs{ margin-bottom: .75rem; }
.blog-post__back{ color: var(--slate); opacity:.85; }
.blog-post__back:hover{ text-decoration: underline; }

/* Header */
.post-head{ margin-bottom: .75rem; }
.post-title{
  margin: .2rem 0 .25rem;
  font-size: clamp(1.6rem, 3.6vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink-1);
}

.post-meta{
  display:flex; gap:.6rem; flex-wrap:wrap; align-items:center;
  color: var(--muted);
  font-size: .98rem;
}
.post-author{
  color: var(--accent);                    /* brand color */
  font-weight: 700;
  background: rgba(255,122,26,.10);
  border: 1px solid rgba(255,122,26,.25);
  padding: .2rem .55rem;
  border-radius: 999px;
}
.post-readtime{ opacity:.9; }

/* Hero */
.post-hero{
  margin: .8rem 0 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-hero img{ width:100%; height:auto; display:block; }

/* Content */
.post-content{
  margin-top: 1.1rem;
  font-size: 1.04rem;                /* slightly larger body */
  line-height: 1.75;
  color: var(--ink-2);
}
.post-content h2{ margin: 1.4rem 0 .5rem; color: var(--ink-1); }
.post-content h3{ margin: 1.1rem 0 .4rem; color: var(--ink-1); }
.post-content blockquote{
  margin: 1rem 0; padding: .8rem 1rem;
  background: linear-gradient(90deg, rgba(14,165,233,.08), rgba(255,122,26,.08));
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.post-content code {
  background: rgba(65, 84, 127, 0.06);
  max-width: 70ch;              /* limit width */
  white-space: pre-wrap;        /* wrap long lines */
  word-break: break-word;       /* break overly long tokens */
  padding: .08rem .35rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  display: inline-block;        /* makes max-width effective */
}

.post-content pre{
  background: #0f172a; color:#e5e7eb;
  padding: .9rem 1rem; border-radius: 14px; overflow:auto;
  box-shadow: var(--shadow-sm);
}

/* Footer (date at bottom + tags) */
.post-foot{
  display:flex; justify-content:space-between; align-items:center;
  gap:1rem; flex-wrap:wrap;
  margin-top: 1.4rem; padding-top: .9rem;
  border-top: 1px solid rgba(15,23,42,.08);
}
.post-foot__date .label{
  display:inline-block; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em;
  color: var(--muted); margin-right:.35rem;
}
.post-foot__tags .tag-list{ margin:0; }

/* Respect motion prefs */
@media (prefers-reduced-motion: reduce){
  .post-hero, .article{ box-shadow:none; }
}

.contact {
  background: var(--surface);
  border-radius: 24px;
  width: 100%;
  max-width: 540px;                /* cap on large screens */
  min-width: 320px;                /* safe floor for mobile */
  box-shadow: var(--shadow-lg);
  padding: clamp(1rem, 2vw, 1.6rem);
  margin: 0 auto;                  /* horizontal centering */
}

#contact.section {
  display: flex;
  justify-content: center;         /* center horizontally */
  align-items: center;             /* center vertically if section taller */
}

#contact .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

