/* =========================================
   자윈소스테 물류 - gradient_modern 스타일 CSS
   ========================================= */

/* 1. Font Import (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&family=Nanum+Gothic:wght@400;700&display=swap');

:root {
  --color-primary: #1B3A71;
  --color-primary-dark: #142a53;
  --color-secondary: #F7F7F7;
  --color-accent: #FFB21C;
  --color-accent-dark: #e09e1a;
  --color-bg-gradient: linear-gradient(135deg, #1B3A71 0%, #3e5fa8 50%, #FFB21C 100%);
  --color-bg-gradient-light: linear-gradient(135deg, #F7F7F7 0%, #e9effa 100%);
  --color-card-gradient: linear-gradient(120deg, #ffffff 60%, #e9effa 100%);
  --color-shadow: 0 4px 24px 0 rgba(27,58,113,0.08);
  --color-shadow-hover: 0 8px 32px 0 rgba(27,58,113,0.16);
  --font-display: 'Noto Sans KR', sans-serif;
  --font-body: 'Nanum Gothic', sans-serif;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --radius: 16px;
  --radius-sm: 8px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
  --gap-feature: 15px;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg-gradient-light);
  color: #222;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================
   Layout Containers
   ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: transparent;
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin: 0 0 16px 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #222;
  margin: 0 0 12px 0;
}
ul, ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 8px;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-accent);
}

/* =====================
   Header & Navigation
   ===================== */
header {
  background: var(--color-bg-gradient);
  box-shadow: var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 72px;
}
header img {
  height: 40px;
  margin-right: 32px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
header nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-accent) 0%, #ffd77a 100%);
  color: #1B3A71;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--color-shadow);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 24px;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #ffd77a 0%, var(--color-accent) 100%);
  color: var(--color-primary);
  box-shadow: var(--color-shadow-hover);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}

/* =====================
   Mobile Menu Overlay
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,58,113,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-bottom: 32px;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}

/* =====================
   Hero Section
   ===================== */
.hero-section {
  background: var(--color-bg-gradient);
  color: #fff;
  padding: 80px 0 60px 0;
  margin-bottom: var(--gap-section);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--color-shadow);
}
.hero-section .container {
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 28px;
}
.hero-section h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 18px;
}
.hero-section p {
  color: #f7f7f7;
  font-size: 1.15rem;
  margin-bottom: 28px;
}
.hero-section .btn-primary {
  margin-left: 0;
  margin-top: 10px;
}

/* =====================
   Feature Grid & Cards
   ===================== */
