/**
 * Altroz Technologies - Global Design System
 * Centralized typography, colors, and component styles for consistent UI across all pages.
 */

:root {
  /* Colors */
  --primary-color: #1864db;
  --primary-hover: #1452b8;
  --secondary-color: #0b7285;
  --accent-color: #f59f00;
  --heading-color: #1F3C88;
  --text-color: #495057;
  --text-dark: #333333;
  --text-muted: #64748b;
  --nav-brand-color: #535659;
  --light-bg: #f8f9fa;
  --light-bg-alt: #f8fafc;
  --white: #fff;
  --border-color: #e2e8f0;
  
  /* Typography */
  --font-primary: 'PT Sans', Arial, sans-serif;
  --page-title-size: 40px;
  --section-title-size: 32px;
  --sub-title-size: 22px;
  --section-desc-size: 16px;
  --line-height-desc: 1.7;
  
  /* Spacing */
  --section-padding: 80px;
  --section-header-margin: 50px;
  --btn-padding-y: 12px;
  --btn-padding-x: 24px;
  --btn-radius: 8px;
}

/* ============================================
   Typography
   ============================================ */

h1.page-title {
  font-size: var(--page-title-size);
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--font-primary);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

h2.section-title {
  font-size: var(--section-title-size);
  font-weight: 600;
  color: var(--heading-color);
  font-family: var(--font-primary);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

h3.sub-title {
    font-size: var(--sub-title-size);
    font-weight: 500;
    color: var(--primary-color);
    font-family: var(--font-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

p.section-description {
  font-size: var(--section-desc-size);
  line-height: var(--line-height-desc);
  color: var(--text-color);
  font-family: var(--font-primary);
  margin: 0 0 20px 0;
}

/* ============================================
   Section Header Component
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--section-header-margin);
}

.section-header .section-title {
  margin-bottom: 12px;
}

.section-header .section-description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Section Spacing
   ============================================ */

.section {
  padding: var(--section-padding) 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary,
.btn.btn-primary {
  background: var(--primary-color) !important;
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  color: var(--white) !important;
  font-weight: 600;
  font-family: var(--font-primary);
  border: none !important;
  transition: background 0.2s ease;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--primary-hover) !important;
  color: var(--white) !important;
}

/* ============================================
   Navbar - Consistent link colors across all pages
   ============================================ */
#fh5co-header #navbar li a,
#fh5co-header.navbar-fixed-top #navbar li a {
  color: var(--text-color) !important;
}
#fh5co-header #navbar li a:hover,
#fh5co-header.navbar-fixed-top #navbar li a:hover {
  color: var(--primary-color) !important;
}
#fh5co-header #navbar li.active a,
#fh5co-header.navbar-fixed-top #navbar li.active a {
  color: var(--primary-color) !important;
}
#fh5co-header #navbar li.active a span:before,
#fh5co-header.navbar-fixed-top #navbar li.active a span:before {
  background-color: var(--primary-color) !important;
}

/* Nav: Free Trial & Book a Demo - separate buttons with #1864db and border radius */
#fh5co-header #navbar li.call-to-action {
  margin-left: 8px;
}

#fh5co-header #navbar li.call-to-action a,
#fh5co-header.navbar-fixed-top #navbar li.call-to-action a {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 8px;
  padding: 8px 16px;
  margin: 12px 0 0 0;
}

#fh5co-header #navbar li.call-to-action a:hover,
#fh5co-header.navbar-fixed-top #navbar li.call-to-action a:hover {
  background: var(--primary-hover) !important;
  color: var(--white) !important;
  border-color: var(--primary-hover) !important;
}

#fh5co-header #navbar li.call-to-action.active a,
#fh5co-header.navbar-fixed-top #navbar li.call-to-action.active a {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
}

/* ============================================
   Footer - Color Consistency (primary blue)
   ============================================ */
