/*
Theme Name: Webinify Copy
Theme URI: https://webinify.com
Author: Webinify Creative
Author URI: https://webinify.com
Description: Webinify Copy - B2B SaaS copywriting management tool. Built on Bootstrap 5 with a high-end, professional design.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webinify-copy
Tags: saas, ai, copywriting, blog, one-column, custom-menu
*/

/* =========================================
   Design tokens (on top of Bootstrap 5)
   ========================================= */

:root {
  --ink: #0a0f1c;
  --body: #3f4756;
  --muted: #8a94a6;
  --brand: #3b4bd8;
  --brand-dark: #2f3ab2;
  --brand-2: #1e2a78;
  --accent: #f59e0b;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #e5e7eb;
  --brand-rgb: 59, 75, 216;

  /* Map Bootstrap's primary to the brand color */
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-focus-shadow-rgb: var(--brand-rgb);
  --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--body);
  --bs-body-bg: var(--bg);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 500;
}

/* Buttons */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border) !important;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand-wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.navbar-nav .menu-item {
  list-style: none;
}

.navbar-nav .menu-item > a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-nav .menu-item > a:hover {
  color: var(--ink);
  background-color: rgba(10, 15, 28, 0.04);
}

.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a {
  color: var(--brand);
}

/* Last item of the right (CTA) menu is the CTA button */
.header-cta-menu .menu-item:last-child > a {
  background: var(--brand);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.header-cta-menu .menu-item:last-child > a:hover {
  background: var(--brand-dark);
  color: #ffffff;
}
/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  padding: 6rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20rem;
  right: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(59, 75, 216, 0.08), transparent 60%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 12em;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--body);
  max-width: 34em;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 1.25rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-trust .avatar-stack {
  display: flex;
}

.hero-trust .avatar-stack span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: #fff;
  margin-left: -8px;
}

.hero-trust .avatar-stack span:first-child {
  margin-left: 0;
}

/* Product mockup */
.mockup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(10, 15, 28, 0.12);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  background: #f6f7f9;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-body {
  display: flex;
  min-height: 340px;
}

.mockup-sidebar {
  width: 180px;
  padding: 1.25rem 1rem;
  background: #fafbfc;
  border-right: 1px solid var(--border);
  display: none;
}

.mockup-sidebar .mockup-line {
  height: 10px;
  border-radius: 4px;
  background: #e5e7eb;
  margin-bottom: 1rem;
}

.mockup-sidebar .mockup-line.active {
  background: var(--brand);
  opacity: 0.85;
}

.mockup-main {
  flex: 1;
  padding: 1.5rem;
}

.mockup-main .mockup-line {
  height: 12px;
  border-radius: 4px;
  background: #e5e7eb;
  margin-bottom: 0.875rem;
}

.mockup-main .mockup-line.short {
  width: 60%;
}

.mockup-main .mockup-line.brand {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  width: 40%;
}

.mockup-card {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.25rem;
}

.mockup-card .mockup-line {
  height: 8px;
  margin-bottom: 0.625rem;
}

.mockup-float {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  box-shadow: 0 16px 40px rgba(10, 15, 28, 0.12);
  padding: 0.875rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mockup-float .mockup-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.mockup-float .mockup-float-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
  margin: 0;
}

.mockup-float .mockup-float-sub {
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}
/* Logo strip */
.logo-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-strip-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.logo-strip .logo-name {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.0625rem;
  font-family: "Fraunces", Georgia, serif;
}

/* Section headers */
.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header.center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--body);
  font-size: 1.0625rem;
}

