/* =================================================================== 
 *  Teal Theme Stylesheet
 *  2023
 * ------------------------------------------------------------------- */

/* Color Variables */
:root {
  --primary-color: #4fd1c5; /* Teal accent */
  --primary-dark: #38b2ac; /* Darker teal for hover states */
  --secondary-color: #4a90e2; /* Blue accent */
  --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 */
}

/* Base Overrides */
body {
  color: var(--text-color);
  font-family: 'montserrat-regular', sans-serif;
}

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

/* Remove Pace Progress Loader */
.pace,
.pace-progress,
.pace .pace-progress {
  display: none !important;
}

.pace-inactive {
  display: none !important;
}

/* Header Customization */
#header {
  background-color: var(--dark-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  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%);
}

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

#header-nav-wrap .header-main-nav {
  display: flex;
  justify-content: flex-end;
  margin-right: 40px;
}

#header-nav-wrap .header-main-nav li {
  margin: 0 15px;
}

#header-nav-wrap .header-main-nav li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

#header-nav-wrap .header-main-nav li a:hover,
#header-nav-wrap .header-main-nav li a:focus {
  color: var(--primary-color);
}

#header-nav-wrap .header-main-nav li.current a {
  color: var(--primary-color);
}

/* Button Customization */
.button.button-primary,
button.button-primary,
input[type='submit'].button-primary,
input[type='reset'].button-primary,
input[type='button'].button-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.button.button-primary:hover,
button.button-primary:hover,
input[type='submit'].button-primary:hover,
input[type='reset'].button-primary:hover,
input[type='button'].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type='submit'].button-primary:focus,
input[type='reset'].button-primary:focus,
input[type='button'].button-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.stroke {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

/* Home Section Customization */
#home {
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    var(--primary-color) 100%
  );
  position: relative;
}

#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 */
}

.home-content-left h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-content-left h3 {
  color: var(--primary-color);
}

.home-social-list li a:hover,
.home-social-list li a:focus,
.home-social-list li a:active {
  color: var(--primary-color);
}

/* App Store Buttons */
.app-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.app-store-button {
  display: inline-block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.app-store-button:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.app-store-button img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

/* Features Section Customization */
#features {
  background: linear-gradient(135deg, #e6fffa 0%, var(--primary-color) 100%);
  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);
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.about-features .feature .icon i {
  color: var(--primary-color);
}

/* Testimonials Customization */
#testimonials {
  background: linear-gradient(
    135deg,
    var(--dark-color) 0%,
    var(--primary-color) 100%
  );
}

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

.testimonial-author img {
  border: 3px solid var(--primary-color);
}

/* Download Section Customization */
#download {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
}

#download h1,
#download p {
  color: white;
}

/* Replace download buttons with app store logos */
#download .download-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

#download .download-badges li {
  margin: 0 7.5px;
}

#download .download-badges li a.badge-appstore,
#download .download-badges li a.badge-googleplay {
  display: block;
  width: 230px;
  height: 71px;
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 230px 71px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

#download .download-badges li a.badge-appstore {
  background-image: url('../images/appstore.png');
}

#download .download-badges li a.badge-googleplay {
  background-image: url('../images/google-play.png');
}

#download .download-badges li a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

@media only screen and (max-width: 768px) {
  #download .download-badges li a.badge-appstore,
  #download .download-badges li a.badge-googleplay {
    width: 200px;
    height: 62px;
    background-size: 200px 62px;
  }
}

/* Footer Customization */
footer {
  background: linear-gradient(180deg, var(--dark-color) 0%, #1a202c 100%);
}

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

footer a:hover,
footer a:focus {
  color: white;
}

/* About Section Customization */
#about {
  background: linear-gradient(135deg, #ffffff 0%, #e6fffa 100%);
}

h1.intro-header::before {
  background-color: var(--primary-color);
}

/* Additional Accent Elements */
.accent-text {
  color: var(--primary-color);
}

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

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

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

  .header-logo {
    left: 25px;
  }

  #header-nav-wrap .header-main-nav {
    margin-right: 20px;
  }
}

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

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

  #header-nav-wrap {
    background-color: var(--dark-color);
  }

  #header-nav-wrap .header-main-nav {
    flex-direction: column;
    margin-right: 0;
  }

  .app-store-buttons {
    justify-content: center;
  }

  #download .download-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* Media Queries for Features */
@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;
  }
}

/* Logo Customization */
.header-logo img {
  max-height: 40px;
  width: auto;
}

