/* Vineyards at Blue Point - Joomla 5 template (v1.4)
   Values below were read from the existing Helix3 "itl_dream" template.css and
   presets/preset1.css, plus the template-style tabs. Items marked ESTIMATE are set in
   Helix row settings (Layout tab) or JEvents' own CSS, which were not available. */
:root {
  /* EXACT */
  --vb-major:          #a4085f;  /* links, title bars, buttons, active menu */
  --vb-link-hover:     #cfae08;  /* a:hover */
  --vb-content-bg:     #f6f0e8;  /* boxed wrapper, dropdown background */
  --vb-body-text:      #444444;  /* body color */
  --vb-heading:        #222222;  /* h1-h6 */
  --vb-text:           #333333;  /* module list links, pagination (Presets: Text Color) */
  --vb-dropdown-bg:    #f6f0e8;
  --vb-dropdown-text:  #222222;
  --vb-dropdown-width: 240px;
  --vb-flyout-gap:     8px;   /* space between a menu panel and its fly-out */
  --vb-page-bg:        #d2c8bc;  /* body background outside the box */
  --vb-preloader-bg:   #24252a;
  --vb-preloader-color:#a4085f;
  --vb-boxed-width:    1240px;
  --vb-container:      1170px;
  --vb-font: "ABeeZee", Helvetica, Arial, sans-serif;
  --vb-body-size: 14px;
  --vb-h1: 40px; --vb-h2: 34px; --vb-h3: 28px;
  --vb-h4: 22px; --vb-h5: 18px; --vb-h6: 16px;

  /* ESTIMATE (Layout-tab row settings, not in the CSS files) */
  --vb-secondary:      #222222;  /* top bar + footer background */
  --vb-header-bg:      #ffffff;
  --vb-topbar-text:    #ffffff;
  --vb-footer-text:    #9a9a9a;
  --vb-event-line:     #e0457b;  /* line under events (JEvents' own CSS) */
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }

body.vb-site {
  margin: 0;
  background: var(--vb-page-bg);
  color: var(--vb-body-text);
  font-family: var(--vb-font);
  font-size: var(--vb-body-size);
  font-weight: 400;
  line-height: 26px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.vb-full { background: var(--vb-content-bg); }
::selection { color: #fff; background: var(--vb-major); }

h1, h2, h3, h4, h5, h6 { font-family: var(--vb-font); font-weight: 400; line-height: 1.2; margin: 0 0 0.6em; color: var(--vb-heading); }
h1 { font-size: var(--vb-h1); }
h2 { font-size: var(--vb-h2); }
h3 { font-size: var(--vb-h3); }
h4 { font-size: var(--vb-h4); }
h5 { font-size: var(--vb-h5); }
h6 { font-size: var(--vb-h6); }
p { line-height: 25px; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--vb-major); text-decoration: none; transition: color 400ms, background-color 400ms; }
a:hover, a:active, a:focus { color: var(--vb-link-hover); text-decoration: none; }
a[href^=tel] { color: inherit; }
label { font-weight: normal; }
legend { padding-bottom: 10px; }
ul, ol { margin-top: 0; }

/* ---------- Boxed vs full width ---------- */
.vb-boxed .vb-wrapper {
  max-width: var(--vb-boxed-width); margin: 0 auto;
  background: var(--vb-content-bg);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  overflow-x: hidden;
}
/* Bootstrap-style container: 1170px with 15px padding, plus 15px column padding = 30px */
.vb-container { width: 100%; max-width: var(--vb-container); margin-inline: auto; padding-inline: 30px; }

/* ---------- Preloader (Clock) ---------- */
.vb-preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--vb-preloader-bg);
  transition: opacity 0.45s ease;
}
.vb-preloader.is-done { opacity: 0; pointer-events: none; }
.vb-clock {
  position: absolute; inset: 0; margin: auto;
  width: 80px; height: 80px;
  border: 3px solid var(--vb-preloader-color); border-radius: 60px;
}
.vb-clock span {
  position: absolute; left: 48%; width: 4px; border-radius: 5px;
  background: var(--vb-preloader-color);
}
.vb-clock-m { top: 2px; height: 38px; transform-origin: 50% 97%; animation: vb-spin 2s linear infinite; }
.vb-clock-h { top: 6px; height: 35px; transform-origin: 50% 94%; animation: vb-spin 12s linear infinite; }
@keyframes vb-spin { to { transform: rotate(360deg); } }

