/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Cashflow Solutions Inspired Colors */
  --primary-blue: #0274be;
  --primary-blue-hover: #025a94;
  --dark-slate: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  
  /* Backgrounds */
  --bg-page: #fbfbfb;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  
  /* Borders and Shadows */
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --font-main: 'Montserrat', system-ui, -apple-system, sans-serif;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Nav */
header {
  background: transparent;
  color: var(--dark-slate);
  padding: 12px 48px 12px 80px; /* Increased left padding */
  height: 80px;
  display: flex;
  justify-content: flex-start;
  gap: 4rem; /* Significantly increased gap to account for logo scale */
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 80px; /* Increased to fill the header */
  max-width: none; /* Removed so it doesn't get artificially squished */
  object-fit: contain;
  transform: scale(1.2); /* Slight visual bump to overcome internal padding */
  transform-origin: left center; /* Keeps it anchored to the left */
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
    height: auto;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .logo img {
    height: 40px; /* Mobile: height between 25px and 35px */
    max-width: 130px; /* Mobile: width up to 130px */
    transform: none; /* remove desktop scale */
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  nav a {
    margin: 0 5px;
    font-size: 14px;
  }
}

nav {
  display: flex;
  align-items: center;
  /* removing gap to use margins on nav a */
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  margin: 0 20px;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: 65vh;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--dark-slate);
  font-weight: 700;
  line-height: 1.2;
}

.hero {
  text-align: center;
  padding: 5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-blue);
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 50px; /* pill shape for modern look */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.button:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: #ffffff;
}

/* Sections & Grid */
.info-section {
  margin: 6rem 0;
}

.info-section h2 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.info-section h2::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--primary-blue);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), #38bdf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

ul li {
  margin-bottom: 0.5rem;
}

/* Links */
a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-blue-hover);
}

/* Dark Theme Footer */
footer {
  background-color: #212529; /* Dark slate background */
  color: #e2e8f0;
  padding: 4rem 0 0; /* No bottom padding since bottom bar has it */
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem 2rem;
  text-align: left;
}


.footer-column h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

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

.footer-links li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.footer-links li::before {
  content: '›';
  color: #94a3b8;
  margin-right: 0.6rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-contact .icon {
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.footer-bottom {
  background-color: #171a1d;
  padding: 1.5rem 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  border: 1px solid #334155;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.footer-socials a:hover {
  color: #ffffff;
  border-color: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom strong {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Forms */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-slate);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-main);
  background-color: var(--bg-page);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.1);
}

/* Complex Hero Section */
.hero-complex {
  position: relative;
  width: 100%;
  background-color: #fdfdfd;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 7rem 2rem; /* Extra padding at top for header, bottom for ticker */
  gap: 4rem;
}

.hero-text-side {
  flex: 1.2;
}

.hero-heading {
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  color: #1e293b;
  font-weight: 800;
}

.hero-sub {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.hero-features li {
  font-size: 1.05rem;
  color: #334155;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.check-icon {
  color: white;
  background: #e53e3e; /* Red checkmark background */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  font-size: 0.7rem;
  font-weight: bold;
}

.hero-btn {
  background-color: #0274be;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 8px; /* Slightly squarer for corporate look */
}

.hero-image-side {
  flex: 0.8;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: var(--border-radius-lg);
  border: 10px solid white;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-15deg);
  transition: transform 0.5s ease;
}

.hero-image-side:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-slider-track {
  display: flex;
  width: 300%;
  animation: slideBanner 12s infinite ease-in-out;
}

.hero-slide {
  width: 33.33333%;
}

@keyframes slideBanner {
  0%, 40% { transform: translateX(0); }
  50%, 90% { transform: translateX(-33.33333%); }
  100% { transform: translateX(-66.66666%); }
}

.building-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Red Ticker Banner */
.ticker-banner {
  background-color: #dc2626; /* Bright Red */
  color: white;
  padding: 14px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 1rem;
  z-index: 10;
}

.ticker-content {
  display: flex;
  animation: scrollTicker 30s linear infinite;
}

.ticker-content span {
  padding-right: 50px;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    padding-bottom: 8rem;
    text-align: center;
  }
  .hero-heading {
    font-size: 2.2rem;
  }
  .hero-features li {
    justify-content: center;
  }
  .building-img {
    transform: none;
  }
}

/* Custom Grid for 3 Columns */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Premium Profile Cards Styling */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(2, 116, 190, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.profile-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #0274be, #38bdf8, #0ea5e9);
  opacity: 0.8;
}

.profile-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(2, 116, 190, 0.15);
  border-color: rgba(2, 116, 190, 0.3);
}

.profile-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin-bottom: 1.8rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 8px 16px rgba(2, 116, 190, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-placeholder::before {
  content: '👤';
  font-size: 3.5rem;
  opacity: 0.5;
}

.profile-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-card .role {
  font-weight: 600;
  color: #0274be;
  margin-bottom: 1.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(2, 116, 190, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
}

.profile-info {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #0274be;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.profile-info p {
  margin-bottom: 1rem;
}

.profile-info p strong {
  color: #1e293b;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info p:last-child {
  margin-bottom: 0;
}

/* Icon Grid for Sub-Products */
.sub-products {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-subtle);
}

.sub-products strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--dark-slate);
}

.icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.icon-grid li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.icon-grid li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 0.8rem;
}

/* Testimonial Circular Slider */
.testimonial-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0 2rem 0;
}

/* Gradient masks for smooth fading at the edges */
.testimonial-slider-container::before,
.testimonial-slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonial-slider-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-page) 0%, transparent 100%);
}

.testimonial-slider-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-page) 0%, transparent 100%);
}

.testimonial-slider-track {
  display: flex;
  width: max-content;
  animation: slideTestimonials 40s linear infinite;
  gap: 2rem;
  padding: 0 1rem;
}

/* Pause animation when user hovers to read */
.testimonial-slider-track:hover {
  animation-play-state: paused;
}

.testimonial-slider-track .card {
  width: 350px;
  flex-shrink: 0;
  white-space: normal;
  /* Override any previous grid slide up animations so they don't break the flex track */
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@keyframes slideTestimonials {
  0% { transform: translateX(0); }
  /* Translate exactly 50% of the track (which equals the 6 original cards + gaps) */
  100% { transform: translateX(calc(-50% - 1rem)); }
}

