/* ALLTOZE 공통 UI · 원본 main.css에서 이전한 기준 스타일
 * 기존 레이아웃/서버 처리 로직은 변경하지 않았습니다.
 * 기본 폰트 13~32px, 큰 히어로 제목만 화면에 맞게 예외를 허용합니다.
 */
:root{
    --bg:#f4f2ec;
    --bgSoft:#efeee8;
    --panel:#fffefa;
    --panelSoft:#faf9f5;

    --text:#182824;
    --text2:#394944;
    --muted:#6d7975;
    --muted2:#909a96;

    --brand:#2f665c;
    --brandHover:#254f48;
    --brandSoft:#e4ece8;
    --brandSoft2:#f0f4f1;

    --deep:#213934;
    --deep2:#294943;

    --warm:#a88752;
    --warmSoft:#f0e8db;

    --line:rgba(27,49,43,.11);
    --lineStrong:rgba(27,49,43,.18);

    --shadow:0 20px 52px rgba(24,43,38,.09);
    --shadowSoft:0 10px 28px rgba(24,43,38,.065);

    --r:18px;
    --r2:24px;
    --max:1360px;
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
}

html{
    background:var(--bg);
    scroll-behavior:smooth;
}

body{
    min-width:0;
    overflow-x:hidden;
    font-family:"Paperozi",Pretendard,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif;
    font-size:16px;
    font-weight:400;
    line-height:1.65;
    color:var(--text);
    background:var(--bg);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}

a{
    color:inherit;
    text-decoration:none;
}

button,
input,
select,
textarea{
    font:inherit;
}

button{
    color:inherit;
}

img{
    max-width:100%;
}

.wrap{
    min-height:100vh;
    background:var(--bg);
}


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

.topbar{
    position:sticky;
    top:0;
    z-index:9999;

    min-height:72px;

    border-bottom:1px solid var(--line);

    background:rgba(250,249,245,.94);

    -webkit-backdrop-filter:blur(18px) saturate(112%);
    backdrop-filter:blur(18px) saturate(112%);

    box-shadow:0 8px 28px rgba(24,43,38,.045);
}

.topbar-inner{
    width:min(calc(100% - 40px),var(--max));
    min-height:72px;

    margin:0 auto;
    padding:0;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
}

.brand{
    min-width:0;
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:11px;
}

.logo,
.logo1{
    width:40px;
    height:40px;

    flex:0 0 40px;

    display:grid;
    place-items:center;

    overflow:hidden;

    border:1px solid rgba(47,102,92,.14);
    border-radius:12px;

    background:#f6f4ee;
    color:var(--brand);

    box-shadow:none;
}

.logo svg{
    width:20px;
    height:20px;
}

.logo1 img{
    width:31px;
    height:31px;
    object-fit:contain;
}

.brandText{
    min-width:0;
}

.brandTitle{
    overflow:hidden;

    color:#1e342f;

    font-size:16px;
    font-weight:600;
    line-height:1.1;
    letter-spacing:-.035em;

    white-space:nowrap;
    text-overflow:ellipsis;
}

.brandSub{
    margin-top:3px;

    overflow:hidden;

    color:#8a938f;

    font-size:10px;
    font-weight:500;
    line-height:1.2;
    letter-spacing:.10em;

    white-space:nowrap;
    text-overflow:ellipsis;
}

.navArea{
    min-width:0;
    flex:1 1 auto;

    display:flex;
    align-items:center;
    justify-content:center;
}

.nav{
    position:relative;

    min-width:0;
    margin:0;
    padding:0;

    display:flex;
    align-items:center;
    gap:4px;

    list-style:none;
}

.navItem{
    position:relative;
    padding:8px 0;
}

.navItem::after{
    content:"";

    position:absolute;
    left:0;
    right:0;
    top:100%;

    height:12px;

    background:transparent;
}

