/* =============================================
   BootSearch – Maritime Landing Page
   ============================================= */

/* --- CSS Variables / Theme --- */
:root {
  --blue-deep:      #0a2a44;
  --blue-dark:      #0d3b66;
  --blue-mid:       #1a6b8a;
  --blue-light:     #3a9bc7;
  --blue-pale:      #7ec8e3;
  --blue-foam:      #c8eaf5;
  --white:          #ffffff;
  --off-white:      #f4f9fc;
  --gray-100:       #f0f4f8;
  --gray-200:       #dce4ec;
  --gray-400:       #8a9bb0;
  --gray-600:       #5a6e84;
  --text-dark:      #0a1a2e;

  --wave-color-1:   var(--blue-mid);
  --wave-color-2:   var(--blue-light);
  --wave-color-3:   var(--blue-pale);

  --shadow-sm:      0 2px 8px rgba(10, 42, 68, 0.08);
  --shadow-md:      0 8px 32px rgba(10, 42, 68, 0.12);
  --shadow-lg:      0 16px 48px rgba(10, 42, 68, 0.18);
  --shadow-focus:   0 0 0 4px rgba(58, 155, 199, 0.25);

  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-full:    9999px;

  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif:     'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--blue-dark) 30%, var(--blue-mid) 60%, var(--blue-light) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background texture (ocean shimmer) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* --- Wave Decorations --- */
.wave-top,
.wave-bottom {
  position: relative;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
  height: 80px;
}

.wave-top svg {
  height: 80px;
}

.wave-bottom svg {
  height: 100px;
}

/* --- Header --- */
.header {
  padding: 20px 0 0;
  position: relative;
  z-index: 2;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.anchor-icon {
  color: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo-highlight {
  color: var(--blue-foam);
}

/* --- Hero / Search Section --- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  animation: fadeUp 0.8s ease-out both;
}

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

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--blue-foam);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  opacity: 0.9;
}

/* --- Search Form --- */
.search-form {
  margin-bottom: 32px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  padding: 6px 6px 6px 24px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  max-width: 640px;
  margin: 0 auto;
}

.search-wrapper:focus-within {
  box-shadow: var(--shadow-focus), var(--shadow-lg);
  transform: scale(1.01);
}

.search-icon {
  flex-shrink: 0;
  color: var(--gray-400);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  padding: 14px 0;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
  opacity: 0.8;
}

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(26, 107, 138, 0.35);
}

.search-button:hover {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-pale));
  box-shadow: 0 6px 20px rgba(58, 155, 199, 0.45);
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 107, 138, 0.3);
}

/* --- Quick Links --- */
.quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.quick-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-right: 4px;
}

.quick-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.quick-link:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.quick-link:active {
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.footer-inner {
  text-align: center;
}

.footer-text {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.footer-text a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: var(--blue-foam);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .header {
    padding: 16px 0 0;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .hero {
    padding: 20px 0 40px;
  }

  .hero-subtitle {
    margin-bottom: 28px;
  }

  .search-wrapper {
    padding: 4px 4px 4px 16px;
    border-radius: 12px;
  }

  .search-icon {
    display: none;
  }

  .search-input {
    font-size: 1rem;
    padding: 12px 0;
  }

  .search-button {
    padding: 10px 18px;
    font-size: 0.9rem;
    gap: 4px;
  }

  .search-button svg {
    width: 16px;
    height: 16px;
  }

  .quick-links {
    gap: 6px 8px;
  }

  .quick-label {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
  }

  .quick-link {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .wave-top svg {
    height: 40px;
  }

  .wave-bottom svg {
    height: 60px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
}
