/* Custom styles for Yrrah Equity */

/* Color scheme based on logo: #0C1826 (dark blue) and white */
:root {
  --primary-dark: #0C1826;
  --primary-light: #ffffff;
  --accent-color: #2c4059;
  --text-light: #e8e8e8;
  --text-muted: #b0b0b0;
}

/* Typography - Professional fonts */
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Navigation */
#fh5co-header {
  background: var(--primary-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-default {
  background: var(--primary-dark) !important;
  border: none;
}

.navbar-brand img {
  /* Logo displays as-is without filter */
}

.navbar-default .navbar-nav > li > a {
  color: var(--primary-light) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li.active > a {
  color: var(--text-light) !important;
  background: transparent !important;
}

/* Hero Section */
#fh5co-home {
  background-color: var(--primary-dark) !important;
  background-blend-mode: multiply;
}

#fh5co-home .gradient {
  background: linear-gradient(135deg, rgba(12, 24, 38, 0.95) 0%, rgba(12, 24, 38, 0.8) 100%);
}

#fh5co-home h1 {
  color: var(--primary-light);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -1px;
}

#fh5co-home h1 .big {
  font-size: 80px;
  display: block;
  margin-bottom: 10px;
}

#fh5co-home h1 .medium {
  font-size: 60px;
  display: block;
  color: var(--text-light);
}

#fh5co-home h2 {
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 20px;
  margin-top: 30px;
}

/* Call to Action Buttons */
.call-to-action a {
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 12px 30px;
  margin: 10px;
}

.call-to-action a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Services Section */
#fh5co-services {
  background: #f8f9fa;
}

.box-services {
  background: var(--primary-light);
  box-shadow: 0 5px 20px rgba(12, 24, 38, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.box-services:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(12, 24, 38, 0.15);
}

.box-services .icon span i {
  color: var(--primary-dark);
  font-size: 50px;
}

.box-services h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
}

.box-services p {
  color: #666;
  font-size: 14px;
}

/* About Section */
#fh5co-about {
  padding: 4em 0;
}

#fh5co-about .row {
  display: flex;
  align-items: stretch;
}

#fh5co-about .about-content {
  padding-right: 30px;
}

#fh5co-about .about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* First paragraph - subtle lead */
#fh5co-about .about-content p:first-child {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* Second paragraph - the transformation story */
#fh5co-about .about-content p:nth-child(2) {
  padding-left: 20px;
  border-left: 3px solid var(--primary-dark);
}

/* Last paragraph - subtle call to action */
#fh5co-about .about-content p:last-child {
  font-style: italic;
  margin-top: 25px;
}

/* Strong emphasis for numbers and key facts */
#fh5co-about .about-content strong {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1em;
}

#fh5co-about .about-image {
  position: relative;
  height: 100%;
}

#fh5co-about .about-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(12, 24, 38, 0.15);
}

/* Section Headings */
.section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--primary-dark);
}

.subtext h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #666;
  font-size: 18px;
}

/* Links */
a {
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

a:hover, a:active, a:focus {
  color: var(--accent-color);
  text-decoration: none;
}

/* Footer */
#fh5co-footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding-bottom: 0;
}

#fh5co-footer h3 {
  color: var(--primary-light);
}

#fh5co-footer p {
  color: var(--text-muted);
}

/* Made by Sidcom credit */
.made-by-sidcom {
  color: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
}

.made-by-sidcom a {
  color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: color 0.3s ease;
}

.made-by-sidcom a:hover {
  color: rgba(255, 255, 255, 0.25);
}

/* Success Story Checkerboard Layout */
.success-story-content {
  padding: 0;
}

.success-row {
  align-items: center;
  margin-bottom: 40px;
}

.success-row:last-child {
  margin-bottom: 0;
}

.success-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(12, 24, 38, 0.15);
}

.success-content {
  padding: 10px 40px 40px 40px;
}

.success-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.3;
}

.success-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}

