/*
Theme Name: 법무법인 해율
Theme URI: https://haeyul-law.example
Author: 법무법인 해율
Author URI: https://haeyul-law.example
Description: 법무법인 해율(전세사기·임차보증금반환 전문) 원페이지형 홈페이지 테마
Version: 10.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haeyul
*/

  :root{
    --ink: #14213D;
    --ink-deep: #0B1526;
    --paper: #F1F6F4;
    --paper-dim: #E7EFEC;
    --slate: #4A5568;
    --brass: #1F6F5C;
    --gold-deep: #17594A;
    --teal-light: #5FC9AC;
    --charcoal: #1F2328;
    --line: #D6E0DB;
    --card-bg: #FFFFFF;
    --serif: 'Noto Serif KR', serif;
    --sans: 'Noto Sans KR', sans-serif;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth; color-scheme: light only;}
  body{
    font-family: var(--sans);
    color: var(--charcoal);
    background: var(--paper);
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    word-break:keep-all;
    overflow-wrap:break-word;
  }
  img,svg{display:block;}
  a{color:inherit; text-decoration:none;}
  .wrap{max-width:1120px; margin:0 auto; padding:0 28px;}
  .eyebrow{
    font-family: var(--sans);
    font-size:16px;
    font-weight:700;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color: var(--brass);
  }
  h1,h2,h3{font-family:var(--serif); font-weight:700; letter-spacing:-0.01em;}
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:15px 30px; border-radius:3px; font-weight:700; font-size:15.5px;
    cursor:pointer; border:1.5px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space:normal; text-align:center; line-height:1.4; word-break:keep-all;
    font-family:inherit;
  }
  .btn:active{transform: scale(0.98);}
  .btn-primary{ background: var(--gold-deep); color:#fff; }
  .btn-primary:hover{ background:#123F35; }
  .btn-ghost{ background:transparent; color:var(--paper); border-color: rgba(247,245,240,0.35); }
  .btn-ghost:hover{ border-color: rgba(247,245,240,0.8); }
  .btn-dark{ background: var(--ink); color:#fff; }
  .btn-dark:hover{ background:#0e1830; }
  :focus-visible{ outline:3px solid var(--brass); outline-offset:2px; }

  /* ---------- NAV ---------- */
  header.nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background: rgba(11,21,38,0.92); backdrop-filter: blur(6px);
    border-bottom:1px solid rgba(255,255,255,0.08);
  }
  .nav-inner{ display:flex; align-items:center; justify-content:space-between; height:72px; }
  .logo{ display:flex; align-items:center; gap:10px; color:#fff; font-family:var(--serif); font-weight:700; font-size:19px; }
  .logo .mark{ width:30px; height:30px; }
  .nav-links{ display:flex; align-items:center; gap:32px; }
  .nav-links a{ color: rgba(247,245,240,0.78); font-size:14.5px; font-weight:500; }
  .nav-links a:hover{ color:#fff; }
  .nav-cta{ display:flex; align-items:center; gap:14px; }
  @media (max-width:860px){ .nav-links{ display:none; } }

  /* ---------- HERO ---------- */
  .hero{
    position:relative;
    min-height:100vh;
    background: var(--ink-deep);
    color:#fff;
    overflow:hidden;
    display:flex; align-items:center;
    padding-top:90px; padding-bottom:60px;
  }
  .hero::after{
    content:"";
    position:absolute; top:-10%; right:0%;
    width:1100px; height:1100px; border-radius:50%;
    background: radial-gradient(circle, rgba(95,201,172,0.4) 0%, transparent 65%);
    pointer-events:none;
  }
  .hero-grid{
    position:relative; z-index:2;
    max-width:920px;
  }
  .hero h1{
    font-size: clamp(30px, 4vw, 48px);
    line-height:1.32;
    margin:20px 0 22px;
    color:#fff;
  }
  .hero h1 em{ font-style:normal; color:var(--teal-light); }
  .hero p.lead{
    font-size:17.5px; color: rgba(247,245,240,0.78); margin-bottom:34px;
  }
  .hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
  .hero-actions .btn{ width:340px; max-width:100%; white-space:nowrap; }
  @media (max-width:700px){ .hero-actions .btn{ white-space:normal; } }
  .hero-trust{ display:flex; gap:26px; flex-wrap:wrap; }
  .hero-trust div{ font-size:13.5px; color:rgba(247,245,240,0.6); border-left:2px solid var(--brass); padding-left:12px; }
  .hero-trust strong{ display:block; font-family:var(--serif); font-size:22px; color:#fff; font-weight:700; }

  /* ---------- SECTION GENERIC ---------- */
  section[id]{ scroll-margin-top: 88px; }

  section{ padding:80px 0; }
  #process{ padding-bottom:40px; }
  #faq{ padding-top:40px; }
  .section-head{ max-width:640px; margin-bottom:56px; }
  #problem .section-head{ max-width:800px; }
  .lawyer-section .section-head{ max-width:820px; }
  .p-nowrap-lawyer{ white-space:nowrap !important; overflow-wrap:normal !important; word-break:normal !important; }
  @media (max-width:900px){ .p-nowrap-lawyer{ white-space:normal !important; overflow-wrap:break-word !important; } }
  .section-head h2{ font-size: clamp(26px,3vw,36px); margin-top:14px; line-height:1.35; }
  .section-head p{ color:var(--slate); font-size:16px; margin-top:14px; }

  /* ---------- PROBLEM STATS ---------- */
  .stats-section{ background: var(--ink); color:#fff; }
  .stats-section .eyebrow{ color:var(--teal-light); }
  .stats-section .section-head p{ color: rgba(247,245,240,0.72); }
  .stat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background: rgba(255,255,255,0.12); border-radius:6px; overflow:hidden; }
  @media (max-width:760px){ .stat-grid{ grid-template-columns:1fr; } }
  .stat-cell{ background: var(--ink); padding:36px 30px; }
  .stat-cell .num{ font-family:var(--serif); font-size:44px; font-weight:900; color:#fff; }
  .stat-cell .num small{ font-size:20px; font-weight:700; color:var(--brass); }
  .stat-cell .label{ margin-top:10px; font-size:14px; color:rgba(247,245,240,0.65); }
  .stat-note{ margin-top:18px; font-size:12.5px; color:rgba(247,245,240,0.4); }

  .checklist{ display:flex; flex-direction:column; gap:1px; background:rgba(255,255,255,0.1); border-radius:6px; overflow:hidden; }
  .check-item{
    display:flex; align-items:flex-start; gap:16px; background:var(--ink);
    padding:22px 24px; cursor:pointer; transition: background .18s ease;
  }
  .check-item:hover{ background:#1a2b4d; }
  .check-item input{ position:absolute; opacity:0; pointer-events:none; }
  .check-item .box{
    flex-shrink:0; width:24px; height:24px; border-radius:4px; margin-top:2px;
    border:2px solid rgba(232,192,137,0.55);
    display:flex; align-items:center; justify-content:center;
    transition: background .15s ease, border-color .15s ease;
  }
  .check-item .box::after{
    content:""; width:12px; height:7px; border-left:2.5px solid var(--ink-deep); border-bottom:2.5px solid var(--ink-deep);
    transform: rotate(-45deg) translateY(-1px); opacity:0; transition: opacity .1s ease;
  }
  .check-item input:checked + .box{ background:var(--brass); border-color:var(--brass); }
  .check-item input:checked + .box::after{ opacity:1; }
  .check-item .txt{ font-size:15.5px; color:rgba(247,245,240,0.88); line-height:1.55; }
  .check-item .txt-nowrap{ white-space:nowrap !important; overflow-wrap:normal !important; word-break:normal !important; }
  @media (max-width:760px){ .check-item .txt-nowrap{ white-space:normal !important; overflow-wrap:break-word !important; } }
  .checklist-cta{ text-align:center; margin-top:36px; }

  /* ---------- WHY US ---------- */

  /* ---------- PROCESS ---------- */
  .process-list{ display:flex; flex-direction:column; }
  .process-item{
    display:grid; grid-template-columns:110px 1fr; gap:28px;
    padding:32px 0; border-top:1px solid var(--line);
  }
  .process-item:last-child{ border-bottom:1px solid var(--line); }
  .process-item .idx{ font-family:var(--serif); font-size:15px; color:var(--brass); font-weight:700; letter-spacing:0.05em; }
  .process-item .idx .arrow{ display:block; margin-top:6px; color: var(--line); font-size:22px; }
  .process-item:last-child .arrow{ display:none; }
  .process-item h3{ font-size:19px; margin-bottom:8px; }
  .process-item p{ color:var(--slate); font-size:15px; max-width:640px; }
  .process-item p.p-nowrap{ white-space:nowrap !important; overflow-wrap:normal !important; word-break:normal !important; max-width:none; }
  @media (max-width:900px){ .process-item p.p-nowrap{ white-space:normal !important; overflow-wrap:break-word !important; max-width:640px; } }
  @media (max-width:640px){ .process-item{ grid-template-columns:1fr; gap:8px; } .process-item .idx .arrow{display:none;} }

  /* ---------- CASE CARDS ---------- */
  .case-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
  @media (max-width:860px){ .case-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:560px){ .case-grid{ grid-template-columns:1fr; } }
  .case-card{
    background:var(--card-bg); border:1px solid var(--line); border-radius:6px; padding:28px 24px;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .case-card:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,33,61,0.08); }
  .case-card .ico{ width:40px; height:40px; margin-bottom:16px; color:var(--ink); }
  .case-card h3{ font-size:17px; margin-bottom:8px; font-family:var(--sans); font-weight:700; }
  .case-card p{ font-size:14.5px; color:var(--slate); }


  /* ---------- LAWYER ---------- */
  .lawyer-section{ background: var(--paper-dim); }
  .lawyer-cards{ display:grid; grid-template-columns:1fr 1fr; gap:28px; }
  @media (max-width:760px){ .lawyer-cards{ grid-template-columns:1fr; } }
  .lawyer-card{ background:var(--card-bg); border:1px solid var(--line); border-radius:8px; padding:28px 28px 32px; }
  .lawyer-card-head{ display:flex; align-items:center; gap:16px; margin-bottom:18px; }
  .lawyer-photo-frame{
    width:120px; height:120px; flex-shrink:0; border-radius:50%; overflow:hidden;
    background: linear-gradient(160deg, var(--ink) 0%, #223252 100%);
    display:flex; align-items:center; justify-content:center;
  }
  .lawyer-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
  .lawyer-photo-frame .initials{ font-family:var(--serif); font-size:40px; color:rgba(255,255,255,0.85); font-weight:700; }
  .lawyer-name{ font-size:19.5px; margin-bottom:4px; }
  .lawyer-role{ color:var(--brass); font-weight:700; font-size:13px; display:block; }
  .lawyer-bio{ color:var(--slate); font-size:14.5px; margin-bottom:18px; }
  .credential-group{ margin-bottom:14px; }
  .credential-group:last-child{ margin-bottom:0; }
  .credential-label{ display:block; font-size:11.5px; font-weight:700; color:var(--brass); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:7px; }
  .credential-list{ display:flex; flex-direction:column; gap:9px; }
  .credential-list li{ list-style:none; display:flex; gap:9px; font-size:13.5px; color:var(--charcoal); line-height:1.5; }
  .credential-list li::before{ content:"—"; color:var(--brass); font-weight:700; flex-shrink:0; }

  /* ---------- TESTIMONIALS ---------- */
  .quote-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
  @media (max-width:860px){ .quote-grid{ grid-template-columns:1fr; } }
  .quote-card{ background:var(--card-bg); border:1px solid var(--line); border-radius:6px; padding:28px 24px; display:flex; flex-direction:column; height:100%; }
  .quote-card p.q{ font-size:15px; color:var(--charcoal); flex:1; margin-bottom:18px; }
  .quote-card .who{ font-size:13px; color:var(--slate); font-weight:600; border-top:1px solid var(--line); padding-top:12px; }

  /* ---------- FAQ ---------- */
  .faq-item{ border-top:1px solid var(--line); }
  .faq-item:last-child{ border-bottom:1px solid var(--line); }
  .faq-q{
    width:100%; text-align:left; background:none; border:none; cursor:pointer;
    padding:22px 0; display:flex; justify-content:space-between; align-items:flex-start;
    font-size:16.5px; font-weight:700; color:var(--charcoal); font-family:var(--sans); gap:16px;
  }
  .faq-q .plus{ font-size:20px; color:var(--brass); transition: transform .25s ease; flex-shrink:0; margin-left:20px; }
  .faq-item.open .faq-q .plus{ transform: rotate(45deg); }
  .faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
  .faq-a p{ padding-bottom:22px; color:var(--slate); font-size:15px; max-width:920px; }

  /* ---------- CTA / FORM ---------- */
  .cta-section{ background: var(--ink-deep); color:#fff; position:relative; overflow:hidden; }
  .cta-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
  @media (max-width:860px){ .cta-grid{ grid-template-columns:1fr; } }
  .cta-grid h2{ color:#fff; font-size: clamp(26px,3vw,34px); margin-bottom:16px; }
  .cta-grid p{ color:rgba(247,245,240,0.72); font-size:15.5px; margin-bottom:26px; max-width:520px; }
  .cta-info-list{ display:flex; flex-direction:column; gap:16px; }
  .cta-info-list div{ font-size:14.5px; color:rgba(247,245,240,0.7); display:flex; gap:12px; }
  .cta-info-list strong{ color:#fff; min-width:78px; display:inline-block; }

  form.consult-form{ background:var(--card-bg); border-radius:8px; padding:32px; color:var(--charcoal); }
  .form-row{ margin-bottom:18px; }
  .form-row-split{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  @media (max-width:420px){ .form-row-split{ grid-template-columns:1fr; } }
  .form-row label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:7px; color:var(--ink); }
  .form-row input, .form-row select, .form-row textarea{
    width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:4px; font-size:15px;
    font-family:var(--sans); background:var(--paper); color:var(--charcoal);
  }
  .form-row textarea{ min-height:88px; resize:vertical; }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus{ outline:2px solid var(--brass); outline-offset:1px; border-color:var(--brass); }
  .form-check{ display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--slate); margin-bottom:10px; }
  .consent-toggle{ display:block; text-align:left; background:none; border:none; padding:0; margin:0 0 14px 26px; font-size:12.5px; color:var(--brass); font-weight:700; cursor:pointer; text-decoration:underline; }
  .consent-detail{ display:none; margin:0 0 18px 26px; padding:14px 16px; background:var(--paper); border:1px solid var(--line); border-radius:6px; font-size:12.5px; color:var(--slate); line-height:1.7; }
  .consent-detail.show{ display:block; }
  .consent-detail dt{ font-weight:700; color:var(--charcoal); margin-top:8px; }
  .consent-detail dt:first-child{ margin-top:0; }
  .consent-detail dd{ margin:0; }
  .form-check input{ width:auto; margin-top:3px; }
  .consult-form .btn{ width:100%; }
  .form-note{ font-size:12px; color:var(--slate); margin-top:12px; text-align:center; }
  .form-success{ display:none; text-align:center; padding:20px 0; }
  .form-success.show{ display:block; }
  .form-success .checkmark{ width:52px; height:52px; border-radius:50%; background:var(--brass); color:#fff; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:26px; }

  /* ---------- QUIZ WIDGET (1분 진단) ---------- */
  .quiz-card{ background:var(--card-bg); border-radius:8px; padding:30px 32px 32px; color:var(--charcoal); min-height:420px; display:flex; flex-direction:column; }
  .quiz-progress{ height:5px; border-radius:3px; background:var(--line); overflow:hidden; margin-bottom:16px; }
  .quiz-progress-fill{ height:100%; width:14%; background:var(--brass); border-radius:3px; transition: width .3s ease; }
  .quiz-meta{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
  .quiz-meta span{ font-size:12.5px; font-weight:700; letter-spacing:0.08em; color:var(--brass); text-transform:uppercase; }
  .quiz-back-btn{ background:none; border:none; font-size:13px; color:var(--slate); cursor:pointer; padding:2px 4px; visibility:hidden; }
  .quiz-back-btn.show{ visibility:visible; }
  .quiz-back-btn:hover{ color:var(--ink); }
  .quiz-step{ display:none; flex:1; flex-direction:column; }
  .quiz-step.active{ display:flex; animation: quizIn .28s ease; }
  @keyframes quizIn{ from{ opacity:0; transform: translateX(10px);} to{ opacity:1; transform:none; } }
  @media (prefers-reduced-motion: reduce){ .quiz-step.active{ animation:none; } }
  .quiz-q{ font-size:20px; line-height:1.4; margin-bottom:8px; font-family:var(--serif); }
  .quiz-hint{ font-size:14px; font-weight:600; color:#1F2328 !important; margin-bottom:16px; }
  .quiz-step[data-step="1"] .quiz-hint, .quiz-step[data-step="1-1"] .quiz-hint{ margin-top:0; }
  .quiz-q + .quiz-options{ margin-top:18px; }
  .quiz-options{ display:flex; flex-direction:column; gap:10px; flex:1; }
  .quiz-opt{
    text-align:left; background:var(--paper); border:1.5px solid var(--line); border-radius:6px;
    padding:14px 16px; font-family:var(--sans); font-size:15px; font-weight:600; color:var(--charcoal);
    cursor:pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease;
    display:flex; flex-direction:column; gap:3px;
  }
  .quiz-opt:hover{ border-color:var(--brass); background:var(--card-bg); }
  .quiz-opt:active{ transform:scale(0.99); }
  .quiz-opt.selected{ border-color:var(--brass); background:rgba(31,111,92,0.08); }
  .quiz-opt .opt-sub{ font-size:12.5px; font-weight:400; color:var(--slate); }
  .quiz-next-btn, .quiz-submit-btn{ width:100%; margin-top:18px; }
  .quiz-next-btn:disabled{ opacity:0.4; cursor:not-allowed; }
  .quiz-result{ display:none; text-align:center; padding:40px 0; flex:1; align-items:center; justify-content:center; flex-direction:column; }
  .quiz-result.show{ display:flex; }
  .quiz-result .checkmark{ width:52px; height:52px; border-radius:50%; background:var(--brass); color:#fff; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:26px; }

  /* ---------- FOOTER ---------- */
  footer{ background: var(--ink-deep); color:rgba(247,245,240,0.5); padding:44px 0 30px; font-size:13px; }
  .footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:22px; }
  .footer-top .logo{ margin-bottom:6px; }
  footer .disclaimer{ line-height:1.7; }

  .reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }
