/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ==========================================================================
   성우고속 (SungWoo Express) - Brand Theme Styles
   ========================================================================== */

/* Component Styles */
@import url("/assets/components/price_calculator-d37e789b.css");
@import url("/assets/service_process-3f28da75.css");
@import url("/assets/page_transition-e1fee5a1.css");
@import url("/assets/scroll_animations-54510646.css");

/* CSS Variables - Brand Colors & Theme */
:root {
  /* Primary Colors */
  --color-primary-main: #1b3e89;
  --color-primary-light: #4a6bb5;
  --color-primary-dark: #0f2654;
  --color-primary-contrast: #ffffff;
  
  /* Secondary Colors */
  --color-secondary-main: #ff813e;
  --color-secondary-light: #ffa366;
  --color-secondary-dark: #cc5a1f;
  --color-secondary-contrast: #ffffff;
  
  /* Neutral Colors */
  --color-neutral-white: #ffffff;
  --color-neutral-light-gray: #f7f7f8;
  --color-neutral-medium-gray: #aaaaaa;
  --color-neutral-dark-gray: #393939;
  --color-neutral-black: #000000;
  
  /* Functional Colors */
  --color-success: #6db142;
  --color-warning: #ff813e;
  --color-error: #da1f55;
  --color-info: #1b3e89;
  
  /* Typography */
  --font-family-primary: '나눔스퀘어', 'NanumSquare', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Border Radius */
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Container */
  --container-max-width: 1200px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* iOS Safari viewport height optimization */
  height: -webkit-fill-available;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-neutral-dark-gray);
  background-color: var(--color-neutral-white);
  /* iOS Safari 실제 기기 최적화 */
  position: relative;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-main);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-normal);
}

a {
  color: var(--color-primary-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary-main);
  color: var(--color-primary-contrast);
}

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

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

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

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

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

.btn-cta {
  background: linear-gradient(135deg, var(--color-secondary-main), var(--color-secondary-dark));
  color: var(--color-secondary-contrast);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  box-shadow: 0 4px 16px rgba(255, 129, 62, 0.3);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 129, 62, 0.4);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--color-neutral-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-main);
  margin-bottom: var(--spacing-md);
}

.card-content {
  font-size: var(--font-size-base);
  color: var(--color-neutral-dark-gray);
  line-height: var(--line-height-normal);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-dark-gray);
  margin-bottom: var(--spacing-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family-primary);
  border: 1px solid var(--color-neutral-medium-gray);
  border-radius: var(--radius-md);
  background-color: var(--color-neutral-white);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-main);
  box-shadow: 0 0 0 3px rgba(27, 62, 137, 0.1);
}

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

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--spacing-3xl) 0;
}

