/*
 * Soxx Capital Website Styles
 *
 * This stylesheet defines the color palette and layout rules for a simple,
 * professional real‑estate investing website. It focuses on clarity,
 * responsiveness and user friendliness. Many of the design decisions draw
 * inspiration from research showing that a mobile‑friendly, visually
 * appealing site is critical to capturing leads【458494224255099†L54-L62】.
 */

/* Global variables make it easy to adjust colors consistently */
:root {
  --primary-color: #0a3761; /* deep blue conveys trust */
  --secondary-color: #1e8c68; /* green hints at growth and opportunity */
  --accent-color: #f5a623; /* warm accent used sparingly for calls to action */
  --light-bg-color: #f9f9f9; /* light gray for alternating section backgrounds */
  --text-color: #333333; /* dark gray for legibility */
}

/* Reset some default browser styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: white;
}

/* Navigation bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.25rem;
  font-weight: 600;
}

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar li {
  margin-left: 1.5rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: var(--accent-color);
}

/* Logo image styling */
.navbar .logo img {
  height: 40px;
}

/* Hero/header area */
header {
  position: relative;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 1rem 8rem;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* dark overlay for readability */
  z-index: 0;
}

header .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

header p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #e09e1b;
}

/* Section formatting */
section {
  padding: 4rem 1rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Benefits list */
.benefits ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefits li {
  background-color: var(--light-bg-color);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.benefits i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-right: 0.75rem;
  line-height: 1;
}

/* Process section */
.process .process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process .step {
  text-align: center;
  background-color: var(--light-bg-color);
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.process .step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.process .step-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* About section */
.about-home {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-home p {
  margin-bottom: 1rem;
}

.secondary-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.secondary-link:hover {
  text-decoration: underline;
}

/* Testimonials */
.testimonials {
  background-color: var(--light-bg-color);
}

.testimonial {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  padding: 1rem;
}

.testimonial strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--secondary-color);
}

/* Contact form */
.contact .form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--light-bg-color);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

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

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

.contact-info {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.contact-info a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

/* Subpage header */
.subpage-header {
  position: relative;
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.subpage-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.subpage-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.5rem;
  margin: 0;
}

/* Content sections on subpages */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.75rem;
  }
  header p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/*
 * Success and error messages displayed after form submission. When a user
 * submits the form, the form is replaced by a success or error message
 * generated via JavaScript. These classes ensure the messages are styled
 * consistently with the rest of the site.
 */
.success-message,
.error-message {
  font-size: 1.1rem;
  text-align: center;
  margin-top: 1.5rem;
}

.success-message {
  color: var(--primary-color);
}

.error-message {
  color: #e74c3c;
}