/*
  4PF Capital Real Estate Styles
  A restrained palette of blues and gold conveys stability and trust.
*/

/* CSS reset / base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* Colour variables */
:root {
  --primary: #0b2545; /* deep navy */
  --secondary: #d4af37; /* slightly brighter gold for better contrast */
  --light-bg: #f5f5f5;
  --dark-bg: #071d3a;
  --text-color: #333;
  --white: #fff;
  --max-width: 1200px;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--dark-bg);
  padding: 0.75rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1.125rem;
}

.brand img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--dark-bg);
}

.btn-primary:hover {
  background-color: #b2892d;
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--dark-bg);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(7, 29, 58, 0.6), rgba(7, 29, 58, 0.8));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.light-section {
  background-color: var(--light-bg);
  color: var(--text-color);
}

.dark-section {
  background-color: var(--dark-bg);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: inherit;
  opacity: 0.8;
}

/* About */
/* Style individual paragraphs in the about section */
.about-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  /* Justify the paragraph text for clean alignment */
  text-align: justify;
  /* Improve readability with extra line height */
  line-height: 1.6;
}

/* Enhance about text appearance */
/* Container for the about text */
.about-content {
  /* Center the text container on the page */
  max-width: 800px;
  margin: 0 auto;
  /* Provide a light background to make the text stand out */
  background-color: #ffffff;
  padding: 2rem;
  /* Accent border to highlight the section */
  border-left: 6px solid var(--secondary);
  border-radius: 4px;
  /* Subtle shadow to lift the container off the page */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Cards grid for advantages */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  /* Slightly lighter background for better contrast on dark sections */
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--secondary);
}

.card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Homes section */
.homes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.home-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.home-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.home-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.home-body p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.home-body ul {
  list-style: none;
  margin-bottom: 1rem;
}

.home-body ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.home-body ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  position: relative;
}

.step-index {
  width: 36px;
  height: 36px;
  background-color: var(--secondary);
  color: var(--dark-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.5rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--secondary);
}

.step p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Contact */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.contact-info ul {
  list-style: none;
  margin-top: 1rem;
}

.contact-info ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form {
  flex: 1 1 300px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(200, 155, 60, 0.3);
}

.contact-form button {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  color: var(--white);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-nav a {
  color: var(--white);
  margin-right: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  /* Show the mobile menu toggle and hide links by default */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
  }
  .menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--white);
  }
  nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--dark-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.5rem 0;
  }
  nav .nav-links.open {
    display: flex;
  }
  nav .nav-links li {
    width: 100%;
  }
  nav .nav-links li a {
    width: 100%;
    padding: 0.75rem 1rem;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar {
    padding: 0.5rem;
  }
  .brand span {
    font-size: 1rem;
  }
}

/* Mobile menu toggle default hidden on larger screens */
.menu-toggle {
  display: none;
}
