:root {
  --primary: #2b6cb0;
  --primary-dark: #204d7a;
  --secondary: #f7fafc;
  --background-dark: #1a202c;
  --background-light: #fff;
  --text-dark: #222;
  --text-light: #f7fafc;
  --accent: #38b2ac;
  --border-radius: 12px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --shadow: 0 2px 16px 0 rgba(44,62,80,0.08);
}

html, body {
  font-size: 14px;
}
.hero-title { font-size: 1.15rem; }
.hero-sub { font-size: 0.95rem; }
.btn { font-size: 1rem; padding: 0.8em 1.8em; }
.section-title { font-size: 1.08rem; }
@media (min-width: 700px) {
  html, body { font-size: 16px; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1.08rem; }
  .btn { font-size: 1.08rem; }
  .section-title { font-size: 1.18rem; }
}

body {
  margin: 0;
  background: var(--background-light);
  color: var(--text-dark);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent);
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.site-header {
  background: var(--background-light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0.5rem 0;
}
.site-logo {
  height: 60px;
  width: auto;
  margin-right: 1rem;
}
nav {
  display: none;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
#nav-toggle:checked ~ label.hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#nav-toggle:checked ~ label.hamburger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ label.hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
#nav-toggle:checked ~ nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  background: var(--background-light);
  width: 100vw;
  box-shadow: var(--shadow);
  z-index: 99;
}
nav a {
  padding: 1rem 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid #e2e8f0;
  transition: background var(--transition);
}
nav a:last-child {
  border-bottom: none;
}
nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}

.section-dark {
  background: var(--background-dark);
  color: var(--text-light);
  padding: 2.5rem 0 2rem 0;
}
.section-light {
  background: var(--background-light);
  color: var(--text-dark);
  padding: 2.5rem 0 2rem 0;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-align: center;
}

.hero {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: #b5c6e0;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: none;
  font-size: 1.1rem;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 24px 0 rgba(44,62,80,0.13);
}

/* Why Us 아이템 세로 정렬 */
.whyus {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 2vw;
}
.whyus-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--card-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1em 0.7em;
  max-width: 320px;
  margin: 0 auto;
}
.whyus-icon {
  font-size: 2.1rem;
  margin-bottom: 0.5em;
  display: block;
  text-align: center;
}
.whyus-title {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2em;
  text-align: center;
}
.whyus-desc {
  color: var(--gray);
  font-size: 0.93rem;
  text-align: center;
}
@media (min-width: 700px) {
  .whyus {
    flex-direction: row;
    gap: 32px;
    justify-content: center;
  }
  .whyus-item {
    max-width: 220px;
    padding: 1.5em 1em;
  }
  .whyus-icon { font-size: 2.3rem; }
  .whyus-title { font-size: 1.08rem; }
  .whyus-desc { font-size: 0.98rem; }
}

.services {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.service {
  background: #232e41;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1rem;
}
.service-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--accent);
}
.service-desc {
  font-size: 0.98rem;
  color: #e2e8f0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f7fafc;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem;
}
.process-step-number {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.process-step-title {
  font-size: 1rem;
  font-weight: 500;
}

.contact-section {
  padding: 2.5rem 0 2rem 0;
  background: var(--background-dark);
  color: var(--text-light);
}
.contact-form-wrap {
  background: #232e41;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.2rem 1.5rem 1.2rem;
  text-align: center;
}
.contact-form-wrap input,
.contact-form-wrap textarea {
  width: 100%;
  padding: 0.9rem 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: #f7fafc;
  font-size: 1rem;
  color: #222;
  box-sizing: border-box;
  font-family: inherit;
  transition: box-shadow var(--transition);
}
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
  outline: 2px solid var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.contact-form-wrap button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 0;
  border-radius: var(--border-radius);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}
.contact-form-wrap button[type="submit"]:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 24px 0 rgba(44,62,80,0.13);
}

.contact-reply-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 1rem;
  color: #b5c6e0;
}
.reply-icon {
  font-size: 1.3rem;
}
.reply-text {
  font-size: 1rem;
}

