/*
Theme Name: Florida Vacation Home
Theme URI: https://floridavacation-home.com
Author: Colin
Description: Custom theme for Florida Vacation Home, built to pair with the OwnerRez WordPress plugin (shortcodes + widgets) for property listings, search, and booking. Static pages (Home, About, Location, Activities, Golf, etc.) are handled by this theme; property data comes from OwnerRez.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fvh
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root {
  --fvh-navy: #113a4d;
  --fvh-navy-dark: #0b2734;
  --fvh-teal: #2b9c93;
  --fvh-teal-dark: #1f7b74;
  --fvh-coral: #ff7a5c;
  --fvh-coral-dark: #e8613f;
  --fvh-cream: #fbf7f0;
  --fvh-sand: #f3ece1;
  --fvh-white: #ffffff;
  --fvh-ink: #21343d;
  --fvh-ink-light: #56707a;
  --fvh-border: #e1dccf;

  --fvh-font-heading: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
  --fvh-font-body: 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;

  --fvh-radius: 10px;
  --fvh-radius-lg: 18px;
  --fvh-shadow: 0 10px 30px rgba(17, 58, 77, 0.12);
  --fvh-shadow-sm: 0 4px 14px rgba(17, 58, 77, 0.08);
  --fvh-container: 1200px;
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fvh-font-body);
  color: var(--fvh-ink);
  background: var(--fvh-cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fvh-teal-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--fvh-coral); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fvh-font-heading);
  color: var(--fvh-navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.2em; }
.fvh-container {
  max-width: var(--fvh-container);
  margin: 0 auto;
  padding: 0 24px;
}
ul.fvh-reset { list-style: none; margin: 0; padding: 0; }

/* Buttons */
.fvh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--fvh-font-heading);
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.fvh-btn:hover { transform: translateY(-2px); color: var(--fvh-white); }
.fvh-btn--coral { background: var(--fvh-coral); color: var(--fvh-white); }
.fvh-btn--coral:hover { background: var(--fvh-coral-dark); box-shadow: var(--fvh-shadow-sm); }
.fvh-btn--teal { background: var(--fvh-teal); color: var(--fvh-white); }
.fvh-btn--teal:hover { background: var(--fvh-teal-dark); box-shadow: var(--fvh-shadow-sm); }
.fvh-btn--outline { background: transparent; border-color: var(--fvh-white); color: var(--fvh-white); }
.fvh-btn--outline:hover { background: var(--fvh-white); color: var(--fvh-navy); }

/* =========================================================
   2. HEADER / NAV
   ========================================================= */
.fvh-topbar {
  background: var(--fvh-navy-dark);
  color: var(--fvh-sand);
  font-size: .85rem;
}
.fvh-topbar .fvh-container {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.fvh-topbar a { color: var(--fvh-sand); }
.fvh-topbar a:hover { color: var(--fvh-coral); }

.fvh-header {
  background: var(--fvh-white);
  box-shadow: var(--fvh-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}
.fvh-header__inner {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.fvh-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fvh-font-heading);
  z-index: 1;
}
.fvh-logo img { max-height: 56px; width: auto; }
.fvh-logo span { font-weight: 700; font-size: 1.25rem; color: var(--fvh-navy); }
.fvh-logo:hover span { color: var(--fvh-navy); }

.fvh-nav { display: flex; align-items: center; gap: 6px; }
.fvh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.fvh-nav > ul > li { position: relative; }
.fvh-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-family: var(--fvh-font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--fvh-navy);
}
.fvh-nav > ul > li > a:hover,
.fvh-nav > ul > li.current-menu-item > a { color: var(--fvh-coral); }

.fvh-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--fvh-white);
  border-radius: var(--fvh-radius);
  box-shadow: var(--fvh-shadow);
  padding: 8px;
  z-index: 50;
}
.fvh-nav li:hover > .sub-menu,
.fvh-nav li.fvh-open > .sub-menu { display: block; }
.fvh-nav .sub-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--fvh-ink);
}
.fvh-nav .sub-menu a:hover { background: var(--fvh-sand); color: var(--fvh-coral-dark); }

.fvh-header__actions { display: flex; align-items: center; gap: 14px; }
.fvh-header__phone {
  font-family: var(--fvh-font-heading);
  font-weight: 700;
  color: var(--fvh-navy);
  white-space: nowrap;
}
.fvh-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.fvh-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--fvh-navy);
  border-radius: 2px;
}

/* =========================================================
   3. HERO / SLIDER (front page)
   ========================================================= */
.fvh-hero { position: relative; overflow: hidden; background: var(--fvh-navy-dark); }
.fvh-hero__slides { position: relative; height: 62vh; min-height: 420px; max-height: 720px; }
.fvh-hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.1s ease;
}
.fvh-hero__slide.is-active { opacity: 1; }
.fvh-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,39,52,.35) 0%, rgba(11,39,52,.55) 100%);
}
.fvh-hero__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 0 90px;
  color: var(--fvh-white);
  text-align: center;
}
.fvh-hero__caption h1 { color: var(--fvh-white); max-width: 880px; margin: 0 auto .3em; }
.fvh-hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: none; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--fvh-navy);
  z-index: 5;
}
.fvh-hero__nav:hover { background: var(--fvh-white); }
.fvh-hero__nav--prev { left: 18px; }
.fvh-hero__nav--next { right: 18px; }

