/* 
 * Effcon International - Main stylesheet
 * Version: 2.0
 * Author: Effcon International
 */

/* Fix for navbar z-index issues */
.navbar-fixed {
  z-index: 1000; /* Ensure navbar is above other elements */
  height: auto !important;
}

/* Fix for dropdown menus appearing behind content */
.dropdown-content {
  z-index: 1050 !important; /* Ensure dropdowns appear above everything else */
}

/* == GENERAL STYLES == */
:root {
  --primary-color: #1565c0;      /* Primary blue */
  --primary-dark: #0d47a1;       /* Dark blue for footer */
  --secondary-color: #e74c3c;    /* Red accent from original site */
  --success-color: #4CAF50;      /* Green for success elements */
  --light-bg: #f5f5f5;           /* Light gray background */
  --dark-bg: #263238;            /* Dark background for contrast sections */
  --text-color: #333333;         /* Main text color */
  --light-text: #ffffff;         /* Light text for dark backgrounds */
  --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Consistent card shadow */
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Shadow for hover effects */
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 5rem 0;
}

.container {
  width: 90%;
  max-width: 1200px;
}

p {
  margin-bottom: 1rem;
}

/* == UTILITY CLASSES == */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Add these styles for the logo and navigation bar */
.logo-img {
  height: 40px;
  margin-right: 10px;
}

/* Updated navigation styles */
nav {
  background-color: var(--primary-color) !important;
  height: 64px !important;
}

nav .brand-logo {
  font-weight: 500;
  display: flex;
  align-items: center;
}

nav .brand-logo img {
  height: 40px;
  margin-right: 10px;
}

nav ul a {
  font-weight: 500;
}

nav ul a.btn {
  margin-left: 15px;
  margin-top: 14px;
  height: 36px;
  line-height: 36px;
  font-weight: 500;
}

/* Logo row */
.logo-nav {
  background-color: var(--primary-color);
  height: 70px !important;
}

.logo-nav .nav-wrapper {
  height: 70px;
}

.logo-container {
  height: 70px;
  display: flex;
  align-items: center;
}

.portrait-logo {
  height: 60px;
  max-height: 60px;
}

/* Menu row */
.menu-navbar-fixed {
  top: 70px;
  z-index: 990;
  margin-top: -1px; /* Remove gap between header bars */
}

.menu-nav {
  background-color: var(--primary-color);
  height: 50px !important;
  line-height: 50px !important;
  box-shadow: 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.2);
}

.menu-nav .nav-wrapper {
  height: 50px;
}

.menu-nav .nav-menu {
  height: 50px;
  display: flex;
  align-items: center;
}

.menu-nav .nav-menu li a {
  height: 50px;
  line-height: 50px;
  padding: 0 15px;
}

/* Call Us button adjustments */
.menu-nav .nav-menu li a.btn {
  line-height: 36px;
  margin-top: 7px;
  height: 36px;
}

.nav-wrapper ul a {
  font-weight: 500;
}

/* Fix for dropdown menus */
.dropdown-content {
  top: 120px !important;
}

/* Sidenav for mobile */
.sidenav {
  width: 280px; /* Slightly wider for better touch targets */
}

.sidenav .user-view {
  padding: 32px 32px 0;
}

.sidenav li > a {
  display: flex;
  align-items: center;
  padding: 0 32px; /* More padding for better touch targets */
  height: 54px; /* Taller for better touch targets */
}

.sidenav li > a > i {
  margin-right: 1rem;
}

.sidenav-logo {
  max-width: 75px;
  display: block;
  margin: 0 auto 1rem;
}

/* == HERO SECTION == */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero .flow-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-cta .btn-large {
  font-weight: 500;
}

.hero-logo {
  max-height: 300px;
  display: block;
  margin: 0 auto;
}

.hero .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5vw;
  min-height: 50px;
}

/* Creative Wave Styling */
/* Seamless Wave and Section Transition */
.hero {
  position: relative;
  padding: 8rem 0 0; /* Remove bottom padding */
  overflow: visible; /* Allow the wave to extend beyond */
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  margin-bottom: 0;
}

.hero .wave {
  position: relative; /* Changed from absolute */
  bottom: -1px; /* Ensure it overlaps by 1px to prevent any gap */
  left: 0;
  width: 100%;
  height: 8vw;
  min-height: 60px;
  display: block;
  margin-bottom: -1px; /* Fix any potential gap */
}

/* Remove top margin/padding from the section after the hero */
.no-top-spacing {
  padding-top: 0;
  margin-top: 0;
  background-color: #ffffff; /* Ensure same color as the wave */
}

/* Ensure crisp edge between colors */
.hero .wave path {
  filter: none;
}

/* == SOFTWARE CARDS == */
.software-solution {
  padding: 4rem 0;
  background-color: white;
}

.software-card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  background-color: white;
  box-shadow: var(--card-shadow);
}

.software-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.card-image img {
  height: 220px;
  object-fit: cover;
}

.software-card .card-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.software-card .card-content {
  padding: 1.5rem;
}

