/* ===========================
   세연치과기공소 - style.css
   =========================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #1b3a6b;
  --navy-dark: #122952;
  --blue:      #2b6cb0;
  --blue-light:#3b82d4;
  --sky:       #e8f4fb;
  --gold:      #b8963e;
  --gold-light:#d4b052;
  --gray-dark: #2d3748;
  --gray:      #718096;
  --gray-light:#f7f9fc;
  --white:     #ffffff;
  --border:    #e2e8f0;
  --shadow:    0 4px 24px rgba(27, 58, 107, 0.10);
  --shadow-lg: 0 8px 40px rgba(27, 58, 107, 0.15);
  --radius:    10px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue);
}

ul { list-style: none; }

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

/* Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section base */
.section {
  padding: 100px 0;
}

/* ===========================
   HEADER
   =========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-main {
  font-size: 22px;
  color: var(--navy);
}

.logo-sub {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
}

.nav ul {
  display: flex;
  gap: 36px;
}

.nav ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding-bottom: 4px;
}

.nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav ul li a:hover,
.nav ul li a.active {
  color: var(--blue);
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(18, 41, 82, 0.82) 0%,
    rgba(27, 58, 107, 0.70) 50%,
    rgba(27, 58, 107, 0.45) 100%
  );
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
}

.hero-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(184,150,62,0.4);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,150,62,0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll span {
  display: block;
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollDown 1.8s ease infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ===========================
   SECTION HEADER
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  background: var(--gray-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.9;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
}

.stat span {
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
}

.ceo-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}

.ceo-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.ceo-icon svg {
  width: 100%;
  height: 100%;
}

.ceo-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.ceo-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.ceo-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
}

/* ===========================
   SERVICES
   =========================== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* ===========================
   WORKFLOW
   =========================== */
.workflow {
  background: var(--navy);
  color: var(--white);
}

.workflow .section-label {
  color: var(--gold-light);
}

.workflow .section-title {
  color: var(--white);
}

.workflow .section-line {
  background: var(--gold);
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.workflow-step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 600;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.workflow-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.workflow-step p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

.workflow-arrow {
  font-size: 28px;
  color: var(--gold);
  align-self: center;
  padding: 0 8px;
  margin-top: -20px;
  opacity: 0.6;
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-top: 2px;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-list strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-list p,
.contact-list a {
  font-size: 15px;
  color: var(--gray-dark);
}

.contact-list a:hover {
  color: var(--blue);
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-map iframe {
  display: block;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-left p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-copy {
  font-size: 13px;
}

/* ===========================
   FADE-IN ANIMATION
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav ul li:last-child a {
    border-bottom: none;
  }

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

  .workflow-steps {
    flex-direction: column;
    align-items: center;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .workflow-step {
    max-width: 100%;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 34px;
  }
}