/* Search bar */
.fvh-search {
  position: relative;
  margin: -54px auto 0;
  max-width: 980px;
  background: var(--fvh-white);
  border-radius: var(--fvh-radius-lg);
  box-shadow: var(--fvh-shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  z-index: 10;
}
.fvh-search__field label {
  display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--fvh-ink-light); margin-bottom: 4px;
}
.fvh-search__field select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--fvh-border);
  font-family: var(--fvh-font-body); font-size: .95rem; background: var(--fvh-cream);
}
.fvh-search .fvh-btn { width: 100%; justify-content: center; align-self: end; }
.fvh-search__note {
  grid-column: 1 / -1; font-size: .8rem; color: var(--fvh-ink-light); text-align: center;
}
@media (max-width: 720px) {
  .fvh-search { grid-template-columns: 1fr; margin-top: -30px; }
}

/* =========================================================
   4. PAGE BANNER (interior pages)
   ========================================================= */
.fvh-banner {
  background: var(--fvh-navy) center/cover no-repeat;
  height: 220px;
}
@media (max-width: 720px) {
  .fvh-banner { height: 140px; }
}

/* =========================================================
   5. CONTENT AREAS
   ========================================================= */
.fvh-content {
  padding: 56px 0;
}
.fvh-content--narrow .fvh-container { max-width: 860px; }
.fvh-content h2 { margin-top: 1.3em; }
.fvh-content .wp-block-gallery { margin: 1.6em 0; }
.fvh-content blockquote {
  border-left: 4px solid var(--fvh-coral);
  margin: 1.5em 0; padding: .3em 1.2em; color: var(--fvh-ink-light); font-style: italic;
}

.fvh-intro { text-align: center; max-width: 820px; margin: 0 auto 40px; }

.fvh-section-heading { text-align: center; margin-bottom: 34px; }
.fvh-section-heading span {
  display: inline-block; color: var(--fvh-coral); font-family: var(--fvh-font-heading);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 6px;
}

/* Generic content/sidebar layout for interior pages */
.fvh-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 48px; }
.fvh-layout--full { display: block; }
@media (max-width: 880px) { .fvh-layout { grid-template-columns: 1fr; } }

.fvh-card {
  background: var(--fvh-white);
  border-radius: var(--fvh-radius-lg);
  box-shadow: var(--fvh-shadow-sm);
  padding: 26px;
  margin-bottom: 24px;
}
.fvh-card h3 { margin-top: 0; }

/* Trust / reviews strip */
.fvh-trust {
  background: var(--fvh-sand);
  padding: 40px 0;
  text-align: center;
}
.fvh-trust p { max-width: 760px; margin: 0 auto 1em; color: var(--fvh-ink-light); }

/* Shortcode / widget placeholder styling (visible only to logged-in editors when content area is empty) */
.fvh-shortcode-hint {
  border: 2px dashed var(--fvh-teal);
  border-radius: var(--fvh-radius);
  padding: 22px;
  color: var(--fvh-ink-light);
  background: rgba(43,156,147,.06);
  font-size: .9rem;
}

/* Loosely style whatever markup the OwnerRez plugin outputs so it matches the theme */
.fvh-content [class*="ownerrez"],
.fvh-content [class*="orez"] {
  font-family: var(--fvh-font-body);
}
.fvh-content [class*="ownerrez"] a,
.fvh-content [class*="orez"] a { color: var(--fvh-teal-dark); }

/* =========================================================
   6. FOOTER
   ========================================================= */
.fvh-footer {
  background: var(--fvh-navy);
  color: var(--fvh-sand);
  padding: 60px 0 0;
  margin-top: 40px;
}
.fvh-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 780px) { .fvh-footer__grid { grid-template-columns: 1fr; } }
.fvh-footer h4 {
  color: var(--fvh-white); font-family: var(--fvh-font-heading);
  text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin-bottom: 16px;
}
.fvh-footer a { color: var(--fvh-sand); }
.fvh-footer a:hover { color: var(--fvh-coral); }
.fvh-footer ul { list-style: none; margin: 0; padding: 0; }
.fvh-footer li { margin-bottom: 8px; }
.fvh-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.fvh-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fvh-white);
  opacity: .92;
  transition: opacity .15s ease, transform .15s ease;
}
.fvh-footer__social a:hover { opacity: 1; transform: translateY(-2px); color: var(--fvh-white); }
.fvh-trust .fvh-footer__social { justify-content: center; margin: 18px auto 0; }
.fvh-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px; padding: 20px 0; font-size: .82rem; color: rgba(251,247,240,.7);
}

/* =========================================================
   7. UTILITIES / RESPONSIVE NAV
   ========================================================= */
@media (max-width: 960px) {
  .fvh-logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-right: auto;
  }
  .fvh-logo img { max-height: 40px; }
  .fvh-header__actions { z-index: 2; }
  .fvh-menu-toggle { display: inline-flex; flex-direction: column; }
  .fvh-nav { position: fixed; inset: 0 0 0 auto; width: 82%; max-width: 340px; background: var(--fvh-white);
    flex-direction: column; align-items: stretch; padding: 90px 20px 30px; transform: translateX(100%);
    transition: transform .25s ease; box-shadow: var(--fvh-shadow); overflow-y: auto; }
  .fvh-nav.is-open { transform: translateX(0); }
  .fvh-nav ul { flex-direction: column; align-items: stretch; }
  .fvh-nav .sub-menu { display: none; position: static; box-shadow: none; padding-left: 12px; }
  .fvh-nav li.fvh-open > .sub-menu { display: block; }
  .fvh-header__phone { display: none; }
  body.fvh-nav-open { overflow: hidden; }
  .fvh-nav-overlay { position: fixed; inset: 0; background: rgba(11,39,52,.5); z-index: 150; display: none; }
  .fvh-nav-overlay.is-open { display: block; }
}
