/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* Hillmount House - Core Estate Layout System */
:root {
  --hm-slate: #2c3e50;
  --hm-gold: #b5986e;
  --hm-gold-dark: #9d8159;
  --hm-bg-warm: #fcfbfa;
  --hm-card-bg: #ffffff;
  --hm-border: #eae5df;
  --hm-text: #4a4a4a;
  --hm-text-light: #777777;
}

.hm-estate-page {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--hm-text);
  line-height: 1.7;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Typography */
.hm-estate-page h1,
.hm-estate-page h2,
.hm-estate-page h3,
.hm-estate-page h4 {
  font-family: Georgia, serif;
  color: var(--hm-slate);
  font-weight: normal;
  line-height: 1.3;
}

.hm-estate-page h1 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.hm-estate-page h2 {
  font-size: 1.85rem;
  margin: 45px 0 20px;
  position: relative;
  padding-bottom: 12px;
}

.hm-estate-page h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--hm-gold);
}

.hm-estate-page h3 {
  font-size: 1.3rem;
  margin: 25px 0 10px;
}

.hm-estate-page p {
  font-size: 1.02rem;
  margin-bottom: 22px;
}

/* Header & Intro */
.hm-hero-intro {
  margin-bottom: 40px;
}

.hm-eyebrow {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--hm-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.hm-lead-text {
  font-size: 1.18rem;
  line-height: 1.8;
  color: #333333;
}

/* Quick Specifications Grid */
.hm-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 35px 0 45px;
}

.hm-spec-card {
  background-color: var(--hm-card-bg);
  border: 1px solid var(--hm-border);
  border-radius: 4px;
  padding: 22px;
  border-top: 3px solid var(--hm-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.hm-spec-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hm-text-light);
  margin-bottom: 6px;
}

.hm-spec-value {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--hm-slate);
  font-weight: bold;
  margin-bottom: 4px;
}

.hm-spec-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--hm-text-light);
}

/* Content Feature Columns */
.hm-feature-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.hm-feature-card {
  background-color: var(--hm-bg-warm);
  border: 1px solid var(--hm-border);
  padding: 28px;
  border-radius: 4px;
}

.hm-feature-card ul {
  margin: 0;
  padding-left: 18px;
}

.hm-feature-card li {
  margin-bottom: 10px;
  font-size: 0.96rem;
}

/* Estate Navigation / Call to Action */
.hm-area-cta {
  background-color: var(--hm-card-bg);
  border: 1px solid var(--hm-border);
  padding: 35px;
  margin-top: 60px;
  border-radius: 4px;
  text-align: center;
}

.hm-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.hm-btn-primary {
  display: inline-block;
  background-color: var(--hm-gold);
  color: #ffffff !important;
  padding: 13px 28px;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background-color 0.2s ease;
}

.hm-btn-primary:hover {
  background-color: var(--hm-gold-dark);
}

.hm-btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: var(--hm-slate) !important;
  border: 1px solid var(--hm-slate);
  padding: 13px 28px;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.hm-btn-secondary:hover {
  background-color: var(--hm-slate);
  color: #ffffff !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hm-estate-page h1 {
    font-size: 2.1rem;
  }
  .hm-feature-columns {
    grid-template-columns: 1fr;
  }
  .hm-area-cta {
    padding: 25px 20px;
  }
}
/* Hillmount House - Image Frames & Gallery Grid Additions */
.hm-media-frame {
  margin: 0;
  background-color: #f7f5f2;
  border: 1px solid var(--hm-border);
  border-radius: 4px;
  overflow: hidden;
}

.hm-media-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hm-media-frame figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--hm-text-light);
  font-style: italic;
  background-color: #ffffff;
  border-top: 1px solid var(--hm-border);
}

.hm-featured-media {
  margin: 30px 0 45px;
}

.hm-featured-media .main-feature img {
  max-height: 520px;
}

.hm-dual-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 35px 0 40px;
}

.hm-dual-media img {
  height: 320px;
}

.hm-barn-gallery-section {
  margin: 60px 0 40px;
  padding-top: 40px;
  border-top: 1px solid var(--hm-border);
}

.hm-gallery-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 35px;
}

.hm-gallery-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.hm-barn-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hm-gallery-item {
  margin: 0;
  border: 1px solid var(--hm-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: #f7f5f2;
  aspect-ratio: 4 / 3;
}

.hm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hm-gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 820px) {
  .hm-dual-media {
    grid-template-columns: 1fr;
  }
  .hm-barn-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .hm-barn-gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* Hillmount House - Image Lightbox */
.hm-gallery-item,
.hm-media-frame {
  cursor: pointer;
}

.hm-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 32, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hm-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.hm-lightbox-inner {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hm-lightbox-inner img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.hm-lightbox-btn {
  background: rgba(44, 62, 80, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.hm-lightbox-btn:hover {
  background: var(--hm-gold);
  color: #ffffff;
}

.hm-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: none;
  padding: 6px 12px;
}

.hm-lightbox-prev,
.hm-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
}

.hm-lightbox-prev {
  left: 20px;
}

.hm-lightbox-next {
  right: 20px;
}

@media (max-width: 650px) {
  .hm-lightbox-prev,
  .hm-lightbox-next {
    padding: 8px 12px;
    font-size: 1.2rem;
  }
  .hm-lightbox-prev {
    left: 10px;
  }
  .hm-lightbox-next {
    right: 10px;
  }
}