@import "variables.css";

/* === Header/Nav === */
/* === Header/Nav === */
/* === Header/Nav === */
header {
  background: #fff;
  padding: 1rem 1rem;             /* padding on top/bottom and left/right */
}

nav {
  display: flex;                  /* Keeps logo and nav bar in same line */
  justify-content: space-between; /* Logo left, links right */
  align-items: center;            /* Centers items vertically */
}

nav .logo img {
  height: 75px;                   /* Scales down nav logo */
}

nav .nav-links {
  list-style: none;               /* Remove default bullets */
  display: flex;                  /* Horizontal layout */
  gap: 2rem;                      /* Space between links */
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;      
  letter-spacing: 0.05em;         /* Adds spacing between letters */
  margin-left: auto; 
  margin-right: 2rem;             /* space from right side of screen */
}

nav .nav-links li a {
  font-weight: 600;         /* thickness of navbar letters */
  color: #3C3C3C;         /* color of navbar letters */
  text-decoration: none;    /* gets rid of default link underline */
  position: relative;       /* Needed for underline effect */
  transition: color 0.3s ease, transform 0.2s ease;   /* smooth transition for the letters */
}

nav .nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: var(--highlight-color); /* underline color */
  transition: width 0.3s ease; /* smooth transition for the underline */
}

nav .nav-links li a:hover {
  color: var(--secondary-text);         /* text color on hover */
}

nav .nav-links li a:hover::after {
  width: 100%;            /* Underline expands to full width on hover */
}

/* === Footer === */
/* === Footer === */
/* === Footer === */
.site-footer {
  background-color: var(--footer);
  color: #eee;
  padding: 2rem 2rem;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;            /* space between logo and text */
  flex: 1 1 250px;
}

.footer-logo {
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 8px;     /* soft corners */
}

.footer-brand h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #ceb888; /* subtle gold accent */
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact a {
  color: #ceb888;
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #bbb;
}

/***********************************************/

.hero-search {
  position: relative;
  background: url('../images/stock.jpg') center/cover no-repeat;
  height: 80vh; /* Large hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-search::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* dark overlay for text readability */
  z-index: 1;
}

.hero-search .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
}

.hero-search h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-search p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Search Form */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.search-form input {
  width: 100%;
  max-width: 600px; /* wider for visual balance */
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: #3C3C3C;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form button {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: none;
  background-color: #A67451; /* Boutique brown */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form button:hover {
  background-color: #DCC6A0; /* Beige hover */
  color: #A67451;
}

/* === Featured Listings Carousel === */
/* === Featured Listings (2-row Carousel) === */
.featured-listings {
  background-color: #f9f9f9;
  padding: 5rem 2rem;
  text-align: center;
}
.featured-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.featured-listings h2 {
  font-size: 2rem;
  color: #782F40;
  margin-bottom: 2rem;
}

/* Window + Track */
.fl-carousel {
  position: relative;
  margin: 0 auto;
}
.fl-window {
  overflow: hidden;
  width: 100%;
}
.fl-track {
  display: flex;          /* we move by one column width */
  gap: 1.5rem;            /* gutter between columns */
  transition: transform 0.5s ease;
  will-change: transform;
}

/* Column = stack of 2 cards */
.fl-col {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3); /* 3 columns visible, account for 2 gaps */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards */
.listing-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.listing-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.listing-info {
  padding: 1.1rem 1.2rem;
}
.listing-info h3 {
  font-size: 1.05rem;
  color: #222;
  margin-bottom: 0.35rem;
}
.listing-info p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.4rem;
}
.price {
  font-weight: 600;
  color: #782F40;
}

/* Nav Buttons */
.fl-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(120,47,64,0.9);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease;
}
.fl-btn:hover { background: rgba(120,47,64,1); }
.fl-prev { left: -1.5rem; }
.fl-next { right: -1.5rem; }

/* CTA */
.featured-cta { margin-top: 2rem; }
.featured-cta .cta-btn {
  background-color: #782F40; color: #fff; text-decoration: none;
  padding: 0.9rem 2rem; border-radius: 6px; font-weight: 600; transition: background 0.3s ease;
}
.featured-cta .cta-btn:hover { background-color: #5f2432; }

/* Responsive */
@media (max-width: 1100px) {
  .fl-col { flex: 0 0 calc((100% - 1.5rem) / 2); } /* 2 columns visible */
}
@media (max-width: 720px) {
  .fl-col { flex: 0 0 100%; } /* 1 column visible */
  .fl-prev { left: 0.25rem; } .fl-next { right: 0.25rem; }
  .listing-card img { height: 160px; }
}


/***********************************************/

/* ======================
   Testimonials Section
====================== */
/* === Testimonials Section === */
/* === Testimonials Section (Carousel) === */
/* === Testimonials Section (One-at-a-time Carousel) === */
.testimonials-section {
  position: relative;
  background: url("../images/testimonials-bg.jpg") center/cover fixed no-repeat;
  color: #fff;
  padding: 6rem 0;
  overflow: hidden;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.testimonials-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.testimonials-inner h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: #fff;
}

/* --- Carousel Layout --- */
.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The magic: grid stacking keeps natural height, so no fixed heights needed */
.testimonial-track {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  position: relative;
}

/* Each card sits on the same grid cell, we fade/slide the active one in */
.testimonial-card {
  grid-area: 1 / 1;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

  /* start hidden */
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none; /* prevent focus/click on hidden ones */
}

/* visible card */
.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.quote {
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  color: #f8f8f8;
  margin-bottom: 1.25rem;
}

.author {
  font-weight: 600;
  color: #CEB888;
  text-align: center;
}

/* --- Nav Buttons --- */
.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.55rem 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 200ms ease, transform 150ms ease;
}

