/*
Theme Name: NEORIVA
Theme URI: https://neoriva.com
Author: NEORIVA Development Team
Description: A minimalist, one-page theme for NEORIVA.
Version: 1.0.5
Text Domain: neoriva
*/

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #2b2b2b;
  --color-text-sub: #6f6f6f;
  --color-accent: #2e5bff;

  /* Typography */
  --font-base: "Noto Sans JP", sans-serif;

  /* Spacing */
  --spacing-container: clamp(20px, 5vw, 60px);
  --spacing-section: clamp(80px, 10vw, 160px);
  --header-height: 80px;

  /* Grid */
  --container-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.8;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  padding-top: var(
    --header-height
  ); /* Prevent content hiding behind fixed header */
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

p {
  margin: 0 0 1.5rem 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(5px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

/* Navigation - Adjusted for Tablet */
.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Header Contact Button (PC) */
.header-contact-btn {
  display: none;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e4ed8 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(46, 91, 255, 0.3);
  margin-left: 20px;
  align-items: center; /* Align icon and text */
}

@media (min-width: 1024px) {
  .header-contact-btn {
    display: inline-flex; /* Use flex to align icon */
  }
}

.header-contact-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 30px;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: headerShine 3s infinite;
}

@keyframes headerShine {
  0% {
    left: -100%;
  }
  20%,
  100% {
    left: 150%;
  }
}

.header-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 91, 255, 0.4);
  opacity: 1;
}

.header-contact-btn .btn-text {
  position: relative;
  z-index: 1;
}

/* Mobile Header Contact Button */
.mobile-header-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-text);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-right: 15px; /* Space between contact btn and burger menu */
  margin-left: auto; /* Push to right */
  transition: all 0.3s ease;
}

.mobile-header-contact:hover {
  background-color: #000;
  opacity: 1;
}

@media (min-width: 1024px) {
  .mobile-header-contact {
    display: none;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
  padding: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}
.mobile-menu-toggle span:nth-child(2) {
  top: 11px;
}
.mobile-menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* Active state for toggle is now handled by close button inside overlay, 
   but keeping this for consistency if needed */
.mobile-menu-toggle.active span {
  background-color: transparent;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 2000; /* Higher than header */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close Button in Overlay */
.mobile-menu-close {
  position: absolute;
  top: 25px; /* Adjust to match header vertical alignment */
  right: 20px; /* Fixed right position */
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  z-index: 2001;
  padding: 0;
}

.mobile-menu-close span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  top: 50%;
  left: 0;
}

.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav ul {
  text-align: center;
  list-style: none !important; /* Force remove list style */
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 2rem;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-text);
  color: #fff;
  transform: translateY(-5px);
  opacity: 1;
}