/* Value props */
.value-card {
  padding: 1.5rem 0;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: rgba(59, 75, 216, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.value-text {
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Product deep-dive rows */
.deep-dive {
  padding: 4rem 0;
}

.deep-dive .deep-dive-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

.deep-dive .deep-dive-text {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.deep-dive .deep-dive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deep-dive .deep-dive-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--body);
  font-size: 0.9375rem;
}

.deep-dive .deep-dive-list li svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* How it works */
.step-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  height: 100%;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step-description {
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Metrics band */
.metrics {
  background: var(--ink);
  color: #ffffff;
  padding: 4rem 0;
}

.metrics .metric-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.metrics .metric-label {
  color: #a5b0c0;
  font-size: 0.9375rem;
  margin: 0;
}

/* Testimonials */
.testimonial-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  height: 100%;
}

.testimonial-quote {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.testimonial-role {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

/* CTA */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #ffffff;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.125rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}
/* Footer */
.site-footer {
  background: #0a0f1c;
  color: #a5b0c0;
}

.site-footer a {
  color: #a5b0c0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-heading {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.625rem;
}

.site-footer .footer-links a {
  font-size: 0.875rem;
}

/* Legal menu (footer-4): horizontal, smaller, no title */
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer .text-primary {
  color: #a5b4fc !important;
}

/* Forms */
.form-control {
  border-radius: 0.5rem;
  border-color: var(--border);
  padding: 0.625rem 0.875rem;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(59, 75, 216, 0.12);
}

.form-label {
  font-weight: 500;
  color: var(--ink);
}

/* Honeypot - hidden from humans */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Blog cards */
.blog-card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 15, 28, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  background: var(--surface);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(10, 15, 28, 0.08);
}

.blog-card .card-img-top {
  object-fit: cover;
  height: 200px;
}

/* Single post */
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.single-content h2,
.single-content h3 {
  margin-top: 2rem;
}

/* Page hero (subpage / pricing / contact / etc.) */
.page-hero {
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.page-hero .page-badge {
  display: inline-block;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero .page-subtitle {
  color: var(--body);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Cards (pricing, forms) */
.card {
  border-radius: 0.75rem;
}

.card.border-primary {
  border-color: var(--brand) !important;
}

/* Accordion */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.accordion-button {
  font-weight: 600;
  color: var(--ink);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(59, 75, 216, 0.05);
  color: var(--brand);
  box-shadow: none;
}

/* Alerts */
.alert {
  border-radius: 0.5rem;
}

/* Pagination */
.page-link {
  color: var(--brand);
  border-color: var(--border);
}

.page-link:hover {
  color: var(--brand-dark);
  background-color: var(--bg);
}

.page-item.active .page-link {
  background-color: var(--brand);
  border-color: var(--brand);
}

/* =========================================
   Pricing table
   ========================================= */
.pricing-table-wrap {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

/* Toggle */
.billing-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.billing-toggle-label {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--body);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.billing-toggle-label:hover {
  color: var(--ink);
}

#billing-monthly:checked ~ .billing-toggle .billing-toggle-monthly,
#billing-yearly:checked ~ .billing-toggle .billing-toggle-yearly {
  background: var(--brand);
  color: #ffffff;
}

/* Default: monthly visible */
.pricing-table .price-yearly,
.pricing-table .cta-yearly {
  display: none;
}

.pricing-table .price-saving {
  display: none;
}

#billing-monthly:checked ~ .table-responsive .pricing-table .price-monthly,
#billing-monthly:checked ~ .table-responsive .pricing-table .cta-monthly {
  display: inline-block;
}

#billing-yearly:checked ~ .table-responsive .pricing-table .price-monthly,
#billing-yearly:checked ~ .table-responsive .pricing-table .cta-monthly {
  display: none;
}

#billing-yearly:checked ~ .table-responsive .pricing-table .price-yearly {
  display: inline-block;
}

#billing-yearly:checked ~ .table-responsive .pricing-table .cta-yearly {
  display: inline-block;
}

#billing-yearly:checked ~ .table-responsive .pricing-table .price-saving {
  display: block;
}

/* Table */
.pricing-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-feature-col {
  text-align: left;
  width: 200px;
  color: var(--body);
  font-weight: 500;
  background: #fafafc;
}

.pricing-plan-col {
  text-align: center;
  min-width: 200px;
  border-left: 1px solid var(--border);
  vertical-align: top;
}

.plan-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.plan-price {
  margin: 0.5rem 0 1rem;
  min-height: 3.25rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
}

.price-period {
  color: var(--muted);
  font-size: 0.875rem;
}

.price-custom {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.price-saving {
  font-size: 0.75rem;
  color: var(--brand);
  margin-top: 0.25rem;
}

.pricing-cta {
  width: 100%;
}

/* Feature values */
.feature-yes {
  color: var(--brand);
  font-weight: 600;
}

.feature-no {
  color: var(--muted);
}

.feature-unlimited {
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.feature-number {
  font-weight: 600;
  color: var(--ink);
}

.feature-text {
  color: var(--body);
  text-transform: capitalize;
}

@media (max-width: 767.98px) {
  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem;
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .mockup-sidebar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }
  .mockup-float {
    left: 0.5rem;
  }
}
