/*
Theme Name: Scott Kim Real Estate
Theme URI: https://scottkim.com.au/
Description: Lightweight, security-hardened custom theme matching Scott Kim Real Estate live design.
Version: 2.2.0
Text Domain: scottkim
*/

:root {
  --sk-navy: #22314e;
  --sk-navy-dark: #172238;
  --sk-gold: #b49a65;
  --sk-gold-hover: #9d8450;
  --sk-bg: #ededed;
  --sk-white: #ffffff;
  --sk-border: #d8dce3;
  --sk-muted: #5c6678;
}

html, body {
  margin: 0 !important;
  padding: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: var(--sk-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.home main#content {
  margin-top: 0 !important;
  padding-left: 0 !important;
}
body:not(.home) main#content {
  margin-top: 157px !important;
}

header.header.sk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
}
.sk-logo-topbar {
  background: #ffffff;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}
.sk-logo-topbar img {
  max-height: 76px;
  width: auto;
}
.sk-nav-bar {
  height: 45px;
  background: var(--sk-navy);
  display: flex;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}
.sk-header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.sk-nav { margin: 0 auto; }
.sk-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sk-nav li { position: relative; }
.sk-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 25px;
  white-space: nowrap;
}
.sk-nav > ul > li > a:hover { color: var(--sk-gold) !important; }
.sk-nav li.menu-item-has-children > a::after {
  content: " \25BE";
  font-size: 10px;
  opacity: 0.85;
}
.sk-nav ul ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--sk-navy);
  border-top: 2px solid var(--sk-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  flex-direction: column;
  align-items: stretch;
  padding: 6px 0;
  z-index: 10000;
}
.sk-nav li:hover > ul.sub-menu,
.sk-nav li:focus-within > ul.sub-menu { display: flex; }
.sk-nav ul ul.sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #ffffff !important;
  font-size: 13px;
}
.sk-nav ul ul.sub-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--sk-gold) !important;
}
.sk-brand-right { display: flex; align-items: center; }
.sk-brand-right img {
  height: 28px;
  width: auto;
  background: transparent;
}
.sk-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
  cursor: pointer;
}

.sk-lhs-bar {
  position: fixed;
  top: 45px;
  left: 0;
  bottom: 0;
  width: 75px;
  background: #f8f5f5;
  border-right: none;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}
.sk-lhs-icons {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin-top: auto;
  margin-bottom: auto;
}
.sk-lhs-icons a {
  color: var(--sk-navy);
  font-size: 18px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.sk-lhs-icons a:hover {
  background: #ffffff;
  color: var(--sk-gold);
}
.sk-lhs-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sk-navy);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}
/* Slide-in animation matching live */
header.header.sk-header,
.sk-lhs-bar,
.sk-rhs-bar {
  transition: transform .6s ease-in-out, background-color .6s ease-in-out;
}
.header--hide { transform: translate3d(0, -100%, 0); }
.header__lhs--hide { transform: translate3d(-100%, 0, 0); }
.header__rhs--hide { transform: translate3d(100%, 0, 0); }
.sk-rhs-bar {
  position: fixed;
  top: 45px;
  right: 0;
  bottom: 0;
  width: 75px;
  background: #f8f5f5;
  border-left: none;
  z-index: 9990;
}

.home-banner {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #111827;
  line-height: 0;
}
.home-banner video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 82vh;
  object-fit: cover;
  display: block;
}

.property-section h1,
.property-section h2.h1 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--sk-navy);
  margin: 0 0 32px;
}
.btn-more {
  display: block;
  width: fit-content;
  margin: 26px auto 0;
  padding: 10px 30px;
  border: 1px solid var(--sk-navy);
  color: var(--sk-navy) !important;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-more:hover {
  background: var(--sk-navy);
  color: #ffffff !important;
}

.video-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.video-item {
  background: #ffffff;
  border: 1px solid #d4d6d6;
  overflow: hidden;
}
.video-item a {
  display: block;
  color: var(--sk-navy);
  text-decoration: none !important;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b2436;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 28, 45, 0.25);
}
.play-icon svg { background: rgba(18, 28, 45, 0.65); border-radius: 50%; padding: 14px; width: 54px; height: 54px;
  fill: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.video-box-info { padding: 16px 18px; }
.video-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--sk-navy);
  margin-bottom: 6px;
}
.video-caption p {
  margin: 0;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--sk-muted);
}

