/* 기본 & 폰트 설정 */
:root {
    --primary-color: #FF8C00; /* 오렌지 계열 색상 (DarkOrange) */
    --primary-hover-color: #FFA500;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #fff;
    --bg-gray: #f9f9f9;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}

/* 헤더 & 네비게이션 */
header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 40px;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
}

nav ul li a:hover, #contact-btn:hover {
    color: var(--primary-color);
}

#contact-btn {
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--bg-light);
    border-radius: 20px;
    padding: 8px 20px;
}
#contact-btn:hover {
    background-color: var(--primary-hover-color);
    color: var(--bg-light);
}

/* 메인 섹션 공통 */
main section {
    padding: 20px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

main section:nth-child(even) {
    background-color: var(--bg-gray);
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    line-height: 1.2;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    width: 80%; /* 글자보다 살짝 짧게 */
    max-width: 300px;
    min-width: 80px;
}

h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

h4 {
    font-size: 1.2em;
    color: var(--text-dark);
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 히어로 섹션 */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--text-light);
    padding: 120px 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#hero p {
    font-size: 1.2em;
    color: rgba(255,255,255,0.9);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    margin-top: 20px;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px);
}

/* 서비스 섹션 */


#services .service-wrapper {
    margin-top: 0;
    text-align: left;
}


.service-block {
    background: var(--bg-light);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.service-subtitle {
    font-style: italic;
    color: #666;
    margin-top: -5px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.service-block ul {
    list-style: none;
    padding-left: 0;
}
.service-block ul li {
    margin-bottom: 12px;
    font-size: 1.05em;
    padding-left: 25px;
    position: relative;
}
.service-block ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.4em;
}

.service-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
    font-size: 1.1em;
}



/* 왜 북스웨어인가? 섹션 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.feature-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 15px;
    line-height: 1;
}
.feature-text h4 {
    margin: 0 0 5px 0;
    padding: 0;
    border: none;
    font-size: 1.2em;
    color: var(--text-dark);
}
.feature-text p {
    font-size: 1em;
    color: #555;
    margin: 0;
    max-width: none;
}


/* ────────── 하단(푸터) 스타일 개선 ────────── */

footer {
  background-color: #222;
  color: #bbb;
  text-align: center;
  padding: 20px 20px 15px;      /* 위쪽 여백 줄임 */
  font-size: 0.9em;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                    /* 로고와 텍스트 간격 좁힘 */
  flex-wrap: wrap;
}

.footer-logo {
  flex: 0 0 auto;
}

.footer-logo img {
  width: 48px;
  height: auto;
  filter: brightness(85%);
  margin: 0;
  padding: 0;
  display: block;
}

.footer-company-info {
  text-align: left;
  font-size: 0.9em;
  line-height: 1.4;
}

.footer-company-info strong {
  color: #ccc;
  font-weight: 600;
}

.footer-company-info a {
  color: #999;
  text-decoration: none;
}
.footer-company-info a:hover {
  text-decoration: underline;
}

.footer-tagline {
  margin: 8px 0 2px;           /* 태그라인 위·아래 여백 최적화 */
  font-size: 1.05em;
  color: #ddd;
  font-style: italic;
  line-height: 1.4;
  display: block !important;
  width: auto !important;         /* width 고정 해제 */
  max-width: none !important;     /* max-width 고정 해제 */
  margin-left: 0 !important;      /* 자동 여백 제거 */
  margin-right: 0 !important;
  text-align: center !important;  /* 중앙 정렬 강제 적용 *
}

.footer-company-info + .footer-tagline {
  margin-top: 12px;            /* 태그라인과 회사 정보 간 여백 */
}

.footer-copyright {
  margin-top: 4px;
  font-size: 0.82em;
  color: #888;
  line-height: 1.2;
}


/* ----- (수정된 부분 끝) ----- */

/* 모달 스타일 (변경 없음) */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content { background-color: var(--bg-light); margin: auto; padding: 40px; border-radius: 10px; width: 90%; max-width: 500px; position: relative; animation: slide-down 0.5s ease-out; }
@keyframes slide-down { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-button:hover { color: #333; }
#contact-form { display: flex; flex-direction: column; }
#contact-form input, #contact-form textarea { font-size: 16px; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; }
#contact-form button { background-color: var(--primary-color); color: white; padding: 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 18px; font-weight: bold; transition: background-color 0.3s; }
#contact-form button:hover { background-color: var(--primary-hover-color); }
#contact-form button:disabled { background-color: #ccc; cursor: not-allowed; }
#form-status { margin-top: 15px; font-weight: bold; text-align: center; }

/* 반응형 디자인 */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 2em; }
    main section { padding: 60px 20px; }
    .header-container { flex-direction: column; height: auto; padding: 15px; }
    nav ul { margin-top: 15px; }
    nav ul li { margin: 0 10px; }
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row input {
  flex: 1;
}

/* 기존 input/textarea 스타일 유지하면서 붉은 테두리 강조 */
#contact-form input[required],
#contact-form textarea[required] {
  border: 2px solid #e74c3c;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 15px;
  border-radius: 5px;
  box-sizing: border-box;
}

/* 반응형 처리 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}
