/*
 * Preston Capital Group Website Styles
 *
 * This stylesheet defines the layout and appearance of the Preston Capital
 * Group website. The design draws inspiration from leading hedge fund and
 * real‑estate investment firms, which emphasise clean layouts, plenty of white
 * space, high‑quality imagery and subtle animation effects【258034034267531†L78-L85】.  
 * Variables are used throughout to centralise the colour palette and make the
 * theme easy to adjust. Media queries ensure the site adapts nicely on
 * mobile devices, giving the pages a “web app” feel.
 */

:root {
  --color-primary: #b48a3c; /* gold tone inspired by the Preston Capital logo */
  --color-secondary: #003d73; /* dark blue drawn from the Digital Alpha brand */
  --color-light: #f9f9f9; /* light background for contrast */
  --color-dark: #091a29; /* very dark blue for footers and headers */
  --color-accent: #0e73b4; /* accent blue used sparingly */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* General resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 0.6rem;
  color: var(--color-dark);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(9, 26, 41, 0.95);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.navbar .logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

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

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

.navbar a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hero sections */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero .hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero .hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #eaeaea;
}

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--color-accent);
}

/* Sections */
section {
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

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

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.two-columns .col {
  flex: 1;
  min-width: 280px;
}

.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--color-dark);
}

.card-body p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1rem;
}

.feature-item i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #666;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: #b0c4d9;
  padding: 2rem 1.5rem;
}

footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

footer .footer-column {
  flex: 1;
  min-width: 220px;
}

footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 0.5rem;
}

footer a {
  color: #b0c4d9;
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--color-primary);
}

footer .social {
  display: flex;
  gap: 1rem;
}

footer .social a {
  color: #b0c4d9;
  font-size: 1.2rem;
}

footer .social a:hover {
  color: var(--color-primary);
}

/* Responsive styles */
@media (max-width: 768px) {
  .navbar ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: 1rem;
    display: none;
  }
  .navbar ul.active {
    display: flex;
  }
  .navbar li {
    margin: 0.75rem 0;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    height: 60vh;
  }
  .hero .hero-content h1 {
    font-size: 2rem;
  }
}