@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ===== Font Declarations ===== */
@font-face {
  font-family: 'S-CoreDream';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'S-CoreDream';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-5Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'S-CoreDream';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Variables & Base Styles ===== */
:root {
  --teal: #4CB8AA;
  --teal-dark: #3fa294;
  --white: #ffffff;
}

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

body {
  font-family: 'S-CoreDream', 'Noto Sans KR', sans-serif;
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}



ul {
  list-style: none;
}

h1 {
  font-size: 64px;
  line-height: 1.3;
  font-family: 'S-CoreDream';
  font-weight: 700;
}

h2 {
  font-size: 56px;
  font-family: 'S-CoreDream';
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 36px;
  font-family: 'S-CoreDream';
  font-weight: 700;
  line-height: 1.3;
}

h4 {
  font-size: 28px;
  font-family: 'S-CoreDream';
  font-weight: 700;
  line-height: 1.3;
}

h5 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

p {
  font-size: 18px;
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.3;
}

.top-padding {
  padding-top: 70px;
}

/* ===== Navbar ===== */
header {
  position: relative;
  z-index: 10;
  width: 100%;
}

header .elements {
  display: grid;
  align-items: center;
  grid-template-columns: 24% 1% 75%;
  padding-top: 15px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Noto Sans KR', sans-serif;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(90deg, #2A8183 0%, #57CEBC 80%);
  border-radius: 18px 0 0 18px;
  padding: 10px 5%;
}

.logo {
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 40%;
  padding-right: 30px;
}

.logo img.main-logo {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  position: static;
  display: flex;
  align-items: center;
  gap: 20%;
  font-size: 20px;
  color: white;
}

.nav-links a {
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 0.85;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.call-btn {
  background: var(--white);
  width: 200px;
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  padding: 12px 22px;
  border-radius: 10px;
  white-space: nowrap;
}

.call-btn:hover {
  background: #23407a;
  color: white;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
}

.menu-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 25%;
  width: 620px;
  margin-top: 12px;
  border-radius: 16px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-top: none;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9aa0a8;
  margin-bottom: 16px;
}

.dropdown-menu .left {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dropdown-menu .left li {
  padding: 0;
  border-bottom: none;
}

.dropdown-menu .left a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 12px;
  background: #f5f6f8;
  color: #111;
  transition: background-color 0.2s ease;
}

.dropdown-menu .left a:hover {
  background: #fce19b;
}

.dd-icon {
  width: 20px;
  height: 20px;
  color: #111;
}

.dd-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.dropdown-menu.two-col-only .left {
  grid-template-columns: repeat(2, 1fr);
}

/* ===== Hero Animations ===== */
@keyframes fadeUpReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text > * {
  opacity: 0;
  animation: fadeUpReveal 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.hero-text h1 { animation-delay: 0.3s; }
.hero-text p { animation-delay: 0.5s; }
.hero-text .cta { animation-delay: 0.8s; }

/* ===== Main Section Content ===== */
.main-sect {
  width: 100%;
  padding: 20px 10%;
  font-family: 'Noto Sans KR', sans-serif;
  overflow-y: hidden;
  font-weight: 400;
  line-height: 1.6;
  color: #030303;
  margin: 0 auto;
  overflow-x: auto;
}

.cont-wrap {
  padding-bottom: 50px;
  margin: 0 auto;
  width: 100%;
  height: auto;
  min-height: fit-content;
}

.cont-wrap2 {
  margin: 0 auto;
  width: 100%;
  height: auto;
  min-height: fit-content;
}

.head-text {
  text-align: center;
  padding: 100px 10px 80px 10px;
}

.head-text p {
  font-size: 24px;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 20px;
}

/* ===== Side Nav Panel ===== */
.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 85vw);
  background: #ffffff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  overflow-y: auto;
}

.side-nav.is-open {
  transform: translateX(0);
}

.side-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.side-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.side-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  color: #111;
  margin-bottom: 24px;
}

.side-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.side-nav-group {
  border-bottom: 1px solid var(--gray-line);
}

.side-nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 4px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.side-nav-toggle .chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.side-nav-group.is-open .chevron {
  transform: rotate(180deg);
}

.side-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.side-nav-group.is-open .side-nav-sub {
  max-height: 300px;
}

.side-nav-sub li a {
  font-family: 'Noto Sans KR', sans-serif;
  display: block;
  padding: 10px 4px 10px 14px;
  font-size: 16px;
  color: var(--gray-text);
  text-decoration: none;
}

.side-nav-sub li a:hover {
  color: var(--navy);
}

