/* Downtown River Rentals — pixel-faithful rebuild of the Duda design.
   Palette and type are locked to the original; change them here only. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-var.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pacifico';
  src: url('../fonts/pacifico.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #172b4d;
  --navy-border: #142541;
  --orange: #fdac2d;
  --btn-text: #463939;
  --body-gray: #757f90;
  --body-dim: rgba(0, 0, 0, 0.6);
  --white: #fff;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --script: 'Pacifico', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--body-gray);
  background: #fff;
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 50px;
  padding: 15px 60px;
  transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-solid {
  background: var(--orange);
  color: var(--btn-text);
  border: 1px solid transparent;
}
.btn-solid:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  color: var(--btn-text);
  border: 1px solid var(--navy-border);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header (sticky, shrinks on scroll like the original) ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
.site-header.shrunk { box-shadow: 0 2px 14px rgba(23, 43, 77, 0.14); }
.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 168px;
  transition: min-height 0.3s ease, padding 0.3s ease;
}
.site-header.shrunk .header-inner {
  min-height: 92px;
  padding: 8px 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.brand img {
  width: 100px;
  height: auto;
  transition: width 0.3s ease;
}
.site-header.shrunk .brand img { width: 58px; }
.brand-name {
  font-family: var(--script);
  color: var(--orange);
  font-size: 25px;
  line-height: 1.9;
  text-align: center;
  transition: font-size 0.3s ease, line-height 0.3s ease;
}
.site-header.shrunk .brand-name { font-size: 17px; line-height: 1.6; }
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}
.main-nav li { display: flex; align-items: center; }
.main-nav li + li::before {
  content: "/";
  color: var(--body-gray);
  padding: 0 22px;
  font-weight: 300;
}
.main-nav a {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--navy);
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--orange); }
.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 17px 70px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 625px;
  height: calc(100vh - 168px);
  max-height: 900px;
  background-image: url('../images/hero-cottage.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-inner {
  padding-bottom: 7%;
  text-align: center;
}
.hero h1 {
  font-family: var(--script);
  font-weight: 400;
  color: var(--orange);
  font-size: 70px;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 0 15px #000;
  padding: 0 20px;
}
.hero .btn { display: none; }

/* ---------- Navy bands ---------- */
.band {
  background: var(--navy);
  text-align: center;
  padding: 40px 20px;
}
.band .band-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  display: block;
}
.band p {
  color: var(--orange);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
}
.band .script { font-family: var(--script); font-weight: 400; }
.band-cottages { padding: 34px 20px; }
.band-cottages p { font-size: 40px; font-weight: 400; }
.band-location p { font-weight: 400; }

/* ---------- Two-column feature sections ---------- */
.feature {
  display: flex;
  min-height: 505px;
}
.feature-media {
  flex: 0 0 58.333%;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}
.feature-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px 60px 50px;
  background: #fff;
}
.feature-copy h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
}
.feature-copy p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--body-dim);
}
.feature-rooms .feature-copy { padding: 60px 50px 60px 70px; }
.feature-rooms .feature-copy p { color: var(--body-gray); }
.feature-rooms .copy-logo { width: 90px; margin-top: 28px; }

/* ---------- Cottage sections ---------- */
.cottage {
  display: flex;
  min-height: 600px;
}
.cottage-copy {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 90px 60px 40px;
}
.cottage-copy h2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 35px;
  color: var(--navy);
  margin-bottom: 26px;
}
.cottage-copy p {
  font-size: 18px;
  font-weight: 300;
  color: var(--body-gray);
  margin-bottom: 24px;
}
.cottage-copy .btn { margin-top: 6px; padding: 13px 50px; }
.cottage-gallery {
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  background: #fff;
}
.cottage-gallery a {
  display: block;
  overflow: hidden;
  cursor: pointer;
}
.cottage-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.cottage-gallery a:hover img { transform: scale(1.04); }
.cottage-two .cottage-copy { padding: 60px 40px 60px 90px; }

