/* ========================================
   World of Darrenf — Custom Styles
   Additions to the HTML5UP Story template
   ======================================== */

/* --- Typography: Inter (overrides Source Sans Pro from Story) --- */

body, input, select, textarea {
  font-family: "Inter", Helvetica, sans-serif;
  font-weight: 200;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", Helvetica, sans-serif;
  font-weight: 100;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4rem;
  font-weight: 100;
  line-height: 1.1;
}

h2 {
  font-weight: 100;
}

h3, h4, h5, h6 {
  font-weight: 200;
}

strong, b {
  font-weight: 500;
}

p {
  font-weight: 200;
  line-height: 1.75;
}

/* Subtitle text (the paragraph directly after h1 in banners) */
.banner .content p {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 300;
  font-size: 1.1rem;
}

/* --- Banner: Full-opacity hero image, white text, parallax --- */

/* Remove the 50% opacity dimming that Story applies, replace with
   a darker filter so white text is legible over any photo */
.banner.style5 .image {
  opacity: 1;
}

.banner.style5 .image img {
  filter: brightness(0.55);
}

/* White text with strong shadow for legibility over photos */
.banner.style5 .content {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8),
               0 1px 6px rgba(0, 0, 0, 0.6);
}

.banner.style5 .content h1,
.banner.style5 .content h2,
.banner.style5 .content h3,
.banner.style5 .content p {
  color: #ffffff;
}

/* Full-height banners */
.banner.style5.fullscreen {
  min-height: 100vh;
}

/* --- Tighter text column & more section breathing room --- */

.wrapper.style1 > .inner {
  width: 48rem;
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.banner.style5 .content {
  width: 48rem;
}

/* --- Navigation Bar --- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75em 1.5em;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 75em;
  margin: 0 auto;
}

.site-title {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: none;
}

.site-title:hover {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: none;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumb-sep {
  margin: 0 0.4em;
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
}

/* Push content below fixed nav */
#wrapper {
  padding-top: 3em;
}

/* --- Card Grid --- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.card {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border-bottom: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.25em;
}

.card-content h3 {
  margin: 0 0 0.5em 0;
  font-size: 1.1em;
}

.card-content p {
  margin: 0 0 0.35em 0;
  font-size: 0.85em;
}

.card-meta {
  color: #999;
  font-size: 0.8em !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Trip Featuring Metadata --- */

.trip-featuring {
  color: #777;
  font-size: 0.85em;
  font-style: italic;
}

/* In the banner context */
.banner .trip-featuring {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Day Navigation --- */

.day-nav {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  padding: 1em 0;
}

/* --- Day Cards Variant (unused now, keeping for Boroughers) --- */

.card-grid-days {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card-day .card-image {
  height: 160px;
}

/* --- Timeline Layout (Trip pages) --- */

.timeline {
  position: relative;
  max-width: 900px;
  margin: 2em auto 0;
  padding: 1em 0;
}

/* The vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5em 2em;
  box-sizing: border-box;
}

/* Left items */
.timeline-left {
  left: 0;
  padding-right: 3em;
  text-align: right;
}

/* Right items */
.timeline-right {
  left: 50%;
  padding-left: 3em;
  text-align: left;
}

/* The dot on the line */
.timeline-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid #1565c0;
  border-radius: 50%;
  top: 0.5em;
  z-index: 1;
}

.timeline-left .timeline-marker {
  right: -7px;
}

.timeline-right .timeline-marker {
  left: -7px;
}

.timeline-content {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.timeline-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline-content:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-text {
  padding: 1em;
  text-align: left;
}

.timeline-text h3 {
  margin: 0 0 0.25em 0;
  font-size: 1.1em;
  color: #333;
}

.timeline-date {
  margin: 0 0 0.5em 0;
  font-size: 0.8em;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-summary {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

/* --- Timeline responsive (collapse to single column) --- */

@media screen and (max-width: 800px) {

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-left,
  .timeline-right {
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-marker {
    left: 13px !important;
    right: auto !important;
  }

}

/* --- Override Story's forced centre-alignment on mobile --- */

@media screen and (max-width: 736px) and (orientation: portrait) {

  .spotlight.style1 {
    text-align: left !important;
  }

}

/* --- Responsive Adjustments --- */

@media screen and (max-width: 736px) {
  .site-nav-inner {
    flex-direction: column;
    gap: 0.25em;
  }

  .breadcrumbs {
    font-size: 0.75em;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .day-nav {
    flex-direction: column;
    align-items: center;
  }

  #wrapper {
    padding-top: 4.5em;
  }

}
