/* =============================================
   MARINE IT SOLUTIONS — Custom Stylesheet
   No Elementor / WordPress classes used.
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-primary:    #8dc0ea;
  --clr-primary-dk: #155fa0;
  --clr-accent:     #14456D;
  --clr-dark:       #1a1a2e;
  --clr-dark-mid:   #16213e;
  --clr-text:       #333333;
  --clr-text-light: #555555;
  --clr-bg:         #ffffff;
  --clr-bg-alt:     #f5f8fb;
  --clr-border:     #e2e8f0;
  --clr-white:      #ffffff;

  --ff-heading: 'Montserrat', sans-serif;
  --ff-body:    'Roboto', sans-serif;

  --topbar-h:  40px;
  --header-h:  75px;
  --radius:    6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --transition: .25s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + var(--header-h));
}

body {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
}

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

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--clr-primary-dk);
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

.btn-primary:hover {
  background: var(--clr-primary-dk);
  border-color: var(--clr-primary-dk);
  color: var(--clr-white);
  transform: translateY(-1px);
}

/* ---- Icons (inline SVG helpers) ---- */
.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  vertical-align: middle;
}

/* =============================================
   TOP BAR
   ============================================= */
.topbar {
  background: var(--clr-dark);
  color: rgba(255,255,255,.8);
  height: var(--topbar-h);
  font-size: 12px;
  position: relative;
  z-index: 200;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}

.topbar-link:hover {
  color: var(--clr-white);
}

.topbar-link .icon {
  width: 14px;
  height: 14px;
  fill: var(--clr-white);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  transition: background var(--transition), color var(--transition);
}

.social-link:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.social-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-white);
  height: var(--header-h);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  flex-shrink: 0;
}

.site-logo {
  height: 55px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-dark);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--clr-primary);
  background: var(--clr-bg-alt);
}

.nav-link.nav-cta {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 8px 18px;
  margin-left: 8px;
}

.nav-link.nav-cta:hover {
  background: var(--clr-primary-dk);
  color: var(--clr-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s ease;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--clr-white);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-family: var(--ff-heading);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--clr-accent);
}

.mobile-nav-phone {
  margin-top: auto;
  font-family: var(--ff-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-accent);
  padding-top: 24px;
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark-mid) 60%, #0f3460 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 80px 24px;
  text-align: center;
}

.hero-title {
  font-family: var(--ff-heading);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 32px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--clr-accent);
  margin: 18px auto 0;
  border-radius: 2px;
}



/* =============================================
   ABOUT
   ============================================= */
.about-section {
  position: relative;
  padding: 72px 0;
  background: var(--clr-bg);
}

.about-section .section-title {
  color: var(--clr-primary);
  margin-bottom: 24px;
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.about-body {
  flex: 1;
}

.about-text {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-text p {
  font-size: 16px;
  color: var(--clr-text-light);
}

.about-image-wrap {
  flex-shrink: 0;
  width: 280px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
  border: 3px solid var(--clr-light);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--clr-accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.showcase-section .section-header .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--clr-white);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--clr-text-light);
  font-size: 15px;
  margin-top: 8px;
}

/* =============================================
   SECTION BACKGROUNDS
   ============================================= */
.services-section {
  padding: 80px 0;
  background: var(--clr-bg);
}

.alt-section {
  padding: 80px 0;
  background: var(--clr-bg-alt);
}

/* ── Showcase waves ───────────────────────────────────── */
.showcase-wave-top,
.showcase-wave-bottom {
  display: block;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}
.showcase-wave-top  svg,
.showcase-wave-bottom svg {
  display: block;
  width: 100%;
  height: 100px;
}

.showcase-section {
  padding:64px 0 64px;
  background: #8dc0ea;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.cards-grid--two {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.alt-section .card {
  background: var(--clr-white);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-bg-alt);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-image {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 2px;
}

.card-subtitle {
  font-weight: 600;
  color: var(--clr-dark);
  font-size: 14px;
}

.card-body p {
  font-size: 14px;
  color: var(--clr-text-light);
  line-height: 1.65;
}

/* =============================================
   SHOWCASE CAROUSEL
   ============================================= */

/* Section headings on blue */
.showcase-title-heading {
  color: #fff;
}
.showcase-subtitle {
  color: rgba(255,255,255,.85);
}

/* Carousel viewport — hides overflow, enables drag */
.carousel-viewport {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 16px 0 32px;
}
.carousel-viewport:active {
  cursor: grabbing;
}

/* Scrollable track */
.carousel-track {
  display: flex;
  gap: 24px;
  padding: 8px 48px;
  width: max-content;
  will-change: transform;
}

/* Individual card */
.showcase-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  width: 340px;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
}

.showcase-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  pointer-events: none;
}
.showcase-card:hover .showcase-image {
  transform: scale(1.04);
}

.showcase-body {
  padding: 20px 24px 24px;
  flex: 1;
}
.showcase-card-title {
  font-family: var(--ff-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 8px;
}
.showcase-body p {
  font-size: 13.5px;
  color: var(--clr-text-light);
  margin-bottom: 10px;
  line-height: 1.55;
}
.showcase-body ul {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.showcase-body ul li {
  font-size: 13px;
  color: var(--clr-text-light);
  line-height: 1.5;
}

/* =============================================
   CLIENT LOGO CAROUSEL
   ============================================= */
.logo-carousel-section {
  padding: 32px 0 56px;
}

.logo-carousel-intro {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}

.logo-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.logo-carousel-track {
  display: flex;
  gap: 64px;
  width: max-content;
  will-change: transform;
}

/* Fixed width prevents jump caused by images not yet loaded */
.logo-carousel-item {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-carousel-item img {
  height: 48px;
  width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity .2s;
  display: block;
}

.logo-carousel-item img:hover {
  opacity: 1;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  padding: 80px 0;
  background: var(--clr-bg-alt);
}

.contact-section .section-subtitle a {
  color: var(--clr-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-map iframe {
  border-radius: var(--radius);
  width: 100%;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row--two > * {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-dark);
}

.required {
  color: #e53e3e;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--clr-text);
  background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26,115,184,.15);
}

.form-group textarea {
  resize: vertical;
}

/* Honeypot — visually hidden, real users never see or fill this */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

.form-success {
  color: #2f855a;
  font-size: 14px;
  font-weight: 500;
  margin-top: 0.5rem;
  min-height: 20px;
}

.form-error {
  color: #c53030;
  font-size: 14px;
  font-weight: 500;
  margin-top: 0.5rem;
  min-height: 20px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo {
  max-height: 70px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  max-width: 280px;
}

.footer-heading {
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--clr-accent);
}

.footer-contact address p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}

.footer-contact a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--clr-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--clr-primary-dk);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .about-image-wrap {
    width: 220px;
    height: 270px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile nav threshold */
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .topbar-contacts span:last-child {
    display: none;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding: 60px 24px 40px;
  }

  .about-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }

  .about-image-wrap {
    width: 100%;
    max-width: 340px;
    height: 260px;
    margin: 0 auto;
  }

  .about-section {
    padding: 48px 0;
  }

  .services-section,
  .alt-section,
  .showcase-section,
  .contact-section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

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

  .cards-grid--two {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    padding: 8px 20px;
    gap: 16px;
  }
  .showcase-card {
    width: 280px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 18px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .topbar-contacts {
    gap: 10px;
  }

  .topbar-contacts .topbar-link:nth-child(2) {
    display: none;
  }

  .hero-content {
    padding: 48px 20px 36px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
