/* ==========================================================================
   Sea Meridian Marine - Global Stylesheet (Vanilla CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0B1F3A;
  --navy-light: #132D4F;
  --marine: #1B4F72;
  --teal: #2E86AB;
  --cyan-light: #5BC0BE;
  --gold: #C9A96E;
  --gold-light: #D4BC8E;
  --white: #FAFAFA;
  --ivory: #F5F3EF;
  --grey-light: #E8E6E1;
  --grey: #9A9A9A;
  --grey-dark: #666666;
  --text: #1A1A1A;
  --text-light: #4A4A4A;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-poppins: 'Poppins', sans-serif;

  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1440px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Layout */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* Typography & Section Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 600;
}

.section-heading-highlight {
  color: var(--navy);
}

.label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
  text-transform: uppercase;
  color: var(--gold);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--grey-light);
  border: none;
}

.divider-gold {
  height: 1px;
  width: 60px;
  background: var(--gold);
  border: none;
}

/* Header & Nav */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  background: #ffffff;
  box-shadow: 0 1px 15px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--teal);
}

.mega-menu-trigger {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--grey-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mega-menu-trigger:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(10px);
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.mega-item:hover {
  background: var(--ivory);
}

.mega-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
}

.mega-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.mega-item-desc {
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  background: var(--navy);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-primary:hover {
  background: var(--marine);
  border-color: var(--marine);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.4s ease;
}

.btn-secondary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
}
  color: white;
}

/* Hero Section - Matching Reference Design */
.hero-section {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  background-color: #ffffff;
  overflow: hidden;
}

.hero-bg-img-element {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 1;
  pointer-events: none;
}

/* Inline Mobile Hero Image (Hidden by default on Desktop) */
.hero-mobile-img-box {
  display: none;
}

.hero-section .section-container {
  width: 100%;
  margin: 0 auto;
  max-width: var(--container-max);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 580px;
  padding-top: 2rem;
  padding-bottom: 3rem;
  margin-left: 0;
  text-align: left;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5.8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-top: 1rem;
}

.hero-feature-item {
  position: relative;
}

.hero-feature-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--grey-light);
}

.hero-feature-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.hero-feature-subtitle {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 0.2rem;
}

.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  background: var(--navy);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid var(--navy);
  transition: all 0.3s ease;
}

.btn-pill-primary:hover {
  background: var(--marine);
  border-color: var(--marine);
  transform: translateY(-2px);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.25);
  transition: all 0.3s ease;
}

.btn-pill-secondary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.35);
}

/* Premium About Section Styling */
.about-section-premium {
  position: relative;
  background: var(--ivory);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  overflow: hidden;
}

/* About Us Logo Frame - Image covers entire container with border-radius */
.rounded-logo-frame {
  width: 100%;
  max-width: 440px;
  height: 440px;
  border-radius: 24px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  display: block;
  box-shadow: 0 20px 45px rgba(11, 31, 58, 0.14), 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--grey-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 5;
}

.rounded-logo-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(11, 31, 58, 0.2);
}

.rounded-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.about-content-poppins {
  font-family: var(--font-poppins);
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  position: relative;
  z-index: 5;
}

/* Cards & Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card-category {
  position: relative;
  height: 440px;
  background: white;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--grey-light);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card-category:hover img {
  transform: scale(1.08);
}

.card-category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 31, 58, 0.95) 0%, rgba(11, 31, 58, 0.6) 45%, transparent 100%);
}

.card-category-content {
  position: relative;
  z-index: 10;
  color: white;
  margin-top: auto;
}

.card-category-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin: 0.4rem 0 0.6rem 0;
}

.card-category-content p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.25rem;
}

/* Badges & Extra UI Components */
.badge-gold {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: white;
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--grey);
}

/* Responsive & Mobile Side Drawer */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.mobile-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--navy);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-side-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1010;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-side-nav.active {
  transform: translateX(-320px);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--grey-light);
}

.mobile-nav-logo {
  height: 38px;
  width: auto;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-list li a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  transition: color 0.2s;
}

.mobile-nav-list li a:hover {
  color: var(--teal);
}

.mobile-sub-menu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 2px solid var(--gold);
}

.mobile-sub-menu li a {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.mobile-nav-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-light);
  margin-top: auto;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }

  /* Hide the top navbar Get a Quote button on mobile screens as requested */
  .navbar .btn-pill-secondary,
  .desktop-quote-btn {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Hide background image overlay on mobile */
  .hero-bg-img-element {
    display: none !important;
  }

  /* Display inline vessel image between header/subtitle and buttons on mobile */
  .hero-mobile-img-box {
    display: block;
    width: 100%;
    margin: 1.25rem 0 1.75rem 0;
  }

  .hero-mobile-inline-img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.15);
    border: 1px solid var(--grey-light);
  }

  .hero-section {
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}