#fh5co-footer .section-title:after,
#fh5co-footer .copy-right:after {
  background: var(--primary-color) !important;
}
#fh5co-footer .contact-info li i {
  color: var(--primary-color) !important;
}
#fh5co-footer .social-media li a {
  color: var(--primary-color) !important;
}
#fh5co-footer #btn-submit {
  background: var(--primary-color) !important;
}
#fh5co-footer #btn-submit:hover {
  background: var(--primary-hover) !important;
}

/* ============================================
   Navbar Dropdowns (common styles for all)
   ============================================ */

/* Ensure header doesn't clip dropdowns */
#fh5co-header {
  overflow: visible !important;
}
#fh5co-header .navbar,
#fh5co-header .fluid-container {
  overflow: visible !important;
}

/* Navbar: reduced height + horizontal & vertical alignment */
@media (min-width: 769px) {
  #fh5co-header .navbar-default {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 0;
  }
  #fh5co-header .navbar-header {
    padding: 8px 20px;
  }
  #fh5co-header .navbar-logo {
    max-height: 110px;
  }
  #fh5co-header .navbar-default .navbar-header {
    display: flex;
    align-items: center;
  }
  #fh5co-header .navbar-default .navbar-collapse {
    display: flex !important;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
  }
  #fh5co-header #navbar .navbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
  }
  #fh5co-header #navbar li {
    display: flex;
    align-items: center;
  }
  #fh5co-header #navbar li a {
    display: flex;
    align-items: center;
  }
  #fh5co-header #navbar li.call-to-action a,
  #fh5co-header.navbar-fixed-top #navbar li.call-to-action a {
    margin: 0;
  }
}

/* Navbar dropdown toggle - caret: ↓ closed, ^ open */
#fh5co-header #navbar li.dropdown > a {
  display: flex;
  align-items: center;
}
#fh5co-header #navbar li.dropdown > a span {
  display: inline !important;  /* Keep Partner + caret on same line */
}
#fh5co-header #navbar li.dropdown > a .dropdown-caret {
  margin-left: 5px;
  font-size: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
#fh5co-header #navbar li.dropdown.open > a .dropdown-caret {
  transform: rotate(180deg);  /* ↓ becomes ^ when open */
}
/* Navbar dropdown menu - white panel, shadow, rounded */
#fh5co-header #navbar .dropdown-menu,
#fh5co-header .navbar-nav .open .dropdown-menu,
#fh5co-header .navbar-nav > li.dropdown.open > .dropdown-menu {
  min-width: 260px !important;
  padding: 10px 0 !important;
  border-radius: 10px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  z-index: 1050;
}
/* Position: open BELOW navbar (not overlapping) */
@media (min-width: 768px) {
  #fh5co-header #navbar .dropdown-menu,
  #fh5co-header .navbar-nav .open .dropdown-menu,
  #fh5co-header .navbar-nav > li.dropdown.open > .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
    float: none !important;
  }
}
/* Navbar dropdown items */
#fh5co-header #navbar .dropdown-menu > li > a,
#fh5co-header .navbar-nav .open .dropdown-menu > li > a {
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--primary-color) !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
#fh5co-header #navbar .dropdown-menu > li > a i,
#fh5co-header .navbar-nav .open .dropdown-menu > li > a i {
  width: 24px !important;
  margin-right: 12px !important;
  font-size: 16px !important;
  color: var(--primary-color) !important;
  flex-shrink: 0;
}
/* Navbar dropdown item hover */
#fh5co-header #navbar .dropdown-menu > li > a:hover,
#fh5co-header #navbar .dropdown-menu > li > a:focus,
#fh5co-header .navbar-nav .open .dropdown-menu > li > a:hover,
#fh5co-header .navbar-nav .open .dropdown-menu > li > a:focus {
  background: rgba(24, 100, 219, 0.12) !important;
  color: var(--primary-color) !important;
}
#fh5co-header #navbar .dropdown-menu > li > a:hover i,
#fh5co-header .navbar-nav .open .dropdown-menu > li > a:focus i {
  color: var(--primary-color) !important;
}

/* ============================================
   Hero / Page Headers (shared structure)
   ============================================ */

.page-hero {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
}

