/* ==========================================================================
   MODERN MARINE THEME - GLOBAL STYLES & DESIGN TOKENS (2026 Modern Edition)
   ========================================================================== */

/* Self-hosted fonts (lean budget 5.9): latin subset, variable weight, swap. Family names also come from theme_font_* settings. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/manrope-var.woff2') format('woff2'); }

:root {
  /* Brand palette (design defaults; header.php overrides them from Theme settings) */
  --color-navy-dark: #07152B;
  --color-navy-deep: #0E2849;
  --color-navy-main: #133863;
  --color-navy-light: #1E4E8C;
  --color-logo-blue: #1D4ED8;
  --color-brand-blue: #1652A0;
  --color-blue-accent: #0EA5E9;
  --color-blue-light: #EFF6FF;

  /* Neutral Tones */
  --color-white: #FFFFFF;
  --color-off-white: #F8FAFC;
  --color-light-grey: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-dark: rgba(255, 255, 255, 0.1);
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-dark-charcoal: #1E293B;

  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout & Spacing */
  --max-width: 1400px;
  --header-height: 84px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-off-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.8rem, 1.75rem); }
h4 { font-size: clamp(1.1rem, 1vw + 0.7rem, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-brand-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-logo-blue);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

/* Section Padding */
.section {
  padding: 3rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: var(--color-text-light);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(22, 82, 160, 0.08);
  color: var(--color-brand-blue);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  border: 1px solid rgba(22, 82, 160, 0.15);
}

.section-dark .section-badge {
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-blue-accent);
  border-color: rgba(14, 165, 233, 0.25);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background-color: var(--color-brand-blue);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(22, 82, 160, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-logo-blue);
  color: var(--color-white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.45);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-navy-dark);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
  background-color: var(--color-off-white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(22, 82, 160, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Badge System */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }

/* Grid Helpers */
.grid { display: grid; gap: 2rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex Helpers */
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--color-blue-accent) !important; }
.text-muted { color: var(--color-text-muted) !important; }
.bold { font-weight: 700; }

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal base responsive styles */
.modal, .modal-content, .modal-dialog {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .modal-dialog {
    margin: 1rem;
    width: auto;
    height: auto;
  }
}

@media (max-width: 767px) {
  .modal-dialog {
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .modal-content {
    height: 100%;
    border-radius: 0;
    border: none;
    overflow-y: auto;
  }
}

[data-aos^=fade][data-aos^=fade].aos-animate {
    opacity: 1;
}