/*
Theme Name: St. John Marina - Summer's End
Theme URI: https://summersendvi.com
Author: The Summer's End Group
Description: Custom theme for The Yacht Club at Summer's End, the first and only marina on the island of St. John, USVI. Rebuilt 2026 from the original site design.
Version: 1.0
Requires PHP: 7.4
Text Domain: summersend
*/

/* ============================================================
   The Yacht Club at Summer's End — rebuilt site stylesheet
   Colors:
     Gold:        #bc9b30
     Light gold:  #e1bd85
     Blue:        #1492d3
     Dark gray:   #232323
     Near black:  #101010
     Light gray:  #f5f5f5
   Fonts: Lato (body), Montserrat (titles), Hind (accents),
          Just Oldstyle (script headline — supply font file, see fonts/README)
   ============================================================ */

@font-face {
  font-family: "Just Oldstyle";
  src: url("fonts/JustOldstyle.woff2") format("woff2"),
       url("fonts/JustOldstyle.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Lato", sans-serif;
  font-size: 16px;
  line-height: 23px;
  color: #000;
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

/* the original theme widens its content wrap on large screens */
@media (min-width: 1240px) {
  .wrap { max-width: 1170px; }
}

/* ============ Header ============ */
.site-header {
  background: #fff;
  padding: 10px 0;
  text-align: center;
}

.site-title { line-height: 0; }

.site-title img {
  width: 300px;
  height: auto;
}

.site-description {
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #bc9b30;
  margin-top: 8px;
}

/* ============ Hero slider ============ */
.featured-area { position: relative; }

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 820;
  max-height: 820px;
  overflow: hidden;
  background: #0e3a52;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.slider-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.slider-caption .heading {
  font-family: "Hind", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 4.8px;
  text-transform: uppercase;
  color: #fff;
}

.slider-caption .subheading {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 7.5px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 10px;
}

/* ============ CTA bar ============ */
.after-header {
  background: rgba(35, 35, 35, 0.85);
  position: relative;
  z-index: 2;
}

.cta-wrapper {
  display: flex;
  align-items: stretch;
}

/* Same construction as the original theme: a ~330px title block inside
   the centered wrap, with a ::before that stretches the black to the left
   edge of the screen and a ::after arrow that comes to a point at
   mid-height on the right. */
.cta-title {
  position: relative;
  background: rgba(0, 0, 0, 0.95);
  flex: 0 1 330px;
  min-width: 0;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* black extends from the box to the left edge of the screen */
.cta-title::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 100vw;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

/* pointed arrow on the right edge */
.cta-title::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 15px;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cta-icon { line-height: 0; flex-shrink: 0; }

.cta-title .widget-title {
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.cta-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 0 15px 45px;
  display: flex;
  align-items: center;
}

.cta-text .subtitle {
  font-family: "Hind", sans-serif;
  font-size: 14px;
  color: #fff;
}

/* ============ Section 1 ============ */
.section-1 {
  background: #f5f5f5;
  padding: 47px 0 51px;
}

.headline-widget {
  text-align: center;
  margin-bottom: 45px;
}

.headline-widget .widgettitle,
.headline-widget .subtitle {
  font-family: "Just Oldstyle", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  color: #1492d3;
  line-height: 1.35;
}

/* wider container for the two-column block, like the stretched
   row on the original site */
.wrap-wide { max-width: 1220px; }

.two-col {
  display: flex;
  gap: 30px;
  align-items: stretch;   /* image column matches text column height */
}

.col-image {
  flex: 0 0 min(48%, 570px);
}

.col-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fills the full height of the text column */
}

.col-text {
  flex: 1;
  min-width: 0;
}

.facilities-title {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  padding-bottom: 28px;
  margin-bottom: 38px;
  position: relative;
}

/* thin gold rule under the title */
.facilities-title::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 1px;
  background: #e1bd85;
}

.col-text p {
  margin-bottom: 20px;
}

.facilities-list {
  list-style: none;
}

.facilities-list li {
  font-weight: 400;
  line-height: 23px;
}

.facilities-list li::before {
  content: "\2022";
  color: #bc9b30;
  margin-right: 12px;
}

/* ============ Blog ============ */
.page-title-bar {
  background: #232323;
  padding: 28px 0;
  text-align: center;
}

