/*
Theme Name: Invisyn Website v1
Theme URI: https://github.com/BoldMindTech/invisyn-website-v1
Author: Invisyn
Author URI: https://invisyn.com
Description: Custom WordPress block theme generated by wp-build. Modern static-site aesthetic, no page builder, SEO/GEO-native, Rank Math compatible.
Version: 0.1.3
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: invisyn-website-v1
Tags: block-theme, full-site-editing, custom-colors, custom-logo, block-patterns, accessibility-ready, blog, portfolio, business
*/

/*
 * Most styles live in theme.json. This file is intentionally small.
 * Add only what theme.json cannot express — accessibility helpers,
 * focus-visible polish, prefers-reduced-motion overrides, etc.
 */

/* Skip link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--wp--preset--color--primary, #000);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}

/* Focus-visible polish */
:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent, #06f);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile nav (JS-toggled) */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--bg, #fff);
}

/* TL;DR pattern */
.theme-tldr {
  border-left: 3px solid var(--wp--preset--color--accent, #06f);
  background: var(--wp--preset--color--bg-soft, #f7f7f7);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* FAQ pattern */
.theme-faq__list dt {
  font-weight: 600;
  margin-top: 1.5rem;
}
.theme-faq__list dd {
  margin: 0.5rem 0 0 0;
}

/* Header wordmark — INVISYN (dark) + WEBSITES (cyan) */
.theme-wordmark {
  display: inline-flex;
  gap: 0.4em;
  align-items: baseline;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.theme-wordmark__primary { color: var(--wp--preset--color--primary, #14161A); }
.theme-wordmark__accent  { color: var(--wp--preset--color--accent, #38BDF8); }
.theme-wordmark:hover { text-decoration: none; }

/* Hero — full-bleed photo with dark gradient overlay, white display text */
.theme-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
}
@media (max-width: 768px) {
  .theme-hero { min-height: 60vh; }
  .theme-hero__inner { padding: 3rem 1.25rem; }
}
.theme-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,0.85) 0%, rgba(20,22,26,0.55) 50%, rgba(20,22,26,0.75) 100%);
  z-index: -1;
}
.theme-hero__inner {
  max-width: 880px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
  width: 100%;
}
.theme-hero h1 {
  color: #fff !important;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem 0;
}
.theme-hero h1 .theme-accent { color: var(--wp--preset--color--accent, #38BDF8); }
.theme-hero p.theme-hero__subhead {
  color: rgba(255,255,255,0.92) !important;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 0 2rem 0;
}
.theme-hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.theme-hero__cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
.theme-hero__cta--primary {
  background: var(--wp--preset--color--accent, #38BDF8);
  color: var(--wp--preset--color--primary, #14161A);
}
.theme-hero__cta--secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.theme-hero__cta:hover { opacity: 0.9; }

/* Card grid (services, features, why-choose) */
.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.theme-card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.theme-card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.theme-card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.theme-card {
  background: var(--wp--preset--color--bg, #fff);
  border: 1px solid var(--wp--preset--color--border, #E5E7EB);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.theme-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--wp--preset--color--primary, #14161A);
}
.theme-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--fg-muted, #4B5563);
  line-height: 1.55;
}
.theme-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(56,189,248,0.12);
  color: var(--wp--preset--color--accent, #38BDF8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Eyebrow text (uppercase mini-heading above section h2) */
.theme-eyebrow {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--wp--preset--color--accent, #38BDF8);
  margin-bottom: 0.5rem;
}

/* Brands strip */
.theme-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 2.5rem;
  align-items: center;
  justify-items: center;
  padding: 2.5rem 0;
}
.theme-brand {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(0.4) opacity(0.85);
  transition: filter 200ms ease, opacity 200ms ease;
}
.theme-brand:hover { filter: grayscale(0) opacity(1); }
.theme-brand img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

/* Two-column layout (about page Mission section, etc.) */
.theme-two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .theme-two-col { grid-template-columns: 1fr; gap: 2rem; }
}
.theme-two-col__media {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--wp--preset--color--bg-soft);
  aspect-ratio: 4 / 3;
}
.theme-two-col__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.theme-callout {
  background: var(--wp--preset--color--bg-soft);
  border-left: 3px solid var(--wp--preset--color--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-weight: 500;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Footer columns */
.theme-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
@media (max-width: 768px) {
  .theme-footer-grid { grid-template-columns: 1fr 1fr; }
}
.theme-footer-grid h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem 0;
  color: var(--wp--preset--color--primary, #14161A);
}
.theme-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.theme-footer-grid li { margin: 0 0 0.5rem 0; font-size: 0.9375rem; }
.theme-footer-grid a { color: var(--wp--preset--color--fg-muted, #4B5563); text-decoration: none; }
.theme-footer-grid a:hover { color: var(--wp--preset--color--accent, #38BDF8); }
