/* ============================================================
   WW&S — WARNIMONT, WOLFE & SONS
   "The Empire" — Brand Stylesheet
   International Orange + Navy | Industrial Maritime
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Colors */
  --orange: #FF4F00;
  --orange-bright: #FF6B2B;
  --orange-dark: #CC3F00;
  --navy: #0A1628;
  --navy-deep: #050D18;
  --navy-mid: #122240;
  --navy-light: #1A3055;
  --steel: #8B95A0;
  --steel-light: #B8C0C8;
  --steel-dark: #5A6570;
  --cream: #F0EDE8;
  --cream-dark: #E0DDD8;
  --white: #FAFAF8;
  --amber: #D4A843;
  --red-alert: #FF2D2D;
  --green-go: #00C853;
  --yellow-caution: #FFD600;
  
  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;
  
  /* Layout */
  --max-width: 1400px;
  --nav-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-bright); }

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

::selection {
  background: var(--orange);
  color: var(--white);
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.text-orange { color: var(--orange); }
.text-steel { color: var(--steel); }
.text-cream { color: var(--cream); }

.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

/* ============================================================
   TOPOGRAPHIC BACKGROUND PATTERN
   ============================================================ */
.topo-bg {
  position: relative;
}
.topo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: 
    repeating-conic-gradient(
      var(--orange) 0% 25%, transparent 0% 100%
    );
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern overlay */
.grid-overlay {
  position: relative;
}
.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--navy-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-light) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(5, 13, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 79, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(5, 13, 24, 0.98);
  border-bottom-color: rgba(255, 79, 0, 0.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  line-height: 1;
}

.nav-logo span {
  color: var(--cream);
  font-size: 0.55em;
  letter-spacing: 0.3em;
  display: block;
  margin-top: -2px;
}

.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-left: 1px solid var(--steel-dark);
  padding-left: var(--space-md);
  display: none;
}

@media (min-width: 768px) {
  .nav-tagline { display: block; }
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 2px;
  transition: all 0.2s !important;
}

.nav-cta:hover {
  background: var(--orange-bright) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 79, 0, 0.4);
}

.nav-cta::after { display: none !important; }

/* Mobile menu */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

@media (min-width: 900px) {
  .nav-hamburger { display: none; }
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 13, 24, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-xl) var(--space-lg);
}

.nav-mobile.open { display: flex; flex-direction: column; gap: var(--space-lg); }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  letter-spacing: 0.1em;
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(139, 149, 160, 0.1);
}

.nav-mobile a:hover { color: var(--orange); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-bright);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 79, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 79, 0, 0.08);
  color: var(--orange);
  border: 1px solid rgba(255, 79, 0, 0.2);
}
.btn-ghost:hover {
  background: rgba(255, 79, 0, 0.15);
  border-color: var(--orange);
  color: var(--orange-bright);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.05rem;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--steel);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(139, 149, 160, 0.1);
  border-radius: 4px;
  padding: var(--space-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--orange);
  transition: height 0.4s;
}

.card:hover {
  border-color: rgba(255, 79, 0, 0.25);
  background: rgba(10, 22, 40, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  height: 100%;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 79, 0, 0.1);
  border: 1px solid rgba(255, 79, 0, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.card-text {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.6;
}

/* ============================================================
   STATUS INDICATORS
   ============================================================ */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.available { background: var(--green-go); box-shadow: 0 0 8px rgba(0, 200, 83, 0.5); }
.status-dot.limited { background: var(--yellow-caution); box-shadow: 0 0 8px rgba(255, 214, 0, 0.5); }
.status-dot.booked { background: var(--red-alert); box-shadow: 0 0 8px rgba(255, 45, 45, 0.5); }

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge.available {
  background: rgba(0, 200, 83, 0.1);
  color: var(--green-go);
  border: 1px solid rgba(0, 200, 83, 0.2);
}
.status-badge.limited {
  background: rgba(255, 214, 0, 0.1);
  color: var(--yellow-caution);
  border: 1px solid rgba(255, 214, 0, 0.2);
}
.status-badge.booked {
  background: rgba(255, 45, 45, 0.1);
  color: var(--red-alert);
  border: 1px solid rgba(255, 45, 45, 0.2);
}

/* ============================================================
   CALENDAR GRID
   ============================================================ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-header {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: center;
  padding: var(--space-sm);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(10, 22, 40, 0.4);
  border: 1px solid rgba(139, 149, 160, 0.05);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--steel-light);
}

.cal-day:hover {
  background: rgba(10, 22, 40, 0.7);
  border-color: rgba(255, 79, 0, 0.3);
}

.cal-day.today {
  border-color: var(--orange);
  color: var(--cream);
  font-weight: 600;
}

.cal-day.available {
  border-bottom: 2px solid var(--green-go);
}

.cal-day.limited {
  border-bottom: 2px solid var(--yellow-caution);
}

.cal-day.booked {
  border-bottom: 2px solid var(--red-alert);
  opacity: 0.5;
  cursor: default;
}

.cal-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.cal-day.past {
  opacity: 0.25;
  cursor: default;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid rgba(139, 149, 160, 0.15);
  border-radius: 2px;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 79, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B95A0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(139, 149, 160, 0.1);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-text {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--steel);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange); }

.footer-bar {
  border-top: 1px solid rgba(139, 149, 160, 0.08);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel-dark);
  letter-spacing: 0.1em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 5rem;
  }
  
  .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
