/*
Theme Name:   Mawbey's Estate Agency
Theme URI:    https://www.mawbeys.com/
Description:  Child theme of Honeycomb for the Mawbey's Estate Agency demo homepage (Visi.homes widget showcase).
Author:       Visi.Properties
Template:     honeycomb
Version:      1.0.8
Text Domain:  mawbeys-child
*/

/* Brand tokens — British independent agency (not purple / cream AI defaults). */
:root {
  --mawbeys-ink: #132238;
  --mawbeys-ink-soft: #1c334d;
  --mawbeys-header: #132238;
  --mawbeys-paper: #f3efe6;
  --mawbeys-paper-deep: #e7e0d2;
  --mawbeys-coral: #ff6f61;
  --mawbeys-coral-hover: #e85a4c;
  --mawbeys-brass: var(--mawbeys-coral);
  --mawbeys-brass-hover: var(--mawbeys-coral-hover);
  --mawbeys-cream: #faf7f1;
  --mawbeys-muted: rgba(243, 239, 230, 0.88);
  --mawbeys-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --mawbeys-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

/* Site-wide header + action buttons — beat Honeycomb customizer inline CSS */
body .site-header,
body.mawbeys-front .site-header,
body.single-property .site-header,
#masthead.site-header {
  background: #132238 !important;
  background-color: #132238 !important;
  background-image: none !important;
  margin-bottom: 0 !important;
  padding-top: 1.1rem !important;
  padding-bottom: 0 !important;
}

.site-branding .site-title,
.site-branding .site-title a {
  font-family: var(--mawbeys-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  color: #fff !important;
}

@media (min-width: 768px) {
  .site-branding .site-title,
  .site-branding .site-title a {
    white-space: nowrap;
    font-size: 1.55rem;
  }

  .site-header .col-full {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .site-branding {
    flex: 1 1 auto;
    min-width: 0;
  }

  .site-header .main-navigation {
    flex: 0 0 auto;
  }
}

.site-branding .site-description {
  display: block !important;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.honeycomb-primary-navigation {
  background: rgba(0, 0, 0, 0.12) !important;
}

.main-navigation ul li a {
  color: #fff !important;
  font-weight: 600;
}

.main-navigation ul li a:hover {
  color: var(--mawbeys-coral) !important;
  text-decoration: none;
}

/* Coral action buttons (hero, PH More Details, forms, etc.) */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
a.button,
.widget a.button,
.property_actions li a,
ul.properties li.property .button,
.mawbeys-btn.mawbeys-btn--primary,
a.mawbeys-btn--primary {
  background: #ff6f61 !important;
  background-color: #ff6f61 !important;
  border-color: #ff6f61 !important;
  color: #ffffff !important;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
a.button:hover,
.widget a.button:hover,
.property_actions li a:hover,
ul.properties li.property .button:hover,
.mawbeys-btn.mawbeys-btn--primary:hover,
a.mawbeys-btn--primary:hover {
  background: #e85a4c !important;
  background-color: #e85a4c !important;
  border-color: #e85a4c !important;
  color: #ffffff !important;
}

body.mawbeys-front {
  font-family: var(--mawbeys-body);
  background: var(--mawbeys-cream);
  color: var(--mawbeys-ink);
}

/* Full-width — no blog sidebar (front, single property, property search). */
body.mawbeys-front.right-sidebar .content-area,
body.mawbeys-front .content-area,
body.single-property.right-sidebar .content-area,
body.single-property .content-area,
body.post-type-archive-property.right-sidebar .content-area,
body.post-type-archive-property .content-area,
body.mawbeys-no-sidebar.right-sidebar .content-area,
body.mawbeys-no-sidebar .content-area {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  max-width: none !important;
}

body.mawbeys-front #secondary,
body.mawbeys-front .widget-area,
body.single-property #secondary,
body.single-property .widget-area,
body.post-type-archive-property #secondary,
body.post-type-archive-property .widget-area,
body.mawbeys-no-sidebar #secondary,
body.mawbeys-no-sidebar .widget-area {
  display: none !important;
}

body.mawbeys-front .site-content {
  padding: 0 !important;
}

body.mawbeys-front .site-content > .col-full {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* —— Hero —— */
.mawbeys-hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: flex-end;
  color: var(--mawbeys-paper);
  overflow: hidden;
  isolation: isolate;
}

.mawbeys-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--mawbeys-ink);
  background-image: var(--mawbeys-hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: mawbeys-hero-settle 1.4s ease-out forwards;
}

.mawbeys-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(19, 34, 56, 0.35) 0%,
    rgba(19, 34, 56, 0.55) 42%,
    rgba(19, 34, 56, 0.88) 100%
  );
}

.mawbeys-hero__inner {
  width: min(67.141em, calc(100% - 2.8rem));
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 8vh, 5rem);
  animation: mawbeys-rise 0.9s ease-out 0.15s both;
}

