/* ============================================================
   Pramuk Marine & Dive Solutions — pramuk.in
   ============================================================ */

:root {
  --navy-900: #0a2239;
  --navy-800: #0e2f4f;
  --navy-700: #16405f;
  --blue-500: #2f7fb8;
  --blue-400: #4ba3d8;
  --blue-300: #7cc0e8;
  --orange-500: #f25c1f;
  --orange-600: #d94e15;
  --ink: #1c2b36;
  --ink-soft: #4a5d6b;
  --line: #dde7ee;
  --bg-soft: #f2f7fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(10, 34, 57, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 34, 57, 0.14);
  --font-display: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1em; }
a { color: var(--blue-500); }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; }

.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 92, 31, 0.35);
}
.btn-primary:hover { background: var(--orange-600); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.btn-emergency {
  background: var(--navy-900);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.btn-emergency:hover { background: var(--navy-700); color: #fff; }

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #41e08d;
  box-shadow: 0 0 0 0 rgba(65, 224, 141, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(65, 224, 141, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(65, 224, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(65, 224, 141, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}

.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--blue-500); border-bottom-color: var(--blue-400); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 90px 0;
  background:
    url("../images/hero-towing.jpg") center 35% / cover no-repeat,
    var(--navy-900);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 26, 44, 0.92) 0%, rgba(10, 34, 57, 0.78) 45%, rgba(10, 34, 57, 0.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-left: max(calc((100% - 1180px) / 2), 4%);
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  background: rgba(75, 163, 216, 0.14);
  border: 1px solid rgba(124, 192, 232, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.hero-tagline {
  color: #d7e7f2;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 600px;
}
.hero-checks li {
  position: relative;
  padding-left: 30px;
  color: #eaf3fa;
  font-weight: 500;
  font-size: 0.97rem;
}
.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(135deg, var(--blue-400), var(--blue-500));
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-ready {
  color: var(--blue-300);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--navy-900);
  border-top: 1px solid rgba(124, 192, 232, 0.18);
  padding: 34px 0;
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.trust-item { text-align: center; }
.trust-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--blue-300);
  margin-bottom: 4px;
}
.trust-label {
  color: #b9cedd;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section-head { max-width: 720px; margin: 0 auto 14px; text-align: center; }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 10px;
}
.section-intro { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Services ---------- */
.services { padding: 90px 0 40px; background: var(--bg-soft); }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(26px, 4.5vw, 64px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 3.4vw, 44px);
  margin-top: 38px;
  box-shadow: var(--shadow-sm);
}
.service-block:nth-child(odd) .service-media { order: 2; }

.service-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.service-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 430px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-block:hover .service-media img { transform: scale(1.04); }

.service-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--blue-400);
  letter-spacing: 0.18em;
}
.service-lead {
  font-weight: 600;
  color: var(--navy-700);
  font-size: 1.05rem;
}
.service-body h4 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin: 18px 0 10px;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.service-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  color: var(--ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
}
.service-quote {
  border-left: 3px solid var(--orange-500);
  padding-left: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.about-media {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-media img { width: 100%; object-fit: cover; }
.about-media figcaption {
  background: var(--navy-900);
  color: #cfe2ef;
  font-size: 0.85rem;
  padding: 12px 18px;
}
.about-points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.about-points li {
  position: relative;
  padding: 9px 0 9px 32px;
  color: var(--ink-soft);
}
.about-points li strong { color: var(--navy-900); }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    linear-gradient(135deg, var(--orange-500), var(--orange-600));
}

/* ---------- Gallery ---------- */
.gallery { padding: 90px 0; background: var(--bg-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
}
.lightbox::backdrop { background: rgba(6, 18, 30, 0.88); }
.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: -2px;
  right: 6px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-900);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact { padding: 100px 0; background: var(--navy-900); }
.contact .section-eyebrow { color: var(--blue-300); }
.contact h2 { color: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.contact-info > p { color: #c3d6e4; }

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 192, 232, 0.22);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.contact-card h3 {
  color: var(--blue-300);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-card p { color: #fff; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.contact-card a { color: #fff; text-decoration-color: var(--blue-400); }

.contact-secure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  color: #9fc1d8;
}
.contact-secure svg { flex-shrink: 0; margin-top: 3px; color: #41e08d; }
.contact-secure p { font-size: 0.88rem; margin: 0; }

/* ---------- Form ---------- */
.contact-form {
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 18px; }

.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.req { color: var(--orange-500); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdfe;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(75, 163, 216, 0.18);
}
.form-row .invalid {
  border-color: #d63b3b;
  box-shadow: 0 0 0 3px rgba(214, 59, 59, 0.12);
}

.phone-group {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.4fr;
  gap: 10px;
}

.field-error {
  display: none;
  color: #c22f2f;
  font-size: 0.82rem;
  margin: 6px 0 0;
}
.field-error.show { display: block; }

.form-consent .consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.87rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--orange-500); }

/* Honeypot — visually removed, still in DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit { width: 100%; border: 0; font-size: 1rem; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status { margin: 12px 0 0; font-size: 0.9rem; font-weight: 500; }
.form-status.ok { color: #1d7a45; }
.form-status.err { color: #c22f2f; }

/* ---------- Footer ---------- */
.site-footer { background: #071a2c; color: #b9cedd; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 14px;
}
.footer-logo img { border-radius: 9px; }
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.footer-tag { font-size: 0.88rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: #b9cedd;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--blue-300); }
.footer-col p { font-size: 0.92rem; overflow-wrap: anywhere; }
#footer-email a { color: var(--blue-300); }
.footer-ready { font-family: var(--font-display); font-weight: 600; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(185, 206, 221, 0.15);
  padding: 18px 0;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Utility pages (thank-you / 404) ---------- */
.ty-wrap, .nf-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0a2239 0%, #16405f 100%);
  padding: 24px;
}
.ty-card, .nf-card {
  background: #fff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(4, 16, 28, 0.45);
}
.ty-card img, .nf-card img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  margin: 0 auto 18px;
}
.ty-card p, .nf-card p { color: var(--ink-soft); }
.ty-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2fae6b, #1d7a45);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
}
.nf-code {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--blue-400);
  line-height: 1;
  margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .btn-emergency { display: none; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  .site-nav a {
    display: block;
    padding: 13px 6%;
    border-bottom: 0;
  }

  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(odd) .service-media { order: 0; }
  .service-media img { max-height: 320px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .hero { padding: 64px 0; }
  .hero-checks { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .phone-group { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}
