/* Baizah Logistics - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');
@import 'variables.css';

/* Base */
* {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Prevent horizontal overflow on all screen sizes */
section,
header,
footer,
.container-wide {
  max-width: 100%;
}

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

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

/* Layout */
.min-h-screen { min-height: 100vh; min-height: 100dvh; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-20 { padding-top: 5rem; }
.pb-8 { padding-bottom: 2rem; }
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xl { max-width: 36rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-32 { height: 8rem; }
.h-20 { height: 5rem; }
.h-\[400px\] { height: 400px; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-1\.5 { width: 0.375rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-0\.5 { height: 0.125rem; }
.h-1\.5 { height: 0.375rem; }
.shrink-0 { flex-shrink: 0; }

/* Flexbox / Grid */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:h-14 { height: 3.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
  .lg\:h-\[500px\] { height: 500px; }
}

@media (min-width: 1280px) {
  .xl\:right-16 { right: 4rem; }
}

/* Extra small screens: prevent overflow and improve touch targets */
@media (max-width: 479px) {
  .section-padding {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  #home .container-wide.section-padding {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  .text-4xl { font-size: 1.75rem; }
  .gap-4 { gap: 0.75rem; }
  .px-8 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .py-4 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
}

/* Small phones: ensure hero content doesn't overflow */
@media (max-width: 374px) {
  .section-padding { padding-left: 0.5rem; padding-right: 0.5rem; }
  #home h1 { font-size: 1.5rem; }
  #home .text-lg { font-size: 1rem; }
}

/* Typography */
.font-heading { font-family: 'Montserrat', sans-serif; }
.font-body { font-family: 'Open Sans', sans-serif; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-800 { font-weight: 800; }
.font-900 { font-weight: 900; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }

/* Colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.underline { text-decoration: underline; }
.hover\:text-primary\/90:hover { color: hsl(var(--primary) / 0.9); }
.text-secondary { color: hsl(var(--secondary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-card { background-color: hsl(var(--card)); }
.border-border { border-color: hsl(var(--border)); }
.border-primary-foreground\/10 { border-color: hsl(var(--primary-foreground) / 0.1); }
.border-primary-foreground\/20 { border-color: hsl(var(--primary-foreground) / 0.2); }
.border-secondary\/40 { border-color: hsl(var(--secondary) / 0.4); }
.border-secondary\/30 { border-color: hsl(var(--secondary) / 0.3); }
.border-secondary\/20 { border-color: hsl(var(--secondary) / 0.2); }

/* Opacity variants */
.text-primary-foreground\/70 { color: hsl(var(--primary-foreground) / 0.7); }
.text-primary-foreground\/80 { color: hsl(var(--primary-foreground) / 0.8); }
.text-primary-foreground\/60 { color: hsl(var(--primary-foreground) / 0.6); }
.text-primary-foreground\/50 { color: hsl(var(--primary-foreground) / 0.5); }
.text-primary-foreground\/40 { color: hsl(var(--primary-foreground) / 0.4); }
.bg-secondary\/20 { background-color: hsl(var(--secondary) / 0.2); }
.bg-secondary\/10 { background-color: hsl(var(--secondary) / 0.1); }
.bg-primary\/95 { background-color: hsl(var(--primary) / 0.95); }
.bg-primary\/98 { background-color: hsl(var(--primary) / 0.98); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-primary-foreground\/10 { background-color: hsl(var(--primary-foreground) / 0.1); }
.bg-primary-foreground\/5 { background-color: hsl(var(--primary-foreground) / 0.05); }
.bg-primary-foreground\/20 { background-color: hsl(var(--primary-foreground) / 0.2); }
.bg-card\/80 { background-color: hsl(var(--card) / 0.8); }
.bg-navy-dark\/95 { background-color: hsl(var(--navy-dark) / 0.95); }
.bg-navy\/85 { background-color: hsl(var(--navy) / 0.85); }
.bg-navy\/60 { background-color: hsl(var(--navy) / 0.6); }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-primary-foreground\/10 { border-color: hsl(var(--primary-foreground) / 0.1); }
.border-secondary\/30 { border-color: hsl(var(--secondary) / 0.3); }
.border-secondary\/50 { border-color: hsl(var(--secondary) / 0.5); }
.focus\:ring-secondary\/50:focus { --tw-ring-color: hsl(var(--secondary) / 0.5); }
.shadow-gold\/20 { --tw-shadow-color: hsl(var(--gold) / 0.2); }
.hover\:shadow-gold\/20:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px hsl(var(--gold) / 0.2); }
.placeholder\:text-muted-foreground::placeholder { color: hsl(var(--muted-foreground)); }

/* Gradients & special */
.gradient-navy {
  background: linear-gradient(135deg, hsl(var(--navy-dark)) 0%, hsl(var(--navy)) 50%, hsl(var(--navy-light)) 100%);
}
.gradient-gold {
  background: linear-gradient(135deg, hsl(var(--gold-dark)) 0%, hsl(var(--gold)) 50%, hsl(var(--gold-light)) 100%);
}
.text-gradient-gold {
  background: linear-gradient(135deg, hsl(var(--gold)) 0%, hsl(var(--gold-light)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-navy-dark\/95 { --tw-gradient-from: hsl(var(--navy-dark) / 0.95); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-navy\/85 { --tw-gradient-to: hsl(var(--navy) / 0.85); --tw-gradient-via: hsl(var(--navy) / 0.85); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to); }
.to-navy\/60 { --tw-gradient-to: hsl(var(--navy) / 0.6); }
.from-background { --tw-gradient-from: hsl(var(--background)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

/* Borders & radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }

/* Hero: fill entire viewport on all screen sizes */
#home {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  position: relative;
}
#home > div.absolute {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}
#home > div.absolute > img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  #home {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Effects */
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* Component classes */
.section-padding {
  padding-left: 1rem; padding-right: 1rem;
  padding-top: 4rem; padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .section-padding { padding-left: 1.5rem; padding-right: 1.5rem; padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 1024px) {
  .section-padding { padding-left: 2rem; padding-right: 2rem; padding-top: 6rem; padding-bottom: 6rem; }
}

.container-wide {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-wide { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-wide { padding-left: 2rem; padding-right: 2rem; }
}

.glass-card {
  background-color: hsl(var(--card) / 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.hover-lift {
  transition: all 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Nav link underline - same as React (relative, ::after bar, hover/active scale) */
.relative { position: relative; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.125rem;
  bottom: -4px;
  left: 0;
  background-color: hsl(var(--secondary));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after,
.nav-link-active::after { transform: scaleX(1); transform-origin: bottom left; }

/* Form inputs */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: hsl(var(--secondary));
  box-shadow: 0 0 0 2px hsl(var(--secondary) / 0.5);
}
textarea {
  resize: none;
  min-height: 120px;
}

/* Animations — hero entrance waits for body.is-ready (after page loader) */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroZoom {
  from {
    opacity: 0.55;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-up,
.animate-fade-up-delay-1,
.animate-fade-up-delay-2,
.animate-fade-up-delay-3,
.animate-fade-up-delay-4 {
  opacity: 0;
  transform: translateY(40px);
}

body.is-ready .animate-fade-up {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}
body.is-ready .animate-fade-up-delay-1 {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
body.is-ready .animate-fade-up-delay-2 {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
body.is-ready .animate-fade-up-delay-3 {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}
body.is-ready .animate-fade-up-delay-4 {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.animate-fade-in {
  opacity: 0;
}
body.is-ready .animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.hero-bg-anim {
  opacity: 0.55;
  transform: scale(1.08);
}
body.is-ready .hero-bg-anim {
  animation: heroZoom 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-float {
  opacity: 0;
}
body.is-ready .animate-float {
  opacity: 1;
  animation: float 3s ease-in-out infinite;
  transition: opacity 0.6s ease;
}

/* Scroll reveal — initial + visible states */
.reveal-on-scroll,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade,
.stat-item {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll,
.reveal-fade,
.stat-item {
  transform: translateY(2.5rem);
}

.reveal-left {
  transform: translateX(-3rem);
}

.reveal-right {
  transform: translateX(3rem);
}

.reveal-scale {
  transform: scale(0.92) translateY(1.25rem);
}

.reveal-on-scroll.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible,
.reveal-fade.is-visible,
.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.reveal-heading {
  opacity: 0;
  transform: translateY(1.75rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-fade,
  .reveal-heading,
  .stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-600 { transition-duration: 600ms; }
.duration-700 { transition-duration: 700ms; }
.transition-colors { transition-property: color, background-color, border-color; }
.transition-transform { transition-property: transform; }

/* Hover states */
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.hover\:text-secondary:hover { color: hsl(var(--secondary)); }
.hover\:border-secondary:hover { border-color: hsl(var(--secondary)); }
.hover\:bg-gold-light:hover { background-color: hsl(var(--gold-light)); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* 404 page - same structure and classes as React NotFound */
.page-404 {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--muted));
}

/* Icon SVG sizing (used with .icon) */
.icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }
.icon-2xl { width: 2rem; height: 2rem; }

/* Scroll behavior */
html { scroll-behavior: smooth; }

/* Header states - exact same as React: bg-transparent py-4 | bg-primary/95 backdrop-blur-md shadow-lg py-2 */
#site-header.bg-transparent {
  background-color: transparent;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
#site-header.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
#site-header.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#site-header.bg-primary\/95 {
  background-color: hsl(var(--primary) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Page load indicator */
body.page-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--navy-dark));
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  --color-1: hsl(var(--primary-foreground));
  --color-2: hsl(var(--gold));
  --size: 1px;

  width: calc(48 * var(--size));
  height: calc(48 * var(--size));
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite;
}

.loader::before,
.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: calc(5 * var(--size)) solid var(--color-1);
  animation: prixClipFix 2s linear infinite;
}

.loader::after {
  transform: rotate3d(90, 90, 0, 180deg);
  border-color: var(--color-2);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  75%,
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
}

/* About section — years badge overlays the photo without covering the heading */
.about-image-col {
  margin-bottom: 2.5rem;
}

.about-years-badge {
  position: relative;
  z-index: 10;
  display: inline-block;
  max-width: 11rem;
  margin-top: -3.25rem;
  margin-left: 1rem;
}

@media (min-width: 1024px) {
  .about-image-col {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
  }

  .about-years-badge {
    position: absolute;
    display: block;
    margin: 0;
    left: auto;
    right: 1rem;
    bottom: -1.25rem;
    padding: 1.25rem;
  }
}