/* ---------- Quote / testimonial band ---------- */
.quote-band {
  position: relative;
  min-height: 577px;
  background-image: url('../images/kitchen-faucet.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.quote-band-inner {
  position: relative;
  width: 100%;
  max-width: 840px;
  text-align: center;
}
.quote-band .quote-icon {
  width: 96px;
  height: 96px;
  fill: var(--orange);
  margin: 0 auto;
  display: block;
}
.testimonial-slider {
  position: relative;
  margin-top: 30px;
  min-height: 260px;
}
.testimonial {
  display: none;
  color: #fff;
  margin: 0;
}
.testimonial.active { display: block; }
.testimonial blockquote {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}
.testimonial figcaption {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 400;
}

/* bounceInLeft, timed to the original slider (600ms) */
@media (prefers-reduced-motion: no-preference) {
  .testimonial.active { animation: bounceInLeft 0.6s both; }
  @keyframes bounceInLeft {
    0% { opacity: 0; transform: translate3d(-100vw, 0, 0); }
    60% { opacity: 1; transform: translate3d(25px, 0, 0); }
    75% { transform: translate3d(-10px, 0, 0); }
    90% { transform: translate3d(5px, 0, 0); }
    100% { transform: none; }
  }
}

/* Parallax backgrounds on desktop (like the original); static on touch/mobile
   where fixed attachment is unreliable */
@media (min-width: 851px) {
  .hero, .quote-band { background-attachment: fixed; }
}

/* ---------- Map (click-to-load) ---------- */
.map-section { height: 381px; position: relative; }
.map-placeholder {
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  background: #e8eaed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--sans);
}
.map-placeholder svg { width: 48px; height: 48px; fill: var(--navy); }
.map-placeholder span {
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
}
.map-placeholder small { color: var(--body-gray); font-size: 15px; }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact-section {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 40px;
  align-items: flex-start;
}
.contact-left { flex: 0 0 47%; }
.contact-left .contact-logo { width: 150px; margin: 0 auto 34px; }
.contact-banner {
  background: var(--orange);
  text-align: center;
  padding: 30px 24px 34px;
  margin-bottom: 40px;
}
.contact-banner h2 {
  font-family: var(--script);
  font-weight: 400;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 18px;
}
.contact-banner p {
  font-size: 30px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.35;
}
.contact-form label {
  display: block;
  font-size: 14px;
  color: var(--body-gray);
  margin: 18px 0 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7dbe2;
  background: #fff;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy);
  border-radius: 2px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: var(--orange);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form button {
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 26px;
  padding: 4px 0;
}
.contact-form button:hover { color: var(--orange); }
.form-status { margin-top: 14px; font-size: 15px; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #b42318; }
.contact-right { flex: 1; }
.contact-right img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  padding: 48px 0 0;
}
.footer-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: 40px;
  color: var(--orange);
  text-align: center;
  line-height: 1.5;
}
.site-footer address {
  font-style: normal;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
  margin-top: 14px;
}
.site-footer address a { color: #fff; }
.site-footer address a:hover { color: var(--orange); }
.footer-logo { width: 90px; margin: 26px 0 0 40px; }
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 40px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  flex-wrap: wrap;
}
.footer-bar a { color: var(--orange); }
.footer-bar a:hover { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- 404 ---------- */
.page-404 {
  text-align: center;
  padding: 110px 20px 130px;
}
.page-404 .code {
  font-family: var(--script);
  font-size: 120px;
  color: var(--orange);
  line-height: 1;
}
.page-404 h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin: 30px 0 40px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav li + li::before { padding: 0 12px; }
  .header-cta .btn { padding: 15px 40px; }
  .cottage-copy { padding: 50px 40px; }
  .cottage-two .cottage-copy { padding: 50px 40px; }
  .feature-copy { padding: 50px 40px; }
}

@media (max-width: 850px) {
  .header-inner { min-height: 0; flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
  .brand img { width: 64px; }
  .brand-name { font-size: 19px; line-height: 1.8; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    flex-basis: 100%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; padding: 10px 0 16px; }
  .main-nav li + li::before { display: none; }
  .main-nav a { font-size: 18px; display: block; padding: 10px 0; }

  .hero { height: auto; min-height: 480px; }
  .hero h1 { font-size: 56px; line-height: 1.4; }
  .hero .btn { display: inline-block; margin-top: 30px; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; padding-bottom: 48px; }

  .band p { font-size: 24px; }
  .band-cottages p { font-size: 30px; }

  .feature, .feature-rooms { flex-direction: column; }
  .feature-media { flex-basis: auto; width: 100%; min-height: 320px; }
  .feature-rooms { flex-direction: column-reverse; }

  .cottage, .cottage-two { flex-direction: column; }
  .cottage-copy, .cottage-two .cottage-copy { flex-basis: auto; padding: 44px 24px 30px; }
  .cottage-gallery { flex-basis: auto; }
  .cottage-two { flex-direction: column-reverse; }

  .quote-band { min-height: 340px; }
  .quote-band .quote-icon { width: 64px; height: 64px; }
  .testimonial-slider { min-height: 320px; }
  .testimonial blockquote { font-size: 20px; }

  .contact-section { flex-direction: column; padding: 60px 24px; }
  .contact-left { flex-basis: auto; width: 100%; }
  .contact-right { width: 100%; }
  .contact-banner p { font-size: 24px; }

  .footer-bar { justify-content: center; text-align: center; }
  .footer-logo { margin: 26px auto 0; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 42px; }
  .page-404 .code { font-size: 88px; }
}

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