/* ==========================================================================
   John's Hot Props & Outboards — shared site styles
   ========================================================================== */

:root {
  --navy-deep: #071e36; /* Darkened for a more premium contrast */
  --navy-mid: #10345c;
  --navy-light: #224c7d;
  --cream: #f9f6ef; /* Slightly cleaner background */
  --cream-card: #ffffff; /* Crisp white for cards to pop better */
  --gold: #b8862f;
  --gold-light: #d9ae5c;
  --text-dark: #1a242f;
  --text-muted: #536271;
  --text-on-navy: #f8f4e6;
  --border-hairline: rgba(7, 30, 54, 0.08);
  --shadow-soft: 0 4px 20px rgba(7, 30, 54, 0.06);
  --shadow-hover: 0 12px 30px rgba(7, 30, 54, 0.12);
  --radius: 6px; /* Slightly rounder for modern feel */
  --max-width: 1120px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; transition: color 0.2s ease; }

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

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

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

.brand img { width: 46px; height: 46px; }

.brand-text { color: var(--text-on-navy); }

.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-text .tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  color: var(--text-on-navy);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.header-phone span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--text-on-navy); color: var(--text-on-navy); }
.btn-outline:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

.btn-navy { background: var(--navy-mid); color: var(--text-on-navy); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.site-nav { background: var(--navy-deep); }
.site-nav .wrap { padding: 0 24px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.site-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text-on-navy);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  opacity: 0.9;
}
.site-nav a:hover { opacity: 1; border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-on-navy);
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,30,54,0.4) 0%, rgba(7,30,54,0.95) 100%);
}
.hero-inner {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-on-navy);
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---------- Section headings ---------- */
.section { padding: 76px 0; }
.section-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: var(--navy-deep);
}
.section-intro {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}
.section-alt { background: var(--cream-card); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }

/* ---------- Listing cards ---------- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.listing-card {
  background: var(--cream-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--navy-light);
  border-bottom: 1px solid var(--border-hairline);
}
.listing-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.listing-hp {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.listing-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: var(--navy-deep);
}
.listing-price {
  font-weight: 700;
  color: var(--navy-mid);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.listing-price .obo {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.listing-blurb {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}
.listing-link {
  align-self: flex-start;
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.listing-link:hover { color: var(--gold); }

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-layout p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-figure {
  background: var(--navy-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-figure img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .about-layout { grid-template-columns: 1fr; } }

/* ---------- Contact band ---------- */
.contact-band {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
  color: var(--text-on-navy);
  text-align: center;
}
.contact-band .section-label { color: var(--gold-light); }
.contact-band h2 { color: var(--text-on-navy); }
.contact-band .section-intro { color: rgba(248,244,230,0.85); margin-left: auto; margin-right: auto; }
.contact-phone-big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 26px;
}
.contact-phone-big:hover { color: #fff; }
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.contact-secondary {
  font-size: 0.9rem;
  color: rgba(248,244,230,0.7);
}
.contact-secondary a { color: var(--gold-light); font-weight: 600; }
.contact-secondary a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248,244,230,0.5);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---------- Listing detail page ---------- */
.detail-hero {
  background: var(--navy-light);
  border-bottom: 1px solid var(--border-hairline);
}
.detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  color: var(--navy-mid);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.back-link:hover { color: var(--gold); }
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-grid h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--navy-deep);
  margin: 0 0 10px;
}
.detail-hp {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.detail-grid p.desc { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.spec-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.95rem;
}
.spec-table td:first-child {
  color: var(--text-muted);
  width: 35%;
}
.spec-table td:last-child {
  font-weight: 600;
  color: var(--navy-deep);
}
.detail-card {
  background: var(--cream-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-hover);
  position: sticky;
  top: 24px;
}
.detail-card .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--navy-mid);
  margin: 0 0 4px;
}
.detail-card .obo {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: block;
}
.detail-card .btn { width: 100%; text-align: center; margin-bottom: 12px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .detail-card { position: static; } }