.software-card .card-action {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* == FEATURES SECTION == */
.features {
  background-color: var(--light-bg);
}

.feature-row {
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.feature-list li i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

.feature-icon {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon i.material-icons.large {
  font-size: 6rem;
  background-color: rgba(21, 101, 192, 0.1);
  padding: 2rem;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.feature-row:hover .feature-icon i.material-icons.large {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* == CUSTOM SOLUTIONS SECTION == */
.custom-solutions {
  padding: 5rem 0;
  background-color: white;
}

.custom-content {
  padding: 2rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: var(--card-shadow);
}

/* == BUSINESSES SECTION == */
.businesses {
  background-color: var(--light-bg);
}

.business-card {
  padding: 2rem;
  border-radius: 8px;
  background-color: white;
  box-shadow: var(--card-shadow);
  height: 100%;
}

.business-card h4 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.business-list {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.business-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.business-list li i {
  color: var(--success-color);
  margin-right: 0.5rem;
  margin-top: 3px;
}

/* == CTA SECTION == */
.cta {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--primary-color);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-large {
  margin-bottom: 1rem;
  font-weight: 500;
}

/* == CONTACT SECTION == */
.contact {
  padding: 5rem 0;
}

.contact-info {
  padding: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.5rem;
}

.contact-item.social-media {
  margin-top: 2rem;
}

.contact-item.social-media a {
  margin-right: 1rem;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

/* Form styling */
.input-field > label {
  color: #555;
}

.input-field input[type=text]:focus + label,
.input-field input[type=email]:focus + label,
.input-field input[type=tel]:focus + label,
.materialize-textarea:focus + label {
  color: var(--primary-color) !important;
}

.input-field input[type=text]:focus,
.input-field input[type=email]:focus,
.input-field input[type=tel]:focus,
.materialize-textarea:focus {
  border-bottom: 1px solid var(--primary-color) !important;
  box-shadow: 0 1px 0 0 var(--primary-color) !important;
}

/* == FOOTER == */
.page-footer {
  background-color: var(--primary-dark);
  padding-top: 3rem;
}

.page-footer h5 {
  margin-bottom: 1.5rem;
}

.page-footer ul {
  padding-left: 0;
}

.page-footer ul li {
  margin-bottom: 0.5rem;
}

.footer-copyright {
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-logo {
  margin-bottom: 1rem;
}

/* == BACK TO TOP BUTTON == */
.fixed-action-btn {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 997;
}

#back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* == SOCIAL MEDIA ICONS == */
.social-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin: 8px;
}

.contact-item.social-media .btn-floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background-color: white;
}

/* == RESPONSIVE ADJUSTMENTS == */
@media only screen and (max-width: 992px) {
  section {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-icon i.material-icons.large {
    font-size: 4rem;
    padding: 1.5rem;
  }

  .feature-row, .feature-row.reverse {
    flex-direction: column;
  }

  .feature-content {
    text-align: center;
    margin-top: 2rem;
  }

  .feature-list {
    display: inline-block;
    text-align: left;
  }
  
  .business-card {
    margin-bottom: 2rem;
  }
  
  /* Navigation adjustments for medium screens */
  .menu-navbar-fixed {
    display: none;
  }
  
  .logo-nav {
    height: 60px !important;
  }
  
  .logo-nav .nav-wrapper {
    height: 60px;
  }
  
  .logo-container {
    height: 60px;
  }
  
  .portrait-logo {
    height: 50px;
    max-height: 50px;
  }
  
  .sidenav-trigger {
    height: 60px;
    line-height: 60px;
  }
}

@media only screen and (max-width: 600px) {
  .hero {
    padding: 5rem 0 8rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-large {
    width: 100%;
    margin-bottom: 1rem;
  }

  .software-card {
    margin-bottom: 2rem;
  }
  
  .business-card .row .col {
    margin-bottom: 1rem;
  }
  
  .business-card .btn {
    width: 100%;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  /* Navigation adjustments for small screens */
  .logo-nav {
    height: 56px !important;
  }
  
  .logo-nav .nav-wrapper {
    height: 56px;
  }
  
  .logo-container {
    height: 56px;
  }
  
  .portrait-logo {
    height: 40px;
    max-height: 40px;
  }
  
  .sidenav-trigger {
    height: 56px;
    line-height: 56px;
  }
}

/* Company name styling */
.company-name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 15px;
  color: white;
  letter-spacing: 0.5px;
}

/* Adjust brand logo container */
.taller-nav .brand-logo {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  left: 0;
  transform: none;
}

.logo-container {
  height: 90px;
  display: flex;
  align-items: center;
}

/* Navigation menu vertical positioning */
.taller-nav .nav-wrapper {
  height: 100%;
}

.taller-nav .nav-wrapper ul.nav-menu {
  height: 100%;
  line-height: 90px;
}

.taller-nav .nav-wrapper ul.nav-menu li {
  height: 100%;
  line-height: 90px;
}

.taller-nav .nav-wrapper ul.nav-menu li a {
  height: 100%;
  line-height: 90px;
  padding: 0 15px;
}

/* Call Us button adjustments */
.taller-nav .nav-wrapper ul.nav-menu li a.btn {
  line-height: 36px;
  margin-top: 27px;
  height: 36px;
}

/* Responsive adjustments */
@media only screen and (max-width: 1100px) {
  .company-name {
    font-size: 1.3rem; /* Slightly smaller on medium screens */
  }
}

@media only screen and (max-width: 992px) {
  .taller-nav .brand-logo {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .logo-container {
    justify-content: center;
  }
  
  .larger-logo {
    margin-right: 10px;
  }
}

@media only screen and (max-width: 600px) {
  /* Hide company name on very small screens, already using hide-on-small-only */
  .taller-nav .brand-logo {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .larger-logo {
    margin-left: 0;
  }
}