/* Yachtsmith LLC — site stylesheet */

:root {
  --navy-950: #071422;
  --navy-900: #0b1f33;
  --navy-800: #0f2c47;
  --navy-700: #16405f;
  --red: #d22f25;
  --red-dark: #a82119;
  --gold: #c9a24b;
  --white: #ffffff;
  --off-white: #f5f7f9;
  --gray-600: #5b6b78;
  --gray-200: #e2e8ee;
  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(7, 20, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: "Oswald", "Inter", sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--gray-600); }

a { color: inherit; text-decoration: none; }

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 3px solid var(--red);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand .logo-mark {
  height: 40px;
  width: auto;
  display: block;
}

.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand .mark {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand .mark span { color: var(--red); }

.brand .tagline {
  font-size: 0.68rem;
  color: #9fb3c4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: none;
}

@media (min-width: 640px) {
  .brand .tagline { display: inline; }
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #cdd9e2;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--navy-800);
  color: var(--white);
}

.nav-links a.cta {
  background: var(--red);
  color: var(--white);
}

.nav-links a.cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  color: var(--white);
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    flex-direction: column;
    padding: 8px 24px 20px;
    display: none;
    border-bottom: 3px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
}

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(7,20,34,0.92), rgba(11,31,51,0.85)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 40px);
  color: var(--white);
  padding: 100px 24px 90px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero p.lead {
  color: #c3d2dd;
  font-size: 1.15rem;
  max-width: 620px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }

.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-outline-dark { border-color: var(--navy-800); color: var(--navy-900); }
.btn-outline-dark:hover { background: var(--navy-950); color: var(--white); }

/* Sections */
section { padding: 72px 24px; }

.section-tight { padding: 48px 24px; }

.section-label {
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.bg-off { background: var(--off-white); }
.bg-navy { background: var(--navy-950); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: #c3d2dd; }

/* Highlight / feature grid */
.grid {
  display: grid;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

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

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 44px;
  height: 44px;
  color: var(--red);
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 10px; }

.card p:last-child { margin-bottom: 0; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 720px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat-strip .stat-num {
  font-family: "Oswald", sans-serif;
  font-size: 2.1rem;
  color: var(--gold);
  font-weight: 600;
}

.stat-strip .stat-label {
  color: #c3d2dd;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Page header (non-home pages) */
.page-header {
  background: var(--navy-950);
  color: var(--white);
  padding: 56px 24px;
}

.page-header .container { max-width: var(--max-width); }

.page-header p { color: #c3d2dd; max-width: 640px; margin-bottom: 0; }

.breadcrumb {
  font-size: 0.85rem;
  color: #8ba0b1;
  margin-bottom: 12px;
}

.breadcrumb a:hover { color: var(--white); }

/* Services list */
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-row:last-child { border-bottom: none; }

@media (min-width: 760px) {
  .service-row { grid-template-columns: 260px 1fr; gap: 40px; }
}

.service-row .num {
  font-family: "Oswald", sans-serif;
  color: var(--gray-200);
  font-size: 2.6rem;
  font-weight: 600;
}

.service-row h3 { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tag {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  color: var(--navy-800);
  font-size: 0.78rem;
  padding: 5px 11px;
  border-radius: 999px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

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

.gallery-item {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.gallery-item .icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 14px; }

.gallery-item .cap {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.gallery-item .sub { color: #9fb3c4; font-size: 0.8rem; margin-top: 4px; }

.gallery-note {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 18px 22px;
  background: var(--off-white);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.92rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.contact-info-item span, .contact-info-item a { color: var(--gray-600); font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--red); }

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

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--off-white);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Footer */
footer {
  background: var(--navy-950);
  color: #9fb3c4;
  padding: 48px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
footer h4 .logo-mark { height: 28px; width: auto; display: block; }
footer a { color: #9fb3c4; }
footer a:hover { color: var(--white); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-top: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* Travel map */
.map-shell {
  max-width: var(--max-width);
  margin: 0 auto;
}

.map-note {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.map-container {
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.map-placeholder-banner {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 14px 20px;
  background: #fff6ea;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gray-600);
  font-size: 0.88rem;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
}

.map-popup .sample-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--navy-800);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.map-popup h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--navy-900);
}

.map-popup p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gray-600);
  max-width: 220px;
}

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-620 { max-width: 620px; }
.mb-0 { margin-bottom: 0; }

/* Headings on dark banners */
.hero h1, .page-header h1 { color: var(--white); }
.service-row .num { color: var(--red); }