/* ---------- Top bar + contact info ---------- */
.vb-topbar { background: var(--vb-secondary); color: var(--vb-topbar-text); padding: 5px 0; }
.vb-topbar-inner { display: flex; justify-content: space-between; gap: 1rem; }
.vb-top1, .vb-top2 { padding-top: 7px; }
.vb-top2 { margin-left: auto; text-align: right; }
.vb-topbar a { color: var(--vb-topbar-text); }
.vb-contact {
  list-style: none; padding: 0; margin: 0 -10px;
  display: flex; flex-wrap: wrap; justify-content: flex-end;
}
.vb-contact li { display: inline-flex; align-items: center; margin: 0 10px; font-size: 90%; }
.vb-contact svg { margin: 0 3px; }

/* ---------- Header / logo / nav ---------- */
.vb-header {
  background: var(--vb-header-bg);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  position: relative; z-index: 99;
}
.vb-sticky .vb-header { position: sticky; top: 0; }
.vb-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.vb-logo { text-decoration: none; display: inline-flex; align-items: center; }
.vb-logo-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase; color: #3a3a5a;
}

.vb-nav .mod-menu, .vb-nav ul { list-style: none; margin: 0; padding: 0; }
.vb-nav .mod-menu { display: flex; align-items: center; }
.vb-nav li { position: relative; }
.vb-nav .mod-menu > li > a,
.vb-nav .mod-menu > li > span,
.vb-nav .mod-menu > li > button {
  display: inline-block; padding: 0 15px; line-height: 90px;
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #000; background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-family: inherit;
}
.vb-nav .mod-menu > li:last-child > a { padding-right: 0; }
.vb-nav .mod-menu > li.active > a,
.vb-nav .mod-menu > li.current > a,
.vb-nav .mod-menu > li:hover > a,
.vb-nav .mod-menu > li:hover > span,
.vb-nav .mod-menu > li.active > span { color: var(--vb-major); }

