/*
 * GAM Capital Advisory Website Stylesheet
 *
 * This stylesheet defines the global look and feel of the GAM Capital Advisory
 * website. A rich navy and gold colour palette has been chosen to convey
 * professionalism and prestige. The layout uses modern CSS features such as
 * flexbox and CSS variables to ensure responsiveness and maintainability.
 */

/* Colour palette variables */
:root {
  --primary-color: #002D62;       /* deep navy representing stability */
  --secondary-color: #C0A97C;     /* warm gold symbolising prosperity */
  --background-color: #F7F8FA;    /* light grey for subtle backgrounds */
  --text-color: #333333;          /* dark grey for comfortable body text */
  --muted-text-color: #666666;    /* softer grey for secondary text */
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #fff;
}

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

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

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 0;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}

nav {
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 60vh;
  min-height: 380px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #ffffff;
  padding: 0 20px;
}

.hero .overlay h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero .overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 25px;
}

/* KPI counters */
.kpi-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.kpi {
  flex: 1 1 200px;
  text-align: center;
  margin-bottom: 20px;
}

.kpi h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.kpi p {
  color: var(--muted-text-color);
  font-size: 0.95rem;
}

/* Service cards */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 40px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: 1 1 calc(50% - 30px);
  padding: 20px;
  transition: transform 0.3s ease;
}

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

.service-card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.service-card p {
  color: var(--muted-text-color);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-top: 40px;
}

.testimonial-item {
  margin-bottom: 20px;
}

.testimonial-item:last-child {
  margin-bottom: 0;
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 8px;
}

.testimonial-item .author {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Team section */
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.team-member {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
  padding: 20px;
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-member h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-member span {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
}

/* CSR page */
.csr-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
}

.csr-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.csr-banner .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #ffffff;
  padding: 0 20px;
  text-align: center;
}

.csr-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.csr-program {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: 1 1 calc(33% - 30px);
  padding: 20px;
}

.csr-program h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.csr-program p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
}

/* News & blog list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.news-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
}

.news-item img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.news-item .content {
  padding: 20px;
}

.news-item h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.news-item p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
}

/* Introductory text on News & Insights page */
.news-intro {
  font-size: 1rem;
  color: var(--muted-text-color);
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Contact form */
.contact-info {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--muted-text-color);
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-color);
  background-color: #ffffff;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

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

.contact-form .form-group.full {
  flex: 1 1 100%;
}

.contact-form button {
  background-color: var(--secondary-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.contact-form button:hover {
  background-color: #b59670;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
}

footer .social-links {
  margin-top: 15px;
}

footer .social-links a {
  margin: 0 8px;
  color: var(--secondary-color);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .social-links a:hover {
  color: #fff;
}

/* Responsive queries */
@media (max-width: 768px) {
  .hero .overlay h1 {
    font-size: 2rem;
  }
  .hero .overlay p {
    font-size: 1rem;
  }
  .services {
    flex-direction: column;
  }
  .service-card {
    flex: 1 1 100%;
  }
  .csr-programs {
    flex-direction: column;
  }
  .csr-program {
    flex: 1 1 100%;
  }
  .team-container {
    flex-direction: column;
    align-items: center;
  }
  .team-member {
    max-width: 100%;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* Regulatory licenses section */
.license-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.license-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.licenses {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.license-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex: 1 1 calc(50% - 30px);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.license-card img {
  width: 150px;
  flex-shrink: 0;
  border-radius: 4px;
}

.license-card h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.license-card p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .license-card {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .license-card img {
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
  }
}

/* CSR contributions section */
.csr-contribution-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.csr-contribution-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.contributions {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.contribution-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex: 1 1 calc(50% - 30px);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contribution-card img {
  width: 150px;
  flex-shrink: 0;
  border-radius: 4px;
}

.contribution-card h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contribution-card p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .contribution-card {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contribution-card img {
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
  }
}

/* CSR events section */
.csr-events {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 40px;
}

.csr-event-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex: 1 1 calc(50% - 30px);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.csr-event-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}

.csr-event-card h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.csr-event-card p {
  font-size: 0.9rem;
  color: var(--muted-text-color);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .csr-event-card {
    flex: 1 1 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .csr-event-card img {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-bottom: 15px;
  }
}