/* =========
   Base theme
   ========= */
:root{
  --sea-blue:#0b448f;
  --ship-brown:#6b4834;
  --sail-white:#ffffff;
}

*{ box-sizing:border-box; }
html,body{
  margin:0; padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,Arial,sans-serif;
  color:#0f172a;
  background:#f8fbff;
}
a{ color:var(--sea-blue); text-decoration:none; }
a:hover{ text-decoration:underline; }
.small{ font-size:12px; color:#64748b; }
.legal{ font-size:11px; color:#94a3b8; }

.container{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* =========
   Header / Nav
   ========= */
.header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:blur(8px);
  background:rgba(255,255,255,.85);
  border-bottom:1px solid #e2e8f0;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.brand{ display:flex; align-items:center; gap:12px; font-weight:800; color:#0b1324; }
.brand img{ width:36px; height:36px; }

.nav{ display:none; gap:18px; align-items:center; }
.nav a{ color:#334155; font-weight:600; }

.cta-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 12px; border-radius:14px; font-weight:700;
}
.btn-outline{ border:1px solid var(--sea-blue); color:#0c4a6e; background:#fff; }
.btn-fill{ background:var(--sea-blue); color:#fff; }
.lang{ border:1px solid #cbd5e1; color:#0f172a; background:#fff; }
.hamburger{ display:flex; align-items:center; border:1px solid #cbd5e1; border-radius:10px; padding:6px 8px; background:#fff; }
.mobile{ display:flex; gap:8px; }

.mobile-menu{ display:none; border-top:1px solid #e2e8f0; background:#fff; }
.mobile-menu a{ display:block; padding:12px 0; color:#334155; font-weight:600; }

/* =========
   Hero
   ========= */
.hero{ padding:64px 0; }
.hero-grid{ display:grid; grid-template-columns:1fr; gap:24px; }

.hero h1{ font-size:clamp(28px,4vw,48px); line-height:1.1; margin:0; }
.hero p{ font-size:18px; color:#334155; }

/* Media (photo) container */
.hero-media{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(2,8,23,.12);
}

/* The actual hero image */
.hero-photo{
  width:100%; height:100%; display:block;
  object-fit:cover;
  /* keep composition centered unless you set --hero-pos inline (e.g., 50% 60%) */
  object-position:var(--hero-pos, 50% 50%);
  /* Prevent layout shift while loading */
  aspect-ratio:16/9;
}

/* Optional contrast overlay (very subtle) */
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.18) 100%);
  pointer-events:none;
}

/* Badge chip on hero */
.hero-badge{
  position:absolute; left:14px; bottom:14px;
  background:#2563eb; color:#fff;
  border-radius:999px; font-weight:700;
  padding:8px 12px; font-size:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.2);
}

/* =========
   Sections / Cards
   ========= */
.section{ padding:40px 0 56px; background:#fff; }
.section h2{ margin:0 0 16px; font-size:24px; }

.grid{ display:grid; grid-template-columns:1fr; gap:12px; }

.card{
  border:1px solid #e2e8f0; border-radius:16px; padding:16px;
  display:flex; align-items:center; justify-content:space-between;
}
.card:hover{ box-shadow:0 8px 20px rgba(2,8,23,.06); }

.badge-brown{
  background:var(--ship-brown); color:#fff;
  padding:8px 10px; border-radius:10px; font-weight:700;
}

/* =========
   Footer
   ========= */
.footer{ border-top:1px solid #e2e8f0; background:#fff; padding:40px 0; }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:16px; }

/* =========
   Content (rich text) helpers
   ========= */
.prose h1,.prose h2,.prose h3{ margin:16px 0 8px; }
.prose p{ line-height:1.6; margin:10px 0; }
.prose .lead{ font-size:1.1rem; color:#475569; }
.prose img{ border-radius:14px; }

/* =========
   RTL tweak
   ========= */
[dir="rtl"] .card span.arrow{ transform:rotate(180deg); }

/* =========
   Responsive
   ========= */
@media (min-width:768px){
  .nav{ display:flex; }
  .mobile{ display:none; }
  .hero-grid{ grid-template-columns:1.1fr 0.9fr; }
  .grid{ grid-template-columns:repeat(4,1fr); }
  .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; }
}
