/* -------------------------------------------------------------
   DIBOS HOMES REALTY GROUP - DESIGN SYSTEM & BRAND STYLESHEET
   ------------------------------------------------------------- */

:root {
  --primary-color: #f4efe7;       /* Exact Beige from Eleanor James logo */
  --accent-color: #aa9355;        /* Muted Rich Gold */
  --accent-hover: #c4b077;        /* Light Gold on Hover */
  --bg-color: #ffffff;            /* Pure white background */
  --bg-cream: #faf8f5;           /* Off-white editorial background */
  --text-dark: #111111;          /* Editorial rich charcoal/black dark */
  --text-muted: #555555;         /* Muted gray body text */
  --border-light: #e5dfd5;        /* Thin editorial lines */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 1. Newsletter Pop-up Modal */
.newsletter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.6); /* Translucent dark overlay */
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.newsletter-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-modal-box {
  background-color: var(--primary-color); /* Beige color base from logo */
  width: 90%;
  max-width: 500px;
  padding: 40px;
  border: 1px solid var(--border-light);
  position: relative;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(40px);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.newsletter-modal-overlay.active .newsletter-modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--accent-color);
}

.modal-logo {
  max-width: 190px; /* Made the pop-up logo even bigger for clarity */
  margin: 0 auto 5px; /* Reduced bottom margin to bring title closer */
}

.modal-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-color); /* Match yellow/gold color from the logo */
  margin-bottom: 12px;
}

.modal-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: var(--transition-smooth);
}

.modal-input:focus {
  border-color: var(--accent-color);
}

.modal-submit-btn {
  background-color: var(--text-dark);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
}

.modal-submit-btn:hover {
  background-color: var(--accent-color);
}

/* 2. Main Navigation Header */
.main-header {
  background-color: transparent; /* Transparent header background */
  position: absolute; /* Place on top of hero section */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: none; /* Removed header border line */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.nav-help-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px; /* Made badge text bigger */
  letter-spacing: 0.15em;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding-right: 30px;
  color: var(--accent-color); /* Match yellow/gold color of the logo */
}

.nav-help-badge .arrow-icon {
  font-size: 16px; /* Made arrow icon bigger */
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.nav-help-badge:hover .arrow-icon {
  transform: translateX(4px);
}

/* Hide standard desktop menu bar to use permanent burger trigger */
.nav-menu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.96); /* Dark matching transparent overlay */
  border-bottom: none; /* Removed bottom border */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.nav-menu.active {
  max-height: 480px;
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 20px;
  padding: 30px 40px;
}

.nav-menu a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding: 4px 0;
}

.nav-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-transform: capitalize;
}

.nav-subtitle {
  font-size: 9px;
  color: #aaaaaa;
  font-style: italic;
  font-family: var(--font-serif);
  margin-top: 1px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover .nav-title {
  color: var(--accent-color);
}

/* Permanent Mobile Hamburger Menu Icon */
.mobile-nav-toggle {
  display: flex; /* Permanently display */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1100;
}

.mobile-nav-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--accent-color); /* Match yellow/gold color of the logo */
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* 3. Hero Section */
.hero-section {
  background-color: var(--bg-cream);
  border-bottom: none; /* Removed horizontal bottom border line */
  height: 100vh; /* Stretch to fill the entire screen height, from top to bottom */
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  height: 100%;
}

.hero-brand-card {
  background-color: rgba(244, 239, 231, 0.88); /* Exact matching beige color from Eleanor logo */
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  height: 100%;
}

.brand-card-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand-logo-container-large {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo-image {
  width: 100%;
  max-width: 310px;
  height: auto;
  object-fit: contain;
}

/* Obsolete text branding removed to prioritize image logo */

.hero-image-card {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.05);
}

.cta-overlay-container {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
}

/* Clean Large Welcome Section */
.welcome-banner-section {
  width: 100%;
  background-color: #ffffff; /* Match background of page section (#ffffff) */
  padding: 40px 0 0; /* Set bottom padding to 0 to make it as small as possible */
  margin-top: 0; /* Reset top margin overlap to push welcome below the 100vh screen fold */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.welcome-banner-content {
  width: 100%;
  max-width: 1400px;
  line-height: 1;
}

.welcome-banner-title {
  font-family: var(--font-serif);
  font-size: 150px; /* Even bigger text scale */
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--accent-color); /* Yellow/gold color like the logo */
  text-transform: uppercase;
  margin: 0;
  line-height: 1; /* Match normal height to prevent vertical cutting */
  padding: 0;
}

@media (max-width: 991px) {
  .welcome-banner-title {
    font-size: 110px;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 767px) {
  .welcome-banner-title {
    font-size: 72px;
    letter-spacing: 0.1em;
  }
}

.btn-cta-gold {
  display: inline-block;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 22px 42px;
  transition: var(--transition-smooth);
}

.btn-cta-gold:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  letter-spacing: 0.18em;
}

