/* ========================================
   1stop주식회사 테마 CSS
   색상: 딥네이비 #0B1C2C / 블루 #1E6FEA / 오렌지 #FF6B00
   ======================================== */

:root {
  --primary: #0B1C2C;
  --secondary: #1E6FEA;
  --accent: #FF6B00;
  --accent-hover: #e55f00;
  --bg-light: #F5F7FA;
  --text: #222222;
  --text-light: #555555;
  --white: #FFFFFF;
  --border: #E5E8ED;
  --shadow: 0 4px 20px rgba(11, 28, 44, 0.08);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 버튼 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

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

.btn-secondary:hover {
  background: #1558c0;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
}

.btn-block {
  width: 100%;
}

/* ========== 헤더 ========== */
#hd {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--secondary);
}

.gnb {
  display: flex;
  gap: 8px;
}

.gnb a {
  padding: 10px 16px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  font-size: 15px;
}

.gnb a:hover,
.gnb a.active {
  color: var(--secondary);
  background: rgba(30, 111, 234, 0.08);
}

.hd-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hd-phone {
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.hd-phone strong {
  color: var(--accent);
  font-size: 17px;
}

/* 모바일 메뉴 */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* ========== 히어로 ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #132d45 100%);
  color: var(--white);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30,111,234,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(30, 111, 234, 0.25);
  color: #7eb3ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.hero h1 em {
  color: #7eb3ff;
  font-style: normal;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #7eb3ff;
}

.stat-item span {
  font-size: 14px;
  opacity: 0.8;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
}

.hero-card h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 15px;
  margin-bottom: 12px;
}

.quick-form input::placeholder,
.quick-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.quick-form select option {
  color: var(--text);
}

/* ========== 섹션 공통 ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-light);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.bg-light {
  background: var(--bg-light);
}

/* ========== 서비스 ========== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11, 28, 44, 0.12);
  border-color: var(--secondary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(30,111,234,0.12), rgba(30,111,234,0.05));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-card .more {
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
}

.service-card .more:hover {
  color: var(--accent);
}

/* ========== 시공사례 ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.portfolio-thumb {
  height: 200px;
  background: linear-gradient(135deg, #1a3a5c, #0B1C2C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  position: relative;
}

.portfolio-thumb::after {
  content: '시공사진';
  position: absolute;
}

.portfolio-info {
  padding: 18px 20px;
}

.portfolio-info .tag {
  display: inline-block;
  background: rgba(30,111,234,0.1);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.portfolio-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.portfolio-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== 왜 1stop ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 30px 20px;
}

.why-num {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
}

.why-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.why-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== CTA 배너 ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #153a5c);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 17px;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 푸터 ========== */
#ft {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 30px;
  font-size: 14px;
}

.ft-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.ft-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.ft-logo span {
  color: #7eb3ff;
}

.ft-info p {
  margin-bottom: 6px;
  line-height: 1.6;
}

.ft-info strong {
  color: var(--white);
}

.ft-title {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.ft-links a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.ft-links a:hover {
  color: #7eb3ff;
}

.ft-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

/* ========== 서브페이지 공통 ========== */
.sub-visual {
  background: linear-gradient(135deg, var(--primary), #153a5c);
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}

.sub-visual h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sub-visual p {
  opacity: 0.85;
  font-size: 16px;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 12px;
}

.content-area {
  padding: 60px 0;
}

/* ========== 문의 폼 ========== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-item .icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.info-item strong {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.info-item span {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

.form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(30,111,234,0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== 플로팅 버튼 ========== */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.25s;
}

.float-btn:hover {
  transform: scale(1.08);
}

.float-call {
  background: var(--accent);
}

.float-kakao {
  background: #FEE500;
  color: #3C1E1E;
  font-weight: 700;
  font-size: 13px;
}

/* ========== 반응형 ========== */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ft-inner {
    grid-template-columns: 1fr 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .gnb,
  .hd-contact {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .section {
    padding: 50px 0;
  }
  .section-header h2 {
    font-size: 26px;
  }
  .service-grid,
  .portfolio-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .ft-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .cta-banner h2 {
    font-size: 24px;
  }
}

/* 모바일 메뉴 열림 상태 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.mobile-nav a:hover {
  color: var(--secondary);
  background: rgba(30,111,234,0.05);
}
