/* Yacht Refit Storage
   Brand: deep black/navy, silver typography cues, electric cyan (#00AEEF) accents. */

:root {
  /* Matches yrs-logo.png canvas edges (sampled corner pixels ≈ #000209) */
  --bg-dark: #000209;
  --bg-navy: #0a1219;
  --accent-cyan: #00aeef;
  --accent-cyan-soft: rgba(0, 174, 239, 0.14);
  --text-primary: #e8ecf1;
  --text-muted: #8a9fb5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #47cfff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 2, 9, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 174, 239, 0.14);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.nav-list a:hover {
  color: var(--accent-cyan);
}

/* Hero */
.hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  /* Solid match to logo PNG edges — extra gradients caused a visible seam */
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 300;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
}

.section--alt {
  background: var(--bg-navy);
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.tagline-block {
  font-size: 1.08rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.section p + p {
  margin-top: 1rem;
}

.facility-highlights {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-primary);
}

.facility-highlights li {
  margin-bottom: 0.5rem;
}

.facility-highlights li::marker {
  color: var(--accent-cyan);
}

/* Facility imagery — gradients and subtle grading to present utilitarian photos on-brand */
.facility-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .facility-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .facility-photo-wrap--span {
    grid-column: 1 / -1;
  }
}

.facility-photo-wrap {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, 0.18);
  background: var(--bg-dark);
}

.facility-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(5, 10, 15, 0.2) 0%,
    transparent 45%,
    rgba(5, 10, 15, 0.88) 100%
  );
}

.facility-photo-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.97);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.facility-photo-wrap:hover img {
  transform: scale(1.02);
  filter: saturate(0.95) contrast(1.08) brightness(1);
}

.facility-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(232, 236, 241, 0.95);
  background: linear-gradient(transparent, rgba(5, 10, 15, 0.92));
}

/* Contact form */
.contact-form {
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-row input,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-dark);
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 4px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-soft);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: var(--accent-cyan);
  color: #000209;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  align-self: flex-start;
}

.form-submit:hover {
  background: #47cfff;
}

.form-submit:active {
  transform: scale(0.98);
}

.contact-address {
  margin: 2rem 0 0;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.6;
}

.contact-address a {
  color: var(--text-primary);
}

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

.contact-address strong {
  color: var(--text-primary);
}

.map-link-wrap {
  margin: 0.75rem 0 0;
}

.map-link {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(0, 174, 239, 0.14);
  background: var(--bg-navy);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-img {
    height: 40px;
  }

  .nav-list {
    gap: 1rem;
  }

  .hero {
    min-height: 48vh;
    padding: 3rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}