/* Dropdowns: 240px, cream background, 20px padding, no animation by default */
.vb-nav ul.mod-menu__sub, .vb-nav li > ul {
  position: absolute; left: 0; top: 100%; z-index: 10;
  width: var(--vb-dropdown-width);
  background: var(--vb-dropdown-bg);
  box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);
  padding: 20px;
  visibility: hidden; opacity: 0;
}
.vb-nav li:hover > ul, .vb-nav li:has(:focus-visible) > ul, .vb-nav li.is-open > ul { visibility: visible; opacity: 1; }
.vb-nav li > ul li { display: block; padding: 0; }
.vb-nav li > ul a, .vb-nav li > ul span, .vb-nav li > ul button {
  display: block; padding: 10px; cursor: pointer;
  font-family: Poppins, sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; color: #222; white-space: normal; text-align: left;
  background: none; border: 0; width: 100%;
  transition: background-color 0.3s, color 0.3s;
}
.vb-nav li > ul a:hover, .vb-nav li > ul li.active > a { background: var(--vb-major); color: #fff; }
/* Fly-out (3rd level): sit fully to the right of the parent panel.
   100% = edge of the item; +20px clears the parent's padding; + gap. */
.vb-nav li > ul li > ul,
.vb-nav li > ul li > ul.mod-menu__sub {   /* class variant outranks the generic .mod-menu__sub rule above */
  left: calc(100% + 20px + var(--vb-flyout-gap)); top: -20px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
/* invisible bridge so the pointer can cross the gap without closing the menu */
.vb-nav li > ul li > ul::before,
.vb-nav li > ul li > ul.mod-menu__sub::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(-20px - var(--vb-flyout-gap)); width: calc(20px + var(--vb-flyout-gap));
}

/* Template option: Menu > Dropdown animation */
.vb-menu-fade .vb-nav li > ul { transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.vb-menu-fade .vb-nav li:hover > ul, .vb-menu-fade .vb-nav li:has(:focus-visible) > ul, .vb-menu-fade .vb-nav li.is-open > ul { transition-delay: 0s; }
.vb-menu-elastic .vb-nav li > ul {
  transform-origin: 0 0; transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.2s ease, visibility 0s linear 0.4s;
}
.vb-menu-elastic .vb-nav li:hover > ul, .vb-menu-elastic .vb-nav li:has(:focus-visible) > ul, .vb-menu-elastic .vb-nav li.is-open > ul {
  transform: none; transition-delay: 0s;
}

.vb-nav-close, .vb-offcanvas-overlay { display: none; }
.vb-nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.vb-nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #313131; transition: background-color 400ms; }
.vb-nav-toggle:hover span { background: var(--vb-major); }

/* ---------- Slider ---------- */
.vb-slider { background: #fff; text-align: center; position: relative; }
.vb-slider img { margin-inline: auto; }
.vb-slider .carousel-control-next, .vb-slider .carousel-control-prev,
.vb-slider .slider-nav button, .vb-slider [class*="arrow"],
.vb-slider [class*="next"], .vb-slider [class*="prev"] {
  background-color: var(--vb-major); color: #fff; border: 0;
}

/* ---------- Page title banner (inner pages) ---------- */
.vb-page-title { background: var(--vb-major); padding: 75px 0; text-align: center; color: #fff; }
.vb-page-title h2 {
  margin: 0 0 20px; font-size: 30px; line-height: 1.8; letter-spacing: 0.3em;
  text-transform: uppercase; opacity: 0.9; color: #fff;
}
.vb-page-title nav, .vb-page-title .breadcrumb { font-size: 12px; margin: 25px 0 0; padding: 0; background: none; }
.vb-page-title ol { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; }
.vb-page-title li, .vb-page-title a, .vb-page-title span { color: #fff; }
.vb-page-title li + li::before { content: "/"; padding: 0 0.6em; }

/* ---------- Main ---------- */
.vb-main { background: var(--vb-content-bg); padding: 47px 0 18px; }
.vb-full .vb-main { background: transparent; }

.vb-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px;
  align-items: start; margin-bottom: 50px;
}
.vb-row.vb-row-single { grid-template-columns: minmax(0, 1fr); }
.vb-position4, .vb-position5 { min-width: 0; }
.vb-position4 table, .vb-position5 table { max-width: 100%; }
.vb-block { margin-bottom: 50px; }

.vb-body { display: grid; gap: 30px; margin-bottom: 30px; align-items: start; }
.vb-component { min-width: 0; }

.vb-bottom {
  display: grid; gap: 30px; margin-bottom: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.vb-main .alert { margin-bottom: 1.2rem; }

.vb-featured { margin: 0 0 30px; }
.vb-featured img { max-width: 100%; height: auto; }

/* ---------- Modules (Helix3-compatible markup) ---------- */
.sp-module { margin-top: 50px; }
.sp-module:first-child { margin-top: 0; }
.sp-module-title {
  margin: 0; padding: 20px; background: var(--vb-major); color: var(--vb-content-bg);
  font-family: var(--vb-font); font-size: 14px; font-weight: 400;
  text-transform: uppercase; line-height: 1;
}
.sp-module-content { padding-top: 8px; }
.sp-module ul > li { border-bottom: 1px solid #e8e8e8; transition: 300ms; }
.sp-module ul > li:last-child { border-bottom: none; }
.sp-module ul > li > a { display: block; padding: 2px 0; line-height: 36px; color: var(--vb-text); transition: 300ms; }
.sp-module ul > li > a:hover { color: var(--vb-major); }

/* JEvents "latest events" list: one line per event, drawn icons, thin line under each row */
.mod_events_latest_table { width: 100%; border-collapse: collapse; margin: 0; }
.mod_events_latest_table br { display: none; }
.mod_events_latest_table tr { background: none; }
.mod_events_latest_table td {
  padding: 1px 0; font-size: 14px; line-height: 22px; color: var(--vb-body-text);
  border: 0; border-bottom: 1px solid var(--vb-event-line); background: none;
}
.mod_events_latest_table td * { line-height: inherit; }
.mod_events_latest_table .mod_events_latest_date { margin: 0; }
.mod_events_latest_table .mod_events_latest_content { margin: 0; }
.mod_events_latest_table .mod_events_latest_content a { color: var(--vb-major); }
.mod_events_latest_table .mod_events_latest_content a:hover { color: var(--vb-link-hover); }
.mod_events_latest_table [class^="icon-"], .mod_events_latest_table [class*=" icon-"] {
  display: inline-block; width: 11px; height: 11px; margin: 0 3px 0 0; vertical-align: -1px;
  background-color: #444; -webkit-mask: var(--vb-ico) no-repeat center / contain; mask: var(--vb-ico) no-repeat center / contain;
}
.mod_events_latest_table [class^="icon-"]::before, .mod_events_latest_table [class*=" icon-"]::before { content: none; }
.mod_events_latest_table .icon-calendar { --vb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2zM5 10h14v10H5z'/%3E%3C/svg%3E"); }
.mod_events_latest_table .icon-time { --vb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E"); }
.mod_events_latest_table .icon-hand-right { --vb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h12.2l-5.6-5.6L12 4l8 8-8 8-1.4-1.4 5.6-5.6H4z'/%3E%3C/svg%3E"); }

/* ---------- Buttons and forms (Helix look on Bootstrap 5) ---------- */
.btn {
  font-size: 14px; font-weight: 400; line-height: 40px; padding: 0 30px;
  letter-spacing: 1.5px; text-transform: uppercase; vertical-align: middle;
  color: #fff; border: none; border-radius: 0; background-color: var(--vb-major);
  transition: color 400ms, background-color 400ms, border-color 400ms;
}
.btn:hover, .btn:focus, .btn:active { color: #fff; background-color: #222; outline: none; }
.btn.btn-primary { background-color: #222; color: #fff; }
.btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:active { background-color: var(--vb-major); color: #fff; }

.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="url"], input[type="number"],
input[type="date"], input[type="time"], select, textarea {
  display: block; height: 34px; padding: 6px 12px;
  font-size: 14px; line-height: 1.428571429; color: #555;
  background-color: #fff; background-image: none;
  border: 1px solid #ccc; border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
textarea, textarea.form-control { height: auto; }
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
  border-color: #66afe9; outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::placeholder, input::placeholder, textarea::placeholder { color: #999; opacity: 1; }
.form-control[disabled], .form-control[readonly], input[disabled], select[disabled], textarea[disabled] {
  cursor: not-allowed; background-color: #eee; opacity: 1;
}

.page-link { color: var(--vb-text); }
.page-link:hover { color: var(--vb-text); }
.page-item.active .page-link { background-color: var(--vb-major); border-color: var(--vb-major); color: #fff; }
blockquote { border-color: var(--vb-major); }

/* ---------- Footer ---------- */
.vb-footer {
  background: var(--vb-secondary); color: var(--vb-footer-text);
  text-align: center; padding: 20px 0; border-top: 1px ridge #333;
}
.vb-footer .vb-copyright { margin: 0; }
.vb-footer a { color: rgba(255, 255, 255, 0.9); }
.vb-footer a:hover { color: #fff; }

/* ---------- Go to top (.scrollup) ---------- */
.vb-gotop {
  position: fixed; right: 100px; bottom: 62px; z-index: 999;
  width: 40px; height: 40px;
  border: 1px solid #ddd; background-color: rgba(255, 255, 255, 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, background-color 400ms;
}
.vb-gotop.is-visible { opacity: 1; pointer-events: auto; }
.vb-gotop:hover { background-color: #c4c4c4; }
.vb-gotop::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-left: 3px solid #000; border-top: 3px solid #000;
  transform: translate(-50%, -30%) rotate(45deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .vb-gotop { right: 25px; bottom: 25px; }
}
@media (max-width: 900px) {
  .vb-nav-toggle { display: block; }
  .vb-header-inner { min-height: 60px; }

  /* Off-canvas menu: 320px, slides in from the right, dark translucent panel */
  .vb-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 10000;
    width: 320px; max-width: 90%; padding: 55px 0 20px; overflow-y: auto;
    background: rgba(0, 0, 0, 0.7); color: #fff;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.5s, visibility 0s linear 0.5s;
  }
  .vb-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .vb-nav-close {
    display: block; position: absolute; top: 15px; right: 15px;
    width: 25px; height: 25px; padding: 0; border: 1px solid #fff; border-radius: 100%;
    background: none; color: #fff; font-size: 16px; line-height: 1; text-align: center; cursor: pointer;
  }
  .vb-offcanvas-overlay {
    position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.2);
    opacity: 0; visibility: hidden; transition: 0.5s; display: block;
  }
  .vb-offcanvas-overlay.is-open { opacity: 1; visibility: visible; }

  .vb-nav .mod-menu { display: block; }
  .vb-nav li { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
  .vb-nav .mod-menu > li > a, .vb-nav .mod-menu > li > span, .vb-nav .mod-menu > li > button,
  .vb-nav li > ul a, .vb-nav li > ul span, .vb-nav li > ul button {
    display: block; width: 100%; padding: 10px 20px; line-height: 28px;
    font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0;
    text-transform: uppercase; color: #fff; text-align: left;
  }
  .vb-nav .mod-menu > li:last-child > a { padding-right: 20px; }
  .vb-nav .mod-menu > li > a:hover, .vb-nav li > ul a:hover,
  .vb-nav .mod-menu > li.active > a, .vb-nav li > ul li.active > a { background: rgba(0, 0, 0, 0.15); color: #fff; }
  .vb-nav ul.mod-menu__sub, .vb-nav li > ul {
    display: none; position: static; width: auto; padding: 0; box-shadow: none;
    visibility: visible; opacity: 1; transform: none; transition: none; background: rgba(0, 0, 0, 0.02);
  }
  .vb-nav li > ul li > ul, .vb-nav li > ul li > ul.mod-menu__sub { left: auto; top: auto; }
  .vb-nav li > ul li > ul::before, .vb-nav li > ul li > ul.mod-menu__sub::before { display: none; }
  .vb-nav li > ul li > a { padding-left: 30px; }
  .vb-nav li.is-open > ul { display: block; }

  .vb-row, .vb-body { grid-template-columns: 1fr !important; }
  .vb-topbar-inner { flex-direction: column; }
  .vb-top2 { margin-left: 0; }
  .vb-page-title { padding: 40px 0; }
}
@media (max-width: 767px) {
  .vb-top2 { text-align: center; }
  .vb-contact { justify-content: center; margin: 0; }
  .vb-contact li { margin: 0 5px; font-size: 89%; }
}
@media (max-width: 600px) {
  .vb-container { padding-inline: 15px; }
}

/* =====================================================================
   Imported from the existing template's "Custom Code" > Custom CSS
   ===================================================================== */
.hod1 {
background-color: #A9E5A0;
}
.hod2 {
background-color: #EDB9C6;
}
.hod3 {
background-color: #98FFFB;
}
.hod4 {
background-color: #DCBCF1;
}
.sp-module ul > li > a {
  display: inline;
}
.sp-module ul {
  list-style: disc;
  padding: 6px;
  margin: 6px;
}
.sp-module ul > li {
  display: list-item;
}


/* Article tables (e.g. homeowner details) fill the content width */
.vb-component table.category { width: 100%; border-collapse: collapse; }
.vb-component table.category td, .vb-component table.category th { padding: 12px 10px; border-top: 1px solid #fff; vertical-align: top; }


/* ---------- Never let content be wider than the screen ----------
   A single wide table/line used to make phones zoom out and pushed the slide-out menu off-screen. */
.vb-main { overflow-x: hidden; overflow-x: clip; }
.vb-main table, .vb-main img, .vb-main iframe, .vb-main video, .vb-main embed, .vb-main object { max-width: 100%; }
.vb-main table { table-layout: auto; }
.vb-main td, .vb-main th, .vb-main li, .vb-main p, .vb-main h1, .vb-main h2, .vb-main h3, .vb-main h4, .vb-main span, .vb-main a { overflow-wrap: anywhere; }
.vb-main pre { white-space: pre-wrap; max-width: 100%; }
@media (max-width: 767px) {
  .vb-main table { width: 100% !important; }
  .vb-main td, .vb-main th { white-space: normal !important; }
}

/* Phones: tighter table cells so the 4-column directory fits in portrait */
@media (max-width: 600px) {
  .vb-component table.category td, .vb-component table.category th { padding: 10px 5px; }
  .vb-component table.category input[type="text"], .vb-component table.category select { font-size: 16px; }
  #hodTable th, #hodTable td:last-child { white-space: nowrap !important; }
}