.testimonial-btn:hover {
  background: rgba(255, 255, 255, 0.38);
}

.testimonial-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.testimonial-btn.prev {
  left: -5.00rem;   /* keep inside container on desktop */
}

.testimonial-btn.next {
  right: -5.00rem;
}

/* --- Responsive Tweaks --- */
@media (max-width: 920px) {
  .testimonials-inner {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .testimonials-inner h2 {
    font-size: 1.7rem;
  }

  .testimonial-card {
    padding: 1.75rem 1.4rem;
  }

  .testimonial-btn.prev {
    left: 0.5rem;
  }

  .testimonial-btn.next {
    right: 0.5rem;
  }
}

@media (max-width: 420px) {
  .quote {
    font-size: 1rem;
  }
}


/***********************************/
/* Contact Page */
.contact-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-page h1 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-container form {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-page label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #555;
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: border-color 0.3s ease;
}

.contact-page input:focus,
.contact-page textarea:focus {
  border-color: #782F40; /* accent color */
  outline: none;
}

.contact-page button {
  background-color: #782F40;
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem; /* merged with previous duplicate */
}

.contact-page button:hover {
  background-color: #CEB888;
  color: #333;
}

.contact-info {
  flex: 1 1 400px;
  background-color: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
}

.contact-info h2 {
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.contact-info p {
  margin: 0.5rem 0;
}

.success-message {
  text-align: center;
  padding: 1rem;
  background-color: #DFF2BF;
  color: #4F8A10;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* reCAPTCHA Styles */
.contact-page .g-recaptcha {
  margin: 1rem 0;
  transform: scale(0.95);
  transform-origin: top left;
}

/* === What Makes Us Unique Section === */
.unique-section {
  background: #f8f8f8;
  padding: 4rem 2rem;
  text-align: center;
}

.unique-container {
  max-width: 1000px;
  margin: 0 auto;
}

.unique-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2rem;
  border-bottom: 3px solid #782F40; /* Garnet accent */
  display: inline-block;
  padding-bottom: 0.5rem;
}

.unique-content p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  text-align: left;
}

.unique-content p:last-child {
  margin-bottom: 0;
}



/********************************************/
/* === About Page === */
.about-hero {
  background: url("../images/hero-office.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  color: #f8f8f8;
  line-height: 1.6;
}

.about-team {
  background: #fff;
  padding: 5rem 2rem;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Team Card Layout */
.team-card {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  background: #f9f9f9;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Team Photo */
.team-photo img {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Team Info */
.team-info {
  flex: 1;
  text-align: left;
}

.team-info h2 {
  color: #222;
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.team-info p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* Contact details under team photo */
.team-contact {
  margin-top: 1.2rem;
  text-align: center;
}

.team-contact h3 {
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.team-contact .title {
  color: #782F40;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.team-contact .license {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.team-contact .phone {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.team-contact .email a {
  color: #782F40;
  font-size: 0.95rem;
  text-decoration: none;
}

.team-contact .email a:hover {
  text-decoration: underline;
}

/* Adjust layout for vertical photo block */
.team-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* === Global Section Layout === */
.full-section {
  width: 100%;
  padding: 5rem 2rem;
  position: relative;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
}

.inner.narrow {
  max-width: 900px;
}

/* === Buying Hero Section === */
.buying-hero {
  background: url("../images/buying-hero.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 8rem 2rem;
}

.buying-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

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

.buying-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.buying-hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #f8f8f8;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  background-color: #782F40;
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #5f2432;
}

/* === Buying Info Section === */
/* === Buying Page Hero (Isolated Styles) === */
.buying-hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90vh;
  color: #fff;
  background: url("../images/buying-hero-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}

.buying-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.buying-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  padding: 4rem 2rem;
  gap: 2rem;
}

.buying-hero-text {
  flex: 1 1 500px;
  max-width: 550px;
}

.buying-hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.buying-hero-text h1 span {
  color: #CEB888; /* gold accent */
}

.buying-hero-text h2 {
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #f1f1f1;
}

.buying-hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #eaeaea;
}

.buying-hero-btn {
  display: inline-block;
  background-color: #782F40;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid #782F40;
  transition: all 0.3s ease;
}

.buying-hero-btn:hover {
  background-color: transparent;
  border-color: #CEB888;
  color: #CEB888;
}

/* Right-side image */
.buying-hero-image {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
}

.buying-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 6px;
  background-color: #fafafa;
}

.service-card h3 {
  margin-bottom: 15px;
}