/* ==========================================================================
   HANYANG ENTERPRISE Official Website - Core Stylesheet
   Primary Color: #0F2747
   Backgrounds: White, Light Gray (#F5F6F8)
   Typography: Montserrat (EN) & Noto Sans KR (KO)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* Reset & CSS Variables */
:root {
  --primary-color: #0F2747;
  --primary-hover: #163763;
  --primary-dark: #0A192F;
  --accent-blue: #1E5088;
  --accent-light: #2563EB;
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --bg-white: #FFFFFF;
  --bg-gray: #F5F6F8;
  --bg-card: #FFFFFF;
  --border-color: #E2E8F0;
  --border-dark: #334155;
  --shadow-sm: 0 2px 8px rgba(15, 39, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 39, 71, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 39, 71, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

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

html {
  font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Noto Sans KR', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section-gray {
  background-color: var(--bg-gray);
}

.text-center {
  text-align: center;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 50px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background-color: #FFFFFF;
  color: var(--primary-color);
  border-color: #FFFFFF;
}

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

.btn-dark-outline:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  height: 85px;
  display: flex;
  align-items: center;
}

.header.transparent {
  background-color: rgba(15, 39, 71, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  height: 75px;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary-color);
  position: relative;
  padding: 8px 0;
}

.header.transparent .nav-link {
  color: #FFFFFF;
}

.header.scrolled .nav-link {
  color: var(--primary-color);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  background: var(--bg-gray);
  cursor: pointer;
  transition: var(--transition);
}

.header.transparent .lang-switcher {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .lang-switcher {
  border-color: var(--border-color);
  color: var(--primary-color);
  background: var(--bg-gray);
}

.lang-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  padding: 2px 4px;
  opacity: 0.6;
  transition: var(--transition);
}

.lang-btn.active {
  opacity: 1;
  color: var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.header.transparent .mobile-toggle span {
  background-color: #FFFFFF;
}

.header.scrolled .mobile-toggle span {
  background-color: var(--primary-color);
}

/* ==========================================================================
   Hero Section (Home Page)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) contrast(1.1);
  transform: scale(1.02);
  transition: transform 10s ease;
}

.hero:hover .hero-bg-img {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 39, 71, 0.85) 0%,
    rgba(10, 25, 47, 0.65) 50%,
    rgba(15, 39, 71, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  color: #FFFFFF;
  max-width: 860px;
}

.hero-since {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #93C5FD;
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #E2E8F0;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-slogan {
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: #93C5FD;
  margin-bottom: 40px;
  border-left: 3px solid #2563EB;
  padding-left: 16px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* Inner Page Banner */
.page-banner {
  position: relative;
  padding: 160px 0 90px 0;
  background-color: var(--primary-color);
  color: #FFFFFF;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(30%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.page-banner-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.page-banner-desc {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 650px;
}

/* ==========================================================================
   Management Philosophy (신용 / 품질 / 정직)
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.philosophy-card {
  background-color: var(--bg-white);
  padding: 45px 35px;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
  position: relative;
}

.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent-light);
}

.philosophy-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--border-color);
  position: absolute;
  top: 20px;
  right: 25px;
}

.philosophy-card:hover .philosophy-num {
  color: rgba(37, 99, 235, 0.2);
}

.philosophy-title-kr {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 6px;
}

.philosophy-title-en {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.philosophy-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   About Section & Layout
   ========================================================================== */
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about-bullet-list {
  margin: 24px 0 32px 0;
}

.about-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(15, 39, 71, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bullet-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 2px;
}

.about-img-frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-frame:hover img {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 24px 32px;
  border-top-right-radius: 4px;
}

.about-badge-year {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.9;
  text-transform: uppercase;
}

/* ==========================================================================
   History Section (Timeline)
   ========================================================================== */
.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 50%;
  padding-right: 40px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 40px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 4px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--primary-color);
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -9px;
}

.timeline-year {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(15, 39, 71, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title-en {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.product-title-kr {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.product-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.product-btn:hover {
  color: var(--accent-light);
  gap: 10px;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 50px;
}

.contact-info-card {
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.contact-info-subtitle {
  font-size: 1.05rem;
  color: #93C5FD;
  margin-bottom: 40px;
}

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

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93C5FD;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-details strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 4px;
}

.info-details p, .info-details a {
  color: #FFFFFF;
  font-size: 1rem;
}

.contact-form {
  background-color: var(--bg-white);
  padding: 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background-color: var(--bg-gray);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(15, 39, 71, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* Map Section */
.map-container {
  width: 100%;
  height: 450px;
  border: 1px solid var(--border-color);
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  padding-right: 20px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 20px;
}

.footer-slogan {
  font-size: 1.1rem;
  color: #93C5FD;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-info {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-white);
  max-width: 650px;
  width: 90%;
  padding: 40px;
  border-radius: 2px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary-color);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}
