/* ==========================================================================
   Tidal Range Marine — site styles
   Palette and type match the original React site (navy / cyan / steel).
   ========================================================================== */

:root {
  --navy: oklch(0.18 0.04 250);
  --navy-light: oklch(0.25 0.05 250);
  --steel: oklch(0.45 0.04 240);
  --steel-light: oklch(0.55 0.03 240);
  --cyan: oklch(0.82 0.15 180);
  --cyan-dark: oklch(0.7 0.15 180);
  --background: oklch(0.98 0.005 250);
  --muted: oklch(0.94 0.01 250);
  --white: #fff;

  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-heading: "Sora", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 0.5rem;
  --container: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
}

.btn-cyan:hover {
  background: var(--cyan-dark);
  box-shadow: 0 10px 25px -5px oklch(0.82 0.15 180 / 0.25);
}

.btn-outline-light {
  border-color: rgb(255 255 255 / 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.1);
}

.btn-outline-dark {
  border-color: oklch(0.18 0.04 250 / 0.2);
  color: var(--navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: oklch(0.18 0.04 250 / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  height: 3rem;
  width: auto;
}

.brand-name {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.25;
}

.brand-sub {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.header-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.header-nav a:hover {
  color: var(--white);
  background: rgb(255 255 255 / 0.05);
}

.header-nav a[aria-current="page"] {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.header-phone:hover {
  color: var(--cyan);
}

.header-phone .icon {
  width: 1rem;
  height: 1rem;
}

.header-cta {
  display: none;
  padding: 0.625rem 1.5rem;
}

.menu-toggle {
  display: inline-flex;
  padding: 0.5rem;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--cyan);
}

.menu-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-toggle .icon-close,
.mobile-menu {
  display: none;
}

.site-header.menu-open {
  background: oklch(0.18 0.04 250 / 0.95);
  backdrop-filter: blur(12px);
}

.site-header.menu-open .mobile-menu {
  display: block;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-block: 1rem;
}

.site-header.menu-open .icon-open {
  display: none;
}

.site-header.menu-open .icon-close {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu nav a {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
}

.mobile-menu nav a:hover {
  color: var(--white);
  background: rgb(255 255 255 / 0.05);
}

.mobile-menu nav a[aria-current="page"] {
  color: var(--cyan);
  background: oklch(0.82 0.15 180 / 0.1);
}

.mobile-menu .mobile-menu-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .header-phone {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Shared section styles
   -------------------------------------------------------------------------- */

.section {
  padding-block: 6rem;
}

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

.section-muted {
  background: var(--muted);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.grid-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 3rem 3rem;
  pointer-events: none;
}

.section-navy > .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: block;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
}

.section-navy h2 {
  color: var(--white);
}

.lead {
  color: var(--steel);
  font-size: 1.125rem;
}

.section-navy .lead,
.section-navy p {
  color: rgb(255 255 255 / 0.7);
}

.two-col {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .two-col .col-swap-first {
    order: -1;
  }
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.375rem;
}

.check-list .icon {
  color: var(--cyan);
}

.framed-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.framed-image img {
  width: 100%;
}

.image-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, oklch(0.18 0.04 250 / 0.9), transparent);
  color: var(--white);
}

.image-caption strong {
  font-family: var(--font-heading);
  font-weight: 600;
  display: block;
}

.image-caption span {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
}

.image-caption .with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.image-caption .icon {
  color: var(--cyan);
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.18 0.04 250 / 0.95),
    oklch(0.18 0.04 250 / 0.8) 50%,
    oklch(0.18 0.04 250 / 0.45)
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: 8rem 5rem;
}

.hero-content {
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: oklch(0.82 0.15 180 / 0.1);
  border: 1px solid oklch(0.82 0.15 180 / 0.3);
  border-radius: 9999px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.hero-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--cyan);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(to right, var(--cyan), oklch(0.82 0.1 220));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro {
  color: rgb(255 255 255 / 0.8);
  font-size: 1.25rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.hero-stats {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-stat .stat-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat .icon {
  color: var(--cyan);
}

.hero-stat .stat-label {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.section-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.survey-card {
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.survey-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.survey-card p {
  color: rgb(255 255 255 / 0.65);
  margin: 0;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: oklch(0.82 0.15 180 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--cyan-dark);
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-card p {
  color: var(--steel);
  font-size: 0.875rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: 8rem 5rem;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
}

.page-hero p {
  font-size: 1.125rem;
  max-width: 48rem;
}

.contact-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: oklch(0.82 0.15 180 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--cyan-dark);
}

.contact-method strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-method a {
  color: var(--steel);
  transition: color 0.2s;
}

.contact-method a:hover {
  color: var(--cyan-dark);
}

.contact-method a.mono {
  font-family: var(--font-mono);
  font-size: 1.125rem;
}

.contact-method .hint {
  color: var(--steel);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.contact-aside-box {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: 0.75rem;
}

.contact-aside-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-aside-box .check-list {
  font-size: 0.875rem;
  color: var(--steel);
}

.contact-panel {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
  padding: 2rem;
}

@media (min-width: 1024px) {
  .contact-panel {
    padding: 3rem;
  }
}

.contact-panel > p {
  color: var(--steel);
  margin-bottom: 2rem;
}

.enquiry-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--muted);
  margin-bottom: 1rem;
}

.enquiry-point .icon {
  color: var(--cyan-dark);
  margin-top: 0.125rem;
}

.enquiry-point p {
  color: var(--steel);
  margin: 0;
}

.map-banner {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}

.map-banner img {
  width: 100%;
  height: 24rem;
  object-fit: cover;
}

.map-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.18 0.04 250 / 0.8), transparent);
}

.map-banner .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.map-banner .pin {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-banner .pin .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--navy);
}

.map-banner .caption strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.125rem;
}

.map-banner .caption span {
  display: block;
  color: rgb(255 255 255 / 0.7);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand img {
  height: 3.5rem;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
  max-width: 24rem;
}

.footer-tagline {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-heading::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--cyan);
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
}

.footer-contact .icon {
  color: var(--cyan);
  margin-top: 0.125rem;
}

.footer-contact a {
  color: rgb(255 255 255 / 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.footer-bottom .container {
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  margin: 0;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.875rem;
}

.footer-bottom .mono {
  color: rgb(255 255 255 / 0.4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page .code {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0;
}