.section-hero {
  background: linear-gradient(135deg, var(--color-primary-main), var(--color-primary-dark));
  color: var(--color-neutral-white);
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.section-hero h1 {
  color: var(--color-neutral-white);
  margin-bottom: var(--spacing-lg);
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  background-color: var(--color-neutral-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary-main);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-link {
  color: var(--color-neutral-dark-gray);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--color-neutral-dark-gray);
  color: var(--color-neutral-white);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer h3,
.footer h4 {
  color: var(--color-neutral-white);
  margin-bottom: var(--spacing-lg);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: var(--color-neutral-white);
}

/* ==========================================================================
   Tailwind-like Button Classes for theme_button component
   ========================================================================== */

/* Button Base Classes */
.inline-block { display: inline-block; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.125rem; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.cursor-pointer { cursor: pointer; }
.no-underline { text-decoration: none; }

/* Button Backgrounds */
.bg-primary-main { background-color: var(--color-primary-main); }
.bg-primary-dark { background-color: var(--color-primary-dark); }
.bg-secondary-main { background-color: var(--color-secondary-main); }
.bg-secondary-dark { background-color: var(--color-secondary-dark); }
.bg-transparent { background-color: transparent; }
.bg-functional-error { background-color: var(--color-error); }
.bg-neutral-gray { background-color: var(--color-neutral-medium-gray); }
.bg-neutral-darkGray { background-color: var(--color-neutral-dark-gray); }

/* Border Classes */
.border-2 { border-width: 2px; border-style: solid; }
.border-white { border-color: white; }

/* Hover States */
.hover\:bg-primary-dark:hover { background-color: var(--color-primary-dark); }
.hover\:bg-secondary-dark:hover { background-color: var(--color-secondary-dark); }
.hover\:bg-white:hover { background-color: white; }
.hover\:text-primary-main:hover { color: var(--color-primary-main); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:bg-primary-main:hover { background-color: var(--color-primary-main); }
.hover\:bg-opacity-10:hover { background-color: rgba(27, 62, 137, 0.1); }
.hover\:bg-red-700:hover { background-color: #b91c1c; }

/* Active States */
.active\:scale-95:active { transform: scale(0.95); }

/* Background Gradients */
.bg-gradient-to-r { 
  background-image: linear-gradient(to right, var(--tw-gradient-stops)); 
}
.from-secondary-main { 
  --tw-gradient-from: var(--color-secondary-main); 
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, var(--color-secondary-dark)); 
}
.to-secondary-dark { 
  --tw-gradient-to: var(--color-secondary-dark); 
}

/* Button Groups */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Code Blocks */
.code-block {
  background: var(--color-neutral-light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.code-block pre {
  margin: 0;
  font-size: 14px;
}

.code-block code {
  font-family: 'Courier New', monospace;
  color: var(--color-neutral-dark-gray);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Spacing */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }

/* Colors */
.text-primary { color: var(--color-primary-main); }
.text-secondary { color: var(--color-secondary-main); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-white { color: var(--color-neutral-white); }
.text-muted { color: var(--color-neutral-medium-gray); }

.bg-primary { background-color: var(--color-primary-main); }
.bg-secondary { background-color: var(--color-secondary-main); }
.bg-light { background-color: var(--color-neutral-light-gray); }
.bg-white { background-color: var(--color-neutral-white); }

/* Borders */
.border { border: 1px solid var(--color-neutral-medium-gray); }
.border-primary { border-color: var(--color-primary-main); }
.border-secondary { border-color: var(--color-secondary-main); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Width */
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.w-auto { width: auto; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
  
  .md-d-none { display: none; }
  .md-d-block { display: block; }
  .md-d-flex { display: flex; }
  
  .md-flex-row { flex-direction: row; }
  .md-flex-column { flex-direction: column; }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .lg-d-none { display: none; }
  .lg-d-block { display: block; }
  .lg-d-flex { display: flex; }
  
  .lg-flex-row { flex-direction: row; }
  .lg-flex-column { flex-direction: column; }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  :root {
    --font-size-3xl: 36px;
    --font-size-2xl: 28px;
    --font-size-xl: 20px;
  }

  .container {
    padding: 0 var(--spacing-xs);
  }

  .nav-menu {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .btn {
    width: 100%;
    padding: var(--spacing-md);
  }

  .sm-d-none { display: none; }
  .sm-d-block { display: block; }
  .sm-text-center { text-align: center; }
}

/* ==========================================================================
   Mobile Optimizations for Home & About Pages (768px and down)
   ========================================================================== */

@media (max-width: 768px) {
  /* Home page hero section */
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  /*.hero-form-card {
    padding: 30px !important;
  }*/

  /* About page font size reductions */
  .about-intro-title,
  .about-core-values-title,
  .about-cta-title {
    font-size: 26px !important;
  }

  .about-intro-text {
    font-size: 14px !important;
  }

  .about-core-values-subtitle,
  .about-cta-text {
    font-size: 15px !important;
  }

  /* Typography reductions */
  p[style*="font-size: 18px"],
  p[style*="font-size: 20px"] {
    font-size: 15px !important;
  }

  h3[style*="font-size: 24px"] {
    font-size: 20px !important;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ==========================================================================
   Custom Dropdown - Cross-Browser Compatible
   ========================================================================== */

/* Container */
.custom-dropdown-container {
  position: relative;
  width: 100%;
}

/* Dropdown Button */
.custom-dropdown-button {
  width: 100%;
  padding: 8px 40px 8px 15px;
  font-size: 15px;
  font-family: var(--font-family-primary);
  border: 2px solid #e1e4e8;
  border-radius: 12px;
  background-color: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.custom-dropdown-button:hover {
  border-color: var(--color-primary-light);
  background: #f8f9fa;
}

.custom-dropdown-button:focus {
  outline: none;
  border-color: var(--color-primary-main);
  box-shadow: 0 0 0 4px rgba(27, 62, 137, 0.1);
}

.custom-dropdown-button.open {
  border-color: var(--color-primary-main);
  box-shadow: 0 0 0 4px rgba(27, 62, 137, 0.1);
}

/* Button Text */
.custom-dropdown-button-text {
  flex: 1;
  color: #333;
  font-size: 15px;
}

/* Arrow Icon */
.custom-dropdown-arrow {
  width: 20px;
  height: 20px;
  color: #666;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-dropdown-button.open .custom-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu - ALWAYS appears BELOW button (Safari-style) */
.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 2px solid var(--color-primary-main);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 0;
}

.custom-dropdown-menu.open {
  max-height: 300px;
  opacity: 1;
  overflow-y: auto;
}

/* Dropdown Items */
.custom-dropdown-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.custom-dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown-item:hover {
  background: #f8f9fa;
  color: var(--color-primary-main);
}

.custom-dropdown-item.selected {
  background: linear-gradient(135deg, rgba(27, 62, 137, 0.1), rgba(27, 62, 137, 0.05));
  color: var(--color-primary-main);
  font-weight: 600;
  position: relative;
}

.custom-dropdown-item.selected::after {
  content: '✓';
  position: absolute;
  right: 15px;
  color: var(--color-primary-main);
  font-weight: bold;
}

/* Scrollbar Styling */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 12px 12px 0;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: 4px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-main);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .custom-dropdown-button {
    min-height: 44px; /* Touch-friendly */
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .custom-dropdown-item {
    padding: 14px 15px;
    font-size: 16px;
  }

  .custom-dropdown-menu {
    max-height: 250px; /* Limit height on mobile */
  }
}


/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .nav,
  .footer,
  .btn,
  .no-print {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ==========================================================================
   iOS Safari Mobile Optimization
   ========================================================================== */

/* Prevent iOS Safari auto-zoom on input focus (font-size must be 16px or larger) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="button"],
select,
textarea {
  font-size: 16px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  box-sizing: border-box;
  -webkit-border-radius: 0;
}

/* iOS Safari specific optimizations */
@supports (-webkit-touch-callout: none) {
  /* Prevent zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="date"],
  input[type="month"],
  input[type="week"],
  input[type="time"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="button"],
  select,
  textarea {
    font-size: max(16px, 1em);
  }

  /* Optimize viewport height for iOS Safari */
  body,
  html {
    height: -webkit-fill-available;
  }

  /* Full height elements */
  .full-height,
  .h-screen,
  [style*="height: 100vh"] {
    height: -webkit-fill-available !important;
  }

  /* position: fixed 요소 최적화 (실제 기기) */
  [style*="position: fixed"],
  .fixed,
  [class*="fixed"] {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* ==========================================================================
   iOS Safari Debugging Utilities
   ========================================================================== */

/*
 * 디버깅용 아웃라인 클래스
 * 레이아웃 문제 해결 시 body에 .debug-outline 클래스를 추가하여 모든 요소의 경계 확인
 * 사용법: <body class="debug-outline">
 */
.debug-outline * {
  outline: 1px solid red !important;
}

/* 터치 영역 시각화 (디버깅용) */
.debug-touch-area {
  outline: 2px dashed blue !important;
  background-color: rgba(0, 0, 255, 0.1) !important;
}

/* 오프셋 계산 확인용 */
.debug-offset-marker {
  position: relative;
}

.debug-offset-marker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  z-index: 10000;
}

/* ==========================================================================
   Global Mobile Optimization
   ========================================================================== */

@media (max-width: 768px) {
  /* Grid를 단일 컬럼으로 변경 */
  [style*="display: grid"],
  [style*="grid-template-columns"] {
    grid-template-rows: 1fr !important;
  }

  /* 폰트 크기 조정 */
  h1, [style*="font-size: 48px"],
  [style*="font-size: 3rem"] {
    font-size: 32px !important;
  }

  h2, [style*="font-size: 36px"],
  [style*="font-size: 2.25rem"] {
    font-size: 28px !important;
  }

  h3, [style*="font-size: 24px"],
  [style*="font-size: 1.5rem"] {
    font-size: 20px !important;
  }

  /* 패딩 조정 
  section,
  [style*="padding: 80px"],
  [style*="padding: 120px"] {
    padding: 40px 20px !important;
  } */

  /* About 페이지 Hero 섹션 상단 패딩 최소화 */
  section[style*="padding: 120px 20px 80px"] {
    padding-top: 60px !important;
  }

  /* 이미지 높이 자동 조정 */
  img[style*="height: 500px"],
  img[style*="height: 600px"] {
    height: 300px !important;
  }

  /* 대표이사 인사말 레이아웃 (about 페이지) */
  .ceo-message-container [style*="position: absolute"] {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }

  .ceo-message-container [style*="margin-left: 340px"] {
    margin-left: 0 !important;
    top: 0 !important;
  }

  .ceo-message-container [style*="width: 450px"] {
    width: 100% !important;
    height: 400px !important;
  }

  /* 타임라인 레이아웃 최적화 */
  [style*="padding-left: 40px"] {
    padding-left: 20px !important;
  }

  [style*="left: -30px"] {
    left: -10px !important;
  }

  /* 최대 너비 제한 */
  [style*="max-width: 1200px"] {
    max-width: 100% !important;
  }

  /* Flexbox 간격 조정 */
  [style*="gap: 60px"],
  [style*="gap: 50px"] {
    gap: 30px !important;
  }

  /* 버튼 및 링크 터치 영역 최적화 */
  button, a[style*="padding"] {
    min-height: 44px;
    min-width: 44px;
  }

  /* 메인 홈페이지 예약 폼 모바일 full-width */
  .hero-form-card {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 30px 30px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* 빠른 탁송 예약하기 섹션 full-width */
  .quote-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 40px 20px !important;
  }

  /* About 페이지 Core Values 그리드 모바일 최적화 */
  .about-core-values-grid {
    grid-template-rows: 1fr !important;
    gap:3px !important;
  }

  .about-core-values-grid > div {
    padding: 15px 20px !important;
  }

  .about-core-values-grid h3 {
    font-size: 13px !important;
    margin-bottom: 5px !important;
  }

  .about-core-values-grid p {
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  .about-core-values-grid [style*="width: 80px"] {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 15px !important;
  }

  /* About 페이지 Core Values 아이콘 모바일 최적화 */
  .about-core-values-grid svg {
    width: 24px !important;
    height: 24px !important;
  }
}