/* ═══════════════════════════════════════════════════
   ProSolution Technologies 2.0 — Neo-Brutalist Design System
   ═══════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --background: #faf7f0;       /* Muted warm-cream canvas */
  --foreground: #18181b;       /* Dark charcoal ink */
  --accent-blue: #0284c7;      /* Solid tech blue */
  --accent-orange: #ea580c;    /* Neon highlight orange */
  --card: #ffffff;             /* Pure white card backgrounds */
  --ink: #18181b;              /* Stroke border color */
  --text-muted: #4b5563;       /* Body text color */
  --text-light: #71717a;       /* Inline annotation text */
  --border-width: 2.5px;       /* Brutalist bold stroke width */
  --shadow-offset: 5px;        /* Solid offset shadow amount */
  
  --max-width: 1200px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  /* Neo-brutalist grid background */
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(24, 24, 27, 0.05) 1px, transparent 0),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><rect width='100' height='100' fill='none' stroke='%2318181b' stroke-opacity='0.03' stroke-width='1'/></svg>");
  background-size: 24px 24px, 100px 100px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button, select, input, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bowlby One', cursive;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-transform: uppercase;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}
h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.75rem;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}
.font-hand {
  font-family: 'Caveat', cursive;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Bento & Layout Grids ─── */
.section {
  padding: 5rem 0;
  border-bottom: var(--border-width) solid var(--foreground);
}
.section-alt {
  background-color: #ffffff;
}
.section-header {
  margin-bottom: 3.5rem;
  max-width: 700px;
}
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: #ffffff;
  border: var(--border-width) solid var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 0 var(--foreground);
}

/* ─── Neo-Brutalist Cards ─── */
.ink-card {
  background-color: var(--card);
  border: var(--border-width) solid var(--foreground);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--foreground);
  border-radius: 14px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.ink-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--foreground);
}
.ink-card.interactive:active {
  transform: translate(2px, 2px);
  box-shadow: calc(var(--shadow-offset) - 3px) calc(var(--shadow-offset) - 3px) 0 0 var(--foreground);
}

/* ─── Pill Buttons ─── */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--card);
  color: var(--foreground);
  border: var(--border-width) solid var(--foreground);
  border-radius: 9999px;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--foreground);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.pill-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--foreground);
}
.pill-btn:active {
  transform: translate(3px, 3px);
  box-shadow: calc(var(--shadow-offset) - 3px) calc(var(--shadow-offset) - 3px) 0 0 var(--foreground);
}
.pill-btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
}
.pill-btn-blue {
  background-color: var(--accent-blue);
  color: #ffffff;
}
.pill-btn-ghost {
  background-color: transparent;
  box-shadow: none;
}
.pill-btn-ghost:hover {
  background-color: rgba(24, 24, 27, 0.05);
  box-shadow: none;
  transform: none;
}

/* ─── Highlight Bar (Rotated tags) ─── */
.highlight-bar {
  background-color: var(--accent-orange);
  color: #ffffff;
  padding: 0.1em 0.4em;
  display: inline-block;
  transform: rotate(-1.5deg);
  border: var(--border-width) solid var(--foreground);
  box-shadow: 2px 2px 0 0 var(--foreground);
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
}
.highlight-blue {
  background-color: var(--accent-blue);
}

