/* =================================================================== 
 *  Remedy Custom Stylesheet
 *  2023
 * ------------------------------------------------------------------- */

/* Color Variables */
:root {
  --primary-color: #4a90e2; /* Blue accent */
  --secondary-color: #4fd1c5; /* Teal.300 color */
  --dark-color: #2c3e50; /* Dark blue background */
  --text-color: #5d6d7e; /* Main text color */
  --light-color: #ecf0f1; /* Light background */
  --success-color: #2ecc71; /* Green for success messages */
  --warning-color: #f39c12; /* Orange for warnings */
  --error-color: #e74c3c; /* Red for errors */
}

/* Override base styles */
body {
  color: var(--text-color);
  background: linear-gradient(
    135deg,
    #e6fffa 0%,
    #4fd1c5 100%
  ); /* Teal gradient background */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

/* Header customization with full-width navbar */
#header {
  width: 100%;
  max-width: 100%;
  padding-left: 30px;
  padding-right: 30px;
}

.header-logo {
  z-index: 501;
  display: inline-block;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.header-logo img {
  max-height: 40px;
  width: auto;
}

#header-nav-wrap {
  width: 100%;
  /* display: flex; */
  justify-content: flex-end;
}

/* Button customization */
.button-primary {
  background-color: var(--secondary-color); /* Changed to teal */
  border-color: var(--secondary-color);
}

.button-primary:hover,
.button-primary:focus {
  background-color: #38b2ac; /* Darker teal */
  border-color: #38b2ac;
}

.button.stroke {
  border-color: var(--secondary-color);
  color: #ffffff;
}

.button.stroke:hover,
.button.stroke:focus {
  background-color: var(--secondary-color);
  color: #ffffff;
}

/* Home section customization with new gradient background */
#home {
  background: linear-gradient(135deg, #2c3e50 0%, #4fd1c5 100%);
  position: relative;
}

/* Optional: Add subtle pattern overlay */
#home:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.1) 1%,
      transparent 3%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 255, 255, 0.1) 1%,
      transparent 3%
    );
  background-size: 50px 50px;
  opacity: 0.4;
  z-index: 0;
}

#home .overlay {
  background: none; /* Remove the old overlay since we're using a gradient */
}

/* Features section customization */
#features {
  background: linear-gradient(
    135deg,
    #e6fffa 0%,
    #4fd1c5 100%
  ); /* Teal gradient */
  padding: 12rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-content {
  flex: 1;
  padding: 0 3rem;
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(79, 209, 197, 0.2); /* Teal shadow */
}

/* Alternate layout for even items */
.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Testimonials customization */
#testimonials {
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    #4fd1c5 100%
  ); /* Dark to teal gradient */
}

#testimonials .intro-header,
#testimonials p {
  color: white;
}

/* Update testimonial author layout - name below avatar */
.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  text-align: center;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  margin-bottom: 12px;
  margin-right: 0;
}

.testimonial-author .author-info {
  display: block;
  font-weight: 600;
  color: white;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

/* Download section customization */
#download {
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    #38b2ac 100%
  ); /* Dark to teal gradient like testimonials but reversed */
}

#download h1.intro-header {
  color: white;
}

#download h1.intro-header::before {
  background-color: var(--primary-color); /* Teal line under header */
}

#download p.lead {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer customization */
footer {
  background: linear-gradient(180deg, #2c3e50 0%, #1a202c 100%);
}

footer .footer-logo {
  color: var(--secondary-color);
}

footer a:hover,
footer a:focus {
  color: var(--secondary-color);
}

/* About section customization */
#about {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e6fffa 100%
  ); /* White to very light teal */
}

/* Additional accent elements */
.accent-text {
  color: var(--secondary-color);
}

.accent-border {
  border-color: var(--secondary-color);
}

.accent-bg {
  background-color: var(--secondary-color);
}

/* Responsive navbar adjustments */
@media only screen and (max-width: 1024px) {
  #header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-logo {
    left: 25px;
  }
}

@media only screen and (max-width: 768px) {
  .header-logo {
    left: 20px;
  }

  .header-logo img {
    max-height: 35px;
  }
}

/* Media Queries */
@media only screen and (max-width: 768px) {
  .feature-item,
  .feature-item:nth-child(even) {
    flex-direction: column;
  }

  .feature-content,
  .feature-image {
    padding: 0;
    margin-bottom: 2rem;
  }
}

/* Override landing image size constraints */
.home-content-left {
  position: relative;
  z-index: 5; /* Higher than the image */
}

.home-image-right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* position: relative; */
  z-index: 1; /* Lower than the content */
}

.home-image-right img {
  max-width: none !important;
  width: 550px !important; /* Force a larger width */
  height: auto !important;
  position: relative;
}

