/* =========================================
   PORT PAGES - CENTRALIZED CSS
   Extracted from bissau-ship-chandler-guinea.html template
========================================= */

/* =========================================
   THEME VARIABLES & RESET
========================================= */
:root {
  --navy-deep: #0A1628;
  --navy: #112440;
  --navy-light: #1C3B5E;
  --amber: #F59E0B;
  --amber-light: #FBBF24;
  --amber-glow: rgba(245, 158, 11, 0.3);
  --sand: #FDFBF7;
  --sand-dark: #F3EFE6;
  --text-main: #334155;
  --text-muted: #64748B;
  --white: #FFFFFF;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 12px 24px -6px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 24px 48px -12px rgba(10, 22, 40, 0.2);
  --shadow-amber: 0 8px 24px rgba(245, 158, 11, 0.25);

  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--sand-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-family: var(--font-body); font-size: 1rem;
  font-weight: 600; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: var(--transition); gap: 10px;
}
.btn-primary {
  background-color: var(--amber); color: var(--navy-deep);
  box-shadow: var(--shadow-amber);
}
.btn-primary:hover { background-color: var(--amber-light); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4); }

/* =========================================
   HEADER / NAVBAR
========================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.05); transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: var(--white); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 48px; width: auto; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--navy-deep); }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--navy); position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--amber); transition: var(--transition);
}
.nav-link:hover::after, .nav-item.active .nav-link::after { width: 100%; }

/* Dropdowns */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: var(--shadow-md); border-radius: var(--radius-md); padding: 16px;
  min-width: 250px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); max-height: 400px; overflow-y: auto;
}
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown-menu a { display: block; padding: 10px 16px; font-size: 0.9rem; color: var(--text-main); border-radius: var(--radius-sm); }
.dropdown-menu a:hover { background: var(--sand-dark); color: var(--navy-deep); padding-left: 20px; }

/* Mega Menu */
.mega-menu {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(10px) scale(0.98);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 32px; min-width: 800px; max-width: 90vw; opacity: 0; visibility: hidden;
  transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); max-height: 70vh; overflow-y: auto; z-index: 999;
}
.has-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
.mega-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--sand-dark); }
.mega-header-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--navy-deep); font-weight: 700; }
.mega-search { display: flex; align-items: center; gap: 8px; background: var(--sand); padding: 8px 16px; border-radius: var(--radius-full); }
.mega-search input { border: none; background: transparent; font-size: 0.9rem; outline: none; width: 180px; font-family: var(--font-body); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.mega-group h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber); margin-bottom: 12px; }
.mega-group a { display: block; padding: 6px 0; font-size: 0.85rem; color: var(--text-muted); }
.mega-group a:hover { color: var(--navy-deep); padding-left: 6px; }

/* =========================================
   PREMIUM PORT HERO
========================================= */
.port-hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 80px;
  background-color: var(--navy-deep);
  overflow: hidden;
}
.port-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.2; z-index: 1;
}
.port-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.7) 100%); z-index: 2;
}
.port-hero-content {
  position: relative; z-index: 3; max-width: 900px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--sand-dark); margin-bottom: 24px; font-weight: 600;
}
.breadcrumb a { color: var(--amber); }
.breadcrumb a:hover { text-decoration: underline; }

.port-title {
  font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white) !important;
  margin-bottom: 20px; line-height: 1.1;
  animation: fadeUp 0.8s ease forwards;
}
.port-desc {
  font-size: 1.15rem; color: var(--sand-dark); max-width: 800px;
  line-height: 1.7; animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   PREMIUM READING CANVAS
========================================= */
.port-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 80px 0 100px;
  align-items: start;
}

/* The Main Text Container */
.reading-canvas {
  background: var(--white);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
}

/* Decorative accent line on the left */
.reading-canvas::before {
  content: '';
  position: absolute;
  top: 60px; bottom: 60px; left: 0;
  width: 4px;
  background: var(--amber);
  border-radius: 0 4px 4px 0;
}

/* Typography inside the reading canvas */
.reading-canvas p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.8;
}

.reading-canvas h2 {
  font-size: 1.8rem;
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sand-dark);
  color: var(--navy-deep);
  position: relative;
}
.reading-canvas h2::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 80px; height: 2px;
  background: var(--amber);
}

.reading-canvas strong {
  color: var(--navy-deep);
  font-weight: 700;
}

/* Converting massive lists into clean grid blocks */
.reading-canvas ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
  background: var(--sand);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-dark);
}

.reading-canvas li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.reading-canvas li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--amber);
  font-size: 0.85rem;
}

