/* ─────────────────────────────────────────────────────────────
   POST META
───────────────────────────────────────────────────────────── */
.entry-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  align-items: center;
  font-family: var(--f-heading);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-lo);
  margin-bottom: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--border-dim);
}

.entry-meta a {
  color: var(--text-mid);
  border: none;
}

.entry-meta a:hover {
  color: var(--cyan);
}

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.navigation.posts-navigation,
.nav-links {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  justify-content: center;
  margin: var(--s7) 0;
}

.nav-previous a, .nav-next a,
.page-numbers a {
  font-family: var(--f-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55em 1.1em;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--ease-fast),
              border-color var(--ease-fast),
              box-shadow var(--ease-fast);
  display: inline-block;
}

.nav-previous a:hover, .nav-next a:hover,
.page-numbers a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.page-numbers.current {
  font-family: var(--f-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.55em 1.1em;
  background: var(--cyan);
  color: var(--bg-0);
  border-radius: var(--r-sm);
}

/* ─────────────────────────────────────────────────────────────
   COMMENTS
───────────────────────────────────────────────────────────── */
.comments-area {
  margin-top: var(--s8);
  padding-top: var(--s7);
  border-top: 1px solid var(--border-dim);
}

.comments-title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-hi);
  margin-bottom: var(--s6);
}

.comment-list { list-style: none; padding: 0; }

.comment {
  margin-bottom: var(--s5);
}

.comment-body {
  background: var(--bg-2);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-md);
  padding: var(--s6);
}

.comment-author .fn {
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--f-heading);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.comment-metadata {
  font-size: 0.72rem;
  color: var(--text-lo);
  margin-top: var(--s1);
  letter-spacing: 0.08em;
}

.comment-metadata a { color: var(--text-lo); border: none; }

/* Nested replies */
.children {
  list-style: none;
  padding-left: var(--s6);
  border-left: 1px solid var(--border-dim);
  margin-top: var(--s4);
}

/* Comment form */
.comment-form label {
  display: block;
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin-bottom: var(--s2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 0.7em 1em;
  color: var(--text-hi);
  font-family: var(--f-body);
  font-size: 0.92rem;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.comment-form textarea { min-height: 140px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  color: var(--bg-0);
  padding: 0.8em 2em;
  min-height: 44px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color var(--ease-base),
              box-shadow var(--ease-base);
  width: auto;
}

.comment-form .form-submit input[type="submit"]:hover {
  background: var(--cyan);
  color: var(--bg-0);
  box-shadow: var(--glow-cyan);
}

/* ─────────────────────────────────────────────────────────────
   WIDGETS / SIDEBAR
───────────────────────────────────────────────────────────── */
.widget-area { padding: var(--s6); }

.widget {
  background: var(--bg-2);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-md);
  padding: var(--s6);
  margin-bottom: var(--s6);
}

.widget-title {
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s5);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border-soft);
}

.widget ul { list-style: none; padding: 0; }

.widget ul li {
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.88rem;
}

.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--text-mid); border: none; }
.widget a:hover { color: var(--cyan); }

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--s8) var(--pad-x);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%,
    rgba(1, 191, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--f-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--s4);
  display: block;
}

.hero-title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-hi);
  text-shadow: none;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--s5);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero-title .accent-phrase {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.hero-tagline {
  font-family: var(--f-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 auto var(--s6);
}

.hero-cta-row {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--s6);
}

@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero { min-height: 90svh; }
}

/* ─────────────────────────────────────────────────────────────
   FORM STYLING
───────────────────────────────────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea {
  width: 100%;
  background: var(--bg-2) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--r-sm) !important;
  padding: 0.8em 1em !important;
  color: var(--text-hi) !important;
  font-family: var(--f-body) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast) !important;
  outline: none !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--cyan) !important;
  box-shadow: var(--glow-cyan) !important;
}

.wpcf7-not-valid,
.wpforms-error input,
.field-error {
  border-left: 2px solid #E05555 !important;
}

.wpcf7-not-valid-tip,
.wpforms-error-message {
  font-size: 0.72rem;
  color: #E05555;
  margin-top: var(--s1);
  display: block;
}

.wpcf7-mail-sent-ok,
.wpforms-confirmation-container-full {
  background: var(--bg-2) !important;
  border-left: 2px solid var(--green) !important;
  color: var(--text-hi) !important;
  padding: var(--s5) var(--s6) !important;
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  font-family: var(--f-body) !important;
  font-size: 0.95rem !important;
}

.wpcf7-form label,
.wpforms-field-label {
  display: block;
  font-family: var(--f-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: var(--s2);
}

.wpcf7-submit,
.wpforms-submit {
  font-family: var(--f-display) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 0.85em 2.2em !important;
  min-height: 44px !important;
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--cyan) !important;
  background: var(--cyan) !important;
  color: var(--bg-0) !important;
  cursor: pointer !important;
  transition: background-color var(--ease-base), box-shadow var(--ease-base) !important;
}

.wpcf7-submit:hover,
.wpforms-submit:hover {
  background: #009ab5 !important;
  box-shadow: var(--glow-cyan) !important;
}

/* Arrow text-link variant */
.link-arrow {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: gap var(--ease-fast), color var(--ease-fast);
}