.sk-google-summary {
  background: #ffffff;
  border: 1px solid #d4d6d6;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.sk-stars { color: #f59e0b; font-size: 1.15rem; letter-spacing: 2px; }

.property-details {
  display: flex;
  flex-direction: column;
}
.property-details > .property-img-cover,
.property-details > .property-description {
  background: #ffffff;
  border-left: 1px solid #d4d6d6;
  border-right: 1px solid #d4d6d6;
}
.property-details > .property-img-cover {
  position: relative;
  height: auto !important;
  border-top: 1px solid #d4d6d6;
  padding: 0 !important;
  overflow: hidden;
}
.property-details > .property-img-cover img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
}
.property-details > .property-description {
  border-bottom: 1px solid #d4d6d6;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prop-suburb a { text-decoration: none !important; color: var(--sk-navy) !important; }
.prop-suburb .prop-location {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--sk-navy);
}
.prop-price {
  font-size: 0.92rem;
  color: #374151;
  margin: 4px 0 12px;
}
.property-beds-baths-sqft {
  list-style: none !important;
  margin: auto 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.property-beds-baths-sqft li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none !important;
  font-size: 0.9rem;
  color: var(--sk-navy);
}
.property-beds-baths-sqft li svg {
  width: 18px;
  height: 18px;
  fill: var(--sk-navy);
}
.property-description .property-link {
  margin: 12px 0 0;
  text-align: right;
}
.property-description .property-link a {
  display: inline-block;
  background: var(--sk-navy);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 16px;
  text-decoration: none !important;
}
.property-description .property-link a:hover { background: var(--sk-gold); }

.sk-jenman-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #ffffff;
  border-top: 3px solid var(--sk-navy);
  padding: 36px 0;
}
.sk-jenman-wrap > .container {
  max-width: 1300px;
}
.sk-jenman-wrap h2 {
  font-weight: 300;
  font-size: 2rem;
  color: var(--sk-navy);
}
.sk-btn-discover {
  display: inline-block;
  background: var(--sk-navy);
  color: #ffffff !important;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none !important;
}

.sk-footer {
  background: var(--sk-navy);
  color: #ffffff;
  padding: 42px 0 28px;
}
.sk-footer h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.sk-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sk-footer a {
  color: #e5e7eb !important;
  font-size: 0.92rem;
  text-decoration: none !important;
}
.sk-footer a:hover { color: var(--sk-gold) !important; }
.sk-footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sk-btn-review {
  display: inline-block;
  border: 1px solid #ffffff;
  color: #ffffff !important;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-decoration: none !important;
}
.sk-btn-review:hover {
  background: #ffffff;
  color: var(--sk-navy) !important;
}

@media (max-width: 960px) {
  .sk-lhs-bar { display: none; }
  body.home main#content,
  body.home .sk-jenman-wrap,
  body.home .sk-footer { padding-left: 0; }
  .video-reviews { grid-template-columns: 1fr; }
  .sk-nav-toggle { display: inline-block; }
  .sk-nav {
    display: none;
    position: absolute;
    top: 45px;
    left: -20px;
    right: -20px;
    background: var(--sk-navy);
    padding: 10px 20px 18px;
  }
  .sk-nav.is-open { display: block; }
  .sk-nav ul { flex-direction: column; align-items: stretch; }
  .sk-nav ul ul.sub-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--sk-gold);
    margin-left: 14px;
    display: flex;
  }
}

.scott-notif { left: 6px !important; width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; }
.scott-notif img { width: 58px; padding: 15px; top: 0; }

/* Fix /property/ search bar offset & Enquire form spacing */
.gform_wrapper .gfield {
  margin-bottom: 12px !important;
}
.gform_wrapper .ginput_container input,
.gform_wrapper .ginput_container select,
.gform_wrapper .ginput_container textarea {
  margin-top: 0 !important;
}

/* Fix Gravity Forms hidden_label & gform_hidden vertical spacing */
.gform_wrapper .hidden_label > .gfield_label,
.gform_wrapper .hidden_label > label.gform-field-label,
.gform_wrapper .gform_hidden,
.gform_wrapper .gform_validation_container {
  display: none !important;
}
.gform_wrapper .gform_fields {
  row-gap: 10px !important;
  grid-row-gap: 10px !important;
}
.gform_wrapper .gfield {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.gform_wrapper .ginput_container input,
.gform_wrapper .ginput_container select,
.gform_wrapper .ginput_container textarea {
  margin-bottom: 0 !important;
}
.gform_wrapper .gfield_label {
  margin-bottom: 5px !important;
}
.gform_wrapper .gfield_contains_required .ginput_container:after {
  top: 50% !important;
  transform: translateY(-50%);
}

body.post-type-archive-property main#content { margin-top: 198px !important; }
body.page-id-603 main#content { margin-top: 157px !important; }

img { max-width: 100%; height: auto; }
.single-teams .full-image img { width: 100%; height: auto; display: block; }

body.home { background: #f8f5f5; }

.gform_wrapper .select2-container { width: 100% !important; }

body .gform_wrapper .gform_button { color: #ffffff !important; padding: 10px 26px !important; border-radius: 4px !important; border: none !important; }
