/* ============================================================
   도아전기 (DOA ELECTRIC) — 랜딩 페이지 스타일
   화이트 + 네이비 + 블루 / 반응형
   ============================================================ */

:root {
  --navy: #15235c;
  --navy-deep: #0f1c4d;
  --blue: #1f4fd8;
  --blue-light: #3b6ef0;
  --ink: #1a2236;
  --muted: #5b647a;
  --line: #e6e9f2;
  --bg-soft: #f4f6fb;
  --bg-soft2: #eef2fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 18px rgba(21, 35, 92, 0.06);
  --shadow-md: 0 14px 40px rgba(21, 35, 92, 0.12);
  --container: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 90px 0; }
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  margin: 0 0 14px;
  position: relative;
  padding-left: 34px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--blue);
  transform: translateY(-50%);
}

.section-title {
  font-size: 1.9rem;
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--navy);
}
.section-title strong { font-weight: 900; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(31,79,216,.35); }
.btn-primary:hover { background: var(--blue-light); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.btn-kakao { background: #fee500; color: #3c1e1e; }
.btn-kakao:hover { background: #ffe94d; }

/* phone / chat icons (CSS-only, no external assets) */
.ico-phone, .ico-chat, .ico-bolt { display:inline-block; width:1em; height:1em; }
.ico-phone::before { content:"📞"; }
.ico-chat::before { content:"💬"; }
.ico-bolt::before { content:"⚡"; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--blue); }
.btn-phone-header {
  background: var(--navy);
  color: #fff;
  margin-left: 28px;
  box-shadow: 0 8px 20px rgba(21,35,92,.25);
}
.btn-phone-header:hover { background: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 8px; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  transition: .25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: #eef2f8;
}
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 52%;
  background: url("assets/hero.jpg") center center / cover no-repeat;
}
.hero-photo::before {
  /* 왼쪽 글씨 영역과 자연스럽게 이어지도록 흰 그라데이션 */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #eef2f8 0%, rgba(238,242,248,0) 24%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 540px;
  display: flex;
  align-items: center;
  padding: 60px 24px;
}
.hero-copy { max-width: 560px; }
.hero-eyebrow { font-size: 1.2rem; font-weight: 500; color: var(--muted); margin: 0 0 12px; }
.hero-title {
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.hero-title .accent { color: var(--blue); }
.hero-sub { font-size: 1.05rem; color: var(--muted); margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline-blue { background: #fff; color: var(--blue); border-color: #bcd0f5; }
.btn-outline-blue:hover { border-color: var(--blue); background: #f5f8ff; }
.hero-scroll {
  position: absolute; right: 24px; bottom: 26px;
  writing-mode: vertical-rl;
  letter-spacing: .3em;
  font-size: .7rem;
  color: var(--muted);
  opacity: .85;
  z-index: 2;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 40px;
  background: var(--muted); opacity: .5; margin: 10px auto 0;
}

/* ============================================================
   BRAND
   ============================================================ */
.brand-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.brand-media {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.brand-desc { color: var(--muted); margin: 0 0 30px; }

.stats {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stats.stats-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stats li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.stat-num { display:block; font-size: 2rem; font-weight: 900; color: var(--blue); line-height: 1.1; }
.stat-label { display:block; font-size: .92rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.stat-cap { display:block; font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   SERVICE
   ============================================================ */
.service { background: var(--white); }
.service-head { max-width: 720px; margin-bottom: 40px; }
.service-desc { color: var(--muted); margin: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-thumb {
  height: 160px;
  position: relative;
  background-color: #1b2a6b;
  background-size: cover;
  background-position: center;
}
.service-thumb::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,28,77,.45));
}
.service-body { padding: 22px 20px 26px; position: relative; }
.service-icon {
  position: absolute; top: -26px; left: 20px;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: var(--navy); color:#fff;
  border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(21,35,92,.3);
}
.service-body h3 { margin: 16px 0 10px; font-size: 1.1rem; color: var(--navy); }
.service-body p { margin: 0; font-size: .9rem; color: var(--muted); }

.service-tags {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.service-tags li {
  display:inline-flex; align-items:center; gap:6px;
  background: var(--bg-soft2);
  color: var(--navy);
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ============================================================
   REVIEW
   ============================================================ */
.review { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.review-inner {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 48px;
  align-items: start;
}
.review-desc { color: var(--muted); margin: 0 0 24px; }
.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}
.quote-mark {
  font-size: 2.4rem;
  color: var(--blue);
  opacity: .25;
  line-height: 0;
  height: 18px;
  font-weight: 900;
}
.review-card p { color: var(--ink); font-size: .96rem; flex: 1; margin: 8px 0 18px; }
.review-card footer { display: flex; flex-direction: column; gap: 8px; }
.review-card cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: .9rem; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: .9rem; }

/* ============================================================
   PORTFOLIO (시공사례 갤러리)
   ============================================================ */
.portfolio-head.center { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.portfolio-head.center .eyebrow { display: inline-block; padding-left: 0; }
.portfolio-head.center .eyebrow::before { display: none; }
.portfolio-desc { color: var(--muted); margin: 0; }

/* 대표사진 카드 (카테고리별 1장) */
.pf-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pf-fcard {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pf-fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pf-fcard img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.pf-fcard:hover img { transform: scale(1.07); }
.pf-fcard figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 16px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15,28,77,.88));
}
.pf-fcat { display: block; font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
.pf-more {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: #cdd9ff;
}
.pf-fcard:hover .pf-more { color: #fff; }

/* 라이트박스 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 35, .92);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-caption { color: #e6eaf6; margin-top: 14px; font-size: .95rem; font-weight: 500; }
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact {
  background:
    linear-gradient(120deg, var(--navy-deep), var(--blue) 130%),
    var(--navy);
  color: #fff;
  border-radius: 0;
}
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-left { display: flex; align-items: center; gap: 22px; }
.contact-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.contact-left h2 { margin: 0 0 8px; font-size: 1.7rem; }
.contact-left p { margin: 0; opacity: .85; font-size: .98rem; }
.contact-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 2.1rem; font-weight: 900; color: #fff;
}
.contact-btns { display: flex; gap: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #11182f; color: #aeb6cc; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}
.footer-logo-chip {
  display: inline-block;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.footer-logo-chip img { height: 30px; }
.footer-brand p { font-size: .9rem; line-height: 1.8; margin: 0; }
.footer-info dl { margin: 0; }
.footer-info dl > div { display: flex; gap: 14px; margin-bottom: 12px; font-size: .9rem; }
.footer-info dt { color: var(--blue-light); font-weight: 700; min-width: 64px; }
.footer-info dd { margin: 0; color: #cdd3e4; }
.footer-info a:hover { color: #fff; }
.footer-links-title { color: #fff; font-weight: 700; margin: 0 0 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 18px 24px; font-size: .82rem; color: #7c849c;
}
.footer-policy a:hover { color: #fff; }

/* ============================================================
   MOBILE FIXED CALL BAR
   ============================================================ */
.mobile-call {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 15px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-featured { grid-template-columns: repeat(3, 1fr); }
  .review-inner { grid-template-columns: 1fr; gap: 30px; }
  .review-list { grid-template-columns: repeat(3, 1fr); }
  .brand-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-title { font-size: 2.7rem; }
  .hero-photo { width: 46%; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav, .btn-phone-header { display: none; }
  .nav-toggle { display: flex; }

  /* mobile drop nav */
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
  }
  .nav.open a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav.open a:last-child { border-bottom: none; }

  /* hero: 사진 위 / 글씨 아래로 세로 배치 */
  .hero { display: flex; flex-direction: column; }
  .hero-photo {
    position: static;
    width: 100%;
    height: 240px;
    order: -1;
  }
  .hero-photo::before { display: none; }
  .hero-inner { min-height: 0; padding: 36px 24px 44px; }
  .hero-title { font-size: 2.2rem; }
  .hero-eyebrow { font-size: 1.05rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .hero-scroll { display: none; }

  .section-title { font-size: 1.55rem; }
  /* 통계 카드: 파란 숫자 위 / 작은 글씨 아래로 가운데 정렬 (2칸 유지) */
  .stats li { padding: 16px 10px; }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: .85rem; }
  .stat-cap { font-size: .72rem; }

  .review-list { grid-template-columns: 1fr; }
  .service-grid { gap: 30px 18px; }
  .pf-featured { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pf-fcard img { height: 180px; }
  .lb-btn { width: 44px; height: 44px; font-size: 1.5rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }

  .contact-inner { flex-direction: column; align-items: flex-start; }
  .contact-right { align-items: stretch; width: 100%; }
  .contact-phone { font-size: 1.7rem; }
  .contact-btns { flex-direction: column; }
  .contact-btns .btn { width: 100%; justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; }

  /* fixed mobile call bar + bottom spacing so it never covers content */
  .mobile-call { display: flex; }
  body { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .service-grid { grid-template-columns: 1fr; }
}
