/**
 * CY Dwelling Theme — Compiled Stylesheet
 * Generated from assets/scss/main.scss
 * Bootstrap 5 is loaded separately via CDN (see inc/enqueue.php)
 *
 * To recompile: npm run scss  (requires: npm install)
 */

/* =========================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================= */
:root {
  --cy-navy:        #042055;
  --cy-blue:        #0057bb;
  --cy-gold:        #E8A020;
  --cy-gold-dark:   #dab175;
  --cy-sand:        #F5F0E8;
  --cy-light-grey:  #F8F9FA;
  --cy-text:        #333333;
  --cy-text-muted:  #6C757D;
  --cy-border:      #E2E8F0;
  --cy-navbar-h:    72px;
  --cy-section-py:  5rem;
  --bs-primary-rgb: 44, 110, 166;
  --bs-primary:     #2C6EA6;
  --bs-dark-rgb:    26, 46, 74;
}

/* =========================================================
   2. Base
   ========================================================= */
body {
  font-family: 'Geologica', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  color: var(--cy-text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  color: var(--cy-navy);
  line-height: 1.2;
}

a { color: var(--cy-blue); transition: color 0.2s ease; text-decoration: none; }
a:hover { color: #1e4d77; }

.letter-spacing { letter-spacing: 0.08em; }
.cy-section-tag { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--cy-blue); text-transform: uppercase; }
.py-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

.cy-page-wrapper { min-height: 60vh; }

.visually-hidden-focusable:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 9999;
  padding: .75rem 1.5rem; background: var(--cy-navy); color: #fff;
  border-radius: .375rem; font-weight: 600;
}

.text-primary { color: var(--cy-gold-dark) !important; }
.bg-primary-subtle { background-color: #dab17524 !important; }

/* Entry content */
.entry-content, .cy-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}
.entry-content h2, .entry-content h3, .entry-content h4,
.cy-content h2, .cy-content h3, .cy-content h4 { margin-top: 2rem; margin-bottom: 1rem; }
.entry-content p, .cy-content p { margin-bottom: 1.25rem; }
.entry-content img, .cy-content img { max-width: 100%; height: auto; border-radius: .5rem; }
.entry-content blockquote, .cy-content blockquote {
  border-left: 4px solid var(--cy-blue); padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--cy-light-grey); border-radius: 0 .5rem .5rem 0; font-style: italic; color: #555;
}
.entry-content a, .cy-content a {
  text-decoration: underline; text-decoration-color: rgba(44,110,166,.3); text-underline-offset: 3px;
}
.entry-content a:hover, .cy-content a:hover { text-decoration-color: var(--cy-blue); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .95rem; }
.entry-content table th, .entry-content table td { padding: .75rem 1rem; border: 1px solid var(--cy-border); }
.entry-content table th { background: var(--cy-light-grey); font-weight: 600; color: var(--cy-navy); }
.entry-content .alignleft  { float: left; margin: .5rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin: 1.5rem auto; }

/* =========================================================
   3. Top Bar
   ========================================================= */
