/* ===========================================================
   Marinetech — main stylesheet
   =========================================================== */

:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --teal-navy: #0c3a52;
  --blue: #0f6cbd;
  --accent: #f5a623;
  --red: #e8432f;
  --light-blue: #e2f2fb;
  --ink: #1c2733;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #e3e9ef;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11,37,69,.08);
  --container: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font); color: var(--navy); line-height: 1.25; margin: 0 0 16px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--muted); }
.page-home p, .page-about p, .page-products p, .page-careers p { text-align: justify; text-justify: inter-word; }
.page-services .card img { height: 140px; }
.page-services .card-body p { text-align: justify; text-justify: inter-word; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: #e2951a; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245,166,35,.35); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-blue { background: #fff; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }
.btn-teal { background: var(--teal-navy); }
.btn-teal:hover { background: #082738; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 10px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--light-blue); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 34px; }
.text-accent { color: var(--red); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  display: block; padding: 8px 2px; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
  font-size: 15px;
}
.main-nav li.active a { color: var(--navy); font-weight: 700; border-color: var(--red); }
.main-nav a:hover { color: var(--blue); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  max-height: 540px;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; display: block; }

/* Text-overlay hero variant (used on inner pages, NOT the homepage video hero) */
.hero.hero-with-text { display: flex; align-items: center; color: #fff; }
.hero.hero-with-text::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,51,.7), rgba(7,26,51,.5));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-content .eyebrow { color: var(--accent); }
.hero-content h1 { color: #fff; font-size: 44px; margin-bottom: 18px; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 600px; }

.page-hero {
  position: relative; min-height: 340px; display: flex; align-items: center;
  color: #fff; background: linear-gradient(120deg, var(--navy-dark), var(--navy));
  overflow: hidden;
}
.page-hero img.hero-media { opacity: .55; }
.page-hero .hero-content h1 { font-size: 36px; margin-bottom: 6px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); font-size: 14px; }
.page-hero .breadcrumb a { color: #fff; font-weight: 600; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,37,69,.14); }
.card img { width: 100%; height: 210px; object-fit: cover; background: var(--bg-alt); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 19px; margin-bottom: 10px; }
.card-body p { flex: 1; }
.card-link { font-weight: 700; color: var(--blue); }
.card-link::after { content: " →"; }

/* ---------- Two column feature ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Mission / Vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; border-left: 4px solid var(--accent); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card img { height: 260px; object-fit: cover; }
.team-card h3 { font-size: 17px; margin: 18px 0 4px; }
.team-role { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.team-qual { color: var(--muted); font-size: 13px; margin-top: 4px; padding: 0 16px 20px; }

/* ---------- Product tiles ---------- */
.product-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.product-tile:hover { transform: translateY(-4px); }
.product-tile .icon-wrap {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
}
.product-tile h4 { font-size: 15px; margin: 0; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.brand-strip img { height: 48px; width: auto; filter: grayscale(1); opacity: .75; transition: .2s; }
.brand-strip img:hover { filter: none; opacity: 1; }

/* ---------- Contact Us page ---------- */
.contact-hero { position: relative; height: 55vh; min-height: 380px; max-height: 560px; overflow: hidden; }
.contact-hero img.hero-media { width: 100%; height: 100%; object-fit: cover; }
.contact-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.4); }
.contact-hero-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; text-align: center; }
.contact-hero-caption h1 { color: #fff; font-size: 36px; letter-spacing: 1px; margin-bottom: 10px; }
.contact-hero-caption p { color: #fff; font-weight: 700; letter-spacing: .5px; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.contact-form-plain input, .contact-form-plain textarea {
  background: var(--bg-alt); border: none; border-radius: 10px; padding: 15px 18px;
}
.contact-form-plain .form-row { margin-bottom: 16px; }

.contact-card-dark {
  background: var(--teal-navy); color: rgba(255,255,255,.9); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.contact-card-dark h3 { color: #fff; font-size: 19px; margin-bottom: 14px; }
.contact-card-dark p { color: rgba(255,255,255,.85); margin-bottom: 8px; }
.contact-card-dark a { color: rgba(255,255,255,.9); }
.contact-card-dark a:hover { color: var(--accent); }

.office-card { background: var(--bg-alt); border-radius: var(--radius); padding: 30px; text-align: center; }
.office-icon { font-size: 30px; margin-bottom: 12px; }
.office-card h4 { margin-bottom: 10px; }
.office-card p { margin-bottom: 14px; }

/* ---------- Careers page ---------- */
.career-hero { position: relative; height: 78vh; min-height: 480px; max-height: 720px; overflow: hidden; }
.career-hero img.hero-media { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.career-hero::after { content: ""; position: absolute; inset: 0; background: rgba(7,26,51,.35); }
.career-hero-caption { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.career-hero-caption h1 { color: #fff; font-size: 44px; letter-spacing: 2px; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.page-careers p.career-subtitle { text-align: center !important; }

.career-band { background: var(--teal-navy); color: rgba(255,255,255,.85); padding: 70px 0; }
.career-band h3 { color: #fff; font-size: 22px; }
.career-band h4 { color: #fff; font-size: 17px; margin-top: 24px; margin-bottom: 8px; }
.career-band p { color: rgba(255,255,255,.85); }
.career-band strong { color: #fff; }
.career-band a { color: var(--accent); font-weight: 700; }
.career-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; }
.career-cards::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: rgba(255,255,255,.15); transform: translateX(-50%);
}
.career-card { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 32px; border-top: 3px solid var(--accent); }

/* ---------- About Us hero ---------- */
.about-hero { background: var(--teal-navy); padding: 60px 0; }
.about-hero-line1 { color: #fff; font-style: italic; font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.about-hero-row { display: flex; align-items: center; gap: 24px; }
.about-hero-number { color: var(--red); font-size: 80px; font-weight: 800; font-style: italic; line-height: 1; }
.about-hero-line2 { color: #fff; font-size: 24px; font-weight: 700; margin: 0; line-height: 1.35; }

/* ---------- Icon rows (Mission / Vision) ---------- */
.icon-row { display: flex; align-items: center; gap: 32px; max-width: 900px; margin: 0 auto 40px; }
.icon-row:last-child { margin-bottom: 0; }
.icon-badge {
  width: 100px; height: 100px; border-radius: 50%; background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow);
}
.icon-badge svg { width: 46px; height: 46px; }
.icon-row h3 { margin-bottom: 8px; }
.icon-row p { margin: 0; }

/* ---------- Team band (About Us) ---------- */
.team-band { background: var(--teal-navy); padding: 70px 0; }
.team-card-dark { text-align: center; color: #fff; }
.team-avatar {
  width: 170px; height: 170px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px;
  border: 4px solid #fff; box-shadow: var(--shadow); background: #fff;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card-dark h3 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.team-card-dark .team-role { color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.team-card-dark .team-qual { color: rgba(255,255,255,.75); font-size: 13px; margin-top: 4px; }

/* ---------- Service detail page ---------- */
.service-detail-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 16px 0; }
.breadcrumb-light { color: var(--muted); font-size: 14px; }
.breadcrumb-light a { color: var(--blue); font-weight: 600; }
.service-detail-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin: 20px 0 28px; }

/* ---------- Products page ---------- */
.dealer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
.dealer-badge {
  width: 130px; height: 130px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow); padding: 14px;
}
.dealer-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 20px; }
.category-tile { text-align: center; }
.category-photo {
  width: 130px; height: 130px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px;
  box-shadow: var(--shadow); background: #fff;
}
.category-photo img { width: 100%; height: 100%; object-fit: cover; }
.category-tile h4 { font-size: 13px; color: var(--navy); margin: 0; letter-spacing: .3px; }

.brand-band { background: var(--teal-navy); padding: 70px 0; }
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.brand-card { background: #fff; border-radius: 8px; padding: 18px; display: flex; align-items: center; justify-content: center; height: 90px; }
.brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Enquiry section (Get In Touch) ---------- */
.enquiry-section {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.enquiry-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,51,.88) 30%, rgba(7,26,51,.55) 100%);
  z-index: 0;
}
.enquiry-section .container { position: relative; z-index: 1; }
.enquiry-copy .eyebrow { color: var(--accent); }
.enquiry-copy h2 { color: #fff; }
.enquiry-copy p { color: rgba(255,255,255,.85); font-weight: 600; }
.enquiry-section .form-box {
  background: rgba(60,120,160,.45);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  margin: 0;
}
.enquiry-section .form-box h3 { color: #fff; }
.enquiry-section .form-box > p { color: rgba(255,255,255,.75); }
.enquiry-section .form-row input,
.enquiry-section .form-row textarea {
  background: #fff; border: none; color: var(--ink);
}
.enquiry-section .form-row label { color: rgba(255,255,255,.9); }

/* ---------- Forms ---------- */
.form-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; border: 1px solid var(--border);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 15px; background: var(--bg-alt);
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--blue); background: #fff; }
.form-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.form-alert.success { background: #e4f6ea; color: #1c7a3a; }
.form-alert.error { background: #fdeaea; color: #b3261e; }

/* ---------- Contact blocks ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 40px; }
.contact-info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.contact-info-card h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent); margin-bottom: 12px; }
.contact-info-card a { color: var(--blue); font-weight: 600; }
.contact-info-card a:hover { text-decoration: underline; }

/* ---------- Info band (For more Information) ---------- */
.info-band { background: #0e5a74; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- News ---------- */
.news-band { background: var(--teal-navy); padding: 40px 0; }
.news-band h2 { color: #fff; margin-bottom: 12px; }
.news-card img { height: 230px; }
.news-date { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 8px; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--light-blue); color: var(--muted); padding: 64px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 60px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: opacity .2s; background: var(--navy);
}
.footer-social a svg { width: 15px; height: 15px; fill: #fff; }
.footer-social a:hover { opacity: .85; }
.footer-social a.icon-facebook { background: #1877f2; }
.footer-social a.icon-instagram { background: #1c1c1c; }
.footer-social a.icon-twitter { background: #1da1f2; }
.footer-col h4 { color: var(--navy); font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 18px; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--blue); }
.icon-list li a { display: flex; align-items: flex-start; gap: 10px; }
.icon-list li a svg { width: 14px; height: 14px; fill: var(--blue); flex-shrink: 0; margin-top: 3px; }
.icon-list li a span { flex: 1; }
.footer-bottom { background: var(--teal-navy); padding: 18px 0; text-align: center; font-size: 13px; color: #fff; font-weight: 700; margin-top: 40px; }

.scroll-top {
  position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); }

/* ---------- Misc ---------- */
.stat-strip { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; text-align: center; margin: 40px 0; }
.stat-strip .num { font-size: 42px; font-weight: 800; color: var(--navy); }
.stat-strip .label { color: var(--muted); font-size: 14px; }
.divider { width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin: 0 auto 20px; }
.text-center { text-align: center; }
.bullet-list li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); }
.bullet-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 700; color: var(--blue); }
.back-link::before { content: "← "; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .feature-split { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 84px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 500px; }
  .main-nav ul { flex-direction: column; padding: 12px 24px; gap: 4px; }
  .main-nav a { padding: 12px; }
  .hero { min-height: 520px; }
  .hero-content h1 { font-size: 30px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 26px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .dealer-badge { width: 100px; height: 100px; }
  .career-cards { grid-template-columns: 1fr; }
  .career-cards::after { display: none; }
}