/* ─── Marquee ─── */
.marquee {
  display: flex;
  overflow: hidden;
  background-color: var(--card);
  border-top: var(--border-width) solid var(--foreground);
  border-bottom: var(--border-width) solid var(--foreground);
  padding: 1.25rem 0;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.marquee-track {
  white-space: nowrap;
  display: flex;
  gap: 3rem;
  animation: marquee 35s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.marquee-star {
  color: var(--accent-orange);
  font-size: 1.2rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Typewriter & Hero layout ─── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  border-bottom: var(--border-width) solid var(--foreground);
  position: relative;
}
.hero-pills-wrap {
  margin-bottom: 2rem;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.25rem, 7.5vw, 4.5rem) !important;
  margin-bottom: 1.5rem;
  -webkit-text-stroke: 0.5px #ffffff;
  text-shadow: 3px 3px 0px var(--foreground);
}
.ssv-typewriter-wrapper {
  display: inline-block;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
  border-bottom: var(--border-width) dashed var(--foreground);
}
.ssv-cursor {
  color: var(--accent-orange);
  font-weight: 700;
  animation: ssv-blink 0.8s infinite;
}
@keyframes ssv-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 247, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-width) solid var(--foreground);
  padding: 1rem 0;
}
.site-header .logo-wrap span {
  display: none;
}
.header-cta {
  flex-shrink: 0;
}
.header-cta .pill-btn {
  white-space: nowrap !important;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-wrap img {
  height: 36px;
  border: var(--border-width) solid var(--foreground);
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 2px 2px 0 0 var(--foreground);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: var(--border-width) solid var(--foreground);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  box-shadow: 3px 3px 0 0 var(--foreground);
}
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: var(--transition);
}
.nav-link:hover {
  background-color: rgba(24, 24, 27, 0.05);
}
.nav-link.active {
  background-color: var(--foreground);
  color: var(--background);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  border: var(--border-width) solid var(--foreground);
  background-color: #ffffff;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 3px 3px 0 0 var(--foreground);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.menu-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--foreground);
}

/* ─── Google Adsense Grid Cards ─── */
.ads-container {
  width: 100%;
  margin: 2.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ads-card {
  width: 100%;
  max-width: 1200px;
  background-color: #ffffff;
  border: var(--border-width) solid var(--foreground);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--foreground);
  border-radius: 14px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.ads-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  align-self: flex-start;
}

/* ─── Services Bento Grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.bento-col-4 {
  grid-column: span 4;
}
.bento-col-6 {
  grid-column: span 6;
}
.bento-col-8 {
  grid-column: span 8;
}
.bento-col-12 {
  grid-column: span 12;
}

/* ─── Stats Bar ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.stat-box {
  text-align: center;
}
.stat-box .number {
  font-family: 'Bowlby One', cursive;
  font-size: 3.5rem;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
  -webkit-text-stroke: 1.5px var(--foreground);
}
.stat-box .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Accordion (FAQ) ─── */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.accordion-item {
  border: var(--border-width) solid var(--foreground);
  box-shadow: 4px 4px 0 0 var(--foreground);
  border-radius: 12px;
  background-color: var(--card);
  transition: var(--transition);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.accordion-icon {
  font-size: 1.5rem;
  color: var(--accent-orange);
  transition: var(--transition);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
}
.accordion-item.open .accordion-content {
  padding-bottom: 1.5rem;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

/* ─── Footer ─── */
.site-footer {
  background-color: #faf7f0;
  border-top: var(--border-width) solid var(--foreground);
  padding: 5rem 0 3rem;
  background-image: 
    linear-gradient(to right, rgba(234, 88, 12, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(234, 88, 12, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1.5px solid var(--foreground);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--accent-orange);
  transform: translateX(3px);
}
.footer-bottom {
  border-top: var(--border-width) dashed var(--foreground);
  padding-top: 2rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ─── WhatsApp Float ─── */
.whatsapp-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  border: var(--border-width) solid var(--foreground);
  box-shadow: 4px 4px 0 0 var(--foreground);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--foreground);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float-btn:hover {
  transform: scale(1.1) translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--foreground);
}

/* ─── WhatsApp Popup Bubble ─── */
.wa-float-wrap {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.wa-popup {
  background: #ffffff;
  border: var(--border-width) solid var(--foreground);
  box-shadow: 5px 5px 0 0 var(--foreground);
  border-radius: 12px;
  width: 280px;
  padding: 1.25rem;
  display: flex;
  flex-direction: row;
  gap: 0.85rem;
  align-items: flex-start;
  position: relative;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wa-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* tail pointer pointing down-right to the button */
.wa-popup::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 0 solid transparent;
  border-top: 10px solid var(--foreground);
}
.wa-popup::before {
  content: '';
  position: absolute;
  bottom: -7px;
  right: 23px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0 solid transparent;
  border-top: 9px solid #ffffff;
  z-index: 1;
}
.wa-popup-close {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  background: none;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}
.wa-popup-close:hover { color: var(--foreground); }
.wa-popup-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
}
.wa-popup-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.wa-popup-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--foreground);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wa-popup-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.wa-popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  background: #25D366;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--foreground);
  border-radius: 6px;
  box-shadow: 2px 2px 0 0 var(--foreground);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.wa-popup-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--foreground);
}

