/* Stephenville Texas RV Park – site styles.
   Matches the old WordPress look: GoDaddy "Go" theme, Trendy style (Trocchi headings, Noto Sans text,
   Source Code Pro menus, crimson accent, black footer). */
:root {
  --text: #000;
  --bg: #fff;
  --accent: hsl(344, 71%, 47%);
  --tertiary: hsl(0, 12%, 88%);
  --caption: #6e6e6e;
  --footer-bg: #000;
  --footer-text: #8c8c8c;
  --heading: "Trocchi", Georgia, serif;
  --body: "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: "Source Code Pro", ui-monospace, Menlo, monospace;
  --content: 38rem;
  --wide: 80rem;
  --gutter: clamp(16px, 4.5vw, 55px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.1rem/1.9 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent); }
::selection { background: #000; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: .5em 1em; }
.skip-link:focus { left: 1em; top: 1em; }

/* ---------- header (title centered, menu behind the ••• button) ---------- */
.site-header { padding: clamp(18px, 2.7vw, 27px) var(--gutter); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--wide); margin: 0 auto; }
.header-side { flex: 0 0 48px; display: flex; }
.header-side.right { justify-content: flex-end; }
.header-titles { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.title-link { text-decoration: none; color: inherit; }
.site-title { margin: 0; font: 400 1.5rem/1.3 var(--heading); letter-spacing: .033em; color: var(--text); text-decoration: none; }
.site-description { margin-top: .25rem; font: .9rem/1.4 var(--mono); }
@media (min-width: 782px) { .site-header .site-title { font-size: 2rem; } }
.nav-toggle { position: relative; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; fill: currentColor; }
.nav-toggle .icon-close { display: none; }
.menu-open .nav-toggle .icon-open { display: none; }
.menu-open .nav-toggle .icon-close { display: block; }
.site-nav { display: none; }
.menu-open { overflow: hidden; }
.menu-open .site-nav { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 80px var(--gutter); overflow-y: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.site-nav a { display: block; padding: .25rem; font: 1rem/2 var(--mono); color: var(--text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.menu-open .site-header .nav-toggle { position: fixed; top: clamp(18px, 2.7vw, 27px); right: var(--gutter); }

/* ---------- page content ---------- */
.site-content { padding: clamp(24px, 3vw, 46px) var(--gutter) 93px; }
.entry-content { max-width: var(--content); margin: 0 auto; }
.entry-content > * { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.24em; }
.entry-content li { margin-bottom: 4px; }
.entry-content ul, .entry-content ol { padding-left: 2em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--heading); font-weight: 400; line-height: 1.325; margin: 1.27em 0 21.8px; }
.entry-content > h1:first-child, .entry-content > h2:first-child, .entry-content > h3:first-child, .entry-content > h4:first-child, .entry-content > h5:first-child { margin-top: 0; }
.entry-content h1 { font-size: 2.3rem; }
.entry-content h2 { font-size: 2.25rem; }
.entry-content h3 { font-size: 2.28rem; }
.entry-content h4 { font-size: 1.9rem; }
.entry-content h5 { font-size: 1.58rem; }
.entry-content h6 { font-size: 1.3rem; }
.entry-content h1 strong, .entry-content h2 strong, .entry-content h3 strong, .entry-content h4 strong, .entry-content h5 strong { font-weight: 700; }
@media (max-width: 600px) {
  .entry-content h1, .entry-content h2, .entry-content h3 { font-size: 1.85rem; }
  .entry-content h4 { font-size: 1.6rem; } .entry-content h5 { font-size: 1.4rem; }
}
.has-text-align-center { text-align: center; } .has-text-align-right { text-align: right; }

/* Wide and full-width blocks break out of the text column */
.entry-content .alignwide { width: min(var(--wide), calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

/* Photos */
.entry-content figure { margin: 0 0 93px; }
.entry-content .wp-block-image img { display: block; }
.entry-content .wp-block-image.alignfull img { width: 100%; }
.entry-content .wp-block-image.aligncenter, .entry-content figure.aligncenter { text-align: center; }
.entry-content .wp-block-image.aligncenter img { margin: 0 auto; }
.entry-content figure.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content figure.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content figcaption { color: var(--caption); font-size: .85rem; text-align: center; margin-top: .5em; }
.entry-content > p > img { display: block; }

/* Text beside a photo (home page) */
.wp-block-media-text { display: grid; grid-template-columns: 50% 1fr; align-items: center; margin-bottom: 93px; }
.wp-block-media-text .wp-block-media-text__media { margin: 0; }
.wp-block-media-text .wp-block-media-text__media img { width: 100%; display: block; }
.wp-block-media-text .wp-block-media-text__content { padding: 0 8%; }
.wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.wp-block-media-text.media-narrow { grid-template-columns: 38% 1fr; }
.wp-block-media-text.media-narrow .wp-block-media-text__content { padding-right: 0; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { grid-column: 2; grid-row: 1; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { grid-column: 1; grid-row: 1; padding-left: 0; }
@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile, .wp-block-media-text.is-stacked-on-mobile.has-media-on-the-right { grid-template-columns: 100%; }
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media { grid-column: 1; grid-row: 1; }
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content { grid-column: 1; grid-row: 2; padding: 1.5em 0 0; }
}

/* Columns */
.wp-block-columns { display: flex; gap: 2em; margin-bottom: 1.5em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
@media (max-width: 781px) { .wp-block-columns { flex-wrap: wrap; } .wp-block-column { flex-basis: 100%; } }

/* Small photo group inside the text (About page) */
.wp-block-gallery.has-nested-images { display: flex; flex-wrap: wrap; gap: 1em; }
.wp-block-gallery.has-nested-images > figure { margin: 0; flex: 0 1 calc(33.33% - .67em); }
.wp-block-gallery.has-nested-images > figure img { display: block; }
.entry-content .wp-block-gallery.has-nested-images { margin-bottom: 93px; }

/* Photo grid (Facility page) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 1.5em; padding: 0 var(--gutter); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Photo carousel (Home and Contact pages) */
.carousel { position: relative; margin-bottom: 1.5em; }
.car-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: clamp(260px, 50vw, 578px); }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 auto; height: 100%; scroll-snap-align: center; }
.car-item img { height: 100%; width: auto; max-width: none; display: block; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 65px; height: 120px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--text); box-shadow: .4em .4em 0 0 rgba(0, 0, 0, .075); cursor: pointer; color: var(--text); transition: border-color .2s; }
.car-btn:hover, .car-btn:focus-visible { border-color: var(--accent); }
.car-btn svg { width: 30px; height: 30px; }
.car-btn.prev { left: 12px; } .car-btn.next { right: 12px; }
@media (max-width: 600px) { .car-btn { width: 44px; height: 72px; } .car-btn svg { width: 22px; height: 22px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; }
.lb-close { top: 8px; right: 8px; } .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); } .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Optional contact form */
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 1.35rem; border: 2px solid var(--text); font: inherit; color: var(--caption); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: var(--tertiary); color: var(--text); }
.contact-form label { font: .9rem var(--mono); text-transform: uppercase; }
.contact-form button { padding: 1.4rem 1.85rem; background: var(--text); color: #fff; border: 0; font: 600 .725rem var(--body); letter-spacing: 3px; text-transform: uppercase; cursor: pointer; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .req { color: var(--accent); }
.form-status.ok { color: #1f7a3a; } .form-status.err { color: #b42318; }

/* Optional wide photo at the top of a page */
.featured-image { margin: calc(-1 * clamp(24px, 3vw, 46px)) calc(-1 * var(--gutter)) 46px; }
.featured-image img { display: block; width: 100%; max-height: 450px; object-fit: cover; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-family: var(--mono); padding: clamp(40px, 6vw, 80px) var(--gutter); }
.footer-inner { max-width: none; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.footer-brand { flex: 1 1 100%; }
.site-footer .site-title { color: #fff; font-size: 1.5rem; }
.footer-nav { flex: 0 1 12rem; font-size: .825rem; }
.footer-nav-title { display: block; color: #fff; font-size: .9rem; margin-bottom: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 .25rem; line-height: 1.6; }
.footer-nav a { color: var(--footer-text); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.site-info { margin: 0; font-size: .825rem; }
.social-icons { list-style: none; margin: 0 0 0 -.5rem; padding: 0; display: flex; }
.social-icons a { display: block; padding: .5rem; color: var(--accent); }
.social-icons svg { display: block; width: 1.5rem; height: 1.5rem; fill: currentColor; }
.social-icons a:hover { color: #fff; }
@media (min-width: 1024px) {
  .footer-cols { flex-wrap: nowrap; }
  .footer-brand { flex: 1 1 auto; }
  .footer-nav { flex: 0 0 auto; min-width: 11rem; }
}