.feature-grid, .service-cards, .service-list, .vehicle-list, .team-list, .testimonial-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  justify-content: space-between;
}
.feature-grid > div, .service-cards > div, .service-list > div, .vehicle-list > div, .team-list > div, .faq-list > div {
  background: var(--color-card-gradient);
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover, .service-cards > div:hover, .service-list > div:hover, .vehicle-list > div:hover, .team-list > div:hover, .faq-list > div:hover {
  box-shadow: var(--color-shadow-hover);
  transform: translateY(-4px) scale(1.02);
}
.feature-grid h3, .service-cards h3, .service-list h3, .vehicle-list h3, .team-list h3, .faq-list h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.feature-grid p, .service-cards p, .service-list p, .vehicle-list p, .team-list p, .faq-list p {
  color: #333;
  font-size: 1rem;
}
.service-cards a, .service-list a {
  color: var(--color-accent);
  font-weight: 700;
  margin-top: 8px;
  font-size: 1rem;
  transition: color 0.2s;
}
.service-cards a:hover, .service-list a:hover {
  color: var(--color-primary);
}

/* =====================
   Testimonial Cards
   ===================== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  min-width: 260px;
  max-width: 380px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--color-shadow-hover);
  transform: translateY(-4px) scale(1.02);
}
.testimonial-card p {
  color: #222;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.98rem;
}
.testimonial-card span:last-child {
  color: var(--color-accent);
  font-weight: 700;
  margin-left: 8px;
}

/* =====================
   CTA Section
   ===================== */
.cta-section {
  background: var(--color-bg-gradient);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  margin-bottom: var(--gap-section);
  padding: 48px 20px;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 18px;
}
.cta-section p, .cta-section .contact-info span, .cta-section .contact-info p {
  color: #f7f7f7;
}
.cta-section .btn-primary {
  margin-top: 18px;
  margin-bottom: 18px;
}
.cta-section .contact-info {
  margin-top: 18px;
  color: #f7f7f7;
  font-size: 1rem;
}

/* =====================
   Contact Info & Map
   ===================== */
.contact-info {
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.6;
}
.map {
  margin-top: 12px;
  background: #f3f6fb;
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  color: #222;
  font-size: 0.98rem;
}

/* =====================
   Thank You Section
   ===================== */
.thank-you-section {
  background: var(--color-bg-gradient);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  margin-bottom: var(--gap-section);
  padding: 60px 20px;
  text-align: center;
}
.thank-you-section h1 {
  color: #fff;
  margin-bottom: 18px;
}
.thank-you-section p {
  color: #f7f7f7;
  margin-bottom: 28px;
}
.thank-you-section .btn-primary {
  margin-top: 18px;
}

/* =====================
   Footer
   ===================== */
footer {
  background: #fff;
  border-top: 1px solid #e9effa;
  padding: 32px 0 24px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 0.98rem;
  font-family: var(--font-display);
  transition: color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
}
footer p {
  color: #888;
  font-size: 0.95rem;
  margin: 0;
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 -2px 24px 0 rgba(27,58,113,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-text {
  color: #222;
  flex: 1 1 auto;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: var(--color-shadow);
}
.cookie-banner .accept {
  background: linear-gradient(90deg, var(--color-accent) 0%, #ffd77a 100%);
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: linear-gradient(90deg, #ffd77a 0%, var(--color-accent) 100%);
}
.cookie-banner .reject {
  background: #e9effa;
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #dbe6f7;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #e9effa;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f7f7f7;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(27,58,113,0.35);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--color-shadow-hover);
  padding: 36px 32px 28px 32px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInModal 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInModal {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #222;
  flex: 1 1 auto;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  color: #888;
  font-size: 0.95rem;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: var(--color-shadow);
}
.cookie-modal .accept {
  background: linear-gradient(90deg, var(--color-accent) 0%, #ffd77a 100%);
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: linear-gradient(90deg, #ffd77a 0%, var(--color-accent) 100%);
}
.cookie-modal .reject {
  background: #e9effa;
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-modal .reject:hover, .cookie-modal .reject:focus {
  background: #dbe6f7;
}
.cookie-modal .close {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #e9effa;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  background: #f7f7f7;
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .feature-grid > div, .service-cards > div, .service-list > div, .vehicle-list > div, .team-list > div, .faq-list > div {
    min-width: 220px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid, .service-cards, .service-list, .vehicle-list, .team-list, .testimonial-list, .faq-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 0;
    padding: 0 12px;
  }
  header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
    padding: 12px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .service-cards, .service-list, .vehicle-list, .team-list, .testimonial-list, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-cards > div, .service-list > div, .vehicle-list > div, .team-list > div, .faq-list > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .cta-section, .thank-you-section, .hero-section {
    padding: 36px 10px;
  }
  .section {
    padding: 28px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 10px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-modal {
    padding: 24px 10px 18px 10px;
    min-width: 0;
    width: 98vw;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .cta-section h2, .thank-you-section h1 {
    font-size: 1.2rem;
  }
  .btn-primary {
    padding: 10px 12px;
    font-size: 0.98rem;
  }
}

/* =====================
   Utility Classes
   ===================== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-gradient);
  border-radius: var(--radius);
  box-shadow: var(--color-shadow);
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--color-shadow-hover);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================
   Micro-interactions
   ===================== */
.btn-primary, .cookie-banner button, .cookie-modal button {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.97);
}
.card:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* =====================
   Accessibility Focus
   ===================== */
a:focus, button:focus, .btn-primary:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =====================
   Hide Mobile Menu by Default
   ===================== */
.mobile-menu {
  display: flex;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* =====================
   Prevent Overlapping
   ===================== */
.feature-grid > div, .service-cards > div, .service-list > div, .vehicle-list > div, .team-list > div, .faq-list > div, .testimonial-card, .card {
  margin-bottom: 20px;
}

/* =====================
   Z-index for overlays
   ===================== */
.mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 9999;
}

/* =====================
   End of CSS
   ===================== */
