/* Remote Coast Systems — site styles */

:root {
  --accent: #8eb6dc;       /* light coastal blue */
  --dark-accent: #1470af;  /* deep water blue */
  --light-accent: #eaeaee; /* soft grey */
  --ink: #14181c;
  --white: #ffffff;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 48px;
  width: auto;
}

.brand span {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--dark-accent);
}

/* Hero */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 30, 45, 0.55), rgba(10, 30, 45, 0.65)),
    url('../img/hero-coast.jpg') center/cover no-repeat;
}

.hero .wrap {
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 820px;
  margin: 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

/* Sections */

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--light-accent);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.section-grid.reverse .section-media {
  order: 2;
}

.section-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.media-caption {
  margin-top: 10px;
  font-size: 0.82rem;
  font-style: italic;
  color: #6b7280;
  text-align: right;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.media-stack img:first-child {
  grid-column: 1 / -1;
}

.section-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 20px;
  font-weight: 700;
}

.section-copy p {
  font-size: 1.05rem;
  color: #33393f;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 3px;
  background: var(--dark-accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #0e5687;
  transform: translateY(-1px);
}

.btn.btn-light {
  background: var(--white);
  color: var(--dark-accent);
}

.btn.btn-light:hover {
  background: var(--light-accent);
}

/* Partners */

.partners h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 48px;
  font-weight: 700;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 48px;
  align-items: center;
  justify-items: center;
}

.partner-grid img {
  max-height: 170px;
  max-width: 100%;
  width: auto;
}

/* Contact / CTA footer */

.contact-cta {
  background: linear-gradient(135deg, var(--dark-accent), #0b3a5c);
  color: var(--white);
  padding: 90px 0;
  text-align: center;
}

.contact-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  font-weight: 700;
}

.contact-cta p {
  font-size: 1.05rem;
  color: #dbe8f4;
  margin: 0 0 32px;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #cfd6dc;
  padding: 44px 0;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: #cfd6dc;
  text-decoration: none;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* Inner page hero */

.page-hero {
  position: relative;
  padding: 70px 0 60px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(10, 30, 45, 0.6), rgba(10, 30, 45, 0.72)),
    url('../img/hero-coast.jpg') center/cover no-repeat;
  text-align: center;
}

.page-hero .hero-eyebrow {
  color: var(--accent);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  margin: 0 0 10px;
}

.page-hero p {
  font-size: 1.1rem;
  color: #e2ecf4;
  max-width: 640px;
  margin: 0 auto;
}

/* Product blocks (Maritime / Aerial) */

.product-block {
  padding: 70px 0;
  border-bottom: 1px solid #e8e8e8;
}

.product-block:last-of-type {
  border-bottom: none;
}

.product-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.product-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  font-weight: 700;
}

.product-head .product-tagline {
  font-size: 1.05rem;
  color: #33393f;
  margin: 0 0 14px;
}

.product-head .product-link {
  font-size: 0.9rem;
  color: #6b7280;
}

.product-head .product-link a {
  color: var(--dark-accent);
  font-weight: 600;
  text-decoration: none;
}

.spec-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spec-columns h4 {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--dark-accent);
  margin: 0 0 12px;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-list li {
  font-size: 0.92rem;
  color: #33393f;
}

.spec-list b {
  color: var(--ink);
  font-weight: 700;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.subsection {
  margin-top: 44px;
}

.subsection h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.subsection p {
  color: #33393f;
  margin: 0 0 20px;
}

.photo-row {
  column-count: 3;
  column-gap: 16px;
  margin-bottom: 8px;
}

.photo-row figure {
  margin: 0 0 16px;
  break-inside: avoid;
}

.photo-row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.photo-row figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #6b7280;
}

.photo-feature {
  max-width: 640px;
  margin: 0 auto;
}

.photo-feature img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.photo-feature figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

.link-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 10px;
}

.link-note a {
  color: var(--dark-accent);
  font-weight: 600;
}

/* Gallery */

.shipwreck-teaser {
  background: var(--light-accent);
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.shipwreck-teaser h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 14px;
}

.shipwreck-teaser p {
  color: #33393f;
  margin: 0 0 24px;
}

.shipwreck-teaser-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.shipwreck-teaser-photos img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.gallery-album {
  margin-bottom: 64px;
}

.gallery-album-head {
  margin-bottom: 22px;
}

.gallery-album-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.gallery-album-head span {
  font-size: 0.85rem;
  color: #6b7280;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.gallery-grid button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.gallery-grid img:hover {
  opacity: 0.85;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 10, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: 0;
  transform: scale(0.92);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.lightbox.open img.is-visible {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Social */

.stat-banner {
  text-align: center;
  padding: 60px 0 20px;
}

.stat-banner .stat-number {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--dark-accent);
}

.stat-banner p {
  color: #33393f;
  font-size: 1.05rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.video-card h4 {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Contact page */

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.contact-layout img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

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

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #33393f;
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dbe0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-direct {
  margin-top: 28px;
  font-size: 0.92rem;
  color: #6b7280;
}

.contact-direct a {
  color: var(--dark-accent);
  font-weight: 600;
  text-decoration: none;
}

/* Responsive */

@media (max-width: 900px) {
  .section-grid,
  .section-grid.reverse .section-media {
    grid-template-columns: 1fr;
    order: initial;
  }

  .section-grid {
    display: block;
  }

  .section-grid .section-media {
    margin-bottom: 32px;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-row {
    column-count: 2;
  }

  .shipwreck-teaser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e5e5e5;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li {
    border-top: 1px solid #eee;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
  }

  .section {
    padding: 60px 0;
  }

  .photo-row {
    column-count: 1;
  }

  .shipwreck-teaser-photos {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-head,
  .spec-columns,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout img {
    max-width: 320px;
    margin: 0 auto;
  }
}
