/* ─────────────────────────────────────────────
   Nautical Nights — Shared Stylesheet
   All pages pull from this file. Page-specific
   overrides live in a small <style> block per page.
───────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Variables */
:root {
  --navy:       #1a2332;
  --navy-light: #243044;
  --gold:       #c8956c;
  --gold-light: #d4a77d;
  --cream:      #f5f0eb;
  --white:      #ffffff;
  --text:       #3a3a3a;
  --text-light: #6b6b6b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

/* ── Navigation ── */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
}

.site-nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero (shared image/overlay styles) ── */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-banner img,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,35,50,0.3) 0%, rgba(26,35,50,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 2rem 1.5rem 0;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content .divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem auto;
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ── Intro section ── */
.intro {
  padding: 4rem 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.intro .subtitle-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.intro p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto;
}

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

/* ── Gold divider lines (shared) ── */
.subtitle-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

/* ── Jump/pill links ── */
.jump-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.jump-links a,
.trail-link {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 30px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.jump-links a:hover,
.trail-link:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Directory category sections ── */
.category {
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.category:nth-child(even) {
  background: var(--white);
  max-width: 100%;
}

.category:nth-child(even) .category-inner {
  max-width: 960px;
  margin: 0 auto;
}

.category h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.category .subtitle-line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

.category > p,
.category-inner > p {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 600px;
  margin: -1rem auto 2rem;
  line-height: 1.7;
}

/* ── Listing cards grid ── */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.listing-card {
  background: var(--cream);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.15s;
}

.listing-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.listing-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.listing-card h3 a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.listing-card h3 a:hover { border-bottom-color: var(--gold); }

.listing-card .town {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.listing-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Contact / Listing forms ── */
.form-section {
  background: var(--white);
  padding: 5rem 1.5rem;
}

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.form-wrapper h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.form-wrapper .subtitle-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.form-wrapper > p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

form { text-align: left; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d5d0cb;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,149,108,0.15);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.92rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.form-success.show { display: block; }

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.form-success p { color: var(--text-light); font-size: 1.05rem; }

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

footer span { color: var(--gold); }

.footer-links { margin-bottom: 1rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin: 0 0.6rem;
  font-size: 0.85rem;
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* ── Inline gold link style (used in body copy) ── */
a.gold-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.75rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { text-shadow: none; }

  .footer-links a { margin: 0.25rem 0.4rem; }
}

@media (max-width: 600px) {
  .category { padding: 2.5rem 1.25rem; }
  .listings { grid-template-columns: 1fr; }
  .form-section { padding: 3.5rem 1.25rem; }
}
