/* Listing Pixl v1 — vanilla CSS, no frameworks */

:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --bg: #ffffff;
  --bg-alt: #f6f5f2;
  --accent: #0c7a8c;        /* brand teal, a touch deeper than the logo's #0e8fa3 so text meets WCAG AA (5.0:1 on white) */
  --accent-dark: #0a6e7f;    /* deep teal */
  --accent-pink: #d71266;    /* brand hot pink, a touch deeper than the logo's #ec1c74 so white button text meets WCAG AA (5.0:1) */
  --accent-pink-dark: #c2145f;
  --card-border: #e5e2da;
  --field-border: #8a8478;
  --radius: 12px;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 4.5rem; scroll-behavior: smooth; }

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap.narrow { max-width: 720px; }

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 2rem; text-align: center; }
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2.5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand-logo { height: 44px; width: auto; display: block; }

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

.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent-pink);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-pink-dark); }
.nav-cta.btn-pink { background: var(--accent-pink); }
.nav-cta.btn-pink:hover { background: var(--accent-pink-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/riogrande_01_twilight.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 10, 20, 0.45), rgba(10, 10, 20, 0.65));
}

.hero-content { position: relative; z-index: 1; padding: 2rem 1.25rem; max-width: 800px; }
.hero-content h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); opacity: 0.92; margin-bottom: 2rem; }

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
/* Hot pink hero CTA — the money button pops */
.btn-pink { background: var(--accent-pink); color: #fff; }
.btn-pink:hover { background: var(--accent-pink-dark); color: #fff; }

.btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
}

.service-card h3 { font-size: 1.1rem; color: var(--accent-dark); }
.service-card p { margin: 0; color: var(--muted); }

/* ---------- Packages ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.package-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.package-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 30px rgba(194, 65, 12, 0.12);
}

.package-card h3 { font-size: 1.25rem; }
.price { font-size: 2rem; font-weight: 800; margin: 0.25rem 0 1rem; }
.package-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.package-card li { padding: 0.35rem 0; border-bottom: 1px dashed var(--card-border); font-size: 0.95rem; }
.package-card li:last-child { border-bottom: none; }
.package-card .btn { text-align: center; }

.alacarte { margin-top: 2.5rem; text-align: center; }
.alacarte h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.alacarte-list { list-style: none; padding: 0; max-width: 560px; margin: 1rem auto 0; text-align: left; }
.alacarte-list li { padding: 0.6rem 0; border-bottom: 1px dashed var(--card-border); font-size: 0.95rem; display: flow-root; }
.alacarte-list li:last-child { border-bottom: none; }
.alacarte-price { float: right; font-weight: 700; color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.9rem;
}

/* ---------- Service area ---------- */
.town-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.town-list li {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about-text { font-size: 1.2rem; text-align: center; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-details { text-align: center; margin-bottom: 2rem; font-size: 1.1rem; }
.contact-details a { color: var(--accent-dark); }

#booking-form label { display: block; font-weight: 600; margin-bottom: 1rem; }
#booking-form input,
#booking-form select,
#booking-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #141414;
  color: #cfcfcf;
  text-align: center;
  padding: 2rem 0;
}

.site-footer a { color: #fff; }
.site-footer p { margin: 0.3rem 0; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.blog-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card h2 { font-size: 1.1rem; margin: 0; padding: 1rem 1.25rem 0; }
.blog-card h2 a, .blog-card a h2 { color: inherit; }
.blog-card > p { padding: 0 1.25rem; }
.blog-card a { text-decoration: none; color: inherit; }
.blog-meta { color: var(--muted); font-size: 0.9rem; }
.blog-crumb { margin-bottom: 1rem; }
.blog-gallery { display: grid; gap: 1rem; margin: 1.5rem 0; }
.blog-photo { margin: 0; }
.blog-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
article .wrap.narrow h2 { margin-top: 2rem; text-align: left; }
article .wrap.narrow a { color: var(--accent); }
article .wrap.narrow a:hover { color: var(--accent-dark); }
a[href^="tel:"] { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-item img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.65rem 0.25rem; min-height: 44px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 2.75rem 0; }
  /* Two compact service cards per row so phones reach Packages sooner */
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .service-card { padding: 1rem; }
  .service-card h3 { font-size: 0.98rem; }
  .service-card p { font-size: 0.88rem; }
  /* Lighter hero photo on phones (~83 KB instead of ~290 KB) */
  .hero-bg { background-image: url("images/riogrande_01_twilight-800.jpg"); }
}

/* Mid-size screens: 1200px hero is plenty */
@media (min-width: 721px) and (max-width: 1200px) {
  .hero-bg { background-image: url("images/riogrande_01_twilight-1200.jpg"); }
}