.mawbeys-hero__brand {
  font-family: var(--mawbeys-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.35em;
  color: var(--mawbeys-paper);
}

.mawbeys-hero__headline {
  font-family: var(--mawbeys-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 28rem;
  margin: 0 0 1.4rem;
  color: var(--mawbeys-muted);
}

.mawbeys-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Mobile: keep Search properties CTA in the first viewport (below header). */
@media (max-width: 767px) {
  .mawbeys-hero {
    min-height: calc(100svh - 6.75rem);
    min-height: calc(100dvh - 6.75rem);
  }

  .mawbeys-hero__inner {
    padding-bottom: 1.35rem;
  }

  .mawbeys-hero__brand {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
  }

  .mawbeys-hero__headline {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }
}

.mawbeys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  font-family: var(--mawbeys-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border: 0;
  border-radius: 2px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mawbeys-btn--primary {
  background: #ff6f61;
  color: #ffffff !important;
  box-shadow: none;
}

.mawbeys-btn--primary:hover {
  background: #e85a4c;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.mawbeys-btn--ghost {
  background: transparent;
  color: var(--mawbeys-paper) !important;
  box-shadow: inset 0 0 0 1.5px rgba(243, 239, 230, 0.55);
}

.mawbeys-btn--ghost:hover {
  background: rgba(243, 239, 230, 0.1);
  color: var(--mawbeys-paper) !important;
}

/* —— Featured —— */
.mawbeys-featured {
  background: var(--mawbeys-cream);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.mawbeys-featured__inner {
  width: min(67.141em, calc(100% - 2.8rem));
  margin: 0 auto;
}

.mawbeys-featured__title {
  font-family: var(--mawbeys-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--mawbeys-ink);
}

.mawbeys-featured__lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--mawbeys-ink-soft);
  opacity: 0.85;
}

.mawbeys-featured .properties,
.mawbeys-featured ul.properties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.mawbeys-featured ul.properties li.property {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: #fff;
  border: 0;
  box-shadow: none;
}

.mawbeys-featured ul.properties li.property .details {
  padding: 0.85rem 0.15rem 0;
}

.mawbeys-featured ul.properties li.property h3,
.mawbeys-featured ul.properties li.property .price {
  font-family: var(--mawbeys-body);
}

.mawbeys-featured ul.properties li.property a {
  color: var(--mawbeys-ink);
}

/* —— Closing —— */
.mawbeys-closing {
  background: var(--mawbeys-ink);
  color: var(--mawbeys-paper);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  text-align: center;
}

.mawbeys-closing__inner {
  width: min(40rem, calc(100% - 2.8rem));
  margin: 0 auto;
}

.mawbeys-closing p {
  font-family: var(--mawbeys-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  color: var(--mawbeys-muted);
}

/* —— Footer (match closing band / header ink) —— */
body .site-footer,
body.mawbeys-front .site-footer,
body.single-property .site-footer {
  background: #132238 !important;
  background-color: #132238 !important;
  color: rgba(243, 239, 230, 0.75) !important;
}

body .site-footer a:not(.button),
body.mawbeys-front .site-footer a:not(.button),
body.single-property .site-footer a:not(.button) {
  color: var(--mawbeys-paper) !important;
}

body .site-info,
body.mawbeys-front .site-info {
  border-top: 1px solid rgba(243, 239, 230, 0.12);
}

.mawbeys-office {
  width: min(67.141em, calc(100% - 2.8rem));
  margin: 0 auto 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.mawbeys-office strong {
  display: block;
  font-family: var(--mawbeys-display);
  font-size: 1.15rem;
  color: var(--mawbeys-paper);
  margin-bottom: 0.35rem;
}

/* —— Property Search form accents (match coral CTAs) —— */
body.post-type-archive-property .property-search-form .control-department input[type="radio"],
body.mawbeys-no-sidebar .property-search-form .control-department input[type="radio"] {
  accent-color: #ff6f61;
}

body.post-type-archive-property .property-search-form .control select,
body.post-type-archive-property .property-search-form .control input[type="text"],
body.post-type-archive-property .property-search-form .control input[type="email"],
body.post-type-archive-property .property-search-form .control input[type="number"],
body.post-type-archive-property .propertyhive-ordering select,
body.mawbeys-no-sidebar .property-search-form .control select,
body.mawbeys-no-sidebar .property-search-form .control input[type="text"],
body.mawbeys-no-sidebar .property-search-form .control input[type="email"],
body.mawbeys-no-sidebar .property-search-form .control input[type="number"],
body.mawbeys-no-sidebar .propertyhive-ordering select {
  border: 1px solid #ff6f61 !important;
  border-color: #ff6f61 !important;
  box-shadow: none;
}

body.post-type-archive-property .property-search-form .control select:focus,
body.post-type-archive-property .property-search-form .control input:focus,
body.mawbeys-no-sidebar .property-search-form .control select:focus,
body.mawbeys-no-sidebar .property-search-form .control input:focus {
  border-color: #e85a4c !important;
  outline: 2px solid rgba(255, 111, 97, 0.35);
  outline-offset: 1px;
}

/* Mobile: tighten space above Property Search title */
@media (max-width: 767px) {
  body.post-type-archive-property .site-content,
  body.post-type-archive-property #content.site-content,
  body.page-slug-property-search .site-content {
    padding-top: 0.75rem !important;
  }

  body.post-type-archive-property .site-main,
  body.post-type-archive-property #primary.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.post-type-archive-property h1.page-title {
    margin-top: 0.25rem !important;
    margin-bottom: 0.85rem;
    font-size: 1.55rem;
  }
}

@keyframes mawbeys-hero-settle {
  to {
    transform: scale(1);
  }
}

@keyframes mawbeys-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mawbeys-hero__media,
  .mawbeys-hero__inner {
    animation: none;
  }
}
