/*
Theme Name: Simetrix Consulting Next
Theme URI: https://simetrix.example
Author: Simetrix
Author URI: https://simetrix.example
Description: Fresh PoC-aligned WordPress theme for Microsoft Dynamics 365 and Power Platform consulting. Build: 1.0.6
Version: 1.0.6
Requires at least: 5.2
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simetrix-consulting-next
*/

:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f7ff;
  --text: #5a6173;
  --heading: #121826;
  --muted: #737c90;
  --border: #e4e7f2;
  --purple: #6c4cf5;
  --purple-dark: #5337d9;
  --sky: #c7efff;
  --mint: #88f0db;
  --lilac: #eadfff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 239, 255, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(234, 223, 255, 0.35), transparent 26%),
    linear-gradient(180deg, #f7f8fc 0%, #f5f6fb 100%);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.8rem;
  color: var(--heading);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--purple);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0 0 1rem 1.2rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.theme-container {
  width: min(1220px, calc(100vw - 48px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(108, 76, 245, 0.08);
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
}

.section-copy {
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-link {
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #7a5cff 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(108, 76, 245, 0.24);
}

.button-secondary {
  background: rgba(108, 76, 245, 0.08);
  color: var(--purple);
  border-color: rgba(108, 76, 245, 0.12);
}

.button-inverse {
  background: #ffffff;
  color: var(--purple-dark);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.button-block {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(247, 248, 252, 0.88);
  border-bottom: 1px solid rgba(228, 231, 242, 0.92);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.site-logo {
  color: var(--heading);
  font-size: 1.45rem;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--heading);
  font-size: 0.94rem;
}

.site-nav-panel {
  display: contents;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--heading);
}

.button-mobile-nav {
  display: none;
}

.hero-section {
  padding: 88px 0 78px;
}

.hero-grid {
  display: block;
}

.hero-copy h1 {
  max-width: none;
  width: min(100%, 1100px);
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  text-wrap: balance;
}

.hero-copy h1 span {
  color: var(--purple);
}

.hero-copy {
  width: 100%;
  max-width: none;
}

.hero-copy p:last-of-type {
  max-width: 72ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-visual-card {
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(108, 76, 245, 0.12), rgba(136, 240, 219, 0.14));
  box-shadow: var(--shadow);
}

.hero-visual-inner {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, #0b1320 0%, #0f1a29 55%, #122335 100%);
}

.hero-visual-inner::after {
  content: none;
}

.hero-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capabilities-section,
.platform-section,
.insights-section,
.consultation-section,
.archive-grid-section,
.single-post-section,
.page-shell {
  padding: 88px 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.capability-card,
.insight-card,
.page-card,
.single-post-card,
.sidebar-panel,
.consultation-form-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(228, 231, 242, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.capability-card {
  min-height: 210px;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 246, 255, 0.94));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.capability-card-primary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-row: span 2;
  min-height: 440px;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 76, 245, 0.18);
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.12);
}

.capability-icon,
.platform-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 28px 28px, cover;
}

.capability-icon {
  margin-bottom: 1.4rem;
}