/* Utilities */
.text-center {
  text-align: center;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.bg-alt {
  background-color: var(--color-bg-alt);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}

/* Section Base */
.section {
  padding: var(--spacing-section) 0;
}

/* Compact sections for laptop screens and up */
@media (min-width: 1024px) {
  /* Global Layout Adjustments for "Fit to Screen" feel */
  :root {
    --spacing-section: 40px; /* Reduced section spacing further */
  }

  .section {
    padding: 40px 0; /* Consistent compact padding */
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  /* Hero Section Compact */
  .hero-section {
    min-height: 500px; /* Further reduced min-height */
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* About Section Compact */
  .lead-text {
    font-size: 1.1rem;
    margin-bottom: 2rem !important;
  }

  .about-content p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }

  .about-values-container {
    margin-top: 50px;
  }

  .values-grid {
    gap: 25px;
  }

  .value-item {
    padding: 25px;
  }

  .value-num {
    font-size: 2.5rem;
    margin-bottom: 5px;
  }

  /* Service Section Compact */
  .service-grid {
    gap: 25px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-icon-wrapper {
    margin-bottom: 0.8rem;
  }

  .service-icon-image {
    width: 80px;
    height: 80px;
  }

  .service-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .service-desc {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Works Section Compact */
  .works-grid {
    gap: 15px;
  }

  .work-info {
    padding: 12px;
  }

  .work-title {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .work-meta {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
  }

  /* Testimonials Compact */
  .testimonials-grid {
    gap: 25px;
  }

  .testimonial-card {
    padding: 20px;
    gap: 15px;
  }

  .testimonial-comment {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .author-name {
    font-size: 0.9rem;
  }

  .author-company {
    font-size: 0.8rem;
  }

  /* Flow Compact */
  .flow-item {
    margin-bottom: 25px;
    padding-left: 35px;
  }

  .flow-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .flow-desc {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Contact Compact */
  .contact-form-wrapper {
    padding: 30px 25px;
    max-width: 650px;
  }

  .wpcf7-form {
    gap: 1.2rem;
  }

  .wpcf7-form label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .wpcf7-form textarea {
    min-height: 120px;
  }

  .wpcf7-form input[type="submit"] {
    padding: 12px 40px;
    font-size: 0.95rem;
  }

  /* Footer Compact */
  .site-footer {
    padding: 25px 0;
    font-size: 0.75rem;
  }

  /* PRICING COMPACTED: Aggressively reduced for laptop screens */
  .campaign-intro {
    padding: 20px 30px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .campaign-intro h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .campaign-intro p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  .pricing-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 2rem;
    max-width: 980px; /* Slightly wider than 900px to prevent text wrap issues */
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .pricing-card {
    padding: 20px 15px; /* Tighter padding */
    height: 100%;
    padding-bottom: 20px;
  }

  .pricing-card.recommended {
    transform: scale(1.02);
    z-index: 10;
  }

  .pricing-card.recommended:hover {
    transform: scale(1.02) translateY(-5px);
  }

  .plan-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .plan-description {
    font-size: 0.85rem;
  }

  .pricing-price {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .old-price {
    font-size: 0.85rem;
  }

  .campaign-price {
    font-size: 2rem;
  }

  .price-unit {
    font-size: 0.9rem;
  }

  .campaign-bonus {
    padding: 10px;
    margin-bottom: 10px;
  }

  .campaign-bonus-title {
    font-size: 0.85rem;
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  .campaign-bonus li {
    font-size: 0.8rem;
    margin-bottom: 3px;
    padding-left: 15px;
    line-height: 1.4;
  }

  .pricing-includes-prev {
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
  }

  .pricing-features {
    margin-bottom: 1rem;
  }

  .features-title {
    font-size: 0.8rem;
    margin-bottom: 4px;
    padding-bottom: 3px;
  }

  .pricing-features li {
    padding: 4px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    padding-left: 18px;
  }

  .pricing-features li:before {
    font-size: 0.85rem;
  }

  .btn-pricing {
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  .pricing-note {
    font-size: 0.8rem;
  }

  .recommended-badge {
    font-size: 0.8rem;
    padding: 5px 18px;
    top: -10px;
  }

  .campaign-badge {
    font-size: 0.7rem;
    padding: 3px 30px;
    top: 15px;
    right: -25px;
  }

  /* Compact FAQ for Laptop */
  .pricing-faq {
    margin-top: 60px;
  }

  .faq-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .faq-question {
    font-size: 1rem;
    margin-bottom: 10px;
    gap: 10px;
  }

  .faq-question::before {
    font-size: 1.2rem;
  }

  .faq-answer {
    font-size: 0.9rem;
    padding-left: 30px;
  }

  .faq-answer::before {
    margin-right: 8px;
    margin-left: -20px;
  }

  /* Compact Service Card */
  .service-card {
    padding: 25px 20px;
  }

  .service-icon {
    font-size: 3rem;
  }

  .service-icon-wrapper {
    margin-bottom: 1rem;
  }

  .service-name {
    font-size: 1.1rem;
  }

  .service-desc {
    font-size: 0.9rem;
  }

  /* Compact Works Card */
  .works-grid {
    gap: 20px;
  }

  .work-info {
    padding: 15px;
  }

  .work-title {
    font-size: 1rem;
  }

  /* Compact Testimonials */
  .testimonial-card {
    padding: 25px;
    gap: 15px;
  }

  .testimonial-comment {
    font-size: 0.95rem;
  }

  /* Compact Flow */
  .flow-item {
    margin-bottom: 30px;
    padding-left: 40px;
  }

  .flow-name {
    font-size: 1.1rem;
  }

  .flow-desc {
    font-size: 0.9rem;
  }

  /* Hero adjustments for PC to fix bottom spacing */
  .hero-section {
    min-height: 600px; /* Reduced min-height */
    padding-bottom: 120px;
  }

  .hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-scroll-indicator {
    bottom: 20px;
  }

  .hero-scroll-indicator .line {
    height: 40px;
  }

  .hero-scroll-indicator span {
    font-size: 0.65rem;
  }

  /* Adjust Font Sizes for Readability on compact screens */
  .nav-list a {
    font-size: 0.85rem;
  }
  .header-contact-btn {
    font-size: 0.85rem;
    padding: 10px 24px;
  }
  .about-content p {
    font-size: 0.95rem;
  }
  .lead-text {
    font-size: 1.2rem;
  }
  .value-item h3 {
    font-size: 1rem;
  }
  .value-item p {
    font-size: 0.85rem;
  }

  .blog-title {
    font-size: 0.95rem;
  }
  .blog-meta {
    font-size: 0.75rem;
  }

  .site-footer {
    font-size: 0.8rem;
  }
  .copyright {
    font-size: 0.8rem;
  }

  /* Compact Contact Form */
  .wpcf7-form label {
    font-size: 0.9rem;
  }
  .wpcf7-form input,
  .wpcf7-form textarea {
    font-size: 0.9rem;
  }
  .wpcf7-form input[type="submit"] {
    font-size: 0.95rem;
    padding: 15px 50px;
  }
  .wpcf7-not-valid-tip {
    font-size: 0.75rem;
  }
  .wpcf7-validation-errors,
  .wpcf7-mail-sent-ok {
    padding: 1rem;
    font-size: 0.85rem;
  }
  .wpcf7-form .wpcf7-form-control.wpcf7-validates-as-required {
    border-left-width: 2px;
  }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(40px, 5vw, 80px);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

/* CTA Button */
.btn-cta {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, opacity 0.3s ease, background-color 0.3s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  /* Clean gradient background */
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  position: relative;
  padding-top: 60px;
  overflow: hidden;
}

/* Hero Abstract Shapes */
.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(46, 91, 255, 0.05) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: 0;
}

.hero-section::after {
  /* Subtle pattern overlay */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232E5BFF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--color-text-sub);
  margin-bottom: 3rem;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  writing-mode: vertical-rl;
}

.hero-scroll-indicator .line {
  width: 1px;
  height: 60px;
  background-color: var(--color-text-sub);
  animation: scrollLine 2s infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Hide scroll indicator on mobile, but now requested to show it adjusted */
@media (max-width: 1024px) {
  .hero-section {
    padding-bottom: 160px; /* Increased space for scroll indicator */
  }

  .hero-scroll-indicator {
    display: flex; /* Show on mobile */
    bottom: 20px; /* Lower position */
    transform: translateX(-50%) scale(0.7); /* Slightly smaller to fit better */
  }
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.lead-text {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 3rem !important;
  color: var(--color-accent);
}

.about-content p {
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 2.2;
}

/* About Values */
.about-values-container {
  margin-top: 80px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.value-item {
  background: #fff;
  padding: 40px;
  border: 1px solid #eee;
  position: relative;
}

.value-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  margin-bottom: 10px;
}

.value-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.value-item p {
  font-size: 1rem;
  color: var(--color-text-sub);
  margin: 0;
}

/* Service Section */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px 30px;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(46, 91, 255, 0.08);
}

.service-icon-wrapper {
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 4rem;
  line-height: 1;
  display: inline-block;
}

.service-icon-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: inline-block;
}

.service-content {
  flex-grow: 1;
}

.service-name {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-desc {
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  padding: 0 10px;
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.work-card {
  position: relative;
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Ensure image stays within radius */
  display: flex;
  flex-direction: column;
  text-decoration: none; /* Remove underline from anchor */
  color: inherit; /* Inherit text color */
  cursor: pointer; /* Show pointer cursor */
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.work-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f0f0f0;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-image {
  transform: scale(1.05);
}

.work-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-meta {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin-bottom: 0.5rem;
}

.work-title {
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background: var(--color-bg);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(46, 91, 255, 0.08);
}

.testimonial-content {
  flex-grow: 1;
}

.testimonial-comment {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  position: relative;
}

.testimonial-author {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.author-company {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin: 0;
}

/* Pricing Section */
.pricing-section {
  padding-bottom: 100px;
}

.campaign-intro {
  background-color: #ffffff;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: clamp(30px, 5vw, 50px);
  margin-bottom: 60px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(46, 91, 255, 0.05);
}

.campaign-intro h3 {
  color: var(--color-accent);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.campaign-intro p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(320px, 1fr)
  ); /* Slightly wider min-width */
  gap: 30px;
  margin-bottom: 3rem;
  align-items: stretch; /* Force equal height */
}

.pricing-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  overflow: hidden;
  height: auto;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(46, 91, 255, 0.15);
}

.pricing-card.recommended {
  border: 3px solid var(--color-accent);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 15px 40px rgba(46, 91, 255, 0.15);
}

.pricing-card.recommended:hover {
  transform: scale(1.05) translateY(-5px);
}

.campaign-badge {
  position: absolute;
  top: 25px;
  right: -35px;
  background: #ff4757;
  color: #fff;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 2;
  letter-spacing: 0.05em;
}

.recommended-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(46, 91, 255, 0.3);
  z-index: 3;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.plan-description {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  margin: 0;
}

.pricing-price {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.old-price {
  display: block;
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.campaign-price-wrapper {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  color: #ff4757;
}

.campaign-price {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.price-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f9f9f9;
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Includes Previous Plan Box */
.pricing-includes-prev {
  background-color: #f0f7ff;
  border: 1px solid #cce5ff;
  color: #004085;
  padding: 12px 15px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-includes-prev .check-icon {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 900;
}

.features-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-sub);
  margin-bottom: 8px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
  display: inline-block;
}

/* Campaign Bonus Box */
.campaign-bonus {
  background-color: #fff5f5;
  border: 2px dashed #ff4757;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: left;
}

.campaign-bonus.highlight {
  background-color: #fff0f0;
  border-width: 2px;
  border-style: solid;
}

.campaign-bonus-title {
  color: #ff4757;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  display: block;
  text-align: center;
  border-bottom: 1px dashed rgba(255, 71, 87, 0.3);
  padding-bottom: 8px;
}

.campaign-bonus ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.campaign-bonus li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.campaign-bonus li:last-child {
  margin-bottom: 0;
}

.campaign-bonus li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #ff4757;
}

.pricing-cta {
  text-align: center;
}

.btn-pricing {
  display: block;
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  padding: 16px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(46, 91, 255, 0.2);
}

.pricing-card.recommended .btn-pricing {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e4ed8 100%);
}

.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 91, 255, 0.3);
  opacity: 1;
  color: #fff;
}

.pricing-note {
  text-align: center;
  color: var(--color-text-sub);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* FAQ Section */
.pricing-faq {
  margin-top: 100px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.faq-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 15px auto 0;
}

.faq-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 30px;
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  line-height: 1.5;
}

.faq-question::before {
  content: "Q.";
  color: var(--color-accent);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
}

.faq-answer {
  font-size: 1.05rem;
  color: var(--color-text-sub);
  padding-left: 38px;
  line-height: 2;
}

.faq-answer::before {
  content: "A.";
  display: inline-block;
  color: #ff4757;
  font-weight: 700;
  margin-right: 10px;
  margin-left: -25px; /* Pull back to align */
}

/* Responsive for Pricing */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.recommended {
    transform: none;
    border-width: 2px;
  }

  .pricing-card.recommended:hover {
    transform: translateY(-5px);
  }

  .faq-question {
    font-size: 1.1rem;
  }
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--color-bg);
  padding: 30px;
  transition: box-shadow 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.blog-title {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}

/* Flow Section */
.flow-list {
  max-width: 800px;
  margin: 0 auto;
  border-left: 1px solid #ddd;
  padding-left: 0; /* Reset for better alignment controlling */
  position: relative;
}

.flow-item {
  margin-bottom: 50px;
  position: relative;
  padding-left: 50px; /* Space for step number */
}

.flow-item::before {
  content: "";
  position: absolute;
  left: -5px; /* Adjust to center on line */
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--color-accent);
  outline: 5px solid #fff;
}

.flow-item:last-child {
  margin-bottom: 0;
}

.flow-step {
  display: block;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.flow-name {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.flow-desc {
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* Textured Background (Grain) */
.bg-texture::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Image Classes */
.bg-image-contact {
  /* Rich Gradient Background instead of image */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

/* Overlay for contact background to ensure text readability */
.bg-image-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.8)
  );
  pointer-events: none;
}

/* Card Hover Accents */
.service-card:hover,
.work-card:hover,
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(46, 91, 255, 0.08);
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.service-card:hover::after {
  width: 100%;
}

/* Section Title Accent */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 15px auto 0;
  transition: width 0.3s ease;
}
.section-header:hover .section-title::after {
  width: 60px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--color-text-sub);
  border-top: 1px solid #eee;
}

.copyright {
  margin: 0;
}

/* Works Placeholder if image missing */
.work-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  position: relative;
}
.work-image-placeholder::after {
  content: "NO IMAGE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* Contact Form 7 Styling - Enhanced Premium Design */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 50px 40px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  position: relative; /* Ensure it's above background overlay */
  z-index: 1;
}

.wpcf7 {
  margin-top: 0;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wpcf7-form p {
  margin: 0;
  width: 100%;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  position: relative;
}

/* Input Fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-base);
  background-color: #fafafa;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form input[type="tel"]:hover,
.wpcf7-form input[type="url"]:hover,
.wpcf7-form textarea:hover {
  border-color: #d0d0d0;
  background-color: #fff;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.08);
  transform: translateY(-1px);
}

.wpcf7-form textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

/* Placeholder Styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
  display: block;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e4ed8 100%);
  color: #ffffff;
  padding: 18px 60px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(46, 91, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.wpcf7-form input[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 91, 255, 0.35);
}

.wpcf7-form input[type="submit"]:hover::before {
  left: 100%;
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(-1px);
}

/* Validation Messages */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
  font-weight: 500;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  border: 2px solid #dc3545;
  background-color: #fff5f5;
  color: #dc3545;
  padding: 1.25rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.wpcf7-mail-sent-ok {
  border: 2px solid #28a745;
  background-color: #f0fdf4;
  color: #28a745;
  padding: 1.25rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-weight: 500;
  text-align: center;
}

/* Loading Spinner */
.wpcf7-spinner {
  margin-left: 10px;
  vertical-align: middle;
}

/* Form Submission State */
.wpcf7-form.submitting input[type="submit"] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Required Field Indicator */
.wpcf7-form .wpcf7-form-control.wpcf7-validates-as-required {
  border-left: 3px solid var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 40px 25px;
    border-radius: 8px;
  }

  .wpcf7-form {
    gap: 1.5rem;
  }

  .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 18px 40px;
  }

  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="email"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="url"],
  .wpcf7-form textarea {
    padding: 14px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Animation for form appearance */
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form-wrapper {
  animation: formFadeIn 0.6s ease-out;
}
