/*
 Theme Name:   Artchive
 Theme URI:    https://artchive.co
 Description:  Custom child theme for Artchive - A digital archive for children's artwork
 Author:       Artchive
 Author URI:   https://artchive.co
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  artchive
*/

/* ==========================================================================
   Artchive Design System
   ========================================================================== */

:root {
  /*
   * Colors are defined in theme.json (single source of truth)
   * WordPress auto-generates: --wp--preset--color--{slug}
   * We map them to simpler variable names below
   */
  --artchive-coral: var(--wp--preset--color--coral, #EF6461);
  --artchive-coral-hover: color-mix(in srgb, var(--wp--preset--color--coral, #EF6461) 85%, black);
  --artchive-gold: var(--wp--preset--color--gold, #E4B363);
  --artchive-light-gray: var(--wp--preset--color--light-gray, #E8E9EB);
  --artchive-cream: var(--wp--preset--color--cream, #E0DFD5);
  --artchive-charcoal: var(--wp--preset--color--charcoal, #313638);
  --artchive-charcoal-light: color-mix(in srgb, var(--wp--preset--color--charcoal, #313638) 70%, white);
  --artchive-white: var(--wp--preset--color--white, #FFFFFF);

  /* Typography */
  --artchive-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --artchive-font-weight-regular: 400;
  --artchive-font-weight-bold: 700;
  --artchive-line-height: 1.6;

  /* Spacing */
  --artchive-spacing-xs: 8px;
  --artchive-spacing-sm: 16px;
  --artchive-spacing-md: 24px;
  --artchive-spacing-lg: 32px;
  --artchive-spacing-xl: 48px;
  --artchive-spacing-2xl: 80px;
  --artchive-spacing-3xl: 120px;

  /* Container */
  --artchive-container-max-width: 1200px;

  /* Shadows */
  --artchive-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --artchive-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --artchive-radius-sm: 4px;
  --artchive-radius-md: 8px;
  --artchive-radius-lg: 12px;

  /* Transitions */
  --artchive-transition: 0.2s ease-in-out;
}

/* ==========================================================================
   Full Width Landing Page Template
   ========================================================================== */

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}

/* Clean full-width layout for landing pages */
.artchive-landing-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Full width blocks - use 100% instead of 100vw to avoid scrollbar issues */
.artchive-landing-page .wp-block-group.alignfull,
.artchive-landing-page .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Ensure all direct children of landing page are full width */
.artchive-landing-page > .wp-block-group {
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
  font-family: var(--artchive-font-family);
  font-weight: var(--artchive-font-weight-regular);
  line-height: var(--artchive-line-height);
  color: var(--artchive-charcoal);
  background-color: var(--artchive-white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--artchive-font-weight-bold);
  color: var(--artchive-charcoal);
  line-height: 1.3;
}

a {
  color: var(--artchive-coral);
  text-decoration: none;
  transition: color var(--artchive-transition);
}

a:hover {
  color: var(--artchive-coral-hover);
}

/* ==========================================================================
   Container
   ========================================================================== */

.artchive-container {
  max-width: var(--artchive-container-max-width);
  margin: 0 auto;
  padding: 0 var(--artchive-spacing-md);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.artchive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--artchive-font-family);
  font-size: 16px;
  font-weight: var(--artchive-font-weight-bold);
  text-decoration: none;
  border: none;
  border-radius: var(--artchive-radius-md);
  cursor: pointer;
  transition: all var(--artchive-transition);
}

.artchive-btn-primary {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

.artchive-btn-primary:hover {
  background-color: var(--artchive-coral-hover);
  color: var(--artchive-white);
  transform: translateY(-2px);
  box-shadow: var(--artchive-shadow-card-hover);
}

.artchive-btn-secondary {
  background-color: transparent;
  color: var(--artchive-coral);
  border: 2px solid var(--artchive-coral);
}

.artchive-btn-secondary:hover {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

.artchive-btn-text {
  background: none;
  color: var(--artchive-charcoal);
  padding: 8px 0;
}

.artchive-btn-text:hover {
  color: var(--artchive-coral);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.artchive-card {
  background-color: var(--artchive-white);
  border-radius: var(--artchive-radius-lg);
  box-shadow: var(--artchive-shadow-card);
  padding: var(--artchive-spacing-lg);
  transition: all var(--artchive-transition);
}

.artchive-card:hover {
  box-shadow: var(--artchive-shadow-card-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.artchive-section {
  padding: var(--artchive-spacing-2xl) 0;
}

.artchive-section-light {
  background-color: var(--artchive-light-gray);
}

.artchive-section-cream {
  background-color: var(--artchive-cream);
}

.artchive-section-coral {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

.artchive-section-coral h1,
.artchive-section-coral h2,
.artchive-section-coral h3 {
  color: var(--artchive-white);
}

.artchive-section-title {
  text-align: center;
  margin-bottom: var(--artchive-spacing-xl);
}

.artchive-section-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--artchive-spacing-sm);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  background-color: var(--artchive-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--artchive-transition);
}

.site-header.scrolled {
  box-shadow: var(--artchive-shadow-card);
}

.main-navigation a {
  color: var(--artchive-charcoal);
  font-weight: 500;
}

.main-navigation a:hover {
  color: var(--artchive-coral);
}

/* Header button styling */
.menu-item-cta,
.menu-item-signin {
  margin-left: 10px;
}

.menu-item-cta a,
.menu-item-signin a {
  padding: 6px 20px !important;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.8 !important;
  transition: all 0.2s ease;
}

/* Primary CTA in header */
.menu-item-cta a {
  background-color: var(--artchive-coral);
  color: var(--artchive-white) !important;
}

.menu-item-cta a:hover {
  transform: translateY(-2px);
}

/* Sign In button in header (outline style) */
.menu-item-signin a {
  background-color: transparent;
  color: var(--artchive-coral) !important;
  border: 2px solid var(--artchive-coral);
}

.menu-item-signin a:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.artchive-hero {
  padding: var(--artchive-spacing-3xl) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.artchive-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--artchive-spacing-xl);
  align-items: center;
}

.artchive-hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-hero-subtitle {
  font-size: 1.25rem;
  color: var(--artchive-charcoal-light);
  margin-bottom: var(--artchive-spacing-lg);
}

.artchive-hero-cta {
  display: flex;
  gap: var(--artchive-spacing-md);
  flex-wrap: wrap;
}

/* Before/After Slider */
.artchive-before-after-slider {
  position: relative;
  border-radius: var(--artchive-radius-lg);
  overflow: hidden;
  box-shadow: var(--artchive-shadow-card);
  aspect-ratio: 4/3;
  background-color: var(--artchive-light-gray);
}

.artchive-before-after-slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artchive-after-image,
.artchive-before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.artchive-before-image {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.artchive-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.artchive-slider-line {
  flex: 1;
  width: 2px;
  background-color: var(--artchive-white);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.artchive-slider-button {
  width: 40px;
  height: 40px;
  background-color: var(--artchive-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--artchive-charcoal);
  flex-shrink: 0;
}

.artchive-slider-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.artchive-placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: var(--artchive-font-weight-bold);
  text-align: center;
  padding: var(--artchive-spacing-md);
}

.artchive-placeholder-before {
  background-color: var(--artchive-cream);
  color: var(--artchive-charcoal-light);
}

.artchive-placeholder-after {
  background-color: var(--artchive-light-gray);
  color: var(--artchive-charcoal);
}

/* ==========================================================================
   Video Wrapper
   ========================================================================== */

.hero-video-wrap,
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-video-wrap video,
.video-wrap video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-video-col {
  min-height: 220px;
}

@media (min-width: 769px) {
  .hero-video-col {
    min-height: 260px;
  }
}

@media (min-width: 1025px) {
  .hero-video-col {
    min-height: 340px;
  }
}

.hero-video-col .hero-video-wrap {
  height: 100%;
  min-height: inherit;
}

.hero-video-col .hero-video-wrap video {
  height: 100%;
  --fadeTop: 20px;
  --fadeBottom: 20px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) var(--fadeTop), rgba(0,0,0,1) calc(100% - var(--fadeBottom)), rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) var(--fadeTop), rgba(0,0,0,1) calc(100% - var(--fadeBottom)), rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.rounded-16 img {
  border-radius: 16px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.artchive-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--artchive-spacing-lg);
}

.artchive-feature-card {
  text-align: center;
  padding: var(--artchive-spacing-lg);
}

.artchive-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--artchive-spacing-md);
  color: var(--artchive-coral);
}

.artchive-feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-feature-card p {
  color: var(--artchive-charcoal-light);
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.artchive-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--artchive-spacing-lg);
  position: relative;
}

.artchive-step {
  text-align: center;
  position: relative;
}

.artchive-step-number {
  width: 48px;
  height: 48px;
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--artchive-font-weight-bold);
  font-size: 1.25rem;
  margin: 0 auto var(--artchive-spacing-md);
}

.artchive-step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-step p {
  color: var(--artchive-charcoal-light);
}

.artchive-step-icon {
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-step-icon svg {
  width: 80px;
  height: 80px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.artchive-faq {
  max-width: 800px;
  margin: 0 auto;
}

.artchive-faq-item {
  border-bottom: 1px solid var(--artchive-light-gray);
}

.artchive-faq-question {
  width: 100%;
  padding: var(--artchive-spacing-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: var(--artchive-font-weight-bold);
  color: var(--artchive-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.artchive-faq-question:hover {
  color: var(--artchive-coral);
}

.artchive-faq-answer {
  display: none;
  padding-bottom: var(--artchive-spacing-md);
  color: var(--artchive-charcoal-light);
}

.artchive-faq-item.active .artchive-faq-answer {
  display: block;
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.artchive-final-cta {
  text-align: center;
  padding: var(--artchive-spacing-3xl) var(--artchive-spacing-md);
}

.artchive-final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-final-cta p {
  font-size: 1.25rem;
  margin-bottom: var(--artchive-spacing-lg);
  opacity: 0.9;
}

/* Full-width sections */
.artchive-section-coral.artchive-final-cta,
.artchive-section-light,
.artchive-section-cream {
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Footer styling */
.site-footer {
  background-color: var(--artchive-charcoal);
  color: var(--artchive-white);
  padding: var(--artchive-spacing-2xl) 0 var(--artchive-spacing-lg);
  width: 100%;
  box-sizing: border-box;
}

.site-footer a {
  color: var(--artchive-light-gray);
  transition: color var(--artchive-transition);
}

.site-footer a:hover {
  color: var(--artchive-white);
}

.artchive-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--artchive-spacing-xl);
  margin-bottom: var(--artchive-spacing-xl);
}

.artchive-footer-brand {
  padding-right: var(--artchive-spacing-xl);
}

.artchive-footer-logo {
  font-size: 1.5rem;
  font-weight: var(--artchive-font-weight-bold);
  color: var(--artchive-white);
  display: inline-block;
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-footer-logo:hover {
  color: var(--artchive-coral);
}

.artchive-footer-tagline {
  color: var(--artchive-light-gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-footer-social {
  display: flex;
  gap: var(--artchive-spacing-sm);
}

.artchive-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color var(--artchive-transition), color var(--artchive-transition);
}

.artchive-footer-social a:hover {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

.artchive-footer-social svg {
  width: 20px;
  height: 20px;
}

.artchive-footer-column h4 {
  color: var(--artchive-white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.artchive-footer-column li {
  margin-bottom: var(--artchive-spacing-xs);
}

.artchive-footer-column li a {
  font-size: 0.9375rem;
}

.artchive-footer-bottom {
  text-align: center;
  padding-top: var(--artchive-spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--artchive-light-gray);
  font-size: 0.875rem;
}

.artchive-footer-bottom p {
  margin: 0;
}

/* ==========================================================================
   Pricing Page
   ========================================================================== */

.artchive-pricing-subtitle {
  font-size: 1.25rem;
  color: var(--artchive-charcoal-light);
  max-width: 600px;
  margin: 0 auto;
}

.artchive-free-tier {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.artchive-free-tier-icon {
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-free-tier h2 {
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-credit-explanation {
  display: flex;
  justify-content: center;
  gap: var(--artchive-spacing-xl);
  flex-wrap: wrap;
}

.artchive-credit-item {
  display: flex;
  align-items: center;
  gap: var(--artchive-spacing-md);
}

.artchive-credit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.artchive-credit-free {
  background-color: #10b981;
  color: var(--artchive-white);
}

.artchive-credit-paid {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
  font-weight: var(--artchive-font-weight-bold);
  font-size: 1.25rem;
}

.artchive-credit-text h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.artchive-credit-text p {
  color: var(--artchive-charcoal-light);
  margin: 0;
}

.artchive-pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--artchive-spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.artchive-pricing-card {
  text-align: center;
  position: relative;
  padding: var(--artchive-spacing-xl) var(--artchive-spacing-lg);
}

.artchive-pricing-featured {
  border: 2px solid var(--artchive-coral);
  transform: scale(1.05);
}

.artchive-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: var(--artchive-font-weight-bold);
}

.artchive-pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-pricing-amount {
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-price {
  font-size: 2.5rem;
  font-weight: var(--artchive-font-weight-bold);
  color: var(--artchive-charcoal);
}

.artchive-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--artchive-spacing-lg) 0;
  text-align: left;
}

.artchive-pricing-features li {
  padding: var(--artchive-spacing-xs) 0;
  border-bottom: 1px solid var(--artchive-light-gray);
  color: var(--artchive-charcoal-light);
}

.artchive-pricing-features li:last-child {
  border-bottom: none;
}

.artchive-all-features {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.artchive-all-features h2 {
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-all-features > p {
  color: var(--artchive-charcoal-light);
  margin-bottom: var(--artchive-spacing-lg);
}

.artchive-features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--artchive-spacing-sm);
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.artchive-features-list li {
  display: flex;
  align-items: center;
  gap: var(--artchive-spacing-xs);
}

.artchive-features-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: var(--artchive-coral);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6L5 9L10 3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 992px) {
  .artchive-pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .artchive-pricing-featured {
    transform: none;
  }

  .artchive-features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .artchive-credit-explanation {
    flex-direction: column;
    align-items: center;
  }

  .artchive-features-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.artchive-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.artchive-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .artchive-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-video-wrap video {
    display: none;
  }
}

/* ==========================================================================
   WPForms Styling
   ========================================================================== */

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--artchive-light-gray);
  border-radius: var(--artchive-radius-md);
  font-family: var(--artchive-font-family);
  font-size: 1rem;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--artchive-coral);
  box-shadow: 0 0 0 3px rgba(239, 100, 97, 0.1);
  outline: none;
}

.wpforms-container .wpforms-submit {
  background-color: var(--artchive-coral) !important;
  color: var(--artchive-white) !important;
  padding: 12px 24px !important;
  border-radius: var(--artchive-radius-md) !important;
  font-weight: var(--artchive-font-weight-bold) !important;
  border: none !important;
  cursor: pointer;
  transition: all var(--artchive-transition) !important;
}

.wpforms-container .wpforms-submit:hover {
  background-color: var(--artchive-coral-hover) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Gutenberg Block Enhancements
   ========================================================================== */

/* Full-width alignments */
.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Remove margins between full-width sections */
.wp-block-group.alignfull {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wp-block-group.alignfull + .wp-block-group.alignfull {
  margin-top: 0 !important;
}

.alignwide {
  max-width: var(--artchive-container-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Group block backgrounds */
.wp-block-group.has-background {
  padding: var(--artchive-spacing-2xl) var(--artchive-spacing-md);
}

/* Cover block styling */
.wp-block-cover {
  min-height: 400px;
}

/* Buttons block */
.wp-block-buttons {
  gap: var(--artchive-spacing-md);
}

.wp-block-button__link {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
  border-radius: var(--artchive-radius-md);
  padding: 12px 24px;
  font-weight: var(--artchive-font-weight-bold);
  transition: transform var(--artchive-transition);
}

.wp-block-button__link:hover {
  color: var(--artchive-white);
  transform: translateY(-2px);
}

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--artchive-coral) !important;
  color: var(--artchive-coral) !important;
  transition: transform var(--artchive-transition);
}

.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: transparent !important;
  color: var(--artchive-coral) !important;
  transform: translateY(-2px);
}

/* GenerateBlocks Buttons - Primary Style */
a.gb-text[class*="gb-text-"] {
  background-color: #EF6461 !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  transition: transform 0.2s ease;
  text-decoration: none !important;
  display: inline-block;
  border: none !important;
  /* margin-right:12px;
  margin-bottom:12px; */
}

a.gb-text[class*="gb-text-"]:hover {
  color: #FFFFFF !important;
  transform: translateY(-2px);
  background-color: #EF6461 !important;
}

/* GenerateBlocks Outline Button - add class "outline" in Additional CSS Classes */
a.gb-text[class*="gb-text-"].outline {
  background-color: transparent !important;
  border: 2px solid #EF6461 !important;
  color: #EF6461 !important;
}

a.gb-text[class*="gb-text-"].outline:hover {
  background-color: transparent !important;
  color: #EF6461 !important;
  transform: translateY(-2px);
}

/* Columns block */
.wp-block-columns {
  gap: var(--artchive-spacing-lg);
}

/* Headings */
.wp-block-heading {
  color: var(--artchive-charcoal);
}

/* Separator */
.wp-block-separator {
  border-color: var(--artchive-light-gray);
}

/* Custom CSS classes for Gutenberg */
.artchive-text-center {
  text-align: center;
}

.artchive-bg-light {
  background-color: var(--artchive-light-gray);
}

.artchive-bg-cream {
  background-color: var(--artchive-cream);
}

.artchive-bg-coral {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

.artchive-bg-coral h1,
.artchive-bg-coral h2,
.artchive-bg-coral h3,
.artchive-bg-coral p {
  color: var(--artchive-white);
}

.artchive-section-padding {
  padding: var(--artchive-spacing-2xl) var(--artchive-spacing-md);
}

.artchive-max-width-sm {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.artchive-max-width-md {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
  .artchive-hero h1 {
    font-size: 2.5rem;
  }

  .artchive-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .artchive-hero-cta {
    justify-content: center;
  }

  .artchive-features-grid {
    grid-template-columns: 1fr;
  }

  .artchive-steps {
    grid-template-columns: 1fr;
  }

  .artchive-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .artchive-footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: var(--artchive-spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --artchive-spacing-2xl: 60px;
    --artchive-spacing-3xl: 80px;
  }

  /* Reduce section padding on mobile */
  .wp-block-group.alignfull {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
  }

  /* Transparent hamburger menu background */
  .menu-toggle,
  .menu-toggle:hover,
  .menu-toggle:focus {
    background-color: transparent !important;
  }

  /* Responsive video */
  .hero-video-wrap,
  .hero-video-wrap video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .artchive-hero h1 {
    font-size: 2rem;
  }

  .artchive-section-title h2 {
    font-size: 2rem;
  }

  .artchive-final-cta h2 {
    font-size: 2rem;
  }

  .artchive-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .artchive-footer-social {
    justify-content: center;
  }

  .artchive-footer-column ul {
    margin-bottom: var(--artchive-spacing-md);
  }

  /* Mobile menu - tighten regular items */
  .main-navigation .menu > li > a,
  .main-navigation .main-nav ul li a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.8 !important;
  }

  .main-navigation .menu > li,
  .main-navigation .main-nav ul li {
    margin-bottom: 0 !important;
  }

  /* Mobile menu buttons - add more spacing */
  .menu-item-cta,
  .menu-item-signin {
    margin: 20px 16px !important;
    text-align: center;
  }

  .menu-item-cta a,
  .menu-item-signin a {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 24px !important;
  }
}

@media (max-width: 480px) {
  .artchive-btn {
    width: 100%;
  }

  .artchive-hero-cta {
    flex-direction: column;
  }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.artchive-404 {
  text-align: center;
  padding: var(--artchive-spacing-3xl) var(--artchive-spacing-md);
  max-width: 600px;
  margin: 0 auto;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.artchive-404 h1 {
  font-size: 2rem;
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-404 p {
  color: var(--artchive-charcoal-light);
  font-size: 1.125rem;
  margin-bottom: var(--artchive-spacing-lg);
}

.error404 .site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}

/* ==========================================================================
   Blog Styles
   ========================================================================== */

/* Hide comments across all blog pages */
.artchive-blog-listing .comments-link,
.artchive-blog-listing .comment-form,
.artchive-blog-listing #comments,
.artchive-single-post .comments-link,
.artchive-single-post .comment-form,
.artchive-single-post #comments {
  display: none;
}

/* --- Blog Listing --- */

.artchive-blog-listing .site-content {
  max-width: var(--artchive-container-max-width);
  margin: 0 auto;
  padding: var(--artchive-spacing-xl) var(--artchive-spacing-md);
}

.artchive-blog-listing .site-footer,
.artchive-single-post .site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  max-width: none;
}

.artchive-blog-listing .post {
  background-color: var(--artchive-white);
  border-radius: var(--artchive-radius-lg);
  box-shadow: var(--artchive-shadow-card);
  overflow: hidden;
  margin-bottom: var(--artchive-spacing-lg);
  transition: box-shadow var(--artchive-transition);
}

.artchive-blog-listing .post:hover {
  box-shadow: var(--artchive-shadow-card-hover);
}

.artchive-blog-listing .inside-article {
  padding: var(--artchive-spacing-lg);
}

.artchive-blog-listing .post-image {
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-blog-listing .post-image img {
  border-radius: var(--artchive-radius-md);
  width: 100%;
  height: auto;
}

.artchive-blog-listing .entry-title {
  font-size: 1.5rem;
  margin-bottom: var(--artchive-spacing-xs);
}

.artchive-blog-listing .entry-title a {
  color: var(--artchive-charcoal);
}

.artchive-blog-listing .entry-title a:hover {
  color: var(--artchive-coral);
}

.artchive-blog-listing .entry-meta {
  font-size: 0.875rem;
  color: var(--artchive-charcoal-light);
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-blog-listing .cat-links a {
  display: inline-block;
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: var(--artchive-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.artchive-blog-listing .cat-links a:hover {
  background-color: var(--artchive-coral-hover);
  color: var(--artchive-white);
}

/* Pagination */
.artchive-blog-listing .nav-links {
  display: flex;
  justify-content: center;
  gap: var(--artchive-spacing-xs);
  margin-top: var(--artchive-spacing-xl);
}

.artchive-blog-listing .nav-links a,
.artchive-blog-listing .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--artchive-radius-md);
  font-weight: var(--artchive-font-weight-bold);
  font-size: 0.875rem;
}

.artchive-blog-listing .nav-links a {
  background-color: var(--artchive-light-gray);
  color: var(--artchive-charcoal);
}

.artchive-blog-listing .nav-links a:hover {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

.artchive-blog-listing .nav-links .current {
  background-color: var(--artchive-coral);
  color: var(--artchive-white);
}

/* --- Single Post --- */

.artchive-single-post .site-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--artchive-spacing-xl) var(--artchive-spacing-md);
}

.artchive-single-post .entry-header {
  text-align: center;
  margin-bottom: var(--artchive-spacing-lg);
}

.artchive-single-post .entry-title {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-single-post .entry-meta {
  font-size: 0.875rem;
  color: var(--artchive-charcoal-light);
}

.artchive-single-post .entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.artchive-single-post .entry-content h2 {
  font-size: 1.625rem;
  margin-top: var(--artchive-spacing-xl);
  margin-bottom: var(--artchive-spacing-sm);
}

.artchive-single-post .entry-content h3 {
  font-size: 1.25rem;
  margin-top: var(--artchive-spacing-lg);
  margin-bottom: var(--artchive-spacing-xs);
}

.artchive-single-post .entry-content blockquote {
  border-left: 4px solid var(--artchive-coral);
  padding: var(--artchive-spacing-sm) var(--artchive-spacing-md);
  margin: var(--artchive-spacing-lg) 0;
  background-color: var(--artchive-light-gray);
  border-radius: 0 var(--artchive-radius-md) var(--artchive-radius-md) 0;
  font-style: italic;
}

.artchive-single-post .entry-content blockquote p {
  margin: 0;
}

.artchive-single-post .entry-content img {
  border-radius: var(--artchive-radius-md);
}

.artchive-single-post .entry-content ul,
.artchive-single-post .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: var(--artchive-spacing-md);
}

.artchive-single-post .entry-content li {
  margin-bottom: var(--artchive-spacing-xs);
}

/* Reading time badge */
.artchive-reading-time {
  display: inline-block;
  background-color: var(--artchive-light-gray);
  color: var(--artchive-charcoal-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: var(--artchive-spacing-xs);
}

/* Post navigation */
.artchive-single-post .post-navigation {
  margin-top: var(--artchive-spacing-xl);
  padding-top: var(--artchive-spacing-lg);
  border-top: 1px solid var(--artchive-light-gray);
}

.artchive-single-post .nav-previous a,
.artchive-single-post .nav-next a {
  color: var(--artchive-coral);
  font-weight: var(--artchive-font-weight-bold);
}

/* --- Blog CTA Banner --- */

.artchive-blog-cta {
  background-color: var(--artchive-cream);
  border-radius: var(--artchive-radius-lg);
  padding: var(--artchive-spacing-xl);
  text-align: center;
  margin-top: var(--artchive-spacing-xl);
}

.artchive-blog-cta h3 {
  font-size: 1.5rem;
  margin-bottom: var(--artchive-spacing-xs);
}

.artchive-blog-cta p {
  color: var(--artchive-charcoal-light);
  margin-bottom: var(--artchive-spacing-md);
  font-size: 1.0625rem;
}

.artchive-blog-cta .artchive-btn {
  font-size: 1rem;
}

/* --- Blog Responsive --- */

@media (max-width: 768px) {
  .artchive-single-post .entry-title {
    font-size: 1.75rem;
  }

  .artchive-single-post .entry-content {
    font-size: 1rem;
  }

  .artchive-blog-cta {
    padding: var(--artchive-spacing-lg) var(--artchive-spacing-md);
  }

  .artchive-blog-cta h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .artchive-blog-listing .entry-title {
    font-size: 1.25rem;
  }

  .artchive-blog-listing .inside-article {
    padding: var(--artchive-spacing-md);
  }

  .artchive-single-post .entry-title {
    font-size: 1.5rem;
  }
}