.page-hero-light {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--light-bg-alt) 0%, #e8f4fc 100%);
  border-bottom: 3px solid var(--primary-color);
}

.page-hero .page-title,
.page-hero h1 {
  color: var(--white) !important;
  font-size: var(--page-title-size);
  font-weight: 700;
}

.page-hero .section-description,
.page-hero p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 18px;
}

.page-hero-light .page-title,
.page-hero-light h1 {
  color: var(--heading-color) !important;
}

.page-hero-light .section-description,
.page-hero-light p {
  color: var(--text-muted) !important;
}

.pricing-page-hero.page-hero-light {
  background: linear-gradient(135deg, var(--light-bg-alt) 0%, #e8f4fc 100%);
}

.pricing-section .section-heading {
  color: var(--heading-color);
}

.pricing-section .section-heading i {
  color: var(--heading-color);
}

/* All section headings use heading color */
.section-heading h2 {
  color: var(--heading-color) !important;
}

/* Service block titles (Software Development, etc.) */
.fh5co-services .fh5co-post h3,
#fh5co-services .fh5co-post h3 {
  color: var(--heading-color);
}

/* Service block icons use primary for consistency */
.fh5co-services .box-services i,
#fh5co-services .box-services i {
  color: var(--primary-color);
}

/* ============================================
   Equal-Height Cards (site-wide)
   ============================================ */

/* Index: pricing (price-box inside .pricing) */
.fh5co-pricing .pricing {
  display: flex;
  flex-wrap: wrap;
}
.fh5co-pricing .pricing > [class*="col-"] {
  display: flex;
}
.fh5co-pricing .price-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* Index: team section */
#fh5co-team .row {
  display: flex;
  flex-wrap: wrap;
}
#fh5co-team .row > [class*="col-"] {
  display: flex;
}
#fh5co-team .team-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* Pricing page: pricing cards */
.pricing-section .row {
  display: flex;
  flex-wrap: wrap;
}
.pricing-section .row > [class*="col-"] {
  display: flex;
}
.pricing-section .pricing-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.pricing-section .pricing-card-body {
  flex: 1;
}

/* ============================================
   Content Cards (benefits, forms, etc.)
   ============================================ */

.content-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.content-card .section-title,
.content-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
}

.content-card .sub-title,
.content-card h3 {
  font-size: var(--sub-title-size);
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.content-card .section-description,
.content-card p,
.content-card .subtitle {
  font-size: var(--section-desc-size);
  color: var(--text-color);
  line-height: var(--line-height-desc);
}

/* Home hero - white text on primary background */
#fh5co-home .text-inner h1 {
  color: var(--white) !important;
  font-size: var(--page-title-size);
  font-weight: 700;
}

#fh5co-home .text-inner h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 300;
}

/* ============================================
   List styling with check icons
   ============================================ */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.5;
}

.feature-list li i,
.feature-list li .icon-check2 {
  color: var(--primary-color);
  margin-right: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ============================================
   Responsive Typography
   ============================================ */

@media (max-width: 768px) {
  :root {
    --page-title-size: 28px;
    --section-title-size: 24px;
    --sub-title-size: 20px;
    --section-padding: 50px;
    --section-header-margin: 35px;
  }
  
  h1.page-title {
    font-size: 28px;
  }
  
  h2.section-title {
    font-size: 24px;
  }
  
  h3.sub-title {
    font-size: 20px;
  }
  
  .page-hero .page-title,
  .page-hero h1 {
    font-size: 28px !important;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 35px;
  }
  
  .content-card {
    padding: 24px;
  }
  
  .content-card .section-title,
  .content-card h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-title-size: 24px;
    --section-title-size: 20px;
    --sub-title-size: 18px;
  }
  
  h1.page-title {
    font-size: 24px;
  }
  
  h2.section-title {
    font-size: 20px;
  }
}

/* ============================================
   Free Trial Page
   ============================================ */

.free-trial-hero.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.free-trial-benefits.content-card,
.free-trial-form-card.content-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.free-trial-form-card .form-control {
  border: 1px solid var(--border-color);
}