.navLink{
    position:relative;

    min-height:44px;
    padding:10px 13px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;

    border:1px solid transparent;
    border-radius:10px;

    background:transparent;
    color:#344641;

    font-size:18px !important;
    font-weight:600;
    line-height:1.15;
    letter-spacing:-.025em;

    white-space:nowrap;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.navLink::after{
    content:"";

    position:absolute;
    left:15px;
    right:15px;
    bottom:5px;

    height:1px;

    border-radius:99px;

    background:var(--brand);

    transform:scaleX(0);
    transform-origin:center;

    transition:transform .18s ease;
}

.navItem:hover>.navLink,
.navLink.active{
    border-color:rgba(47,102,92,.08);
    background:rgba(47,102,92,.075);
    color:var(--brandHover);
}

.navItem:hover>.navLink::after,
.navLink.active::after{
    transform:scaleX(1);
}

.caret{
    margin-left:1px;

    opacity:.55;

    font-size:11px;

    transform:translateY(-1px);
}

.dropdown{
    position:absolute;
    z-index:99999;
    top:calc(100% + 2px);
    left:0;

    min-width:220px;
    padding:8px;

    display:none;

    border:1px solid var(--line);
    border-radius:14px;

    background:#fffefa;

    box-shadow:0 20px 54px rgba(24,43,38,.12);
}

.dropdown a{
    padding:10px 11px;

    display:flex;

    border-radius:9px;

    color:#53635f;

    font-size:13.5px;
    font-weight:500;
    line-height:1.45;

    transition:
        color .16s ease,
        background .16s ease;
}

.dropdown a:hover{
    background:#f1f3ee;
    color:var(--brandHover);
}

@media (min-width:981px){
    .navItem:hover .dropdown{
        display:block;
        animation:mainDropdownIn .16s ease both;
    }

    @keyframes mainDropdownIn{
        from{
            opacity:0;
            transform:translateY(-5px);
        }

        to{
            opacity:1;
            transform:translateY(0);
        }
    }
}


/* =========================================================
   Header actions
========================================================= */

.rightBox{
    min-width:max-content;
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:8px;
}

.btn,
.header-login,
.header-cta{
    min-height:42px;
    padding:0 14px;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;

    border:1px solid var(--lineStrong);
    border-radius:11px;

    background:rgba(255,254,250,.82);
    color:#354843;

    font-size:13px;
    font-weight:600;
    line-height:1;

    cursor:pointer;

    box-shadow:none;

    transition:
        transform .18s ease,
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.btn:hover,
.header-login:hover{
    transform:translateY(-1px);

    border-color:rgba(47,102,92,.28);

    background:#fffefa;
    color:var(--brandHover);

    box-shadow:0 10px 24px rgba(24,43,38,.055);
}

.btnPrimary,
.header-cta{
    border-color:#294f47;
    background:#294f47;
    color:#fff;

    box-shadow:0 12px 26px rgba(33,67,59,.16);
}

.btnPrimary:hover,
.header-cta:hover{
    border-color:#203f39;
    background:#203f39;
    color:#fff;

    box-shadow:0 15px 30px rgba(30,61,54,.20);
}

.header-user{
    min-width:0;

    display:flex;
    align-items:center;
    gap:8px;

    color:#364943;
}

.header-user-meta{
    min-width:0;

    font-size:11px;
    line-height:1.35;
}

.header-user-meta strong{
    display:block;

    overflow:hidden;

    max-width:130px;

    color:#263a35;

    font-size:12px;
    font-weight:600;

    white-space:nowrap;
    text-overflow:ellipsis;
}

.header-user-meta span{
    display:block;

    overflow:hidden;

    max-width:150px;

    color:var(--muted);

    white-space:nowrap;
    text-overflow:ellipsis;
}

.header-logout{
    width:40px;
    height:40px;
    padding:0;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    border:1px solid var(--lineStrong);
    border-radius:11px;

    background:#fffefa;
    color:#3b504a;

    cursor:pointer;
}

.mToggle{
    width:42px;
    height:42px;
    padding:0;

    display:none;
    align-items:center;
    justify-content:center;

    border:1px solid var(--lineStrong);
    border-radius:11px;

    background:#fffefa;
    color:#314640;

    cursor:pointer;

    box-shadow:none;
}

.menu-bars{
    position:relative;

    width:18px;
    height:2px;

    display:block;

    border-radius:2px;

    background:currentColor;
}

.menu-bars::before,
.menu-bars::after{
    content:"";

    position:absolute;
    left:0;

    width:18px;
    height:2px;

    border-radius:2px;

    background:currentColor;
}

.menu-bars::before{
    top:-6px;
}

.menu-bars::after{
    top:6px;
}


/* =========================================================
   Generic content / subpages
========================================================= */

.container{
    width:min(calc(100% - 36px),var(--max));

    margin:0 auto;
    padding:24px 0 64px;
}

.hero{
    padding:clamp(24px,4vw,38px);

    border:1px solid var(--line);
    border-radius:var(--r2);

    background:
        radial-gradient(circle at 88% 12%,rgba(47,102,92,.07),transparent 27%),
        linear-gradient(145deg,#fffefa 0%,#f4f2ec 100%);

    box-shadow:var(--shadow);
}

.heroGrid{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:24px;
    align-items:center;
}

.h1{
    margin:0;

    color:var(--text);

    font-size:clamp(30px,4vw,42px);
    font-weight:600;
    line-height:1.18;
    letter-spacing:-.045em;

    word-break:keep-all;
}

.h1 b{
    color:var(--brand);
    font-weight:600;
}

.lead{
    max-width:72ch;
    margin:14px 0 0;

    color:var(--muted);

    font-size:15px;
    font-weight:400;
    line-height:1.75;

    word-break:keep-all;
}

.kpis{
    margin-top:18px;

    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.chip{
    padding:9px 11px;

    border:1px solid var(--line);
    border-radius:12px;

    background:#fffefa;
    color:var(--muted);

    font-size:12.5px;
    font-weight:500;
}

.chip b{
    color:var(--text);
    font-weight:600;
}

.sideCard{
    padding:18px;

    border:1px solid var(--line);
    border-radius:18px;

    background:#fffefa;

    box-shadow:0 12px 30px rgba(24,43,38,.06);
}

.sideTitle{
    margin-bottom:11px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.sideTitle h3{
    margin:0;

    color:#213530;

    font-size:14px;
    font-weight:600;
}

.badge{
    padding:6px 9px;

    border:1px solid rgba(168,135,82,.16);
    border-radius:999px;

    background:var(--warmSoft);
    color:#80663f;

    font-size:11.5px;
    font-weight:600;
}

.quick{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.q{
    min-width:0;
    padding:13px;

    border:1px solid var(--line);
    border-radius:15px;

    background:#fffefa;

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.q:hover{
    transform:translateY(-2px);

    border-color:rgba(47,102,92,.20);

    box-shadow:0 14px 30px rgba(24,43,38,.07);
}

.q b{
    display:block;

    color:#273a35;

    font-weight:600;
}

.q span{
    display:block;

    margin-top:4px;

    color:var(--muted);

    font-size:12px;
    font-weight:400;
}

.section{
    margin-top:24px;
}

.secRow{
    margin:22px 0 13px;

    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
}

.secTitle{
    margin:0;

    color:var(--text);

    font-size:19px;
    font-weight:600;
    letter-spacing:-.025em;
}

.secDesc{
    max-width:80ch;
    margin:0;

    color:var(--muted);

    font-size:13px;
    font-weight:400;
}

.grid{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:13px;
}

.card{
    min-width:0;
    grid-column:span 4;

    padding:18px;

    border:1px solid var(--line);
    border-radius:18px;

    background:#fffefa;

    box-shadow:0 10px 28px rgba(24,43,38,.055);
}

.card h4{
    margin:0 0 8px;

    display:flex;
    align-items:center;
    gap:10px;

    color:#263a35;

    font-size:15px;
    font-weight:600;
}

.ico{
    width:34px;
    height:34px;

    flex:0 0 34px;

    display:grid;
    place-items:center;

    border:1px solid rgba(47,102,92,.12);
    border-radius:11px;

    background:var(--brandSoft2);
    color:var(--brand);

    font-size:13px;
    font-weight:600;
}

.card p{
    margin:0;

    color:var(--muted);

    font-size:13px;
    font-weight:400;
    line-height:1.7;
}


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

.footer{
    margin-top:30px;
    padding:38px 0;

    display:flex;
    justify-content:center;

    border-top:1px solid rgba(255,255,255,.06);

    background:var(--deep);
    color:rgba(255,255,255,.60);

    font-size:12px;
}

.revealfoot{
    width:min(calc(100% - 40px),1280px);

    margin:0 auto;
    padding:0;

    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
}

.left-box{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
}

.left-box img{
    filter:brightness(0) invert(1);
    opacity:.76;
}

.right-box{
    text-align:right;
    line-height:1.75;
}

.right-box a{
    color:rgba(255,255,255,.74);
}


/* =========================================================
   Reveal
========================================================= */

.reveal{
    opacity:0;
    transform:translateY(12px);

    transition:
        opacity .55s ease,
        transform .55s ease;
}

.reveal.in{
    opacity:1;
    transform:none;
}


/* =========================================================
   Tablet / mobile navigation
========================================================= */

@media (max-width:980px){

    .topbar{
        min-height:68px;
    }

    .topbar-inner{
        width:calc(100% - 28px);
        min-height:68px;

        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        flex-wrap:nowrap;
        gap:10px;
    }

    .brand{
        min-width:0;
        order:1;
    }

    .logo,
    .logo1{
        width:35px;
        height:35px;
        flex-basis:35px;
        border-radius:11px;
    }

    .logo1 img{
        width:28px;
        height:28px;
    }

    .brandTitle{
        font-size:14px;
    }

    .brandSub{
        display:none;
    }

    .rightBox{
        min-width:0;

        order:2;

        margin-left:auto;

        flex:0 1 auto;

        justify-content:flex-end;
        gap:5px;
    }

    .navArea{
        order:3;

        min-width:auto;

        flex:0 0 auto;

        justify-content:flex-end;
    }

    .mToggle{
        display:inline-flex;
        flex:0 0 auto;
    }

    /* index-v2.css의 오프캔버스 메뉴가 없는 페이지를 위한 fallback */
    .nav:not(.open){
        display:none;
    }

    .nav.open{
        position:absolute;
        top:calc(100% + 1px);
        left:14px;
        right:14px;

        width:auto;

        margin:0;
        padding:12px;

        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:4px;

        border:1px solid var(--line);
        border-radius:16px;

        background:#fffefa;

        box-shadow:0 20px 50px rgba(24,43,38,.13);
    }

    .nav.open .navItem{
        width:100%;
        padding:0;
    }

    .nav.open .navLink{
        width:100%;
        min-height:48px;

        justify-content:space-between;

        padding:11px 12px;
    }

    .nav.open .dropdown{
        position:static;

        width:100%;
        min-width:0;

        margin:2px 0 5px;
        padding:5px;

        border:0;
        border-radius:10px;

        background:#f2f3ef;

        box-shadow:none;
    }

    .nav.open .dropdown a{
        padding:9px 10px;
    }

    .header-user{
        min-width:0;
    }

    .heroGrid{
        grid-template-columns:minmax(0,1fr);
    }

    .quick{
        grid-template-columns:minmax(0,1fr);
    }

    .card{
        grid-column:span 6;
    }
}

@media (max-width:680px){

    .topbar,
    .topbar-inner{
        min-height:64px;
    }

    .topbar-inner{
        width:calc(100% - 22px);
    }

    .header-user-meta{
        display:none;
    }

    .header-login,
    .header-cta{
        display:none;
    }

    .header-logout{
        width:38px;
        height:38px;
    }

    .mToggle{
        width:40px;
        height:40px;
    }

    .container{
        width:calc(100% - 28px);
        padding:24px 0 52px;
    }

    .hero{
        padding:23px 20px;
        border-radius:19px;
    }

    .h1{
        font-size:clamp(27px,8vw,34px);
    }

    .card{
        grid-column:span 12;
    }

    .revealfoot{
        width:calc(100% - 32px);

        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .right-box{
        text-align:left;
    }
}


/* =========================================================
   Touch / accessibility
========================================================= */

@media (hover:none){

    .btn:hover,
    .q:hover{
        transform:none;
    }
}

@media (prefers-reduced-motion:reduce){

    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{
        animation-duration:.001ms!important;
        animation-iteration-count:1!important;
        transition-duration:.001ms!important;
    }

    .reveal{
        opacity:1;
        transform:none;
    }
}


/* =========================================================
   Font-weight safety
========================================================= */

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body strong,
body b{
    font-weight:600;
}

    
    
    
/* 모든 placeholder가 부모의 폰트 종류와 크기를 강제로 상속받도록 설정 */
input::placeholder, 
textarea::placeholder {
  font-family: inherit; /* 부모의 폰트 글꼴 상속 */
  font-size: inherit;   /* 부모의 폰트 크기 상속 */
  font-weight: inherit; /* 부모의 폰트 두께 상속 */
  
  /* 필요에 따라 컬러와 투명도만 살짝 조절 */
  color: #a0a0a0; 
  opacity: 1; /* 파이어폭스 등 일부 브라우저의 흐림 현상 방지 */
}
    

input::placeholder, 
textarea::placeholder {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: #a0a0a0 !important; 
  opacity: 1 !important;
}


/* 공통 디자인 토큰: 신규 화면과 기존 화면에서 점진적으로 사용합니다. */
:root {
  --ui-size-xs: 13px;
  --ui-size-sm: 14px;
  --ui-size-body: 16px;
  --ui-size-card: 18px;
  --ui-size-h3: 22px;
  --ui-size-h2: 32px;
  --ui-size-h1: clamp(32px, 3.8vw, 48px);
  --ui-weight-normal: 400;
  --ui-weight-medium: 500;
  --ui-weight-semibold: 600;
  --ui-max-width: 1240px;
  --ui-radius-button: 13px;
  --ui-radius-card: 22px;
  --ui-section-spacing: clamp(64px, 7vw, 112px);
}
@media (max-width: 768px) {
  :root { --ui-size-body: 15px; --ui-size-h3: 19px;
    --ui-size-h2: 26px; --ui-size-h1: 32px; }
}

/* 공통 푸터 · 카카오톡 문의 링크 */
.footer .atz-footer-links .atz-footer-kakao{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#ffe77b;
    font-weight:600;
    text-decoration:none;
    transition:color .2s ease;
}
.footer .atz-footer-links .atz-footer-kakao svg{
    display:block;
    width:15px;
    height:15px;
    flex:0 0 15px;
}
.footer .atz-footer-links .atz-footer-kakao:hover{
    color:#fff2ad;
    text-decoration:underline;
    text-underline-offset:4px;
}
.footer .atz-footer-links .atz-footer-kakao:focus-visible{
    outline:2px solid #fee500;
    outline-offset:4px;
    border-radius:2px;
}
