/*
Theme Name: Unity Marketing
Theme URI: https://www.unity-messaging.com/
Author: Unity Messaging
Author URI: https://www.unity-messaging.com/
Description: Blog-focused WordPress theme using Unity Messaging branding.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: unity-marketing
*/

:root {
  --um-font-sans: "Nunito", sans-serif;
  --um-hero-dark: #0d47a1;
  --um-hero-mid: #1565c0;
  --um-accent: #2477f5;
  --um-section-alt: #f0f4fc;
  --um-card-hover: 0 0.75rem 1.5rem rgba(36, 119, 245, 0.12);
  --um-marketing-body-size: 1.0625rem;
  --um-marketing-small-size: 0.9375rem;
  --um-marketing-h6-size: 0.875rem;
  --bs-body-font-family: var(--um-font-sans);
}

html,
body {
  font-family: var(--um-font-sans);
}

body.landing-page {
  font-size: var(--um-marketing-body-size);
  color: #1f2a37;
  line-height: 1.5;
  background: #fafbfe;
}

body.landing-page h6,
body.landing-page .h6 {
  font-size: var(--um-marketing-h6-size);
}

body.landing-page small,
body.landing-page .small {
  font-size: var(--um-marketing-small-size);
}

body.landing-page h1,
body.landing-page h2,
body.landing-page h3 {
  font-family: var(--um-font-sans);
}

button,
input,
select,
textarea,
.btn {
  font-family: var(--um-font-sans);
}

a {
  color: var(--um-accent);
}

a:hover {
  color: #1a5fc4;
}

.btn-primary {
  background: var(--um-accent);
  border-color: var(--um-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1a6ee8;
  border-color: #1a6ee8;
}

.marketing-nav {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.marketing-nav .navbar-brand {
  font-weight: 700;
  color: #1f2a37;
  text-decoration: none;
  margin-right: 1rem;
}

/* Match production logo footprint (marketing header uses ~44px logo height). */
.marketing-nav .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.marketing-nav .custom-logo {
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: 240px;
}

.marketing-nav .nav-link {
  font-weight: 500;
}

.marketing-hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(135deg, var(--um-hero-dark) 0%, var(--um-hero-mid) 45%, var(--um-accent) 100%);
  position: relative;
  overflow: hidden;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.marketing-hero .container {
  position: relative;
  z-index: 1;
}

.marketing-hero h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.marketing-section {
  padding: 3.5rem 0;
}

.marketing-section-alt {
  background: var(--um-section-alt);
}

.landing-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--um-accent);
  margin-bottom: 0.5rem;
}

.landing-card {
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(36, 119, 245, 0.1);
  border-color: rgba(36, 119, 245, 0.2);
}

.landing-card .card-body {
  padding: 1.25rem 1.375rem;
}

.um-post-card {
  border-radius: 14px;
  height: auto;
}

.um-post-card .card-body {
  padding: 1.125rem 1.25rem 1.25rem;
}

.um-post-meta {
  color: #64748b;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}

.um-post-title {
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.um-post-title a {
  color: #0f172a;
}

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

.um-post-excerpt {
  margin-bottom: 0.9rem;
}

.um-post-content {
  font-size: 1.03rem;
}

.um-post-content > *:first-child {
  margin-top: 0;
}

.um-post-content img,
.um-post-content iframe,
.um-post-content video {
  max-width: 100%;
  height: auto;
}

.um-post-content h2,
.um-post-content h3,
.um-post-content h4 {
  margin-top: 1.5rem;
}

.um-post-content p,
.um-post-content li {
  line-height: 1.7;
}

.um-post-content p + h2,
.um-post-content p + h3 {
  margin-top: 2rem;
}

.um-sidebar .widget ul {
  margin: 0;
  padding-left: 1rem;
}

.um-sidebar .widget {
  border-radius: 12px;
}

.um-sidebar .widget .card-body {
  padding: 1rem 1.125rem;
}

.um-sidebar .widget li {
  margin-bottom: 0.5rem;
}

.um-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.um-pagination .page-numbers {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  color: #334155;
}

.um-pagination .page-numbers.current {
  background: var(--um-accent);
  border-color: var(--um-accent);
  color: #fff;
}

.um-hero-intro {
  max-width: 42rem;
}

@media (max-width: 991.98px) {
  .marketing-section {
    padding: 2.75rem 0;
  }

  .marketing-hero {
    padding: 4rem 0 3.5rem;
  }

  .marketing-nav .custom-logo {
    max-height: 36px;
    max-width: 200px;
  }

  /* Prevent stacked blog cards from stretching in mobile layouts. */
  .um-post-card,
  article.um-post-card {
    height: auto !important;
    min-height: 0;
  }
}

.landing-cta-strip {
  background: linear-gradient(135deg, var(--um-hero-mid) 0%, var(--um-accent) 100%);
  color: #fff;
  padding: 4rem 0;
}

.landing-cta-strip .btn-light {
  font-weight: 600;
}

.landing-cta-strip .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.landing-cta-strip a:not(.btn) {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.landing-cta-strip a:not(.btn):hover {
  color: #fff;
}

.marketing-footer {
  background: linear-gradient(180deg, #1a237e 0%, #0d47a1 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.875rem;
}

.marketing-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.marketing-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.marketing-footer h6 {
  color: #fff;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.marketing-footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

.marketing-footer .small {
  color: rgba(255, 255, 255, 0.6);
}

.marketing-footer ul {
  padding-left: 0;
  list-style: none;
}

.wp-block-group__inner-container {
  max-width: 1140px;
}