/* ─── Form Elements ─── */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background-color: #ffffff;
  border: var(--border-width) solid var(--foreground);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  transition: var(--transition);
}
.form-control:focus {
  box-shadow: 3px 3px 0 0 var(--foreground);
}
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ─── App Cards & Lightbox ─── */
.app-gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
}
.screenshot-item {
  flex-shrink: 0;
  width: 240px;
  border: var(--border-width) solid var(--foreground);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 var(--foreground);
  cursor: pointer;
  transition: var(--transition);
}
.screenshot-item img {
  width: 100%;
  height: auto;
}
.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 0 var(--foreground);
}
.desktop-screenshot {
  width: 320px;
}
.portrait-screenshot {
  width: 200px;
}
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.gallery-tabs .tab-btn {
  background-color: var(--card);
  color: var(--foreground);
  border: var(--border-width) solid var(--foreground);
  border-radius: 9999px;
  padding: 0.6rem 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 var(--foreground);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gallery-tabs .tab-btn.active {
  background-color: var(--accent-blue);
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--foreground);
}
.gallery-tabs .tab-btn:hover:not(.active) {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--foreground);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(24, 24, 27, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
.lightbox-content img {
  border: var(--border-width) solid var(--foreground);
  border-radius: 12px;
  box-shadow: 10px 10px 0 0 var(--accent-orange);
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  font-size: 2.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* ─── Two-Column Blog Grid ─── */
.blog-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 3rem;
}
.sidebar-sticky {
  position: sticky;
  top: 6rem;
}

/* ─── Responsive Media Breakpoints ─── */
@media (max-width: 1150px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .bento-col-4, .bento-col-6, .bento-col-8 {
    grid-column: span 12;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Shared page layouts & mobile-first refinements ─── */
:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
}

.page-hero {
  background-color: var(--background);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: min(42vw, 440px);
  aspect-ratio: 1;
  right: -10vw;
  top: -12rem;
  border: var(--border-width) solid var(--foreground);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef3c7 0 22%, #bfdbfe 23% 43%, transparent 44%);
  opacity: 0.72;
  transform: rotate(12deg);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}

.two-column-layout,
.inquiry-layout,
.service-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.inquiry-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.contact-layout {
  align-items: start;
}
.service-detail-art {
  display: flex;
  justify-content: center;
}
.service-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* ─── Responsive AdSense-safe slots ─── */
.ad-slot {
  width: 100%;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-slot--footer {
  margin-top: 4rem;
  margin-bottom: 2rem;
}
.ads-card {
  min-height: 116px;
  display: grid;
  place-items: center;
}
.ads-card--live {
  min-height: 0;
  display: block;
}
.ads-card--live ins {
  min-height: 90px;
}
.ads-placeholder {
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.ad-slot--sidebar .ads-card {
  min-height: 250px;
}

/* ─── Discovery (SEO / AEO / GEO / SXO / AIO) ─── */
.discovery-section {
  background: linear-gradient(135deg, #eff6ff 0%, #faf7f0 48%, #ecfdf5 100%);
}
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.discovery-card {
  min-height: 250px;
  padding: 1.5rem;
}
.discovery-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  margin-top: 1.25rem;
}
.discovery-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.discovery-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.75rem;
  padding: 0.35rem 0.55rem;
  border: 2px solid var(--foreground);
  border-radius: 0.5rem;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.discovery-card--blue { background: #dbeafe; }
.discovery-card--blue .discovery-code { background: var(--accent-blue); }
.discovery-card--green { background: #dcfce7; }
.discovery-card--green .discovery-code { background: #059669; }
.discovery-card--orange { background: #ffedd5; }
.discovery-card--orange .discovery-code { background: var(--accent-orange); }
.discovery-card--purple { background: #f3e8ff; }
.discovery-card--purple .discovery-code { background: #7c3aed; }
.discovery-card--teal { background: #ccfbf1; }
.discovery-card--teal .discovery-code { background: #0f766e; }

/* ─── Blog listing & filters ─── */
.blog-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
}
.blog-card-media {
  height: 180px;
  border: var(--border-width) solid var(--foreground);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--background);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}
.active-filter {
  color: var(--accent-blue) !important;
  font-weight: 700;
}
.empty-state {
  text-align: center;
}
.empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ─── Practical breakpoints ─── */
@media (max-width: 1120px) {
  .nav-link {
    padding-inline: 0.65rem;
  }
  .header-cta .pill-btn {
    padding-inline: 0.8rem !important;
  }
  .discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .header-inner {
    position: relative;
  }
  .header-cta {
    display: none;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    right: 0;
    z-index: 1001;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    border-radius: 16px;
    padding: 0.75rem;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    padding: 0.85rem 1rem;
  }
  .two-column-layout,
  .inquiry-layout,
  .service-detail-card {
    grid-template-columns: 1fr;
  }
  .service-detail-content,
  .service-detail-art {
    order: initial !important;
  }
  .service-detail-art {
    justify-content: flex-start;
  }
  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discovery-card {
    min-height: 0;
  }
  .sidebar-sticky {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --border-width: 2px;
    --shadow-offset: 4px;
  }
  .container {
    padding-inline: 1rem;
  }
  .site-header {
    padding-block: 0.75rem;
  }
  .logo-wrap {
    max-width: calc(100% - 3.5rem);
    font-size: clamp(0.68rem, 3.2vw, 0.85rem);
    white-space: nowrap;
    overflow: hidden;
  }
  .logo-wrap span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
  }
  .logo-wrap img {
    height: 32px;
  }
  .hero,
  .page-hero {
    padding-block: 4rem 3.5rem;
  }
  .hero p[style] {
    font-size: 1rem !important;
  }
  .hero .font-hand[style] {
    font-size: 1.65rem !important;
  }
  .page-hero::before {
    width: 74vw;
    right: -28vw;
    top: -8rem;
  }
  .section {
    padding-block: 3.5rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
  .ink-card {
    padding: 1.25rem;
  }
  .pill-btn {
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1.1rem;
    font-size: 0.75rem;
  }
  .bento-grid,
  .stats-row {
    gap: 1rem;
    margin-top: 2rem;
  }
  .stat-box .number {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }
  .service-highlights,
  .form-grid,
  .discovery-grid {
    grid-template-columns: 1fr;
  }
  .service-detail-card {
    gap: 1.5rem;
  }
  .service-detail-art > div {
    max-width: 210px !important;
  }
  .service-detail-art i {
    font-size: 4.75rem !important;
  }
  .blog-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .blog-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .blog-card-meta {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 1rem;
  }
  .app-gallery {
    gap: 1rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
  }
  .screenshot-item {
    width: min(78vw, 260px);
  }
  .ads-card {
    min-height: 104px;
    padding: 10px;
  }
  .ad-slot--sidebar .ads-card {
    min-height: 180px;
  }
  .whatsapp-float-btn {
    bottom: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    font-size: 1.75rem;
  }
  .lightbox {
    padding: 1rem;
  }
  .lightbox-content {
    max-width: 100%;
    max-height: 100%;
  }
  .lightbox-close {
    top: -2rem;
    right: 0;
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
