/* Hedge and Risk Limited - Main Stylesheet */

/* CSS Variables for Brand Colors */
:root {
  --primary-text: #161617;
  --brand-primary: #1a4379;
  --accent-1: #4C0000;
  --accent-2: #E5E5ED;
  --light-bg: #f8f8f8;
  --white: #ffffff;
  --light-gray: #e9e9e9;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--primary-text);
  background-color: var(--white);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-1);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}


.col {
  flex: 1;
  padding: 0 0.5rem;
}

.col-2 {
  flex: 0 0 50%;
  padding: 0 2.5rem;
}

.col-3 {
  flex: 0 0 33.333%;
  padding: 0 0.5rem;
}

.col-4 {
  flex: 0 0 25%;
  padding: 0 0.5rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px var(--shadow-hover);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  height: 70px;
}

.logo img {
  height: 100%;
  width: auto;
}

.nav {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav li {
  margin-left: 2rem;
}

.nav a {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-text);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.6rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: 1.5rem;
  }


.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-1);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary-text);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--accent-1);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent-1);
  border: 2px solid var(--accent-1);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--white);
  border: 2px solid var(--brand-primary);
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 3rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--brand-primary);
}

.card-text {
  color: var(--primary-text);
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  height: 60vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  margin-top: 75px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 67, 121, 0.8), rgba(158, 154, 203, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--brand-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--primary-text);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Page Banner */
.page-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  margin-top: 75px;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 67, 121, 0.7);
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Service Cards Styles */
.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-hover);
  }
  
  .service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }
  
  .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .service-card:hover .service-image img {
    transform: scale(1.05);
  }
  
  .service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  .service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  .service-content .btn {
    margin-top: auto;
    align-self: flex-start;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .service-image {
      height: 150px;
    }
    
    .service-content {
      padding: 1rem;
    }
    
    .service-title {
      font-size: 1.2rem;
    }
    
    .service-description {
      font-size: 0.9rem;
    }
  }

/* Footer */
.footer {
  background: var(--primary-text);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h4 {
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--light-gray);
}

.footer a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: var(--light-gray);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-text);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
  }
  
  /* Leadership Profile Styles */
  .leadership-profile {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
  }
  
  .leadership-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
  }
  
  .leadership-profile.reverse {
    flex-direction: row-reverse;
  }
  
  .profile-image {
    flex: 0 0 200px;
    margin-right: 2rem;
  }
  
  .leadership-profile.reverse .profile-image {
    margin-right: 0;
    margin-left: 2rem;
  }
  
  .profile-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow);
  }
  
  .profile-content {
    flex: 1;
  }
  
  .profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
  }
  
  .profile-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 1rem;
    font-style: italic;
  }
  
  .profile-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-text);
  }

  /* New selector for styling */
.vision-mission-card {
    background-color: #f7f7f7; /* light gray */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
  }
  
  .vision-mission-card h3 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    position: relative;
  }
  
  .vision-mission-card h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #81C34D, #FFF212);
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
  }
  
  .vision-mission-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
  }
  
  /* Optional fade-in can stay separate */
  .fade-in {
    animation: fadeIn 1.2s ease-in-out;
  }

  /* Contact Section Styles */
.contact-details {
    padding: 2rem 0;
  }
  
  .contact-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s ease;
  }
  
  .contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
  }
  
  .contact-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
  }
  
  .contact-info {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-text);
    margin: 0;
    padding-bottom: 1.5rem;
  }
  
  .contact-info a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .contact-info a:hover {
    color: var(--accent-1);
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .contact-details {
      padding: 1rem 0;
    }
    
    .contact-item {
      margin-bottom: 1.5rem;
      padding: 1rem;
    }
  }

  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  
 /* Responsive adjustments for leadership profiles */
@media (max-width: 768px) {
    .leadership-profile,
    .leadership-profile.reverse {
      flex-direction: column;
      text-align: left;
    }
    
    .profile-image,
    .leadership-profile.reverse .profile-image {
      flex: none;
      margin: 0 auto 2rem;
      max-width: 3500px;
    }
    
    .profile-image img {
      width: 350px;
      height: 350px;
    }
    
    .profile-content {
      text-align: left;
    }
  }