@charset "UTF-8";

/* ==========================================================================
   와이에스 컴퍼니 초정밀 반응형 스타일시트 (Responsive CSS)
   - 갤럭시 Z폴드 3 (280px 커버 스크린)부터 데스크톱 4K까지 완벽 지원
   ========================================================================== */

/* 1. 태블릿 및 Z폴드 펼친 화면 (769px ~ 1024px) */
@media screen and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .motto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .device-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

/* 2. 일반 스마트폰 화면 (768px 이하) */
@media screen and (max-width: 768px) {
  body {
    padding-top: 64px;
  }
  
  .header-inner {
    height: 64px;
  }
  
  .brand-logo img {
    height: 36px;
  }
  
  .phone-quick-btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .gnb-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--navy-dark);
    padding: 20px;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--gold-primary);
  }
  
  .gnb-nav.open {
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .nav-link {
    font-size: 16px;
    display: block;
    width: 100%;
    padding: 6px 0;
  }
  
  /* Hero */
  .hero-section {
    min-height: 480px;
  }
  
  .hero-content {
    padding: 40px 0;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  /* Quick Bar */
  .quick-contact-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Grid Layouts */
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .device-grid {
    grid-template-columns: 1fr;
  }
  
  .company-vision-box {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .motto-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* 3. 소형 스마트폰 화면 (480px 이하) */
@media screen and (max-width: 480px) {
  body {
    padding-top: 58px;
  }
  
  .container {
    padding: 0 14px;
  }
  
  .header-inner {
    height: 58px;
  }
  
  .brand-logo img {
    height: 32px;
  }
  
  .hero-title {
    font-size: 22px;
    line-height: 1.35;
  }
  
  .hero-desc {
    font-size: 13.5px;
    line-height: 1.6;
  }
  
  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .section-desc {
    font-size: 13px;
  }
  
  .feature-card {
    padding: 20px 16px;
  }
  
  .feature-title {
    font-size: 17px;
  }
  
  .feature-desc {
    font-size: 13px;
  }
  
  .apply-box {
    padding: 20px 14px;
  }
  
  .form-control {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .board-table th, .board-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
}

/* 4. 갤럭시 Z폴드 3 등 초소형 커버 스크린 (너비 280px ~ 340px) 전용 최적화 */
@media screen and (max-width: 340px) {
  body {
    padding-top: 52px;
  }
  
  html {
    font-size: 14px; /* 전체 기준 폰트 축소 */
  }
  
  .container {
    padding: 0 8px; /* 초소형 화면 여백 최소화 */
  }
  
  .header-inner {
    height: 52px;
  }
  
  .brand-logo img {
    height: 26px; /* 로고 크기 슬림화 */
  }
  
  .mobile-menu-btn svg {
    width: 22px;
    height: 22px;
  }
  
  /* Hero */
  .hero-section {
    min-height: 420px;
  }
  
  .hero-content {
    padding: 30px 0;
  }
  
  .hero-badge {
    font-size: 10px;
    padding: 3px 8px;
    margin-bottom: 12px;
  }
  
  .hero-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  
  .hero-desc {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  
  .btn-primary, .btn-secondary {
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    gap: 4px;
  }
  
  /* Quick Cards */
  .quick-card {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .quick-icon {
    width: 34px;
    height: 34px;
  }
  
  .quick-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .quick-info h4 {
    font-size: 10.5px;
  }
  
  .quick-info p {
    font-size: 13px;
  }
  
  /* Section & Cards */
  .section {
    padding: 35px 0;
  }
  
  .section-tag {
    font-size: 10px;
    margin-bottom: 4px;
  }
  
  .section-title {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  
  .section-desc {
    font-size: 11.5px;
    line-height: 1.5;
  }
  
  .feature-card {
    padding: 14px 12px;
    border-radius: 10px;
  }
  
  .feature-num {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  
  .feature-icon-box svg {
    width: 20px;
    height: 20px;
  }
  
  .feature-title {
    font-size: 14.5px;
    margin-bottom: 4px;
  }
  
  .feature-desc {
    font-size: 11.5px;
    line-height: 1.5;
  }
  
  /* Device Cards */
  .device-img-wrap {
    height: 150px;
  }
  
  .device-badge {
    top: 8px;
    left: 8px;
    font-size: 9.5px;
    padding: 2px 7px;
  }
  
  .device-body {
    padding: 14px 10px;
  }
  
  .device-title {
    font-size: 15px;
  }
  
  .device-desc {
    font-size: 11.5px;
  }
  
  .device-features li {
    font-size: 11px;
    padding: 3px 0;
  }
  
  .device-btn {
    padding: 8px;
    font-size: 11.5px;
  }
  
  /* Form */
  .apply-box {
    padding: 16px 10px;
    border-radius: 10px;
  }
  
  .form-group label {
    font-size: 11.5px;
    margin-bottom: 4px;
  }
  
  .form-control {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  textarea.form-control {
    min-height: 80px;
  }
  
  .checkbox-wrap label {
    font-size: 10.5px;
    line-height: 1.4;
  }
  
  .btn-submit-large {
    font-size: 13px;
    padding: 12px;
  }
  
  /* Motto */
  .motto-card {
    padding: 14px 10px;
  }
  
  .motto-num {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
  }
  
  .motto-card h4 {
    font-size: 13px;
  }
  
  .contributor-box {
    padding: 16px 10px;
  }
  
  .contributor-names {
    font-size: 14px;
  }
  
  /* Footer */
  .footer-brand img {
    height: 26px;
  }
  
  .footer-info {
    font-size: 10.5px;
    line-height: 1.6;
  }
  
  .footer-bottom {
    font-size: 10px;
  }

  /* 5. 공식 제휴 파트너 모달 갤럭시 Z폴드 3 (280px ~ 340px) 초소형 전용 튜닝 */
  .partner-modal-overlay {
    padding: 6px !important;
  }

  .partner-modal-box {
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 12px !important;
    border-width: 1.5px !important;
  }

  .partner-modal-header {
    padding: 8px 12px !important;
  }

  .partner-modal-badge {
    font-size: 10px !important;
    padding: 2px 7px !important;
    gap: 4px !important;
  }

  .partner-modal-close {
    font-size: 20px !important;
    padding: 2px !important;
  }

  .partner-modal-body {
    padding: 12px 10px 10px !important;
  }

  .partner-modal-icon-wrap {
    margin-bottom: 6px !important;
  }

  .partner-glow-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .partner-glow-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .partner-modal-title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  .partner-modal-desc {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  .partner-list {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .partner-card-item {
    padding: 8px 8px !important;
    gap: 6px !important;
    border-radius: 8px !important;
  }

  .partner-tag {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
  }

  .partner-name {
    font-size: 12px !important;
    margin-bottom: 2px !important;
  }

  /* 280px 초소형 폭에서는 영문명을 숨겨 줄바꿈 방지 */
  .partner-name .en-name {
    display: none !important;
  }

  .partner-info-text {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .partner-trust-banner {
    font-size: 9.5px !important;
    padding: 5px 6px !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
  }

  .partner-trust-banner .trust-icon {
    width: 13px !important;
    height: 13px !important;
    font-size: 8px !important;
  }

  .partner-call-btn {
    font-size: 11.5px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    gap: 5px !important;
  }

  .partner-call-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .partner-modal-footer {
    padding: 6px 10px !important;
  }

  .partner-dont-show-wrap {
    font-size: 10px !important;
    gap: 4px !important;
  }

  .partner-dont-show-wrap input[type="checkbox"] {
    width: 13px !important;
    height: 13px !important;
  }

  .partner-footer-close-btn {
    font-size: 10.5px !important;
    padding: 4px 8px !important;
  }
}