.side-nav-call {
  margin-top: 24px;
  text-align: center;
  padding: 14px;
  border-radius: 30px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Hamburger to X animation */
.menu-icon {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fafafa;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-icon.is-active span:nth-child(2) { opacity: 0; }
.menu-icon.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.no-scroll {
  overflow: clip;
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  width: 100%;
  min-height: 480px;
}

.footer-left {
  flex: 0 0 55%;
  position: relative;
  background-image: url('/fnc_images/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0 0 90px 10%;
}

.footer-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.87) 0%, rgba(29, 20, 8, 0.781) 100%);
  pointer-events: none;
}

.footer-left-content {
  position: relative;
  z-index: 2;
}

.footer-left-content h3 {
  color: white;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 28px;
  max-width: 400px;
}

.footer-cta {
  display: inline-block;
  background: #57CEBC;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
}

.footer-cta:hover {
  background: whitesmoke;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer-info-row {
  flex: 1;
  display: flex;
  gap: 100px;
  background: #f7f8fa;
  padding: 40px 60px;
}

.footer-info-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}

.footer-info-block .phone {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.footer-info-block .hours,
.footer-info-block .address {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.footer-links-row {
  background: #23407a;
  padding: 40px 60px 30px;
}

.footer-links-cols {
  display: flex;
  gap: 100px;
  margin-bottom: 40px;
}

.footer-links-col h4 {
  color: #57CEBC;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col ul li a {
  color: white!important;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links-col .company-info li {
  color: white;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
}

.mobile-floating-menu {
  display: none;
}

/* ===== Responsive Breakpoints ===== */

/* Large Tablets & Below */
@media (max-width: 1024px) {
  .site-footer {
    flex-direction: column;
  }
  .footer-left {
    flex: none;
    min-height: 360px;
    padding: 0 30px 40px;
  }
  .footer-info-row,
  .footer-links-cols {
    flex-direction: column;
    gap: 30px;
  }
  .footer-info-row,
  .footer-links-row {
    padding: 30px;
  }
}

/* Tablets (800px and down) */
@media screen and (max-width: 800px) {
  .logo {
    padding: 0 15px;
  }
  .logo img.main-logo {
    height: 40px;
  }
}

/* Mobile Devices (640px and down) */
@media screen and (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .call-btn {
    width: 100px;
    text-align: center;
    font-size: 18px;
    padding: 7px 12px;
  }
  .navbar {
    justify-self: flex-end;
    width: 80%;
    margin: 0;
    padding: 8px 16px;
    border-radius: 14px 0 0 14px;
  }

  .mobile-floating-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #eeeeee;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-floating-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666666;
    font-size: 11px;
    font-weight: 500;
    gap: 3px;
    flex: 1;
    transition: color 0.2s ease;
  }

  .mobile-floating-menu a svg {
    width: 20px;
    height: 20px;
  }

  .mobile-floating-menu a.active,
  .mobile-floating-menu a:hover {
    color: #0056b3;
  }

  body {
    padding-bottom: 60px;
  }

  h1 { font-size: 28px; line-height: 1.3; }
  h2 { font-size: 24px; }
  h3, h4 { font-size: 20px; }
  h5 { font-size: 18px; }
  p { font-size: 15px; }

  .top-padding { padding-top: 80px; }

  header { padding: 12px 16px; }
  header .elements { grid-template-columns: 40% 5% 60%; padding-top: 15px; }

  .logo { padding-left: 10%; height: 40px; }
  .logo img.main-logo { height: 40px; }

  .main-sect { width: 100%; padding: 20px 5px; }
  .cont-wrap { padding: 0; margin: 0 auto; width: 100%; height: auto; min-height: fit-content; }
  .cont-wrap2 { padding-top: 50px; margin: 0 auto; width: 100%; height: auto; min-height: fit-content; }

  .head-text { text-align: center; padding: 30px 10px 40px 10px; }
  .head-text h2 { margin-bottom: 10px; }
  .head-text p { font-size: 24px; max-width: 600px; margin: 0 auto; padding-top: 20px; }

  .footer-info-row { flex-direction: column; gap: 30px; }
  .side-nav-call { color: white; margin-bottom: 100px; }
}

/* Medium to Large Screens (639px to 1600px) */
@media (min-width: 639px) and (max-width: 1600px) {
  h1 { font-size: 48px; line-height: 1.3; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  h5 { font-size: 20px; }
  p { font-size: 16px; }

  header .elements { grid-template-columns: 20% 2% 78%; }
  .nav-links { gap: 4% !important; }
  .nav-links a { font-size: 16px; font-weight: 500; }
  .call-btn { width: auto; padding: 10px 16px; font-size: 16px; }
  .logo { padding-left: 5%; height: 45px; }
  .navbar { padding: 8px 24px; border-radius: 14px 0 0 14px; }
  .main-sect { width: 100%; padding: 20px 5px; }
}