/*
Theme Name: VentusPort
Description: Premium FTZ logistics service landing page theme for Korean brands entering the US market. Features bilingual support (Korean/English), modern design, and comprehensive contact forms.
Version: 2.0
Author: VentusPort Team
Text Domain: ventusport
*/

/* Updated CSS with semantic design tokens from design brief */

/* Import professional fonts from design brief */
/* Removed @import for Google Fonts to prevent double-loading since fonts are already loaded in header.php */

/* CSS Custom Properties matching design brief color palette */
:root {
  --background: #ffffff;
  --foreground: #475569;
  --card: #ecfeff;
  --card-foreground: #164e63;
  --popover: #ffffff;
  --popover-foreground: #475569;
  --primary: #164e63;
  --primary-foreground: #ffffff;
  --secondary: #f97316;
  --secondary-foreground: #ffffff;
  --muted: #ecfeff;
  --muted-foreground: #475569;
  --accent: #f97316;
  --accent-foreground: #ffffff;
  --destructive: #ea580c;
  --destructive-foreground: #ffffff;
  --border: #475569;
  --input: #f8fafc;
  --ring: #164e63;
  --radius: 0.5rem;
}

/* Base styles with mobile-first approach */
* {
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Added text rendering properties to prevent letter clipping */
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Professional utility classes */
.container-responsive {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-responsive {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-responsive {
    padding: 0 2rem;
  }
}

.section-padding {
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .section-padding {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 5rem 2rem;
  }
}

/* Professional button styles using design brief colors */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -3px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background-color: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--muted);
  border-color: var(--accent);
}

/* Professional form styling */
.form-input {
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  color: var(--foreground);
  font-size: 16px; /* Prevents zoom on iOS */
  transition: all 0.2s ease-in-out;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 78, 99, 0.2);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

/* Enhanced mobile menu styling */
.mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Added space-y utility for mobile menu spacing */
.space-y-2 > * + * {
  margin-top: 0.5rem;
}

/* Added mt-3 utility for mobile menu top margin */
.mt-3 {
  margin-top: 0.75rem;
}

/* Added shadow-lg utility for mobile menu shadow */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Added rounded-xl utility for mobile menu border radius */
.rounded-xl {
  border-radius: 0.75rem;
}

/* Added p-3 utility for mobile menu padding */
.p-3 {
  padding: 0.75rem;
}

/* Added border utility for mobile menu border */
.border {
  border: 1px solid var(--border);
}

/* Added bg-white utility for mobile menu background */
.bg-white {
  background-color: #ffffff;
}

/* Professional navigation styling */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

/* Mobile-first responsive design */
@media (max-width: 1023px) {
  .main-navigation {
    display: none !important;
  }

  .mobile-menu-button {
    display: block !important;
  }
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex !important;
  }

  .mobile-menu-button,
  .mobile-menu {
    display: none !important;
  }
}

/* Added missing responsive utilities for desktop CTA button visibility */
@media (min-width: 1024px) {
  .desktop-cta {
    display: flex !important;
  }

  .mobile-menu-button {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .desktop-cta {
    display: none !important;
  }

  .mobile-menu-button {
    display: block !important;
  }
}

/* Enhanced card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .card-hover:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(22, 78, 99, 0.12);
  }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .card-hover:active {
    transform: scale(0.98);
    transition: transform 0.1s ease-in-out;
  }
}

/* Professional gradient text with design brief colors */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* WordPress specific styles */
.wp-block-group {
  margin: 0;
}

.alignwide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Enhanced md:hidden utility to ensure mobile menu stays hidden on desktop */
@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Professional loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhanced header shadow on scroll */
.site-header.scrolled {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.98);
}

/* Professional ripple effect with design brief colors */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Added specific text rendering fixes to prevent letter clipping */
p,
span,
div {
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Ensure no text overflow or clipping issues */
.hero-text,
.hero-description {
  overflow: visible;
  white-space: normal;
  word-break: normal;
  hyphens: none;
}