.free-trial-form-card .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(24, 100, 219, 0.15);
}

.free-trial-form-card .btn-begin-trial {
  background: var(--primary-color);
  color: var(--white) !important;
  border-radius: var(--btn-radius);
  font-weight: 600;
}

.free-trial-form-card .btn-begin-trial:hover {
  background: var(--primary-hover);
  color: var(--white) !important;
}

.free-trial-form-card .login-link a,
.free-trial-form-card .consent-text a {
  color: var(--primary-color);
}

.faq-accordion .panel {
  border: 1px solid var(--border-color);
}

.faq-accordion .panel-title a:hover {
  color: var(--primary-color);
}

.faq-accordion .panel-title .fa-chevron-down {
  color: var(--primary-color);
}

.free-trial-footer-links a {
  color: var(--primary-color);
}

.free-trial-faq {
  background: var(--white);
}

/* ============================================
   Careers Page
   ============================================ */

.careers-hero.page-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.careers-content .btn-view-positions,
.job-item .btn-apply {
  background: var(--primary-color);
  color: var(--white) !important;
  border-radius: var(--btn-radius);
  font-weight: 600;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 0.2s;
}

.careers-content .btn-view-positions:hover,
.job-item .btn-apply:hover {
  background: var(--primary-hover);
  color: var(--white) !important;
}

.job-listings-box.content-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.job-openings-section .subtitle {
  color: var(--text-muted);
}

/* ============================================
   Testimony / Testimonials Section
   ============================================ */

#fh5co-testimony {
  padding: 60px 0;
}

#fh5co-testimony .wrap-testimony {
  margin-top: 0;
  padding-top: 0;
}

#fh5co-testimony blockquote {
  margin: 0 auto 10px auto;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
}

#fh5co-testimony blockquote + span {
  display: block;
  font-weight: 600;
  margin-top: 5px;
  color: var(--heading-color);
}

/* ============================================
   Login Page (consistent with design system)
   ============================================ */

.login-page {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  font-family: var(--font-primary);
  overflow: hidden;
}

.login-left {
  flex: 1 1 45%;
  height: 100vh;
  min-width: 320px;
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.login-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.65) 0%, rgba(45, 108, 176, 0.45) 100%);
}

.login-right {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 56px;
  background: var(--white);
  overflow: hidden;
}

.login-right-scroll {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 48px 0;
}
.login-right-scroll::-webkit-scrollbar {
  display: none;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  margin-bottom: 32px;
}

.login-logo img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.login-title {
  font-size: var(--section-title-size);
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 28px 0;
  font-family: var(--font-primary);
}

.login-input {
  width: 100%;
  padding: var(--btn-padding-y) 18px;
  font-size: var(--section-desc-size);
  font-family: var(--font-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--btn-radius);
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.login-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-page .btn-continue {
  width: 100%;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--section-desc-size);
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--white);
  background: var(--primary-color);
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background 0.2s;
}

.login-page .btn-continue:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-primary);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.login-divider span {
  padding: 0 16px;
}

.login-alt-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-page .btn-alt-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-primary);
  color: var(--text-color);
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.login-page .btn-alt-login:hover {
  border-color: var(--primary-color);
  background: var(--light-bg);
  color: var(--heading-color);
}

.login-page .btn-alt-login i,
.login-page .btn-alt-login svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.login-app-downloads {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.login-page .btn-app-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--font-primary);
  background: #1a1a1a;
  color: var(--white);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.login-page .btn-app-download:hover {
  opacity: 0.9;
  color: var(--white);
}

.login-footer {
  margin-top: auto;
  padding-top: 36px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: var(--font-primary);
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-footer .footer-logo {
  margin-bottom: 16px;
}

.login-footer .footer-logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 992px) {
  .login-left { display: none; }
  .login-right { flex: 1 1 100%; }
}

@media (max-width: 576px) {
  .login-right { padding: 0 24px; }
  .login-right-scroll { padding: 32px 0; }
  .login-title { font-size: var(--sub-title-size); }
}
