/* ==========================================================================
   WordPress-specific additions to the original hakodata.css design.
   ========================================================================== */

/* Accessibility helper ---------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}

/* Sticky header below the WP admin bar ------------------------------------ */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Anchor targets clear the sticky header */
main section[id] {
  scroll-margin-top: 90px;
}

/* Media Library icons (SVG or raster) inside design containers ------------ */
.section-eyebrow img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.service-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.tech-badge > img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.platform-logo-box img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.contact-icon-wrap img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.brand-logo {
  max-width: none;
}

/* Text logo fallback when no logo image is set */
.brand-link .brand-text {
  line-height: 1;
}

/* Footer secondary text (was an inline style in the HTML) ----------------- */
.footer-secondary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Contact details links --------------------------------------------------- */
.contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-sky);
}

/* About WYSIWYG content --------------------------------------------------- */
.about-content > *:last-child {
  margin-bottom: 0;
}

.about-content a {
  color: var(--accent-sky);
}

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
.contact-form-card .wpcf7-form-control-wrap {
  display: block;
}

.contact-form-card .wpcf7-submit {
  width: 100%;
}

.contact-form-card .wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.contact-form-card .wpcf7-not-valid {
  border-color: rgba(248, 113, 113, 0.6);
}

.contact-form-card .wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #f87171;
}

/* .contact-form-card .wpcf7-spinner {
  display: block;
  margin: 0.75rem auto 0;
  background-color: var(--accent-sky);
} */

.contact-form-card .wpcf7 form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  text-align: center;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.contact-form-card .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form-card .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}

/* Success state: matches the original .form-success box and hides the fields */
.contact-form-card .wpcf7 form.sent .wpcf7-response-output {
  margin: 0;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.contact-form-card .wpcf7 form.sent .form-group,
.contact-form-card .wpcf7 form.sent .wpcf7-submit,
.contact-form-card .wpcf7 form.sent .wpcf7-spinner {
  display: none;
}

/* ==========================================================================
   Default pages, posts, 404
   ========================================================================== */
.page-content {
  padding-top: 6rem;
  padding-bottom: var(--section-space);
}

.entry-media {
  margin-bottom: 2rem;
}

.entry-media img {
  border-radius: var(--radius-lg);
  height: auto;
  max-width: 100%;
}

.entry-content {
  max-width: 48rem;
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 2rem;
}

.entry-content a {
  color: var(--accent-sky);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.post-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.post-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent-sky);
}

.post-card-excerpt {
  color: var(--text-muted);
}

.page-404-actions {
  margin-top: 2rem;
}

.navigation.pagination {
  margin-top: 2rem;
}

.navigation.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
}

.navigation.pagination .page-numbers {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.navigation.pagination .page-numbers.current {
  color: var(--accent-sky);
  border-color: var(--border-hover);
}