/* Footer Logo Customization - Match Header Style */
.footer-logo {
  display: block;
  margin: 0 0 3rem 0;
  padding: 0;
}

.footer-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 40px;
}

.footer-logo .logo-icon {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

.footer-logo .logo-type {
  height: 36px;
  width: auto;
  position: relative;
  top: 5px;
}

@media only screen and (max-width: 768px) {
  .footer-logo a {
    height: 35px;
  }

  .footer-logo .logo-icon {
    height: 35px;
    margin-right: 10px;
  }

  .footer-logo .logo-type {
    height: 24px;
  }
}

/* Step Numbers Customization */
.about-how-content .step::before {
  background-color: var(
    --primary-color
  ) !important; /* Use teal color instead of green */
  box-shadow: 0 0 0 15px #ffffff;
}

/* Subscribe Section Customization with Inline Button */
#subscribe {
  background: linear-gradient(135deg, #e6fffa 0%, var(--primary-color) 100%);
  padding: 12rem 0;
  text-align: center;
}

#subscribe .intro-header,
#subscribe .lead {
  color: var(--dark-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Center the intro-header line */
#subscribe h1.intro-header::before {
  left: 50%;
  transform: translateX(-50%);
}

#subscribe .subscribe-form {
  margin: 4rem auto 0;
  max-width: 600px;
  position: relative;
}

#subscribe #brevo-form {
  width: 100%;
  position: relative;
}

#subscribe #brevo-form input[type='email'] {
  width: 100%;
  height: 6rem;
  padding: 1.5rem 170px 1.5rem 4.5rem;
  background: rgba(255, 255, 255, 0.9);
  background-image: url('../images/email-icon.png');
  background-repeat: no-repeat;
  background-position: 1.5rem center;
  background-size: 24px 16px;
  border: 2px solid transparent;
  margin-bottom: 1.8rem;
  color: var(--dark-color);
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

#subscribe #brevo-form input[type='email']:focus {
  border-color: var(--primary-dark);
  background-color: #ffffff;
}

#subscribe #brevo-form input[type='submit'] {
  position: absolute;
  top: 0;
  right: 0;
  height: 6rem;
  background: var(--dark-color);
  border-color: var(--dark-color);
  color: #ffffff;
  padding: 0 30px;
  margin: 0;
  border-radius: 0 5px 5px 0;
  transition: all 0.3s ease-in-out;
}

#subscribe #brevo-form input[type='submit']:hover,
#subscribe #brevo-form input[type='submit']:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

#subscribe #brevo-form label {
  color: var(--dark-color);
  font-family: 'montserrat-regular', sans-serif;
  font-size: 1.3rem;
  padding: 0 2rem;
  width: 100%;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  #subscribe {
    padding: 9rem 0;
  }

  #subscribe .subscribe-form {
    max-width: 90%;
  }

  #subscribe #brevo-form input[type='email'] {
    padding-right: 2rem;
    margin-bottom: 2.4rem;
  }

  #subscribe #brevo-form input[type='submit'] {
    position: static;
    width: 100%;
    border-radius: 5px;
  }
}

/* Download Section Header Line */
#download h1.intro-header::before {
  background-color: #b2f5ea !important; /* Light teal (teal.100) for contrast on dark background */
}

/* Scroll Down Arrow Hover Color */
.home-scrolldown a:hover,
.home-scrolldown a:focus {
  color: var(--primary-color) !important;
}

.home-scrolldown a:hover .icon-arrow-right,
.home-scrolldown a:focus .icon-arrow-right {
  color: var(--primary-color) !important;
}

/* Logo with Icon and Type - Improved Alignment */
.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 40px;
}

.header-logo .logo-icon {
  height: 40px;
  width: auto;
  margin-right: 12px;
}

.header-logo .logo-type {
  height: 36px; /* Increased from 25px for better visibility */
  width: auto;
  position: relative;
  top: 5px; /* Fine-tune vertical alignment */
}

@media only screen and (max-width: 768px) {
  .header-logo a {
    height: 35px;
  }

  .header-logo .logo-icon {
    height: 35px;
    margin-right: 10px;
  }

  .header-logo .logo-type {
    height: 24px; /* Increased from 22px for better visibility on mobile */
  }
}

/* Increase the size of the landing image */
.home-image-right img {
  max-width: 120%; /* Increase from default 100% */
  height: auto;
  position: relative;
}

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

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

  .home-image-right img {
    max-width: 85%;
    right: 0;
  }
}
