/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-color: #b8860b;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --gray: #666;
  --gray-light: #F8F8F8;
  --gray-dark: #333333;
  --gold: #D4AF37;
  --gold-light: #F4E5A1;
  --gold-dark: #B8941F;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --header-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

main {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold);
}

/* Breadcrumb Styles */
.breadcrumb-section {
  padding: 40px 20px 20px;
  border-top: 1px solid #ddd;
  margin: 0 10px;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--body-font);
  font-size: 1.1em;
  color: var(--gray-dark);
  line-height: 1.8;
  gap: 5px;
  letter-spacing: 0.5px;
}

.breadcrumb-link {
  text-decoration: none;
  color: var(--gray-dark);
  transition: color 0.3s;
}

.breadcrumb-link:hover {
  color: var(--gold);
}

.breadcrumb-divider {
  margin: 0 8px;
  color: #aaa;
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--black);
}

.breadcrumb-title-wrap {
  animation: fadeInUp 0.6s ease-out forwards;
}

.breadcrumb-title {
  font-family: var(--header-font);
  font-size: 4rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
  text-align: right;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Benefits Section */
.benefits {
  padding: 80px 20px;
  background-color: var(--black);
  text-align: center;
}

.benefits-title {
  font-family: var(--header-font);
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--gold);
  letter-spacing: 1px;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit {
  background-color: var(--gray-light);
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: left;
  max-width: 360px;
  transition: transform 0.3s ease;
}

.benefit:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.benefit-title {
  font-family: var(--header-font);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.benefit-description {
  font-family: var(--body-font);
  font-size: 1.1em;
  text-align: left;
  color: var(--gray-dark);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Featured Investments Section */
.featured-investments {
  padding: 80px 20px;
  background-color: var(--white);
  text-align: center;
}

.section-titles {
  font-family: var(--header-font);
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--gold);
  letter-spacing: 1px;
}

.investments-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.investment {
  background-color: var(--black);
  border-radius: 16px;
  padding: 40px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.investment-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.investment-link:hover .investment {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.investment-title {
  font-family: var(--header-font);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  min-height: 3em;
  line-height: 1.8;
  letter-spacing: 1px;
}

.investment-description {
  font-family: var(--body-font);
  font-size: 1.1em;
  color: var(--white);
  line-height: 1.8;
  min-height: 4em;
  letter-spacing: 0.5px;
}

.invest-icon {
  display: block;
  margin: 0 auto 15px;
  font-size: 36px;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Market Insights Section */
.market-insights {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.insight-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.insight-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.insight-image {
  /* Note: No background image defined in style.css or HTML */
  height: 200px;
  background-color: #e0e0e0; /* Placeholder background */
}

.insight-content {
  padding: 20px;
}

.insight-date {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.insight-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.insight-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  display: inline-block;
  font-size: 16px;
  color: #b8860b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #a37f13;
}

/* Viewing Form Section */
.viewing-form-section {
  background-color: var(--black); /* Dark background for luxury */
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

.form-container {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05); /* Subtle transparent backdrop */
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--gold-dark);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.form-header {
  text-align: center;
}

.form-header h2 {
  font-family: var(--header-font);
  font-size: 3rem;
  font-weight: 600;
  margin: 0;
  color: var(--gold);
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.viewing-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.two-columns .form-group {
  flex: 1 1 calc(50% - 20px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  font-family: var(--header-font);
  font-size: 1.2em;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1.8;
  letter-spacing: 0.8px;
}

.form-group input {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-family: var(--body-font);
  font-size: 1.1em;
  width: 100%;
  line-height: 1.8;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.1); /* Subtle transparent input background */
  color: var(--gold-light);
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group input::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

.submit-button {
  align-self: center;
  padding: 16px 48px;
  background: linear-gradient(135deg, #A1773D 0%, #F5E6A3 50%, #A1773D 100%);
  box-shadow: 0 8px 20px rgba(161, 119, 61, 0.4);
  color: var(--black);
  font-size: 1.2em;
  font-family: var(--header-font);
  font-weight: 600;
  border: 2px solid var(--main-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-5px);
  
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 50%, var(--gold-light) 100%);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(161, 119, 61, 0.4);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #A1773D 0%, #F5E6A3 50%, #A1773D 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(161, 119, 61, 0.4);
  border: 2px solid transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
  border-color: var(--white);
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top-icon {
  font-size: 1.5em;
  color: var(--black);
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
  color: var(--black);
}

/* Pulse animation for first appearance */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive adjustments */
@media screen and (min-width: 769px) {
  .breadcrumb-section {
    padding: 40px 32px 20px;
    margin: 0 20px;
  }
  
  .breadcrumb-wrapper {
    flex-wrap: nowrap;
    gap: 0;
  }
  
  .breadcrumb-links {
    font-size: 1.2em;
  }
  
  .breadcrumb-title {
    font-size: 4rem;
    text-align: right;
  }
}

@media (max-width: 768px) {
  .insight-title {
    font-size: 1.75rem;
  }
  .insight-cards {
    grid-template-columns: 1fr;
  }

  .insight-image {
    height: 150px;
  }

  .benefits-title,
  .section-titles,
  .form-header h2 {
    font-size: 2.25rem;
  }

  .benefit-title,
  .investment-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .insight-card {
    width: 100%;
    border-radius: 8px;
  }

  .insight-title {
    font-size: 1.5rem;
  }

  .insight-date,
  .insight-description,
  .read-more {
    font-size: 0.9em;
  }

  .insight-content {
    padding: 16px;
  }

  .insight-image {
    height: 200px;
  }
}