/* JIJIMINGO HERO v2.5 — Detailed Design Refinements */
@import url('https://fonts.googleapis.com/css2?family=Hahmlet:wght@700&family=Noto+Sans+KR:wght@400;500;600&family=Parisienne&display=swap') layer(jmHero);

@layer jmHero {
  /* ===== Global Tokens ===== */
  :root {
    --brand-deep: #052C33;
    --brand-mid: #0C3D44;
    --brand-dark: #041E23;
    --hero-ink: #FFFFFF;
    --ink-muted: rgba(255, 255, 255, .92);
    --ink-light: #111827;
    --ink-neutral: #4b5563;
    --cta: #39a46c;
    --cta-ink: #fff;
    --cta-hover: #2f8d5c;
    --bg-light: #f9fafb;
    --border-light: #e5e7eb;
    --font-serif: 'Hahmlet', serif;
    --font-sans: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --font-script: 'Parisienne', cursive;
  }

  /* ===== Tokens ===== */
  #hero-jijimingo-section {
    position: relative; z-index: 1; width: 100%;
  }

  /* ===== Global Button Style ===== */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    text-decoration: none !important;
    background: var(--cta) !important;
    color: var(--cta-ink) !important;
    border-color: var(--cta) !important;
    box-shadow: 0 8px 24px rgba(27,94,60,.28);
    transform: translateY(0);
    transition: transform .28s cubic-bezier(.19,1,.22,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
  }
  .btn-primary:hover {
    background: var(--cta-hover) !important;
    border-color: var(--cta-hover) !important;
    color: var(--cta-ink) !important;
    transform: translateY(-2px);
  }
  .btn-primary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cta) 80%, white);
    outline-offset: 2px;
  }


  /* ===== Global Hover ===== */
  #hero-jijimingo-section .intro__card:hover,
  #hero-jijimingo-section details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
  }

  /* full-bleed helper */
  #hero-jijimingo-section .hero-fullbleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

  /* a11y */
  #hero-jijimingo-section .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
  #hero-jijimingo-section .skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: #000; color: #fff; padding: .5rem .75rem; border-radius: .5rem; z-index: 9999; }

  /* links in this section */
  #hero-jijimingo-section a { text-decoration: none !important; }
  #hero-jijimingo-section a:hover { text-decoration: none !important; }
  #hero-jijimingo-section a:focus-visible { outline: 3px solid color-mix(in srgb, var(--cta) 80%, white); outline-offset: 2px; border-radius: .25rem; }

  /* ===== HERO (Largely Unchanged) ===== */
  #hero-jijimingo-section #hero-jijimingo { position: relative; min-height: 86vh; height: 100vh; display: grid; place-items: center; color: var(--hero-ink); text-align: center; overflow: hidden; font-family: var(--font-sans); }
  @media (max-width: 640px) { #hero-jijimingo-section #hero-jijimingo { min-height: 100vh; } }
  #hero-jijimingo-section .hero__background, #hero-jijimingo-section .hero__veil { position: absolute; inset: 0; z-index: -1; }
  #hero-jijimingo-section .hero__background { background: var(--brand-deep) center/cover no-repeat; background-image: image-set( url('https://jijimingo.com/wp-content/uploads/2025/03/private-dog-room-peace.avif') type('image/avif') 1x, url('https://jijimingo.com/wp-content/uploads/2025/03/private-dog-room-peace.jpg.webp') type('image/webp') 1x, url('https://jijimingo.com/wp-content/uploads/2025/03/private-dog-room-peace.jpg') type('image/jpeg') 1x ); transform: scale(1.04); filter: saturate(.92) contrast(1.02); }
  #hero-jijimingo-section .hero__veil { background: linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.62) 100%), radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.12) 0%, rgba(0,0,0,.58) 100%); }
  #hero-jijimingo-section .hero__inner { position: relative; width: 100%; max-width: 960px; margin: 0 auto; padding: min(5vh,56px) 24px min(6vh,64px); }
  #hero-jijimingo-section .hero__content { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center !important; }
    #hero-jijimingo-section .hero__content > * { 
      /* animation: jmHeroSlideUp .9s cubic-bezier(.19,1,.22,1) forwards; */
      /* opacity: 0; */
      opacity: 1;
      will-change: transform,opacity; 
      margin-inline: auto; 
    }
  @keyframes jmHeroSlideUp { from { transform: translateY(28px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
  #hero-jijimingo-section .hero__logo { animation-delay: .05s; width: clamp(64px,9.5vw,100px); aspect-ratio: 1/1; border-radius: 50%; display: block; margin: 0 auto .5rem; background: var(--brand-mid); box-shadow: 0 0 0 2.5px rgba(247,243,236,.95),0 8px 24px rgba(0,0,0,.28); object-fit: cover; user-select: none; }
  #hero-jijimingo-section .hero__signature { animation-delay: .15s; font-family: var(--font-script); font-size: clamp(1.45rem,3vw,2.1rem); color: var(--ink-muted); margin-bottom: .5rem; }
  #hero-jijimingo-section .hero__title { animation-delay: .3s; color: var(--hero-ink) !important; font-family: var(--font-sans); font-weight: 800; font-size: clamp(2.05rem,5.2vw,3.7rem); line-height: 1.18; letter-spacing: -.014em; margin: 0 auto 1.15rem; max-width: 900px; text-shadow: 0 2px 12px rgba(0,0,0,.24); }
  #hero-jijimingo-section .hero__subtitle { animation-delay: .45s; color: var(--ink-muted) !important; padding: 0 !important; margin: 0 auto 1.95rem !important; max-width: 48ch; inline-size: auto; text-align: center !important; font-size: 1.1rem; line-height: 1.6; }
  #hero-jijimingo-section .hero__cta { animation-delay: .6s; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
  #hero-jijimingo-section .hero__button { display: inline-flex; align-items: center; justify-content: center; min-width: 9.5rem; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; letter-spacing: .01em; transition: transform .28s cubic-bezier(.19,1,.22,1), background .2s, color .2s, border-color .2s, box-shadow .2s; }
  #hero-jijimingo-section .hero__button--ghost { background: transparent; color: var(--ink-muted) !important; border-color: var(--ink-muted); box-shadow: none; }
  #hero-jijimingo-section .hero__button--ghost:hover { background: transparent; border-color: var(--cta); color: var(--cta) !important; transform: translateY(-3px); }

  /* ===== Intro Section (Redesigned Grid) ===== */
  #hero-jijimingo-section #intro-seo {
    background: #f9fafb; /* Soft background for the section */
    padding: 80px 24px;
  }

  #hero-jijimingo-section .intro__inner {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--font-sans);
  }

  #hero-jijimingo-section .intro-header {
    text-align: center;
    max-width: 800px; /* Increased max-width to prevent line break */
    margin: 0 auto 48px;
  }

  #hero-jijimingo-section .intro__kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 500;
    font-size: .92rem;
    background: #f3f4f6; /* A standard light gray */
    color: var(--text-neutral);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
  }

  #hero-jijimingo-section .intro-header .intro__title {
    font-family: var(--font-sans); /* Changed from var(--font-serif) */
    font-weight: 700; /* Adjusted for sans-serif title */
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 16px;
    letter-spacing: -.01em;
    line-height: 1.2;
  }

  #hero-jijimingo-section .intro-header .intro__lead {
    font-size: 1.1rem;
    color: var(--text-neutral);
    line-height: 1.7;
  }

  #hero-jijimingo-section .intro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed to always show 4 columns */
    gap: 28px;
    margin: 0 auto 64px;
  }

  #hero-jijimingo-section .intro-grid__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #hero-jijimingo-section .intro-grid__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }

  #hero-jijimingo-section .intro-grid__icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--cta) 15%, transparent);
    margin-bottom: 16px; /* Adjusted */
  }

  #hero-jijimingo-section .intro-grid__icon {
    width: 36px;
    height: 36px;
    color: var(--cta);
  }

  #hero-jijimingo-section .intro-grid__title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 12px; /* Adjusted */
    line-height: 1.4; /* Added */
  }

  #hero-jijimingo-section .intro-grid__text {
    font-size: 1rem; /* Adjusted */
    line-height: 1.7; /* Adjusted */
    color: var(--text-neutral);
    margin: 0;
  }

  #hero-jijimingo-section .intro__ctaRow {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    justify-content: center;
  }
  
  .intro__ctaRow .hero__button {
    height: 50px;
    width: 250px;
    border-radius: 8px;
    font-size: 1rem;
  }
  
  .intro__ctaRow .hero__button--solid {
    background: var(--cta) !important;
    color: var(--cta-ink) !important;
    border-color: var(--cta) !important;
  }
  
  .intro__ctaRow .hero__button--solid:hover {
    background: var(--cta-hover) !important;
    border-color: var(--cta-hover) !important;
    transform: translateY(-2px);
  }
  
  .intro__ctaRow .hero__button--outline {
    background: transparent;
    color: var(--cta) !important;
    border: 2px solid var(--cta) !important;
  }
  
  .intro__ctaRow .hero__button--outline:hover {
    background: color-mix(in srgb, var(--cta) 10%, transparent) !important;
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    #hero-jijimingo-section #intro-seo {
      padding: 64px 20px;
    }
    #hero-jijimingo-section .intro-grid {
      grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns for mobile */
      gap: 20px;
    }
  }
  
  @media (max-width: 600px) {
    .intro__ctaRow .hero__button {
      width: 100%;
    }
  }


  /* ===== FAQ Section (Redesigned) ===== */
  #hero-jijimingo-section #faq-seo {
    background: var(--brand-deep); /* Dark background */
    color: var(--hero-ink); /* White text */
    padding: 80px 24px; /* Consistent padding with intro section */
  }

  #hero-jijimingo-section .faq__inner {
    max-width: 900px;
    margin: 0 auto;
  }

  #hero-jijimingo-section .faq__title {
    font-family: var(--font-sans); /* Changed from var(--font-serif) */
    font-weight: 700; /* Adjusted for sans-serif title */
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 auto 48px !important;
    text-align: center;
    line-height: 1.2;
  }

  #hero-jijimingo-section details {
    border: 1px solid color-mix(in srgb, var(--hero-ink) 15%, transparent); /* Subtle border */
    border-radius: 12px; /* Rounded corners for card-like appearance */
    margin-bottom: 20px; /* Adjusted */
    background: var(--brand-mid); /* Slightly lighter dark background */
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Very subtle shadow */
    transition: all 0.3s ease;
  }

  #hero-jijimingo-section details:last-of-type {
    margin-bottom: 0;
  }

  #hero-jijimingo-section details[open] {
    background: var(--brand-dark); /* Even darker when open */
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  #hero-jijimingo-section summary {
    cursor: pointer;
    font-weight: 600;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px; /* Adjusted */
    font-size: 1.1rem; /* Slightly larger font for questions */
    color: var(--hero-ink); /* White for questions */
  }

  #hero-jijimingo-section summary:hover {
    color: var(--cta); /* Highlight question on hover */
  }

  #hero-jijimingo-section .faq__chevron {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
    color: var(--ink-muted); /* Muted white for chevron */
  }

  #hero-jijimingo-section details[open] .faq__chevron {
    transform: rotate(180deg);
    color: var(--cta);
  }

  #hero-jijimingo-section details p {
    margin: 0;
    padding: 0 24px 18px; /* Adjusted */
    line-height: 1.7;
    color: var(--ink-muted); /* Muted white for paragraph text */
    font-size: 1rem;
  }

  #hero-jijimingo-section details p a {
    text-decoration: none;
    color: var(--cta); /* Green links should still be visible on dark background */
    font-weight: 500;
  }

  #hero-jijimingo-section details p a:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    #hero-jijimingo-section #faq-seo {
      padding: 64px 20px;
    }
    #hero-jijimingo-section summary {
      padding: 14px 20px; /* Adjusted */
      font-size: 1rem;
    }
    #hero-jijimingo-section details p {
      padding: 0 20px 14px; /* Adjusted */
    }
  }

  /* Motion/Responsive */
  @media (prefers-reduced-motion: reduce) {
    #hero-jijimingo-section *,
    #hero-jijimingo-section *::before,
    #hero-jijimingo-section *::after {
      animation: none !important;
      transition: none !important;
    }
  }
  @media (max-width: 640px) {
    #hero-jijimingo-section .intro__features { grid-template-columns: 1fr; }
  }
}