.link-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--ease-fast);
}

.link-arrow:hover { gap: 0.7em; text-shadow: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────────
   TOUCH TARGETS & IOS ZOOM FIX
───────────────────────────────────────────────────────────── */
.main-navigation a,
.nav-toggle,
.wp-block-button__link,
.nav-previous a, .nav-next a,
.page-numbers a,
.tag-cloud-link {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   POST CARD COMPONENT
───────────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s6);
  margin: var(--s7) 0;
}

.post-card {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--ease-slow), box-shadow var(--ease-slow);
  contain: layout style;
}

.post-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.post-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--ease-slow);
}

.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-image-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-dim);
}

.post-card-image-placeholder span {
  font-family: var(--f-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-lo);
}

.post-card-body {
  padding: var(--s5) var(--s5) var(--s6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-category {
  font-family: var(--f-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  margin-bottom: var(--s2);
}

.post-card-title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-hi);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s3);
  transition: color var(--ease-fast);
}

.post-card:hover .post-card-title { color: var(--cyan); }

.post-card-meta {
  font-family: var(--f-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-top: auto;
}

@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; gap: var(--s5); }
}

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-slow), transform 500ms var(--ease-slow);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ─────────────────────────────────────────────────────────────
   DARK CTA SECTION
───────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-1);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: var(--s8) var(--pad-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.cta-section-inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-family: var(--f-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: var(--s4);
}

.cta-headline {
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.2;
  margin-bottom: var(--s5);
  text-shadow: none;
  border-bottom: none;
  padding-bottom: 0;
}

.cta-body {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: var(--s7);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .wp-block-button__link,
.cta-section .btn-primary {
  background: var(--cyan) !important;
  color: var(--bg-0) !important;
  border-color: var(--cyan) !important;
}

.cta-secondary {
  display: block;
  margin-top: var(--s5);
  font-family: var(--f-heading);
  font-size: 0.82rem;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--ease-fast);
}

.cta-secondary:hover { color: var(--text-hi); text-shadow: none; }
.cta-secondary::after { content: ' →'; }

/* ─────────────────────────────────────────────────────────────
   IMAGE TREATMENT
───────────────────────────────────────────────────────────── */
.post-thumbnail {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: var(--s7);
  border: 1px solid var(--border-dim);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 480px;
  display: block;
  margin: 0;
  border-radius: var(--r-lg);
  border: none;
  box-shadow: none;
}

.no-featured-image .entry-header {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: var(--s6);
  margin-bottom: var(--s7);
}

/* ─────────────────────────────────────────────────────────────
   READING PROGRESS
───────────────────────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  z-index: 201;
  transition: width 80ms linear;
  pointer-events: none;
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.read-time::before {
  content: '◷';
  font-size: 0.9em;
}

/* ─────────────────────────────────────────────────────────────
   FAQ / ACCORDION
───────────────────────────────────────────────────────────── */
.faq-list {
  margin: var(--s6) 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid var(--border-dim); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-hi);
  transition: color var(--ease-fast);
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--cyan); }

.faq-question::after {
  content: '+';
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-left: var(--s5);
  transition: transform var(--ease-base);
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--s5);
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 70ch;
}

details > .faq-answer {
  animation: faq-open 250ms var(--ease-base) both;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  details > .faq-answer { animation: none; }
}

/* ─────────────────────────────────────────────────────────────
   SERVICES GRID
───────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s5);
  margin: var(--s7) 0;
}

.service-card {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--s6);
  transition: border-color var(--ease-slow), box-shadow var(--ease-slow);
}

.service-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s5);
  color: var(--cyan);
}

.service-title {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: var(--s3);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0;
}

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

/* ─────────────────────────────────────────────────────────────
   VISUAL IDENTITY ACCENTS
───────────────────────────────────────────────────────────── */
.hero-axis {
  position: absolute;
  bottom: var(--s7);
  right: var(--s7);
  width: 80px;
  height: 80px;
  border-left: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  pointer-events: none;
}

.hero-axis::before {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 1px;
  height: 5px;
  background: var(--border-dim);
}

.hero-axis::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: 0;
  height: 1px;
  width: 5px;
  background: var(--border-dim);
}

@media (max-width: 1024px) {
  .hero-axis { display: none; }
}

.decor-metric {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--text-lo);
  letter-spacing: 0.1em;
  position: absolute;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .decor-metric { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   SKELETON LOADING STATES
───────────────────────────────────────────────────────────── */
.post-card-skeleton {
  background: var(--bg-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-md);
  overflow: hidden;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-1)  25%,
    var(--bg-2)  50%,
    var(--bg-1)  75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-image {
  aspect-ratio: 16 / 9;
}

.skeleton-text {
  height: 0.85rem;
  border-radius: var(--r-sm);
  margin: var(--s3) var(--s5);
}

.skeleton-text.short { width: 40%; }
.skeleton-text.long  { width: 85%; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-shimmer { animation: none; background: var(--bg-2); }
}