/* FAQ 아코디언 전문적 스타일 & 가운데 정렬 */
.faq-accordion {
  width: 100%;
  max-width: 370px;
  margin: 2em auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq-label {
  display: block;
  background: var(--card-dark);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 0.9em 1.2em;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.5em;
  text-align: center;
  box-shadow: 0 2px 12px #0002;
  border: 1.5px solid var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
}
.faq-label:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 24px #1683c744;
}
.faq-arrow {
  display: inline-block;
  margin-left: 0.5em;
  font-size: 1.1em;
  transition: transform 0.3s;
}
.faq-toggle {
  display: none;
}
.faq-toggle:checked + .faq-label .faq-arrow {
  transform: rotate(180deg);
}
.faq-content {
  display: none;
  background: var(--card-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.1em 1.2em;
  font-size: 0.95rem;
  box-shadow: 0 2px 12px #0002;
  border: 1.5px solid var(--primary);
  margin-bottom: 0.5em;
  text-align: left;
  width: 100%;
  max-width: 370px;
}
.faq-toggle:checked ~ .faq-content {
  display: block;
}
@media (min-width: 700px) {
  .faq-accordion, .faq-content { max-width: 420px; }
}

footer {
  background: #181e29;
  color: #b5c6e0;
  text-align: center;
  padding: 1.2rem;
  font-size: 1rem;
  margin-top: 2rem;
}
.footer-info {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 600px) {
  .container {
    width: 90%;
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .whyus, .services, .process-steps {
    flex-direction: row;
    gap: 1.5rem;
  }
  .whyus-item, .service, .process-step {
    flex: 1 1 0;
    min-width: 0;
  }
  .contact-form-wrap {
    padding: 2.5rem 2rem 2rem 2rem;
  }
}

@media (min-width: 900px) {
  .container {
    width: 80%;
    max-width: 1100px;
  }
  .header-flex {
    min-height: 70px;
  }
  .site-logo {
    height: 60px;
  }
  nav {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    width: auto;
    box-shadow: none;
    gap: 1.5rem;
    align-items: center;
  }
  .hamburger {
    display: none;
  }
  nav a {
    padding: 0.5rem 1.2rem;
    border-bottom: none;
    color: var(--primary-dark);
    background: none;
    font-size: 1.05rem;
  }
  nav a:hover {
    background: var(--secondary);
    color: var(--accent);
  }
  .whyus, .services, .process-steps {
    flex-direction: row;
    gap: 2rem;
  }
  .whyus-item, .service, .process-step {
    padding: 1.5rem 1.2rem;
  }
  .contact-form-wrap {
    max-width: 480px;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
  }
  .faq-content {
    font-size: 1.05rem;
  }
}

/* Hide scrollbars for form on mobile */
.contact-form-wrap textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

button[disabled], .btn[disabled], #submitBtn[disabled] {
  background: #bfc7cc !important;
  color: #fff !important;
  opacity: 0.5;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

/* Utility */
::-webkit-input-placeholder { color: #7b8a99; }
::-moz-placeholder { color: #7b8a99; }
:-ms-input-placeholder { color: #7b8a99; }
::placeholder { color: #7b8a99; }

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
}
.modal[style*="display: flex"] {
  display: flex !important;
}
.modal-content {
  background: #fff;
  color: #222;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px #0004;
  padding: 2.2em 1.5em 1.5em 1.5em;
  min-width: 240px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(.4,1.6,.6,1) 1;
}
@keyframes modalPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-content h2 {
  color: #1560a8;
  font-size: 1.15rem;
  margin-bottom: 0.7em;
}
.modal-content p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 1.5em;
}
.modal-close {
  background: #1683c7;
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.7em 2.2em;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.modal-close:hover {
  background: #10639a;
  box-shadow: 0 4px 24px #1683c744;
}

#formResult {
  color: #1683c7;
  font-weight: 900;
  font-size: 1.13rem;
  text-align: center;
  margin-top: 1.5em;
  letter-spacing: 0.01em;
}
