/* ============================================
   Arctic Marine - Modern Corporate CSS
   Maritime Color Palette & 2026 Design
   ============================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2137;
  --navy-700: #1a3a5c;
  --navy-600: #1e4976;
  --ocean-500: #2563eb;
  --ocean-400: #3b82f6;
  --sky-300: #38bdf8;
  --sky-200: #7dd3fc;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

/* ============ Navigation ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-link {
  color: var(--gray-600);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--ocean-500);
  background: rgba(37,99,235,0.08);
}

.nav-cta {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff !important;
}

.navbar.scrolled .nav-cta {
  background: var(--ocean-500) !important;
  color: #fff !important;
  border-color: var(--ocean-500);
}

.navbar.scrolled .nav-cta:hover {
  background: var(--navy-700) !important;
  border-color: var(--navy-700);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--gray-800);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.85) 0%,
    rgba(26, 58, 92, 0.7) 50%,
    rgba(15, 33, 55, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sky-200);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--ocean-500);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ocean-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.hero-stats {
  display: flex;
  gap: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 4px;
}

/* ============ Section Headers ============ */
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37,99,235,0.08);
  color: var(--ocean-500);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 17px;
}

/* ============ About ============ */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag { margin-bottom: 12px; }

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: 24px;
  line-height: 1.3;
}

.about-content > p {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-500);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.feature p {
  font-size: 14px;
  color: var(--gray-500);
}

.about-visual {
  position: relative;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.floating-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ocean-500);
}

.floating-text {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============ Services ============ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.service-content p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean-500);
  transition: var(--transition);
}

.service-card:hover .service-link {
  transform: translateX(4px);
}

.service-card-wide {
  grid-column: span 1;
}

/* ============ Certificates ============ */
.certificates {
  background: var(--gray-50);
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  min-width: 140px;
  transition: var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ocean-400);
}

.cert-card img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.cert-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}

/* ============ Brands ============ */
.brands {
  background: var(--white);
  overflow: hidden;
}

.brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.brands-track img {
  height: 45px;
  width: auto;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: var(--transition);
  flex-shrink: 0;
}

.brands-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ Contact ============ */
.contact {
  background: var(--navy-900);
  color: #fff;
}

.contact .section-tag {
  background: rgba(56,189,248,0.15);
  color: var(--sky-300);
}

.contact .section-header h2 {
  color: #fff;
}

.contact .section-header p {
  color: rgba(255,255,255,0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-400);
}

.contact-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact-icon.instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #e1306c;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.contact-item a {
  color: var(--sky-300);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--sky-200);
}

/* ============ Footer ============ */
.footer {
  background: var(--navy-800);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a,
.footer-links p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--sky-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============ Animations ============ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards */
.service-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.service-card.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.service-card.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.service-card.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.service-card.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.service-card.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.service-card.animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }

.cert-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.cert-card.animate-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.cert-card.animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.cert-card.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.cert-card.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.cert-card.animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }
.cert-card.animate-on-scroll:nth-child(7) { transition-delay: 0.3s; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.35s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    width: 100%;
    padding: 12px 16px;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
  }

  .nav-cta {
    margin-top: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
  }

  .btn {
    justify-content: center;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: 100vh; }
  .hero h1 { font-size: 1.75rem; }
  .stat-number { font-size: 1.5rem; }
}

/* ============ Service Detail Page Styles ============ */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.95), rgba(10,22,40,0.3));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--sky-300);
}

.breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  font-weight: 700;
}

.detail-section {
  padding: 80px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.detail-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.detail-content ul {
  padding: 0;
}

.detail-content ul li {
  position: relative;
  padding: 12px 0 12px 32px;
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  border-bottom: 1px solid var(--gray-100);
}

.detail-content ul li:last-child {
  border-bottom: none;
}

.detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--ocean-500);
  border-radius: 50%;
}

.detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.detail-image img {
  width: 100%;
  height: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 24px;
  background: var(--ocean-500);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.back-link:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-hero {
    height: 35vh;
    min-height: 280px;
  }
}