.page-title {
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.page-subtitle {
  font-family: "Hind", sans-serif;
  font-size: 14px;
  color: #bc9b30;
  margin-top: 6px;
}

.blog-section { min-height: 380px; }

.blog-empty {
  text-align: center;
  color: #666;
  padding: 40px 0;
}

.post-list { max-width: 860px; margin: 0 auto; }

.post-card {
  display: flex;
  gap: 28px;
  background: #fff;
  padding: 26px;
  margin-bottom: 28px;
  border: 1px solid #e6e6e6;
}

.post-thumb { flex: 0 0 240px; }

.post-thumb img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.post-info { flex: 1; min-width: 0; }

.post-meta {
  font-family: "Hind", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bc9b30;
  margin-bottom: 8px;
}

.post-cat {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  border: 1px solid #bc9b30;
  font-size: 11px;
}

.post-title {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.post-title a { color: #232323; }
.post-title a:hover { color: #1492d3; }

.post-summary { color: #444; margin-bottom: 12px; }

.post-more a {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bc9b30;
}

.post-more a:hover { color: #1492d3; }

.post-full {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 45px;
  border: 1px solid #e6e6e6;
}

.post-full-title {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: #232323;
  margin-bottom: 10px;
}

.post-full-image {
  display: block;
  width: 100%;
  margin: 20px 0;
}

.post-full p { margin-bottom: 18px; }

.post-back { margin-bottom: 18px; }

.post-full .post-back:last-child { margin-bottom: 0; margin-top: 26px; }

.post-back a {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bc9b30;
}

.post-back a:hover { color: #1492d3; }

@media (max-width: 700px) {
  .post-card { flex-direction: column; }
  .post-thumb { flex-basis: auto; }
  .post-full { padding: 25px 20px; }
}

/* ============ Footer widgets ============ */
.footer-widgets {
  background: #232323;
  padding: 45px 0;
}

.footer-widgets .wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.widget-area { flex: 1; }

.footer-widgets-1 img { width: 290px; height: auto; }

.footer-widgets .widget-title {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer-widgets .menu,
.information {
  list-style: none;
}

.footer-widgets .menu li,
.information li {
  font-family: "Hind", sans-serif;
  font-size: 14px;
  line-height: 19px;
  color: #acacac;
  margin-bottom: 12px;
}

.footer-widgets .menu a:hover { color: #fff; }

.information li {
  position: relative;
  padding-left: 30px;
}

.info-icon {
  position: absolute;
  left: 0;
  top: 1px;
  line-height: 0;
}

/* ============ Footer ============ */
.site-footer {
  background: #101010;
  padding: 15px 0;
  text-align: center;
}

.site-footer p {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  color: #acacac;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .slider-caption .subheading { font-size: 34px; letter-spacing: 5px; }
  .slider-caption .heading { font-size: 18px; }

  .cta-title .widget-title { font-size: 20px; }
  .cta-icon svg { width: 36px; height: 36px; }

  .two-col { flex-direction: column; }
  .col-image { flex: 1 1 auto; }
  .col-image img { height: auto; }

  .footer-widgets .wrap { flex-wrap: wrap; }
  .widget-area { flex: 1 1 45%; }
}

@media (max-width: 700px) {
  .cta-title { flex-basis: 250px; }
  .cta-title .widget-title { font-size: 18px; }
  .cta-icon svg { width: 30px; height: 30px; }
  .cta-text { padding-left: 30px; }
  .cta-text .subtitle { font-size: 13px; }
}

@media (max-width: 520px) {
  .slider { min-height: 220px; }
  .slider-caption .subheading { font-size: 24px; letter-spacing: 3px; }
  .cta-wrapper { flex-direction: column; }
  .cta-title { flex-basis: auto; padding: 12px 0; }
  .cta-title::after { display: none; }
  .cta-text { padding: 12px 0; }
  .cta-title .widget-title { font-size: 18px; }
  .facilities-title { font-size: 28px; }
  .widget-area { flex: 1 1 100%; }
}

/* ============ WordPress additions ============ */
.post-thumb-fallback {
  flex: 0 0 240px;
  height: 170px;
  background: #232323;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-thumb-fallback img { width: 150px; height: auto; opacity: 0.9; }

.pagination, .navigation.posts-navigation {
  max-width: 860px;
  margin: 10px auto 0;
  text-align: center;
}

.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }

.pagination .page-numbers {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #232323;
  background: #fff;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  background: #bc9b30;
  border-color: #bc9b30;
  color: #fff;
}

.post-full .entry-content a { color: #1492d3; }
.post-full .entry-content a:hover { color: #bc9b30; }
.post-full .entry-content ul, .post-full .entry-content ol { margin: 0 0 18px 22px; }
.post-full .entry-content li { margin-bottom: 6px; }
.post-full .entry-content h2, .post-full .entry-content h3 {
  font-family: "Montserrat", sans-serif;
  color: #232323;
  margin: 26px 0 12px;
}
.post-full .entry-content img { max-width: 100%; height: auto; margin: 10px 0; }
.post-full .entry-content blockquote {
  border-left: 3px solid #bc9b30;
  padding-left: 18px;
  color: #555;
  margin: 0 0 18px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
