/* Chittagong Port Agent - Static Site Styles */
/* Design tokens matching original Tailwind theme */

:root {
  --radius: 0.625rem;
  --background: oklch(0.99 0.003 240);
  --foreground: oklch(0.2 0.04 255);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.04 255);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.2 0.04 255);
  --primary: oklch(0.27 0.07 255);
  --primary-foreground: oklch(0.98 0.005 240);
  --secondary: oklch(0.96 0.01 240);
  --secondary-foreground: oklch(0.27 0.07 255);
  --muted: oklch(0.96 0.01 240);
  --muted-foreground: oklch(0.5 0.03 255);
  --accent: oklch(0.62 0.16 245);
  --accent-foreground: oklch(0.99 0 0);
  --hero-foreground: oklch(0.99 0 0);
  --hero-overlay: linear-gradient(100deg, oklch(0.2 0.06 255 / 0.88) 0%, oklch(0.25 0.07 255 / 0.6) 50%, oklch(0.3 0.07 250 / 0.25) 100%);
  --footer: oklch(0.18 0.05 255);
  --whatsapp: #25d366;
  --whatsapp-hover: #20b858;
  --whatsapp-surface: #ffffff;
  --whatsapp-surface-hover: #f3f9fb;
  --whatsapp-ring: rgb(0 107 143 / 0.24);
  --footer-foreground: oklch(0.85 0.02 240);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
  --ring: oklch(0.704 0.04 256.788);
  --shadow-card: 0 1px 2px color-mix(in oklab, var(--primary) 6%, transparent);
  --shadow-elevated: 0 18px 40px -18px color-mix(in oklab, var(--primary) 35%, transparent);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

/* Typography */
.font-display {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* Layout utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-28 { padding-top: 7rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-5 { margin-bottom: 1.25rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-14 > * + * { margin-top: 3.5rem; }

.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.place-items-center { place-items: center; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.w-10 { width: 2.5rem; }
.h-14 { height: 3.5rem; }
.w-14 { width: 3.5rem; }
.h-\[18px\] { height: 18px; }
.w-\[18px\] { width: 18px; }
.h-\[26px\] { height: 26px; }
.w-\[26px\] { width: 26px; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.bottom-5 { bottom: 1.25rem; }
.right-5 { right: 1.25rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.scroll-mt-4 { scroll-margin-top: 1rem; }

/* Text */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.05\] { line-height: 1.05; }
.text-center { text-align: center; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Colors */
.bg-background { background-color: var(--background); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-card { background-color: var(--card); }
.bg-footer { background-color: var(--footer); }
.bg-primary-foreground { background-color: var(--primary-foreground); }
.bg-hero-overlay { background: var(--hero-overlay); }
.text-foreground { color: var(--foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-hero-foreground { color: var(--hero-foreground); }
.text-footer-foreground { color: var(--footer-foreground); }
.text-whatsapp { color: var(--whatsapp); }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-current { border-color: currentColor; }
.border-primary { border-color: var(--primary); }
.border-accent { border-color: var(--accent); }
.border-primary-foreground\/15 { border-color: color-mix(in oklab, var(--primary-foreground) 15%, transparent); }
.border-primary-foreground\/30 { border-color: color-mix(in oklab, var(--primary-foreground) 30%, transparent); }
.border-footer-foreground\/25 { border-color: color-mix(in oklab, var(--footer-foreground) 25%, transparent); }
.border-whatsapp-ring { border-color: var(--whatsapp-ring); }
.bg-primary-foreground\/5 { background-color: color-mix(in oklab, var(--primary-foreground) 5%, transparent); }
.bg-whatsapp-surface { background-color: var(--whatsapp-surface); }

/* Borders & Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-card { box-shadow: var(--shadow-card); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* Hero */
.hero-header {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--hero-foreground);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Transitions */
.transition {
  transition-property: color, background-color, border-color, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Hover states */
a:hover.opacity-90 { opacity: 1; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:border-accent:hover { border-color: var(--accent); }
.hover\:bg-accent:hover { background-color: var(--accent); color: var(--accent-foreground); }
.hover\:bg-primary:hover { background-color: var(--primary); color: var(--primary-foreground); }
.hover\:bg-primary-foreground\/10:hover,
a.hover\:bg-primary-foreground\/10:hover { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.mobile-menu a:hover { background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.hover\:bg-whatsapp-surface-hover:hover { background-color: var(--whatsapp-surface-hover); }
.hover\:text-whatsapp-hover:hover { color: var(--whatsapp-hover); }
.hover\:text-accent:hover { color: var(--accent); }
.hover\:shadow-elevated:hover { box-shadow: var(--shadow-elevated); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.underline-offset-4 { text-underline-offset: 4px; }
.hover\:underline:hover { text-decoration: underline; }

/* Mobile menu */
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
}

/* Cards hover */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 150ms, border-color 150ms, box-shadow 150ms;
}
.service-card:hover {
  transform: translateY(-0.25rem);
  border-color: var(--accent);
  box-shadow: var(--shadow-elevated);
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none !important; }
  .md\:inline-flex { display: inline-flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:text-left { text-align: left; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:h-8 { height: 2rem; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:pt-28 { padding-top: 7rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:pb-8 { padding-bottom: 2rem; }
  .hero-header { min-height: 760px; }
  .mobile-menu { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Grid gaps */
.grid-gap-5 { gap: 1.25rem; }
.grid-gap-6 { gap: 1.5rem; }

/* Specific components */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--primary-foreground) 30%, transparent);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: background-color 150ms;
}
.btn-outline:hover {
  background-color: color-mix(in oklab, var(--primary-foreground) 10%, transparent);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: var(--primary-foreground);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: opacity 150ms;
}
.btn-solid:hover {
  opacity: 0.9;
}

.social-link {
  display: grid;
  height: 2.5rem;
  width: 2.5rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--footer-foreground) 25%, transparent);
  transition: border-color 150ms, background-color 150ms, color 150ms;
}
.social-link:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: grid;
  height: 3.5rem;
  width: 3.5rem;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid var(--whatsapp-ring);
  background-color: var(--whatsapp-surface);
  color: var(--whatsapp);
  box-shadow: var(--shadow-elevated);
  transition: transform 150ms, background-color 150ms, color 150ms;
}
.whatsapp-float:hover {
  transform: translateY(-0.125rem);
  background-color: var(--whatsapp-surface-hover);
  color: var(--whatsapp-hover);
}

/* Icon sizes for lucide-like SVGs */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.icon-sm {
  width: 18px;
  height: 18px;
}
.icon-md {
  width: 26px;
  height: 26px;
}
.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* 404 page */
.not-found {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--background);
}
.not-found-inner {
  max-width: 28rem;
  text-align: center;
}
.not-found h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--foreground);
}
.not-found h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.not-found p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.not-found a {
  display: inline-flex;
  margin-top: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: var(--primary);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  transition: background-color 150ms;
}
.not-found a:hover {
  background: color-mix(in oklab, var(--primary) 90%, black);
}
