@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Mulish:wght@300;400;600&family=Raleway:wght@300;400;600&display=swap');
@import 'variables.css';

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

body {
  font-family: var(--font-body);
  color: var(--color-dark-grey);
  background-color: var(--color-light-grey);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-green);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

ul {
  padding-left: 0;
}

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

a:hover {
  color: var(--color-gold);
}

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

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section {
  padding: var(--space-lg) 0;
}

.section:first-of-type {
  padding-top: var(--space-xl);
}

/* Components */
.uk-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: var(--color-gold);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  transition: var(--transition);
}

.uk-button,
.btn-pill {
  border-radius: 50px;
  padding: 15px 32px;
}

.uk-button,
.btn:hover {
  background-color: var(--color-gold-hover);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(201, 161, 74, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* Header */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all 0.3s ease;
}

.template-home .site-header.at-top {
  background-color: transparent;
  box-shadow: none;
}

.template-home .site-header.at-top .site-logo,
.template-home .site-header.at-top .site-nav a {
  color: var(--color-white);
}

.template-home .site-header.at-top .btn {
  background-color: transparent;
  border: 1px solid var(--color-white);
  color: var(--color-white);
}

.template-home .site-header.at-top .btn:hover {
  background-color: var(--color-white);
  color: var(--color-white);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 400px;
  width: 100%;
  margin: 1rem;
  height: auto;
}

.site-logo {
  color: var(--color-green);
  max-width: 300px;
  width: 100%;
  flex: 0 0 auto;
}

.site-logo svg {}

.footer-logo {
  max-width: 300px;
  width: 100%;
  margin-bottom: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.image-with-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.image-with-column .content-col {
  flex: 1 1 300px;
  padding: 2rem 0;
}

.image-with-column .image-col {
  flex: 1 1 400px;
}

.content-col.flip {
  order: 1;
}

.image-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
  max-height: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
}

.image-card img {
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heading-flex {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 0.5rem;
}

.heading-line {
  width: 40px;
  height: 1px;
  background-color: var(--color-gold);
}

.section-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-green);
  font-weight: 600;
  margin: 0;
}

.accent.large {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-green);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-paragraph {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-dark-grey);
  max-width: 550px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-right: var(--space-md);
  margin-bottom: 0;
}

.site-nav a {
  font-weight: 600;
  /* color: var(--color-green); */
}

.site-nav a:hover {
  color: var(--color-gold);
}

/* Footer */
.site-footer {
  background-color: var(--color-green);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.site-footer h3 {
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.site-footer p {
  color: var(--color-light-grey);
  margin-bottom: var(--space-sm);
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: var(--space-xs);
}

.site-footer a {
  color: var(--color-light-grey);
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-green);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 31, 59, 0.7);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto var(--space-md);
}

/* Hero redesign */
.hero-vp {
  min-height: 100vh;
  padding-top: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero-vp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 59, 0.4);
}

.hero-vp .container {
  position: relative;
  z-index: 2;
  margin-top: 5vh;
  width: 100%;
}

.hero-vp h1 {
  font-size: 5rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 900px;
  line-height: 1.1;
}

.hero-vp h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

/* Remove gold accent if matching Vistaprops directly, but can keep inherit */
.hero-vp p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-vp-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
  background-color: var(--color-white);
  padding: calc(var(--space-md) + 40px) 0 var(--space-md);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-vp+.trust-bar {
  margin-top: -40px;
}

.trust-icons {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.trust-item {
  display: grid;
  place-content: center;
  gap: 15px;
  font-weight: 600;
  color: var(--color-green);
  flex: 1;
  text-align: center;
  padding: 2rem 0;
  place-items: center;
  text-wrap-style: balance;
}

.trust-item * {
  grid-area: 1 / 1;
}

.trust-item i {
  font-size: 5rem;
  color: var(--color-gold);
  opacity: 0.3;
}

/* Card Grid Section (Phase 6) */
.card-grid-section {
  background-color: var(--color-vp-beige);
  padding: var(--space-xl) 0;
}

.card-grid-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.card-grid-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card-grid-bottom .vp-card {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-grid-bottom .vp-card.small h5 {
  font-size: 0.875rem;
}

.vp-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2.5rem 2.5rem;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vp-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06); */
}

.vp-card i {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  font-weight: 300;
}

.vp-card.large h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.vp-card.large p {
  color: var(--color-dark-grey);
  line-height: 1.6;
  margin: 0;
}

.vp-card.small {
  padding: 2rem 1.5rem;
}

.vp-card.small i {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.vp-card.small h5 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Content Blocks */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

/* Grid Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--color-light-grey);
}

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.card-meta {
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card-description {
  margin-bottom: var(--space-sm);
  flex-grow: 1;
}

/* Form Styles */
.form-container {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--color-green);
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #fafafa;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: var(--color-white);
  box-shadow: 0 0 0 2px rgba(201, 161, 74, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: var(--space-sm);
  margin-top: 5px;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* CTA Section */
.cta-section {
  background-color: var(--color-green);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-lg) 0;
}

.cta-section h2 {
  color: var(--color-white);
}

/* Deal Item Detail */
.deal-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.deal-metrics {
  background-color: #f0f4f8;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-row:last-child {
  border-bottom: none;
}

.deal-gallery img {
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.Inputfield {
  margin-bottom: 1rem;
}

.InputfieldRadiosStacked {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.alert-success {
  --bs-alert-color: var(--color-dark-grey);
  font-size: 1.2rem;
  --bs-alert-bg: transparent;
  --bs-alert-border-color: transparent;
  --bs-alert-border-width: 0;
}


/* Loader */
.loading-animation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-animation p {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-style: italic;
  letter-spacing: 2px;
}

.loading-animation.fade-out {
  opacity: 0;
  visibility: hidden;
}

.main-content {
  opacity: 0;
  transition: opacity 1s ease;
}

.main-content.fade-in {
  opacity: 1;
}

/* Animation Utility Classes */
.reveal-text.is-visible .line {
  opacity: 1;
  transform: translateY(0);
}

.reveal-text .line {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-text.is-visible .line:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-text.is-visible .line:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-text.is-visible .line:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-text.is-visible .line:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal-text.is-visible .line:nth-child(5) {
  transition-delay: 0.5s;
}

.parallax-img {
  transform: scale(1.1);
}

/* scale slightly and overflow hidden for parallax */

/* Responsive */
@media (max-width: 1024px) {
  .card-grid-bottom {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-nav ul {
    display: none;
  }

  .site-logo {
    max-width: 180px;
    flex: 0 1 auto;
  }

  .site-nav .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }


  .hero-vp h1,
  .hero h1 {
    font-size: 2rem;
  }

  .deal-detail {
    grid-template-columns: 1fr;
  }

  .card-grid-top {
    grid-template-columns: 1fr;
  }

  .card-grid-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    gap: 10px;
  }

  .site-logo {
    max-width: 140px;
  }

  .site-nav .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .card-grid-bottom {
    grid-template-columns: 1fr;
  }
}