/* ==========================================================================
   Marine Legal Bureau — stylesheet
   ========================================================================== */

:root{
  --navy:        #0d2136;
  --navy-deep:   #081521;
  --cream:       #f3efe7;
  --cream-dark:  #ece6d9;
  --ink:         #1c2530;
  --ink-soft:    #4b5563;
  --gold:        #c79a5a;
  --gold-soft:   #d8b482;
  --white:       #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
}

p{ margin: 0; line-height: 1.7; }

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

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

.arrow{ display: inline-block; transition: transform .25s ease; }
a:hover .arrow, .btn:hover .arrow{ transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover{ background: var(--gold-soft); }

.btn-outline{
  border-color: var(--gold);
  color: var(--ink);
}
.btn-outline:hover{ background: var(--gold); color: var(--navy-deep); }

/* ---------- section title ---------- */
.section-title{
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 50px;
}
.section-title::after{
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 1px;
  background: var(--gold);
}
.section-title.light{ color: var(--white); }
.section-title.light::after{ background: var(--gold); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 22, 36, .92);
  backdrop-filter: blur(6px);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.logo-icon{ color: var(--gold); display: flex; }
.logo-text{ display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong{
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 600;
}
.logo-text em{
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--gold);
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a{
  color: var(--white);
  font-size: 12.5px;
  letter-spacing: 1.6px;
  font-weight: 400;
  opacity: .9;
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--gold); opacity: 1; }
.main-nav a.lang{
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 1;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 1.5px;
  background: var(--white);
  width: 100%;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(6,15,26,.35) 0%, rgba(6,15,26,.15) 35%, rgba(6,15,26,.55) 100%),
    radial-gradient(ellipse at 75% 55%, #f2c98a 0%, #e0a563 12%, #b97a4c 26%, #6b5a68 42%, #3a4560 58%, #1c2740 75%, #0c1526 100%);
  background-size: cover;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,14,24,.55) 0%, rgba(6,14,24,.15) 55%, rgba(6,14,24,.05) 100%);
}
.hero-inner{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}
.hero h1{
  font-size: 47px;
  line-height: 1.18;
  font-weight: 500;
  max-width: 650px;
  margin-bottom: 26px;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.hero p{
  max-width: 430px;
  font-size: 15.5px;
  font-weight: 300;
  margin-bottom: 34px;
  text-shadow: 0 1px 10px rgba(0,0,0,.2);
}

/* ==========================================================================
   RECOGNITION BAR
   ========================================================================== */
.recognition{
  background: var(--navy-deep);
  padding: 34px 32px 40px;
  color: var(--white);
}
.recognition-label{
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 28px;
}
.recognition-row{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.rec-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 30px;
  border-right: 1px solid rgba(255,255,255,.15);
  min-width: 110px;
}
.rec-item:last-child{ border-right: none; }
.rec-name{
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .5px;
}
.rec-name.small{
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: .5px;
  line-height: 1.4;
  margin-top: 4px;
}
.rec-sub{
  font-size: 10px;
  letter-spacing: .8px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}
.rec-badge{ color: var(--gold); gap: 2px; }
.rec-badge svg{ margin-bottom: 4px; }

/* ==========================================================================
   HOW WE CAN ASSIST
   ========================================================================== */
.assist{
  background: var(--cream);
  padding: 90px 32px;
}
.assist-grid{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
.assist-item{
  text-align: center;
  padding: 0 14px;
}
.assist-icon{
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}
.assist-item h3{
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1.3px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ink);
}
.assist-item p{
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about{
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--cream);
  min-height: 500px;
}
.about-photo{
  background:
    linear-gradient(155deg, rgba(10,20,35,.55), rgba(10,20,35,.85)),
    linear-gradient(120deg, #3d4d63 0%, #202b3c 55%, #101623 100%);
  min-height: 420px;
  position: relative;
}
.about-photo::after{
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.05), transparent 60%);
}
.about-content{
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow{
  font-size: 11.5px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.about-content h2{
  font-size: 34px;
  margin-bottom: 16px;
}
.tagline{
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
}
.about-content p{
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 300;
  margin-bottom: 18px;
  max-width: 560px;
}
.about-content .btn{ margin-top: 14px; align-self: flex-start; }

/* ==========================================================================
   WHY
   ========================================================================== */
.why{
  background: var(--navy);
  padding: 90px 32px;
  color: var(--white);
}
.why-grid{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.why-item{
  text-align: center;
  padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.why-item:last-child{ border-right: none; }
.why-icon{
  color: var(--gold);
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.why-item h3{
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 12px;
}
.why-item p{
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
}

/* ==========================================================================
   INSIGHTS
   ========================================================================== */
.insights{
  background: var(--cream);
  padding: 90px 32px;
}
.insights-head{
  max-width: var(--container);
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.insights-head h2{
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 500;
}
.view-all{
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.insights-grid{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.insight-card{
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
}
.insight-img{
  height: 190px;
  background-size: cover;
  background-position: center;
}
.insight-img--ship{
  background: linear-gradient(180deg, #e8b177 0%, #c97b4e 25%, #5c4b5e 55%, #202a3e 100%);
}
.insight-img--waves{
  background: linear-gradient(180deg, #6d8298 0%, #46586c 45%, #263447 100%);
}
.insight-img--containers{
  background: linear-gradient(180deg, #9c4f3d 0%, #7a3a30 30%, #3f5468 65%, #1f2c3d 100%);
}
.insight-body{ padding: 24px 26px 30px; }
.insight-date{
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 500;
}
.insight-body h3{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 12px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta{
  position: relative;
  padding: 110px 32px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6,14,24,.55), rgba(6,14,24,.7)),
    radial-gradient(ellipse at 70% 60%, #d9a468 0%, #a9704c 18%, #5c5062 38%, #263349 60%, #0c1526 100%);
  background-size: cover;
}
.cta-inner{ position: relative; }
.cta h2{
  font-size: 34px;
  margin-bottom: 34px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  background: var(--navy-deep);
  color: rgba(255,255,255,.8);
  padding: 70px 32px 30px;
}
.footer-top{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr;
  gap: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo{ margin-bottom: 18px; }
.footer-brand p{
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 18px;
}
.social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}
.footer-col h4{
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col a, .footer-col p{
  display: block;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-col a:hover{ color: var(--gold); }

.footer-cities{
  max-width: var(--container);
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
}
.footer-cities span:nth-child(even){ color: rgba(255,255,255,.3); }

.footer-copy{
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-top: 18px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px){
  .assist-grid{ grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .why-grid{ grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .why-item{ border-right: none; }
  .footer-top{ grid-template-columns: repeat(3, 1fr); }
  .about{ grid-template-columns: 1fr; }
  .about-photo{ min-height: 320px; }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open{ max-height: 400px; }
  .main-nav a{
    width: 100%;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle{ display: flex; }

  .hero h1{ font-size: 32px; }
  .hero p{ font-size: 14px; }

  .recognition-row{ flex-direction: column; }
  .rec-item{ border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); padding: 16px 10px; width: 100%; }

  .assist-grid{ grid-template-columns: repeat(2, 1fr); }
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
  .insights-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; }
  .about-content{ padding: 50px 28px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; }
}

/* ---------- focus states ---------- */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}


.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.hero {
    position: relative;
    min-height: 100vh;
    background: url("images/hero.jpg") center center / cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}

.insight-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.insight-img--ship {
    background-image: url("https://mlb.lv/uploads/posts/post/large/latvian-maritime-bowling-cup-2019-54461.jpg");
}

.insight-img--waves {
    background-image: url("https://mlb.lv/uploads/posts/post/large/latvian-maritime-bowling-cup-2019-38347.jpg");
}

.insight-img--containers {
    background-image: url("https://mlb.lv/uploads/posts/post/%D0%9D%D0%BE%D0%B2%D0%B0%D1%8F%D0%9F%D0%B0%D0%BF%D0%BA%D0%B0/m-u-3-26-03.jpg");
}