/* 4. Section 2: Intro */
.intro-section {
  padding: 100px 40px;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-light);
}

.intro-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.intro-left-col {
  padding-right: 40px;
}

.dropcap {
  font-family: var(--font-serif);
  font-size: 54px;
  float: left;
  line-height: 0.8;
  margin-top: 8px;
  margin-right: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.editorial-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 300;
  margin-bottom: 40px;
  text-align: justify;
}

.editorial-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-light);
  margin: 40px 0;
}

.editorial-lead-in {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.editorial-heading-huge {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.editorial-body-sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 400;
}

.intro-right-col {
  display: flex;
  flex-direction: column;
}

.interactive-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.interactive-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-outline-gold {
  flex: 1;
  text-align: center;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 16px 20px;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(170, 147, 85, 0.15);
}

.intro-image-container {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.intro-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 4s ease;
}

.intro-image-container:hover img {
  transform: scale(1.03);
}

/* 5. Section 3: Four Card Grid */
.grid-section {
  padding: 0;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.grid-card-wrapper {
  overflow: hidden;
  position: relative;
  border-right: 1px solid var(--border-light);
  aspect-ratio: 3/4;
}

.grid-card-wrapper:last-child {
  border-right: none;
}

.grid-card {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.card-border-frame {
  border: 1px solid rgba(17, 17, 17, 0.12);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.card-border-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  border: 1.5px solid var(--text-dark);
  opacity: 0.8;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.card-content {
  text-align: center;
  z-index: 3;
}

.card-sub-label, .card-bottom-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-bottom-label {
  margin-top: 8px;
  margin-bottom: 0;
}

.card-main-label {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  line-height: 1;
}

.grid-card-wrapper:hover .grid-card {
  transform: scale(1.04);
}

.grid-card-wrapper:hover .card-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.grid-card-wrapper:hover .card-border-frame {
  border-color: var(--accent-color);
}

.grid-card-wrapper:hover .card-border-frame::before {
  border-color: var(--accent-color);
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
}

.grid-card-wrapper:hover .card-main-label {
  color: var(--primary-color);
}

/* 6. Section 4: "Here's How" Bottom Section */
.bottom-section {
  padding: 100px 40px;
  background-color: var(--bg-color);
}

.bottom-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.bottom-left-col {
  width: 100%;
  height: 480px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.bottom-left-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bottom-left-col:hover img {
  transform: scale(1.05);
}

.monochrome-image {
  filter: grayscale(100%) contrast(1.05); /* Apply pure black & white monochrome filter */
}

.bottom-right-col {
  padding-left: 20px;
}

.bottom-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.bottom-intro-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bottom-action-buttons {
  display: flex;
  gap: 15px;
}

.btn-solid-gold-small {
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 12px 24px;
  transition: var(--transition-smooth);
}

.btn-solid-gold-small:hover {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(13, 56, 65, 0.15);
}

.bottom-heading-huge {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-dark);
}

.bottom-body-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 400;
  text-align: justify;
}

/* 7. Footer Styles */
.site-footer {
  background-color: #111111; /* Deep charcoal/black footer */
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 40px 30px;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 2px;
}

.footer-brand p {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-subscribe h4 {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.subscribe-form {
  display: flex;
  width: 100%;
}

.subscribe-form input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 20px;
  color: #ffffff;
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

.subscribe-form input:focus {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.08);
}

.subscribe-form button {
  background-color: var(--accent-color);
  border: none;
  color: #ffffff;
  padding: 0 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.subscribe-form button:hover {
  background-color: var(--accent-hover);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* 8. Responsive Design & Media Queries */
@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 400px 1fr;
  }
  .intro-container, .bottom-container {
    gap: 40px;
  }
  .editorial-heading-huge, .bottom-heading-huge {
    font-size: 52px;
  }
}

@media (max-width: 991px) {
  :root {
    --header-height: 70px;
  }

  .nav-help-badge {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-menu {
    top: var(--header-height);
  }

  .nav-menu.active {
    max-height: 480px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-brand-card {
    padding: 80px 40px;
  }

  .brand-card-inner {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-image-card img {
    min-height: 400px;
  }

  .intro-container, .bottom-container {
    grid-template-columns: 1fr;
  }

  .intro-left-col {
    padding-right: 0;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-left-col {
    order: 2;
  }

  .bottom-right-col {
    order: 1;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .announcement-socials {
    display: none;
  }
  
  .announcement-bar {
    text-align: center;
    font-size: 10px;
  }

  .header-container {
    padding: 0 24px;
  }

  .intro-section, .bottom-section {
    padding: 60px 24px;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .editorial-heading-huge, .bottom-heading-huge {
    font-size: 42px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .subscribe-form {
    flex-direction: column;
    gap: 10px;
  }

  .subscribe-form button {
    padding: 14px 20px;
  }
}

.mobile-nav-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
