/* =========================================================================
   KOZ Investment — consolidated site stylesheet
   Merged from inline <style> blocks across all HTML pages.
   The Tailwind @theme block remains inline in each page because the
   Tailwind Browser (Play) CDN parses it at runtime.
   ========================================================================= */

/* ---------- Base typography ---------- */
body { font-family: 'Jost', sans-serif; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }

/* ---------- Gold accents ---------- */
.gold-gradient { background: linear-gradient(135deg, #b8973c, #e0c46a, #b8973c); }
.gold-text {
  background: linear-gradient(135deg, #c4a03c, #e8c96d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Hero slider (index) ---------- */
.slide { opacity: 0; transition: opacity 1.4s ease; position: absolute; inset: 0; }
.slide.active { opacity: 1; }

/* ---------- Navbar ---------- */
#navbar {
  background-image: linear-gradient(to bottom, rgba(8,21,42,0.7) 0%, rgba(8,21,42,0.38) 55%, rgba(8,21,42,0) 100%);
  transition: background 0.5s ease;
}
#navbar a,
#navbar .lang-active,
#navbar button { text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.5); }
.nav-scrolled {
  background: rgba(8,21,42,0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.nav-scrolled a,
.nav-scrolled .lang-active,
.nav-scrolled button { text-shadow: none; }

/* ---------- Property cards ---------- */
.property-card:hover .prop-img { transform: scale(1.06); }
.prop-img { transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Language toggle ---------- */
.lang-active { background: rgba(196,160,60,0.25); color: #d4b55c; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8f4ed; }
::-webkit-scrollbar-thumb { background: #c4a03c; border-radius: 3px; }

/* ---------- Forms (contact / property detail) ---------- */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(196,160,60,0.55);
  box-shadow: 0 0 0 3px rgba(196,160,60,0.1);
}

/* ---------- Blog article cards (blog / blog-detail) ---------- */
article:hover .art-img { transform: scale(1.05); }
.art-img { transition: transform 0.6s ease; }

/* ---------- Properties filter buttons ---------- */
.filter-btn.active { background: #0c1f3d; color: #fff; }

/* ---------- Services page ---------- */
.service-card:hover .svc-icon { transform: scale(1.08) rotate(-3deg); }
.svc-icon { transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
html { scroll-padding-top: 96px; }

/* =========================================================================
   Legal pages (privacy-policy / terms-of-service)
   ========================================================================= */
.legal-content h2 { scroll-margin-top: 6rem; }
.legal-content p,
.legal-content li { color: rgba(12,31,61,0.72); font-weight: 300; line-height: 1.75; }
.legal-content a {
  color: #a88530;
  border-bottom: 1px solid rgba(168,133,48,0.25);
  transition: color .2s, border-color .2s;
}
.legal-content a:hover { color: #c4a03c; border-color: rgba(196,160,60,0.6); }
.toc-link.active { color: #a88530; border-left-color: #c4a03c; }

/* =========================================================================
   Blog detail — prose, stat grid, share rail, toast, reading bar
   ========================================================================= */
@keyframes softZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-img { animation: softZoom 2.4s ease both; }

.prose-kz { color: rgba(12,31,61,0.78); font-weight: 300; line-height: 1.85; font-size: 1.0625rem; }
.prose-kz p { margin-bottom: 1.5rem; }
.prose-kz p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem;
  line-height: 0.9;
  float: left;
  padding: 0.35rem 0.85rem 0 0;
  color: #c4a03c;
  font-weight: 500;
}
.prose-kz h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: #0c1f3d;
  margin: 3rem 0 1.1rem;
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.15;
}

.prose-kz h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #0c1f3d;
  margin: 2rem 0 0.9rem;
}
.prose-kz a {
  color: #a88530;
  border-bottom: 1px solid rgba(196,160,60,0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.prose-kz a:hover { color: #0c1f3d; border-color: #0c1f3d; }
.prose-kz ul { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; }
.prose-kz ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; }
.prose-kz ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: #c4a03c;
}
.prose-kz strong { color: #0c1f3d; font-weight: 500; }
.prose-kz blockquote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  border-left: 2px solid #c4a03c;
  background: #f8f4ed;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.5;
  color: #0c1f3d;
  font-weight: 300;
}
.prose-kz blockquote cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a88530;
  margin-top: 1rem;
}
.prose-kz figure { margin: 2.5rem 0; }
.prose-kz figure img { width: 100%; border-radius: 2px; }
.prose-kz figcaption {
  font-size: 0.8rem;
  color: rgba(12,31,61,0.5);
  text-align: center;
  margin-top: 0.85rem;
  font-weight: 300;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 2rem 0; }
.stat-card {
  border: 1px solid rgba(12,31,61,0.08);
  background: #fff;
  padding: 1.25rem;
  border-radius: 2px;
  text-align: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  line-height: 1;
  color: #c4a03c;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.stat-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(12,31,61,0.5);
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .prose-kz { font-size: 1rem; }
  .prose-kz p:first-of-type::first-letter { font-size: 3.4rem; padding-right: 0.6rem; }
  .prose-kz h2 { font-size: 1.65rem; }
  .prose-kz blockquote { padding: 1.25rem 1.25rem; font-size: 1.15rem; }
}

.share-rail { position: sticky; top: 120px; }
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(12,31,61,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(12,31,61,0.6);
  transition: all 0.3s ease;
  background: #fff;
}
.share-btn:hover { border-color: #c4a03c; color: #c4a03c; transform: translateY(-2px); }

.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #c4a03c, #e8c96d);
  width: 0%;
  z-index: 60;
  transition: width 0.1s linear;
}

.rel-card:hover .rel-img { transform: scale(1.06); }
.rel-img { transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #0c1f3d;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 80;
  border: 1px solid rgba(196,160,60,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================================
   Property detail — thumbs, gallery, lightbox, tabs, rise animations
   ========================================================================= */
.thumbs-scroll { scrollbar-width: none; scroll-behavior: smooth; }
.thumbs-scroll::-webkit-scrollbar { display: none; }
.thumb {
  transition: opacity 0.3s ease, transform 0.4s ease;
  opacity: 0.55;
  width: 108px;
  height: 72px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .thumb { width: 150px; height: 96px; }
}
.thumb:hover { opacity: 0.85; }
.thumb.active {
  opacity: 1;
  box-shadow: 0 0 0 2px #c4a03c, 0 10px 30px -10px rgba(12,31,61,0.35);
}
.thumb img { transition: transform 0.6s ease; }
.thumb:hover img { transform: scale(1.06); }

.thumb-arrow { width: 36px; height: 72px; }
@media (min-width: 768px) {
  .thumb-arrow { width: 44px; height: 96px; }
}

.main-img { transition: opacity 0.4s ease; }
.main-img.fading { opacity: 0; }

.rule { position: relative; padding-left: 28px; }
.rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 18px;
  height: 1px;
  background: #c4a03c;
}

.amenity { transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease; }
.amenity:hover {
  border-color: rgba(196,160,60,0.55);
  background: #fff;
  transform: translateY(-2px);
}

.gal-item { cursor: zoom-in; overflow: hidden; position: relative; }
.gal-item img { transition: transform 0.9s cubic-bezier(0.22,0.61,0.36,1); }
.gal-item:hover img { transform: scale(1.07); }
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8,21,42,0.35));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gal-item:hover::after { opacity: 1; }
.gal-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gal-item:hover .gal-badge { opacity: 1; transform: translateY(0); }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8,21,42,0.96);
  display: none;
}
.lb.open { display: block; }
.lb img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 78%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lb-btn {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 2;
  cursor: pointer;
}
.lb-btn:hover,
.lb-btn:active { background: #c4a03c; border-color: #c4a03c; color: #0c1f3d; }
.lb-close { top: 14px; right: 14px; }
.lb-prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
@media (min-width: 640px) {
  .lb img { max-width: 88%; max-height: 80%; }
  .lb-btn { width: 52px; height: 52px; }
  .lb-close { top: 28px; right: 28px; }
  .lb-prev  { left: 28px; }
  .lb-next  { right: 28px; }
  .lb-counter { bottom: 32px; font-size: 12px; }
}

.tab-btn { transition: color 0.3s ease, border-color 0.3s ease; }
.tab-btn.active { color: #0c1f3d; border-color: #c4a03c; }

@keyframes softRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.rise { animation: softRise 1s ease both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }

@media (min-width: 1024px) {
  .sticky-form { position: sticky; top: 110px; }
}

/* =========================================================================
   Fluent Forms — re-skin to match the static design.

   Fluent Forms ships its own utility classes (.ff-el-group, .ff-el-input--label,
   .ff-el-form-control, .ff-btn-submit, …). Without overrides the rendered
   form looks generic and labels can disappear against dark backgrounds.

   Two variants:
     .koz-light-form  — used on the Contact page (light card on cream).
     .koz-dark-form   — used on the homepage GET IN TOUCH and the property
                        detail "Speak to an Expert" sticky aside.

   Selectors are ID-free so they apply to every form Fluent Forms emits inside
   the wrapper. The static site has no Fluent Forms output — these rules are
   inert there and only kick in inside the WordPress build.
   ========================================================================= */
.koz-light-form .fluentform .ff-el-group,
.koz-dark-form  .fluentform .ff-el-group { margin-bottom: 1.1rem; }

.koz-light-form .fluentform .ff-t-container,
.koz-dark-form  .fluentform .ff-t-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 640px) {
  .koz-light-form .fluentform .ff-t-container,
  .koz-dark-form  .fluentform .ff-t-container { grid-template-columns: 1fr; }
}
.koz-light-form .fluentform .ff-t-cell,
.koz-dark-form  .fluentform .ff-t-cell { min-width: 0; }

/* Labels — uppercase tracking-y eyebrows in the static design. */
.koz-light-form .fluentform .ff-el-input--label label {
  display: block;
  color: #a88530;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.koz-dark-form .fluentform .ff-el-input--label label {
  display: block;
  color: #d4b55c;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.koz-light-form .fluentform .ff-el-input--label .ff-el-is-required,
.koz-dark-form  .fluentform .ff-el-input--label .ff-el-is-required { color: #c4a03c; margin-left: 0.15rem; }

/* Inputs / textareas / selects — light variant. */
.koz-light-form .fluentform .ff-el-form-control,
.koz-light-form .fluentform input[type="text"],
.koz-light-form .fluentform input[type="email"],
.koz-light-form .fluentform input[type="tel"],
.koz-light-form .fluentform input[type="url"],
.koz-light-form .fluentform input[type="number"],
.koz-light-form .fluentform textarea,
.koz-light-form .fluentform select {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(12, 31, 61, 0.15);
  color: #0c1f3d;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  height: auto;
  line-height: 1.5;
}
.koz-light-form .fluentform textarea { resize: none; min-height: 7rem; }
.koz-light-form .fluentform .ff-el-form-control:focus,
.koz-light-form .fluentform input:focus,
.koz-light-form .fluentform textarea:focus,
.koz-light-form .fluentform select:focus {
  outline: none;
  border-color: rgba(196, 160, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 160, 60, 0.1);
}

/* Inputs / textareas / selects — dark variant. */
.koz-dark-form .fluentform .ff-el-form-control,
.koz-dark-form .fluentform input[type="text"],
.koz-dark-form .fluentform input[type="email"],
.koz-dark-form .fluentform input[type="tel"],
.koz-dark-form .fluentform input[type="url"],
.koz-dark-form .fluentform input[type="number"],
.koz-dark-form .fluentform textarea,
.koz-dark-form .fluentform select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  height: auto;
  line-height: 1.5;
}
.koz-dark-form .fluentform textarea { resize: none; min-height: 7rem; }
.koz-dark-form .fluentform ::placeholder { color: rgba(255, 255, 255, 0.6); }
.koz-dark-form .fluentform select option { background: #0c1f3d; color: #fff; }
.koz-dark-form .fluentform .ff-el-form-control:focus,
.koz-dark-form .fluentform input:focus,
.koz-dark-form .fluentform textarea:focus,
.koz-dark-form .fluentform select:focus {
  outline: none;
  border-color: rgba(196, 160, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 160, 60, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

/* Checkbox + GDPR-style consent rows. */
.koz-light-form .fluentform .ff-el-form-check label,
.koz-light-form .fluentform .ff_item_panel_check label {
  color: rgba(12, 31, 61, 0.85);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
}
.koz-dark-form .fluentform .ff-el-form-check label,
.koz-dark-form .fluentform .ff_item_panel_check label {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none;
  letter-spacing: normal;
}
.koz-light-form .fluentform input[type="checkbox"],
.koz-dark-form  .fluentform input[type="checkbox"] {
  accent-color: #c4a03c;
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
  flex-shrink: 0;
}

/* Submit buttons — gold gradient pill, navy text, uppercase tracking. */
.koz-light-form .fluentform .ff-btn,
.koz-light-form .fluentform .ff-btn-submit,
.koz-dark-form  .fluentform .ff-btn,
.koz-dark-form  .fluentform .ff-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #b8973c, #e0c46a, #b8973c);
  color: #0c1f3d;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 0.5rem;
  box-shadow: none;
  line-height: 1.2;
}
.koz-light-form .fluentform .ff-btn:hover,
.koz-light-form .fluentform .ff-btn-submit:hover,
.koz-dark-form  .fluentform .ff-btn:hover,
.koz-dark-form  .fluentform .ff-btn-submit:hover { opacity: 0.92; }

/* Validation / error helper text. */
.koz-light-form .fluentform .error,
.koz-light-form .fluentform .text-danger,
.koz-light-form .fluentform .ff-el-input--content .error { color: #b91c1c; font-size: 0.75rem; margin-top: 0.35rem; }
.koz-dark-form  .fluentform .error,
.koz-dark-form  .fluentform .text-danger,
.koz-dark-form  .fluentform .ff-el-input--content .error { color: #fca5a5; font-size: 0.75rem; margin-top: 0.35rem; }

/* Confirmation message after submit. */
.koz-light-form .fluentform .ff-message-success,
.koz-light-form .fluentform_wrapper_message_success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
}
.koz-dark-form .fluentform .ff-message-success,
.koz-dark-form .fluentform_wrapper_message_success {
  background: rgba(196, 160, 60, 0.12);
  border: 1px solid rgba(196, 160, 60, 0.4);
  color: #d4b55c;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
}