.cy-topbar {
  background: var(--cy-navy);
  color: rgba(255,255,255,.75);
  font-size: .8125rem;
}
.cy-topbar a { color: rgba(255,255,255,.75); transition: color .2s; }
.cy-topbar a:hover { color: #fff; text-decoration: none; }

/* =========================================================
   4. Navbar
   ========================================================= */
.cy-navbar-wrapper {
  background: #fff;
  box-shadow: 0 2px 16px rgba(26,46,74,.08);
  z-index: 1030;
  transition: box-shadow .3s ease;
}
.cy-navbar-wrapper.cy-navbar--scrolled { box-shadow: 0 4px 24px rgba(26,46,74,.12); }

.navbar { padding-top: 0; padding-bottom: 0; min-height: var(--cy-navbar-h); }

.cy-logo { padding: .75rem 0; margin-right: 2rem; }
.cy-logo img { max-height: 52px; width: auto; }

.cy-text-logo { font-family: 'Geologica', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1; text-decoration: none; }
.cy-text-logo__primary  { color: var(--cy-navy); }
.cy-text-logo__secondary { color: var(--cy-blue); }
.cy-text-logo--light .cy-text-logo__primary,
.cy-text-logo--light .cy-text-logo__secondary { color: #fff; }

.navbar-nav .nav-link {
  font-family: 'Geologica', sans-serif; font-size: .9rem; font-weight: 500;
  color: var(--cy-navy); padding: .5rem .875rem !important;
  border-radius: .375rem; transition: color .2s ease, background-color .2s ease; white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus { color: var(--cy-blue); background: rgba(44,110,166,.06); }
.navbar-nav .nav-link.active { color: var(--cy-blue); font-weight: 600; }

.dropdown-menu {
  border: none; box-shadow: 0 8px 32px rgba(26,46,74,.12);
  border-radius: .75rem; min-width: 13rem;
  padding: .5rem; margin-top: .5rem !important;
  animation: cy-dropdown-enter .2s ease forwards;
}
@keyframes cy-dropdown-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item { font-size: .875rem; color: var(--cy-navy); padding: .5rem .875rem; border-radius: .5rem; transition: background-color .15s, color .15s; }
.dropdown-item:hover { background: rgba(44,110,166,.08); color: var(--cy-blue); }
.dropdown-item:active { background: var(--cy-blue); color: #fff; }

.cy-search-panel {
  background: #fff; border-top: 1px solid var(--cy-border);
  box-shadow: 0 8px 24px rgba(26,46,74,.08);
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}
.cy-search-panel.is-open { max-height: 120px; }

.navbar-toggler { border-color: rgba(26,46,74,.2); padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(44,110,166,.25); }

/* Breadcrumbs */
.cy-breadcrumb-bar { border-bottom: 1px solid var(--cy-border); }
.cy-breadcrumbs ol.breadcrumb { font-size: .8125rem; }
.cy-breadcrumbs .breadcrumb-item a { color: var(--cy-blue); text-decoration: none; }
.cy-breadcrumbs .breadcrumb-item a:hover { text-decoration: underline; }
.cy-breadcrumbs .breadcrumb-item.active { color: var(--cy-text-muted); }
.cy-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: none; }

/* =========================================================
   5. Hero
   ========================================================= */
.cy-hero {
  position: relative; min-height: 600px;
  background-color: var(--cy-navy); background-size: cover;
  background-position: center top; background-repeat: no-repeat;
  display: flex; align-items: center; overflow: hidden;
  background-size: cover !important;
}
.cy-hero--has-image { animation: cy-hero-zoom 12s ease-in-out infinite alternate; }
@keyframes cy-hero-zoom {
  from { background-size: 100%; }
  to   { background-size: 108%; }
}
.cy-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,46,74,.72) 0%, rgba(26,46,74,.45) 60%, rgba(44,110,166,.3) 100%);
  z-index: 1;
}
.cy-hero__content { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 6rem; }
.cy-hero__tag .badge { background: rgba(255,255,255,.15) !important; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .8125rem; backdrop-filter: blur(8px); }
.cy-hero__title { text-shadow: 0 2px 16px rgba(0,0,0,.3); font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -.02em; }
.cy-hero__subtitle { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .9; max-width: 600px; margin-left: auto; margin-right: auto; color: #fff;}
.cy-hero-search-form .input-group { border-radius: 50px; overflow: hidden; }
.cy-hero-search-form .input-group-text { padding-left: 1.25rem; background: #fff; border: none; }
.cy-hero-search-form .input-group input { font-size: 1rem; border: none; }
.cy-hero-search-form .input-group input:focus { box-shadow: none; }
.cy-hero-search-form .input-group .btn { border-radius: 0 50px 50px 0; padding-left: 1.75rem; padding-right: 1.75rem; }
.cy-hero__ctas .btn-lg { border-radius: 50px; font-size: 1rem; }
.cy-hero__ctas .btn-outline-light { border-width: 2px; }
.cy-hero__ctas .btn-outline-light:hover { background: rgba(255,255,255,.12); }
.cy-hero__scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.6); font-size: 1.5rem;
  animation: cy-bounce 2.5s ease-in-out infinite;
}
@keyframes cy-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.cy-badge-hero { background: rgba(232,160,32,.25); border: 1px solid rgba(232,160,32,.5); color: #fff; }

/* Location hero */
.cy-location-hero { min-height: 400px; display: flex; align-items: center; position: relative; }
.cy-location-hero__bg { position: absolute; inset: 0; }
.cy-location-hero__bg .cy-location-hero__img { width: 100%; height: 100%; object-fit: cover; }
.cy-location-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,46,74,.75) 0%, rgba(26,46,74,.45) 100%); }
.cy-location-hero h1 {color: #fff;}

/* =========================================================
   6. Cards
   ========================================================= */
.cy-card { border-radius: .75rem !important; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.cy-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,46,74,.15) !important; }
.cy-card__thumb { overflow: hidden; max-height: 220px; }
.cy-card__thumb img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.cy-card__thumb:hover img { transform: scale(1.05); }
.cy-card__title-link { color: var(--cy-navy); }
.cy-card__title-link:hover { color: var(--cy-blue); }