/* ===== Pricing Summary Section ===== */
#jm-pricing-summary {
    padding: 80px 24px;
    background-color: #fff;
    text-align: center;
    font-family: 'Noto Sans KR', sans-serif;
}

#jm-pricing-summary .section-title {
    font-family: var(--font-sans); /* Changed from var(--font-serif) */
    font-weight: 700; /* Adjusted for sans-serif title */
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 48px;
    color: var(--ink-light);
}

#jm-pricing-summary .card-container {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

#jm-pricing-summary .price-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    width: 320px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

#jm-pricing-summary .card-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #1f2937;
    margin: 0 0 12px;
}

#jm-pricing-summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #052C33; /* Using brand color */
    margin: 0;
}

#jm-pricing-summary .btn {
    display: inline-block;
    white-space: nowrap;
    font-weight: 900;
    padding: 12px 24px;
    border-radius: 10px;
    background: #39a46c; /* --cta color */
    color: #fff;
    text-decoration: none;
    border: 0;
    box-shadow: 0 8px 24px rgba(27,94,60,.28);
    transform: translateY(0);
    transition: background .15s ease, transform .06s ease;
}

#jm-pricing-summary .btn:hover {
    background: #2f8d5c; /* --cta-hover color */
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #jm-pricing-summary {
        padding: 64px 20px;
    }
    #jm-pricing-summary .card-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    #jm-pricing-summary .price-card {
        width: 100%;
    }
}