@media only screen and (max-width: 1200px) {
  .home-image-right img {
    width: 500px !important;
    right: 0;
  }
}

@media only screen and (max-width: 900px) {
  .home-image-right img {
    width: 450px !important;
  }
}

@media only screen and (max-width: 768px) {
  .home-image-right {
    justify-content: center;
    margin-top: 4.2rem;
  }

  .home-image-right img {
    width: 400px !important;
    right: 0;
  }
}

@media only screen and (max-width: 600px) {
  .home-image-right img {
    width: 90% !important;
  }
}

/* Update testimonial carousel dots to match teal theme */
#testimonial-slider .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
}

#testimonial-slider .owl-dots .owl-dot.active span {
  background: var(--primary-color) !important; /* Teal color for active dot */
  border: 2px solid var(--primary-color) !important;
}

#testimonial-slider .owl-dots .owl-dot:hover span {
  background: var(--primary-color) !important;
}

/* Make download badges pop against the dark background */
#download .download-badges a {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#download .download-badges a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* App store "Coming Soon" notification */
.app-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  text-align: center;
  font-weight: 500;
  max-width: 90%;
  white-space: nowrap;
}

@media only screen and (max-width: 768px) {
  .app-notification {
    white-space: normal;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Alternative hover approach for app store buttons */
.home-content .app-store-buttons a {
  display: inline-block;
  position: relative;
  z-index: 5;
}

.home-content .app-store-buttons a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.home-content .app-store-buttons a:hover {
  -webkit-transform: translateY(-3px) !important;
  -moz-transform: translateY(-3px) !important;
  -ms-transform: translateY(-3px) !important;
  transform: translateY(-3px) !important;
}

/* Ensure the images inside the buttons don't interfere with the hover */
.home-content .app-store-buttons a img {
  display: block;
  max-width: 100%;
}

/* Ensure buttons are clickable */
.home-content .app-store-buttons {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Make app store buttons interactive */
.home-content .app-store-buttons {
  position: relative;
  z-index: 10; /* Even higher to ensure interactivity */
}

.home-content .app-store-buttons a {
  display: inline-block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.home-content .app-store-buttons a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

/* Fix mobile layout issues caused by main.css */
@media only screen and (max-width: 400px) {
  /* Override the excessive padding and negative margin technique */
  .home-content-left {
    padding: 12rem 0 4rem !important; /* Reduce the huge bottom padding */
  }

  .home-image-right {
    width: 100% !important; /* Make image container full width */
    margin-bottom: 0 !important; /* Remove the negative margin */
    position: relative !important; /* Ensure normal document flow */
    display: block !important; /* Make sure it's visible */
  }

  .home-image-right img {
    width: 90% !important; /* Make image take up most of the container */
    max-width: 320px !important; /* But limit maximum size */
    margin: 0 auto !important; /* Center the image */
    display: block !important; /* Ensure block display for margin auto to work */
    position: relative !important; /* Normal document flow */
  }

  /* Ensure the home content has proper spacing */
  .home-content {
    padding-bottom: 4rem !important;
  }
}

/* Increase the size of social media icons */
.home-social-list i,
.footer-social-list i {
  font-size: 2rem; /* Adjust the size as needed */
}

/*
  Styles to align testimonial avatars on the same level.
  This involves:
  1. Making the container of testimonial columns (.block-1-3.group) a flex container
     to ensure all columns (.col-four) have the same height.
  2. Making each column (.col-four) a flex container so its child (.testimonial-item)
     can expand to fill its height.
  3. Making the .testimonial-item a flex container with column direction,
     allowing the paragraph to grow and push the .testimonial-author to the bottom.
*/

#testimonials .block-1-3.group {
  display: flex;
  flex-wrap: wrap; /* Handles responsiveness if items wrap */
  align-items: stretch; /* Ensures all flex items (columns) have the same height */
}

#testimonials .col-four {
  display: flex; /* Allows .testimonial-item to use flex-grow effectively */
  flex-direction: column;
}

.testimonial-item {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Makes .testimonial-item fill the height of its .col-four parent */
  /* You might want to add some padding if it's not already there, e.g., padding: 20px; */
}

.testimonial-item p {
  flex-grow: 1; /* The paragraph takes up available space, pushing the author info down */
  margin-bottom: 1.5rem; /* Space between testimonial text and author section */
}

.testimonial-author {
  /* margin-top: auto; /* Not strictly necessary if p takes all space, but can be a fallback */
  display: flex;
  align-items: center; /* Vertically align the avatar image and the author's name */
  /* Add some base styling if needed, e.g., padding-top if margin-bottom on p is not enough */
}

.testimonial-author img {
  margin-right: 1rem; /* Space between avatar and name */
  /* Consider standardizing avatar size if not already done */
  /* width: 50px; */
  /* height: 50px; */
  /* border-radius: 50%; */
}