/* Category badge */
.cy-badge {
  background: rgba(44,110,166,.1) !important; color: var(--cy-blue) !important; width: fit-content;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 50px !important; padding: .3em .8em !important; transition: background-color .2s ease;
}
.cy-badge:hover { background: var(--cy-blue) !important; color: #fff !important; }

/* Category cards */
.cy-cat-card { border-radius: 1rem !important; background: #fff; transition: transform .3s ease, box-shadow .3s ease; text-decoration: none; }
.cy-cat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(26,46,74,.12) !important; }
.cy-cat-card__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(44,110,166,.08);
  display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem;
}
.cy-cat-card__icon i { font-size: 1.625rem; color: var(--cy-blue); transition: color .3s ease, transform .3s ease; }
.cy-cat-card:hover .cy-cat-card__icon i { color: var(--cy-gold) !important; transform: scale(1.15); }
.cy-cat-card__title { font-size: .875rem; color: var(--cy-navy); }
.cy-cat-card__desc  { font-size: .75rem; color: #888; line-height: 1.4; }

/* Location card */
.cy-location-card { border-radius: .875rem !important; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.cy-location-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(26,46,74,.15) !important; }
.cy-location-card__thumb { max-height: 200px; overflow: hidden; }
.cy-location-card__thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s ease; }
.cy-location-card__thumb:hover img { transform: scale(1.05); }
.cy-location-card__region { background: var(--cy-navy) !important; font-size: .75rem; }

/* Service card */
.cy-service-card { border-radius: .875rem !important; transition: transform .3s ease, box-shadow .3s ease; }
.cy-service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(26,46,74,.13) !important; }