/* =========================================
   STICKY SIDEBAR
========================================= */
.port-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta {
  background: var(--navy-deep);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%); border-radius: 50%;
}
.sidebar-cta h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 12px; position: relative; z-index: 1; }
.sidebar-cta p { color: var(--sand-dark); font-size: 0.9rem; margin-bottom: 24px; position: relative; z-index: 1; }
.sidebar-cta .btn { width: 100%; position: relative; z-index: 1; }

.sidebar-contact {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
}
.sidebar-contact h4 {
  font-size: 1.1rem; margin-bottom: 20px; color: var(--navy-deep);
  border-bottom: 2px solid var(--sand-dark); padding-bottom: 12px;
}
.sidebar-contact ul { display: flex; flex-direction: column; gap: 16px; }
.sidebar-contact li { display: flex; gap: 16px; font-size: 0.95rem; color: var(--text-main); align-items: flex-start; }
.sidebar-contact i { color: var(--amber); font-size: 1.1rem; margin-top: 4px; width: 20px; text-align: center; }
.sidebar-contact a { color: var(--text-main); font-weight: 600; }
.sidebar-contact a:hover { color: var(--amber); }

/* =========================================
   FOOTER
========================================= */
.site-footer { background: var(--navy-deep); color: var(--text-muted); padding: 80px 0 0; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.footer-brand img { height: 56px; margin-bottom: 24px; }
.footer-brand p { color: var(--sand-dark); font-size: 0.95rem; line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 24px; font-family: var(--font-heading); letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--sand-dark); font-size: 0.95rem; display: inline-block; }
.footer-links a:hover { color: var(--amber); transform: translateX(5px); }

/* Footer Contact Card */
.footer-contact-card { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255,255,255,0.05); 
  padding: 28px 24px; 
  border-radius: var(--radius-md); 
}
.footer-contact-card li { 
  display: flex; 
  gap: 16px; 
  margin-bottom: 24px; 
  font-size: 0.95rem; 
  color: var(--sand-dark); 
  align-items: flex-start; 
}
.footer-contact-card li:last-child { 
  margin-bottom: 0; 
}
.footer-contact-card i { 
  color: var(--amber); 
  margin-top: 4px; 
  font-size: 1.1rem; 
  flex-shrink: 0; 
}
.footer-bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }

/* Custom WhatsApp Button */
.hero-whatsapp-bar { display: inline-flex; align-items: center; gap: 12px; background: var(--navy-deep); padding: 16px 28px; border-radius: var(--radius-full); transition: var(--transition); text-decoration: none; border: 1px solid rgba(245, 158, 11, 0.2); max-width: fit-content; margin-top: 10px; }
.hero-whatsapp-bar:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15); border-color: var(--amber); }
.hero-whatsapp-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #25D366; border-radius: 50%; color: white; flex-shrink: 0; }
.hero-whatsapp-icon svg { width: 18px; height: 18px; }
.hero-whatsapp-tag { color: #25D366; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-whatsapp-num { color: var(--amber); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.hero-whatsapp-arrow { color: var(--amber); font-size: 1.1rem; font-weight: 700; margin-left: 4px; transition: transform 0.3s ease; }
.hero-whatsapp-bar:hover .hero-whatsapp-arrow { transform: translateX(4px); }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .port-layout { grid-template-columns: 1fr; }
  .port-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-cta, .sidebar-contact { flex: 1; min-width: 300px; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact-card { grid-column: span 2; }
  
  .nav-toggle { display: block; z-index: 1001; position: relative; }
  .primary-nav {
    position: fixed; top: 0; left: -100%; width: 100vw; height: 100vh;
    background: var(--white); flex-direction: column; padding: 100px 24px 40px;
    transition: var(--transition); overflow-y: auto; z-index: 999;
  }
  .primary-nav.open { left: 0; }
  .nav-list { flex-direction: column; width: 100%; align-items: flex-start; gap: 16px; }
  .nav-link { font-size: 1.1rem; width: 100%; display: block; }
  
  .dropdown-menu, .mega-menu {
    position: static !important; transform: none !important; opacity: 1 !important;
    visibility: visible !important; box-shadow: none !important; border: none !important;
    padding: 8px 0 8px 16px !important; max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease; display: block !important; min-width: auto !important; width: 100% !important;
  }
  .has-dropdown.open .dropdown-menu, .has-dropdown.open .mega-menu { max-height: 800px !important; }
  
  .mega-header { padding: 12px 0; margin-bottom: 8px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .mega-search { width: 100%; }
  .mega-search input { width: 100%; }
  .mega-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 768px) {
  .reading-canvas { padding: 32px 24px; }
  .reading-canvas::before { top: 32px; bottom: 32px; }
  .reading-canvas ul { grid-template-columns: 1fr; padding: 20px; }
  .reading-canvas h2 { font-size: 1.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact-card { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
}
