/* =========================================================
   ARIES MARINE GROUP — MAIN STYLESHEET
   ========================================================= */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --navy:        #0A1F3D;
  --navy-dark:   #061530;
  --navy-light:  #15325C;
  --gold:        #C9A961;
  --gold-light:  #E3C88A;
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --light-grey:  #E8E8E8;
  --text-dark:   #1A1A1A;
  --text-muted:  #5A6472;
  --border:      #D8DCE2;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --transition: 0.25s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin-bottom: 1rem; color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-label.light { color: var(--gold-light); }

.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.gold-line.center { margin-left: auto; margin-right: auto; }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.bg-offwhite { background: var(--off-white); }

/* ---------- DARK BACKGROUND SECTIONS ---------- */
.bg-navy {
  background: var(--navy);
  color: var(--white);
}
.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: var(--white);
}
.bg-navy p {
  color: rgba(255,255,255,0.85);
}

.center-btn { text-align: center; margin-top: 2.5rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
}
.site-header.scrolled {
  background: var(--navy);
  padding: 0.55rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* ---------- LOGO ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text {
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
}

.logo-sub {
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- MAIN NAVIGATION ---------- */
.main-nav ul { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-light); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy-light);
  overflow: hidden;
}
.hero-bg .injected-img,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,31,61,0.88) 0%,
    rgba(10,31,61,0.65) 55%,
    rgba(10,31,61,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
.hero-motto {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 2rem; max-width: 620px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 9rem 0 5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 720px; }

/* ---------- IMAGE PLACEHOLDER ELEMENTS ---------- */
.image-placeholder {
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius);
  background-color: var(--navy-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 20px 40px rgba(10,31,61,0.15);
  overflow: hidden;
  position: relative;
}
.image-placeholder .injected-img,
.image-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- INTRO / TRUST ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.intro-text .btn { margin-top: 1rem; }

/* ---------- STRENGTHS ---------- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header.light h2,
.section-header.light p { color: var(--white); }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.strength-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.strength-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(10,31,61,0.1);
}
.strength-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.strength-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--navy); }
.strength-card p { font-size: 0.92rem; margin: 0; }

/* ---------- SERVICES CARDS ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(10,31,61,0.1);
  border-color: var(--gold);
}
.service-card:hover::before { width: 100%; }
.service-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--navy); }
.service-card p { font-size: 0.92rem; }
.service-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition), letter-spacing var(--transition);
}
.service-link:hover { color: var(--gold); letter-spacing: 0.1em; }

/* ---------- SEAFARERS PREVIEW (navy background section) ---------- */
.seafarers-preview {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}
.seafarers-preview h1,
.seafarers-preview h2,
.seafarers-preview h3,
.seafarers-preview h4 {
  color: var(--white);
}
.seafarers-preview p {
  color: rgba(255,255,255,0.85);
}

.seafarer-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.seafarer-cat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.seafarer-cat:hover { border-color: var(--gold); background: rgba(201,169,97,0.06); }
.seafarer-cat h3 { color: var(--gold); margin-bottom: 0.5rem; }
.seafarer-cat p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* When seafarer boxes appear on dark backgrounds, use white text */
.seafarers-preview .seafarer-cat p,
.bg-navy .seafarer-cat p {
  color: rgba(255,255,255,0.85);
}

/* ---------- COMPLIANCE CARDS ---------- */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.compliance-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.compliance-card:hover { transform: translateY(-5px); box-shadow: 0 18px 35px rgba(10,31,61,0.08); }
.compliance-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.compliance-card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.compliance-card p { font-size: 0.92rem; }
.cert-num {
  font-size: 0.8rem !important;
  color: var(--navy) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

/* ---------- SERVICE DETAIL ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.service-detail.reverse .service-detail-text { order: 2; }
.service-detail.reverse .service-detail-image { order: 1; }
.service-detail:last-child { margin-bottom: 0; }
.service-detail-image { min-height: 320px; }
.service-detail-image .image-placeholder { min-height: 380px; }

/* ---------- PROCESS FLOW ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.process-step {
  text-align: center;
  padding: 1.75rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}
.process-step:hover { transform: translateY(-5px); border-color: var(--gold); }
.process-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.process-step h3 { font-size: 0.88rem; margin-bottom: 0.4rem; line-height: 1.3; color: var(--navy); }

/* ---------- TIMELINE ---------- */
.timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: 0.4;
}
.timeline-item { position: relative; padding-bottom: 2.5rem; padding-left: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem; top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold);
}
.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ---------- MVV ---------- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.mvv-card {
  background: var(--off-white);
  border-top: 3px solid var(--gold);
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.mvv-card:hover { transform: translateY(-5px); }
.mvv-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.mvv-card h3 { margin-bottom: 0.75rem; color: var(--navy); }
.mvv-card p { font-style: italic; font-size: 0.95rem; }

/* ---------- WHY GRID ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.why-card {
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(201,169,97,0.3);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.why-card:hover { border-color: var(--gold); background: rgba(201,169,97,0.06); }
.why-card h3 { font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.why-card p { font-size: 0.88rem; margin: 0; color: rgba(255,255,255,0.8); }

/* ---------- LEADERSHIP NOTE ---------- */
.leadership-note {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.leadership-note p { margin: 0; }

/* ---------- VESSEL TYPES ---------- */
.vessel-types { margin-top: 3rem; text-align: center; }
.vessel-types h3 { margin-bottom: 1.5rem; color: var(--navy); }
.vessel-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.vessel-list li {
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.vessel-list li:hover { background: var(--gold); color: var(--navy-dark); }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}
.contact-info-block { margin-bottom: 1.75rem; }
.contact-info-block h3 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.contact-info-block p { margin: 0; color: var(--text-dark); }
.contact-info-block a { color: var(--text-dark); transition: color var(--transition); }
.contact-info-block a:hover { color: var(--gold); }

.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: #C0392B; }
.field-error {
  display: none;
  font-size: 0.78rem;
  color: #C0392B;
  margin-top: 0.3rem;
}
.form-success {
  display: none;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.form-error-msg {
  display: none;
  background: #FDEDEC;
  color: #C0392B;
  padding: 0.9rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- MAP EMBED ---------- */
.map-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.map-embed iframe {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-img { height: 52px; max-width: 110px; }
.footer-brand .logo-text { font-size: 0.95rem; }
.footer-brand .logo-sub { font-size: 0.62rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin: 0; }

.footer-motto {
  color: var(--gold) !important;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem !important;
  margin-top: 0.75rem !important;
  letter-spacing: 0.02em;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.footer-col ul li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.footer-col a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  text-align: center;
}