.success-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.success-metrics .metric {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.success-metrics .metric-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Portfolio Items - Override original styles */
.fh5co-portfolio {
  cursor: pointer;
  margin-bottom: 30px;
  width: 100%;
  float: none !important;
  min-width: 100%;
  max-width: 100%;
}

/* Portfolio links */
a.portfolio-link {
  text-decoration: none;
  display: block;
}

a.portfolio-link:hover {
  text-decoration: none;
}

/* Ensure portfolio entry shows background image */
.fh5co-portfolio .portfolio-entry {
  width: 100%;
  min-width: 100%;
  height: 250px;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(12, 24, 38, 0.1);
  box-sizing: border-box;
}

/* Hide text overlay on hover */
.fh5co-portfolio .portfolio-entry .desc {
  display: none !important;
  opacity: 0 !important;
}

/* Hover effect */
.fh5co-portfolio:hover .portfolio-entry {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(12, 24, 38, 0.15);
}

/* Portfolio text styling */
.fh5co-portfolio .portfolio-text {
  width: 100%;
  background: white;
  padding: 20px;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  float: none !important;
}

.fh5co-portfolio .portfolio-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.fh5co-portfolio .portfolio-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Grid alignment fixes */
.fh5co-project .container {
  max-width: 1200px;
}

.fh5co-project .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.fh5co-project .col-lg-3 {
  padding: 0 15px;
  margin-bottom: 30px;
  display: flex;
}

/* Center align 3 portfolio items */
.fh5co-project .row {
  justify-content: center;
}

.fh5co-project .fh5co-portfolio {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Make portfolio text area flexible to fill remaining space */
.fh5co-portfolio .portfolio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Ensure portfolio entries have equal height within rows */
.fh5co-project .row {
  align-items: stretch;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  /* Fix hero section height and positioning on mobile */
  #fh5co-home, #fh5co-home .text-wrap {
    height: 100vh !important;
    min-height: 600px !important;
  }
  
  /* Override table-cell behavior and use flexbox for better control */
  #fh5co-home .text-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  #fh5co-home .text-inner {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Fix logo positioning on mobile - reduce top margin */
  #fh5co-home .animate-box img {
    margin: 0px auto 20px !important;
    max-width: 500px !important;
    width: 90% !important;
  }
  
  /* Adjust hero text positioning */
  #fh5co-home h2 {
    margin-top: 10px !important;
  }
  
  #fh5co-home h1 .big {
    font-size: 50px;
  }
  
  #fh5co-home h1 .medium {
    font-size: 40px;
  }
  
  .navbar-brand img {
    height: 30px !important;
  }
  
  /* Reduce general section padding on mobile */
  section, #fh5co-about, #fh5co-explore, #fh5co-testimony {
    padding: 30px 0 !important;
  }
  
  /* Remove section heading padding on mobile */
  .section-heading {
    padding-bottom: 0px !important;
  }
  
  /* About Section Mobile Styling */
  #fh5co-about {
    padding-top: 20px !important;
  }
  
  #fh5co-about .row {
    display: flex;
    flex-direction: column-reverse;
  }
  
  #fh5co-about .about-content {
    padding-right: 0;
    padding-top: 30px;
  }
  
  #fh5co-about .about-image {
    margin-bottom: 30px;
    height: 300px;
    position: relative;
  }
  
  #fh5co-about .about-image img {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
    margin: 0;
    display: block;
  }
  
  /* Mobile portfolio layout - 1 item per row */
  .fh5co-project .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .fh5co-portfolio .portfolio-entry {
    height: 200px;
  }
  
  /* Mobile Success Story Layout - Force complete override */
  .success-row {
    flex-direction: column !important;
    display: flex !important;
    margin-bottom: 0 !important;
  }
  
  .success-row .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px !important;
    float: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Very explicit targeting - add debug info */
  /* Row with image-left (rows 1 & 3) - keep normal order */
  .success-row .success-image-left {
    order: 1 !important;
  }
  .success-row .success-text-right {
    order: 2 !important;
  }
  
  /* Row with text-left (rows 2 & 4) - reverse order manually */
  .success-row .success-text-left {
    order: 2 !important;
  }
  .success-row .success-image-right {
    order: 1 !important;
  }
  
  .success-image {
    height: 250px;
  }
  
  /* Reduce spacing between sections - smaller gap from text to next image */
  .success-row .col-md-6:last-child {
    margin-bottom: 15px !important;
  }
  
  /* But keep normal spacing between image and its text within same row */
  .success-row .col-md-6:first-child {
    margin-bottom: 20px !important;
  }
  
  .success-content {
    padding: 20px;
    text-align: center;
  }
  
  .success-content h3 {
    font-size: 24px;
  }
  
  .success-content p {
    font-size: 16px;
  }
  
  .success-metrics {
    align-items: center;
  }
  
  .success-metrics .metric {
    font-size: 36px;
  }
}