.capability-icon-purple {
  background-image:
    url("assets/icons/architecture.svg"),
    linear-gradient(135deg, #f0e8ff, #ddceff);
}

.capability-icon-blue {
  background-image:
    url("assets/icons/consultancy.svg"),
    linear-gradient(135deg, #def3ff, #bde5ff);
}

.capability-icon-green {
  background-image:
    url("assets/icons/analysis.svg"),
    linear-gradient(135deg, #dcfff4, #9cf1d8);
}

.capability-icon-development {
  background-image:
    url("assets/icons/development.svg"),
    linear-gradient(135deg, #f0e8ff, #ddceff);
}

.capability-icon-project {
  background-image:
    url("assets/icons/project.svg"),
    linear-gradient(135deg, #def3ff, #bde5ff);
}

.capability-icon-support {
  background-image:
    url("assets/icons/support.svg"),
    linear-gradient(135deg, #dcfff4, #9cf1d8);
}

.platform-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 28px 28px, cover;
}

.platform-icon-dynamics {
  background-image:
    url("assets/icons/dynamics.svg"),
    linear-gradient(135deg, #f0e8ff, #ddceff);
}

.platform-icon-sales {
  background-image:
    url("assets/icons/sales.svg"),
    linear-gradient(135deg, #def3ff, #bde5ff);
}

.platform-icon-platform {
  background-image:
    url("assets/icons/platform.svg"),
    linear-gradient(135deg, #dcfff4, #9cf1d8);
}

.platform-icon-dataverse {
  background-image:
    url("assets/icons/dataverse.svg"),
    linear-gradient(135deg, #f2e9ff, #e4d5ff);
}

.capability-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.capability-footer span {
  color: #2a7fbe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.capability-footer a {
  font-weight: 700;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.platform-item {
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  text-align: center;
  transition: transform 0.22s ease;
}

.platform-item:hover {
  transform: translateY(-4px);
}

.platform-banner {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: 2.5rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(11, 17, 31, 0.84), rgba(12, 20, 35, 0.94)),
    radial-gradient(circle at top right, rgba(108, 76, 245, 0.18), transparent 32%);
  box-shadow: var(--shadow);
}

.platform-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 20, 34, 0.9), rgba(13, 20, 34, 0.44)),
    url("assets/platform-banner.svg");
  background-size: cover;
  background-position: center;
}

.platform-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.platform-banner h3,
.platform-banner p {
  color: #fff;
}

.platform-banner p {
  color: rgba(255, 255, 255, 0.74);
}

.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.platform-tags span {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.insight-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.12);
}

.insight-card-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.insight-card-media {
  display: block;
  aspect-ratio: 1.2 / 0.82;
  overflow: hidden;
}

.insight-card-featured .insight-card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.insight-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
}

.insight-card-featured .insight-card-body {
  justify-content: center;
  padding: 2.3rem;
}

.insight-card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.insight-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(136, 240, 219, 0.28);
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.insight-tag-soft {
  background: rgba(108, 76, 245, 0.08);
}

.insight-card-title {
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

.insight-card-title a {
  color: var(--heading);
}

.insight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.insight-card-stat {
  color: var(--muted);
  font-size: 0.82rem;
}

.archive-hero,
.post-hero {
  padding: 88px 0 40px;
}

.post-hero .theme-container {
  max-width: 1320px;
}

.archive-hero h1,
.post-title {
  max-width: none;
  width: min(100%, 1120px);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.archive-hero h1 span {
  color: var(--purple);
}

.single-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  align-items: start;
}

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

.single-post-image {
  overflow: hidden;
  margin-bottom: 1.8rem;
  border-radius: 22px;
}

.single-post-content {
  padding: 0 0.8rem 0.8rem;
}

.single-post-content h2 {
  margin-top: 2rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.single-post-content h3 {
  margin-top: 1.5rem;
}

.single-post-content blockquote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.25rem;
  border-left: 4px solid var(--purple);
  border-radius: 0 18px 18px 0;
  background: rgba(108, 76, 245, 0.05);
  color: var(--heading);
  font-style: italic;
}

.post-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.sidebar-cta,
.sidebar-panel {
  padding: 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-cta {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
}

.sidebar-cta h2,
.sidebar-cta p {
  color: #fff;
}

.sidebar-cta .button {
  margin-top: 0.75rem;
}

.sidebar-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(228, 231, 242, 0.94);
}

.sidebar-label {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(108, 76, 245, 0.04);
  border: 1px solid rgba(108, 76, 245, 0.08);
}

.related-card h3 {
  font-size: 1.02rem;
}

.consultation-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.6rem;
}

.consultation-post {
  padding-top: 28px;
}

.single-post-section {
  padding-bottom: 32px;
}

.consultation-copy,
.consultation-form-card {
  padding: 2rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.consultation-copy {
  background: transparent;
}

.consultation-copy h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.consultation-points {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.consultation-points li {
  position: relative;
  margin: 0 0 1rem;
  padding-left: 1.8rem;
}

.consultation-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(108, 76, 245, 0.12);
}

.consultation-quote {
  max-width: 500px;
  padding: 1.4rem;
  border-radius: 18px;
  background: rgba(108, 76, 245, 0.06);
}

.consultation-quote-author strong,
.consultation-quote-author span {
  display: block;
}

.consultation-quote-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

.consultation-form-card {
  background: linear-gradient(180deg, rgba(247, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(228, 231, 242, 0.94);
}

.consultation-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  width: 100%;
  min-height: 50px;
  margin-bottom: 1rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--heading);
  font: inherit;
}

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

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  outline: none;
  border-color: rgba(108, 76, 245, 0.36);
  box-shadow: 0 0 0 4px rgba(108, 76, 245, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.notice-success {
  color: #027a48;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.notice-error {
  color: #b42318;
  background: #fff4ed;
  border: 1px solid #fecdca;
}

.page-card {
  padding: 2rem;
}

.pagination-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.pagination-wrap ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--heading);
}

.pagination-wrap .current {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(228, 231, 242, 0.94);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer-brand {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--heading);
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .consultation-grid,
  .single-post-grid,
  .insight-card-featured {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }

  .capability-card-primary {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 320px;
  }

  .platform-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .theme-container {
    width: min(100vw - 24px, 1220px);
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 0.9rem;
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-nav-panel {
    display: none;
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav-panel.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .button-header-cta {
    display: none;
  }

  .button-mobile-nav {
    display: inline-flex;
    width: 100%;
    margin-top: 0.85rem;
  }

  .hero-copy h1,
  .archive-hero h1,
  .post-title {
    max-width: 100%;
    width: 100%;
    font-size: clamp(1.95rem, 7vw, 2.55rem);
  }

  .capability-grid,
  .platform-grid,
  .insight-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-bar,
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .button,
  .button-block {
    width: 100%;
  }

  .capabilities-section,
  .platform-section,
  .insights-section,
  .consultation-section,
  .archive-grid-section,
  .single-post-section,
  .page-shell {
    padding: 64px 0;
  }
}
