/* 어반픽스 미닫이중문수리 - 공통 스타일 */

:root {
  --white: #ffffff;
  --light-gray: #f4f5f7;
  --beige: #f3ede3;
  --border: #e2e5eb;
  --text: #2c2f36;
  --text-light: #6b7076;
  --navy: #1f2b45;
  --navy-dark: #16203a;
  --accent: #a9895f;
  --radius: 10px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.brand-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: var(--navy);
}

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.main-nav a:hover {
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--navy);
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--beige);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--beige) 0%, var(--white) 100%);
  padding: 72px 0 56px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--accent);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
}

.hero-tag svg {
  width: 15px;
  height: 15px;
}

/* Hero - split layout (text left on white / photo right full-bleed to edge) */
.hero-split {
  background: var(--white);
  padding: 0 0 32px;
}

.hero-split .hero-inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-split .hero-grid {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  min-height: 285px;
}

.hero-text {
  padding: 26px 40px 26px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.hero-split .hero-tags,
.hero-split .btn {
  justify-content: flex-start;
}

.hero-split .hero-tags {
  gap: 8px;
  margin-bottom: 12px;
}

.hero-split .btn {
  padding: 10px 20px;
  font-size: 14px;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 8px;
  max-width: 460px;
}

.hero-text h1 {
  text-align: left;
  font-size: 28px;
  margin: 0 0 8px;
}

.hero-text .hero-body {
  text-align: left;
  font-size: 14px;
  margin: 0 0 14px;
  max-width: 480px;
}

.hero-photo {
  position: relative;
  height: 100%;
  min-height: 285px;
  overflow: hidden;
  background: var(--white);
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.hero-split .hero-text,
.hero-split .hero-photo {
  animation: heroFade 1s ease both;
}

.hero-split .hero-photo {
  animation-delay: 0.15s;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero stays side-by-side (horizontal) at every width; only sizing scales down */
@media (max-width: 900px) {
  .hero-split .hero-grid {
    min-height: 225px;
  }

  .hero-text {
    padding: 18px 20px 18px max(16px, calc((100vw - var(--max-width)) / 2 + 16px));
  }

  .hero-eyebrow {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .hero-text h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .hero-text .hero-body {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .hero-split .hero-tags {
    gap: 6px;
    margin-bottom: 10px;
  }

  .hero-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  .hero-photo {
    min-height: 225px;
  }
}

@media (max-width: 600px) {
  .hero-split .hero-grid {
    min-height: 180px;
  }

  .hero-text {
    padding: 12px 12px 12px max(10px, calc((100vw - var(--max-width)) / 2 + 10px));
  }

  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .hero-text h1 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .hero-text .hero-body {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .hero-split .hero-tags {
    gap: 5px;
    margin-bottom: 8px;
  }

  .hero-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .hero-split .btn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .hero-photo {
    min-height: 180px;
  }
}

.hero h1 {
  font-size: 42px;
  color: var(--navy);
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 18px;
}

.hero-body {
  font-size: 16px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--light-gray);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  color: var(--navy);
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-light);
  font-size: 16px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 16px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.about-points {
  margin-bottom: 28px;
}

.about-points li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.photo-card {
  background: linear-gradient(145deg, var(--beige), var(--light-gray));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
  min-height: 220px;
}

.photo-card svg {
  width: 48px;
  height: 48px;
  color: var(--navy);
}

.photo-card span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

.about-photo .photo-card {
  min-height: 340px;
}

.about-slider {
  position: relative;
  min-height: 380px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: aboutFade 8s infinite;
}

.about-slider img:nth-child(2) {
  animation-delay: 4s;
}

@keyframes aboutFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  44% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

/* Issue cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.issue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.issue-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.issue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.issue-bubble {
  position: relative;
  margin: -18px 16px 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  text-align: center;
}

.issue-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.issue-bubble h3 {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.issue-text {
  padding: 16px 20px 22px;
}

.issue-text p {
  color: var(--text-light);
  font-size: 14px;
  margin: 0;
}

/* Process board */
.process-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.process-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.process-step h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* Service cards (NSEO) */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .grid-services {
    grid-template-columns: 1fr;
  }
}

.phone-card {
  align-items: center;
  text-align: center;
  justify-content: center;
  cursor: pointer;
}

.phone-card:hover {
  background: var(--beige);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card .photo-card {
  min-height: 140px;
  padding: 20px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 0;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  flex-grow: 1;
}

.service-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.service-link::after {
  content: " →";
}

/* Space list */
.grid-spaces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .grid-spaces {
    grid-template-columns: repeat(2, 1fr);
  }
}

.space-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

/* Prep photo cards */
.grid-prep {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* FAQ accordion (native details/summary) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 22px 20px;
  color: var(--text-light);
  font-size: 15px;
}

/* CTA */
.cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.cta h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 28px;
  color: #d7dbe4;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--beige);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  margin: 20px 0 0;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--navy);
}

.back-link-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Detail page body text */
.detail-body {
  max-width: 760px;
  margin: 0 auto;
}

.detail-body h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 40px 0 14px;
}

.detail-body p {
  color: var(--text);
  margin: 0 0 16px;
}

.detail-body ul {
  margin: 0 0 16px;
}

.detail-body li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text);
}

.detail-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sitemap page */
.grid-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.sitemap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.sitemap-card h2 {
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 10px;
}

.sitemap-card p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 14px;
}

/* Contact page */
.contact-block {
  max-width: 760px;
  margin: 0 auto;
}

.contact-block h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 14px;
}

/* Footer */
.site-footer {
  background: var(--light-gray);
  border-top: 1px solid var(--border);
  padding: 40px 0 100px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-links {
  margin-bottom: 18px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

.footer-info p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 4px;
}

/* Floating call button (desktop) */
.floating-call {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31, 43, 69, 0.18);
}

.floating-call svg {
  width: 20px;
  height: 20px;
}

/* Mobile bottom call bar */
.mobile-call-bar {
  display: none;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .process-board {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .floating-call {
    display: none;
  }

  .mobile-call-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--navy);
    color: var(--white);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-call-bar svg {
    width: 20px;
    height: 20px;
  }

  .site-footer {
    padding-bottom: 90px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3,
  .process-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Door-reveal scroll animation (used for the process section heading and final CTA) */
.door-reveal {
  position: relative;
}

.door-reveal .door-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  background: var(--navy);
  display: none;
}

.door-reveal .door-panel.left {
  left: 0;
}

.door-reveal .door-panel.right {
  right: 0;
}

.door-reveal .door-content {
  position: relative;
  z-index: 1;
}

.door-reveal.cta-door .door-panel {
  background: var(--beige);
}

.js .door-reveal .door-panel {
  display: block;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.js .door-reveal .door-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.45s, transform 0.7s ease 0.45s;
}

.js .door-reveal.open .door-panel.left {
  transform: translateX(-100%);
}

.js .door-reveal.open .door-panel.right {
  transform: translateX(100%);
}

.js .door-reveal.open .door-content {
  opacity: 1;
  transform: translateY(0);
}