/* Pagination */
.cy-pagination .page-link { color: var(--cy-navy); border-radius: .5rem !important; margin: 0 2px; border-color: var(--cy-border); transition: all .2s ease; }
.cy-pagination .page-link:hover { background: var(--cy-blue); color: #fff; border-color: var(--cy-blue); }
.cy-pagination .page-item.active .page-link { background: var(--cy-blue); border-color: var(--cy-blue); }

/* 404 */
.cy-404__number { font-size: clamp(6rem, 15vw, 12rem); font-weight: 900; color: rgba(44,110,166,.12); line-height: 1; letter-spacing: -.05em; }

/* Social share */
.cy-social-share .btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

/* =========================================================
   7. Sections
   ========================================================= */
.cy-section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cy-latest-articles { background: var(--cy-light-grey); }
.cy-featured-categories,
.cy-popular-locations { background: #fff; }

/* Newsletter */
.cy-newsletter {
  background: linear-gradient(135deg, var(--cy-navy) 0%, #1d4070 50%, var(--cy-blue) 100%);
  position: relative; overflow: hidden;
}
.cy-newsletter::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px; background: rgba(232,160,32,.08); border-radius: 50%;
}
.cy-newsletter::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 300px; height: 300px; background: rgba(44,110,166,.15); border-radius: 50%;
}
.cy-newsletter__inner { position: relative; z-index: 1; }
.cy-newsletter__form-wrap { border-radius: 1.25rem; }
.cy-newsletter__form-wrap .form-control { border-radius: .5rem; }
.cy-newsletter__form-wrap .form-control:focus { border-color: var(--cy-blue); box-shadow: 0 0 0 3px rgba(44,110,166,.18); }
.cy-footer-newsletter .bi.bi-send {position: relative; top: 2px;}

/* Single post */
.cy-single__hero-image { max-height: 520px; overflow: hidden; }
.cy-single__hero-img   { width: 100%; max-height: 520px; object-fit: cover; }
.cy-single__title      { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -.02em; }
.cy-post-meta          { font-size: .8125rem; color: var(--cy-text-muted); }
.cy-author-bio         { border-radius: 1rem !important; }

/* Sidebar */
.cy-sidebar .widget { margin-bottom: 1.75rem; }
.cy-sidebar .widget-title {
  font-size: 1rem; font-weight: 700; color: var(--cy-navy);
  border-bottom: 2px solid var(--cy-blue) !important;
  padding-bottom: .625rem !important; margin-bottom: 1rem !important;
}
.cy-sidebar .tagcloud a {
  display: inline-block; padding: .25rem .65rem; margin: .2rem;
  border-radius: 50px; border: 1px solid var(--cy-border);
  font-size: .8rem !important; color: var(--cy-navy); transition: all .2s ease;
}
.cy-sidebar .tagcloud a:hover { background: var(--cy-blue); color: #fff; border-color: var(--cy-blue); }

/* Filter pills */
.cy-region-filter .btn-outline-secondary,
.cy-service-filter .btn-outline-secondary {
  border-color: var(--cy-border); color: var(--cy-navy); background: #fff;
}
.cy-region-filter .btn-outline-secondary:hover,
.cy-service-filter .btn-outline-secondary:hover { background: var(--cy-blue); border-color: var(--cy-blue); color: #fff; }

/* Social icons */
.cy-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%;
  color: rgba(255,255,255,.7); font-size: 1rem; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.cy-social-icon:hover { background: var(--cy-gold); color: #fff; transform: translateY(-2px); }

/* Search link */
.cy-search-header { background: var(--cy-light-grey); }

/* =========================================================
   8. Footer
   ========================================================= */
.cy-footer { background: var(--cy-navy); color: rgba(255,255,255,.8); font-size: .9rem; }
/*.cy-footer__widgets { border-bottom: 1px solid rgba(255,255,255,.08); }*/
.cy-footer__brand .cy-footer-logo img { max-height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.cy-footer .widget-title { color: #fff !important; font-size: .9375rem; font-weight: 600; border-bottom-color: rgba(232,160,32,.5) !important; }
.cy-footer-link,
.cy-footer a.cy-footer-link { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s ease; }
.cy-footer-link:hover { color: var(--cy-gold); text-decoration: none; }
.cy-footer ul li { margin-bottom: .5rem; }
.cy-footer__bottom { background: rgba(0,0,0,.2); font-size: .8125rem; }
.cy-footer-nav { list-style: none; padding: 0; margin: 0; }
.cy-footer-nav li { display: inline-block; margin-left: 1.25rem; }
.cy-footer-nav li:first-child { margin-left: 0; }
.cy-footer-nav li a { color: rgba(255,255,255,.6); font-size: .8125rem; text-decoration: none; transition: color .2s ease; }
.cy-footer-nav li a:hover { color: var(--cy-gold); }
.cy-footer .widget a { color: rgba(255,255,255,.65); }
.cy-footer .widget a:hover { color: var(--cy-gold); }

/* =========================================================
   9. Bootstrap Overrides
   ========================================================= */
.btn-primary   { background-color: var(--cy-blue);  border-color: var(--cy-blue); }
.btn-primary:hover { background-color: #215888; border-color: #215888; }
.btn-primary:focus-visible { box-shadow: 0 0 0 .25rem rgba(44,110,166,.4); }

.btn-outline-primary { color: var(--cy-blue); border-color: var(--cy-blue); }
.btn-outline-primary:hover { background-color: var(--cy-blue); border-color: var(--cy-blue); color: #fff; }

/* Search form */
.cy-search-form { width: 100%; max-width: 560px; }
.cy-search-form .form-control { border-radius: .5rem 0 0 .5rem; }
.cy-search-form .btn { border-radius: 0 .5rem .5rem 0; }

/* =========================================================
   10. Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .cy-hero { min-height: 480px; }
  .cy-hero__content { padding-top: 4rem; padding-bottom: 4rem; }
  .cy-newsletter__form-wrap { border-radius: .875rem; }
  .cy-footer__widgets .container-xl { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (max-width: 575.98px) {
  .cy-hero { min-height: 400px; }
  .cy-hero__ctas .btn-lg { font-size: .9rem; padding: .65rem 1.25rem; }
  .cy-hero.cy-hero--has-image {background-size: cover !important;}
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-item {
  flex: 1 0 30%; 
  max-width: 33.333%;
}

.gallery-icon img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .5rem; 
}

.acf-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: .5rem;
  display: block;
}