/* DARKFOX Solutions – #572D88 & white theme, Zoho-inspired */

:root {
  --primary: #572D88;
  --primary-dark: #452270;
  --primary-light: #6d3aa3;
  --white: #ffffff;
  --off-white: #f8f7fa;
  --gray-100: #f0eef3;
  --gray-200: #e5e2e9;
  --gray-400: #9b95a6;
  --gray-600: #5c5666;
  --gray-800: #2d2938;
  --accent: #e85d04;
  --accent-hover: #d35400;
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(87, 45, 136, 0.08);
  --shadow-lg: 0 8px 32px rgba(87, 45, 136, 0.12);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
 
  margin: 0 ;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 10px 14px;
  color: var(--gray-800);
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-list a:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-cta {
  margin-left: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  transition: var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 17px;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* Main content */
.main {
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 25%, var(--primary-dark) 70%, #3a1858 100%);
  color: var(--white);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../assets/header-fox-texture.png");
  background-size: 90px 90px;
  background-position: 0 0;
  background-repeat: repeat;
  opacity: 0.03;
  filter: grayscale(1) brightness(5) contrast(0.55);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 18px;
  opacity: 0.95;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-cta .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.hero-cta .btn-primary:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
}

.hero-cta .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero-cta .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* Section */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.section-title.center {
  padding-left: 0;
  border-left: none;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.section-heading {
  margin: 0 0 48px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(87, 45, 136, 0.25);
}

.section-heading.center {
  text-align: center;
}

.section-title.center {
  text-align: center;
  padding-left: 0;
  border-left: none;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

/* Offerings page – technology names as main headings, tagline smaller */
.offering-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(87, 45, 136, 0.3);
  display: inline-block;
}

.offering-tagline {
  margin: 0 0 1.25em;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.4;
}

.section-subtitle {
  margin: -32px 0 48px;
  font-size: 18px;
  color: var(--gray-600);
  max-width: 640px;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.offering-card {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.offering-card:hover {
  color: inherit;
}

.offering-card .card-link {
  color: var(--primary);
  font-weight: 600;
}

#peoplesoft,
#oracle-erp,
#oracle-hcm,
#sap,
#cloud,
#zoho {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.card-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.card-text {
  margin: 0 0 16px;
  color: var(--gray-600);
  font-size: 15px;
}

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link::after {
  content: "→";
}

/* Page header */
.page-header {
  position: relative;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 25%, var(--primary-dark) 70%, #3a1858 100%);
  color: var(--white);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../assets/header-fox-texture.png");
  background-size: 90px 90px;
  background-position: 0 0;
  background-repeat: repeat;
  opacity: 0.03;
  filter: grayscale(1) brightness(5) contrast(0.55);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.page-description {
  margin: 0;
  font-size: 17px;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 56px 0 24px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 24px;
}

.footer-brand .logo-img {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-200);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
}

.footer-bottom a {
  color: var(--gray-200);
}

/* Blog */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  aspect-ratio: 16/10;
  background: var(--gray-100);
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.blog-card-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.blog-card-link {
  color: inherit;
  text-decoration: none;
}

.blog-card-link:hover {
  color: inherit;
}

.blog-card-title {
  color: var(--gray-800);
}

.blog-card-link:hover .blog-card-title {
  color: var(--primary);
}

.blog-card-excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Blog post */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.article-header {
  margin-bottom: 32px;
}

.article-meta {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.article-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(87, 45, 136, 0.2);
}

.article-content {
  font-size: 17px;
  line-height: 1.7;
}

.article-content h2 {
  margin: 2em 0 0.75em;
  font-size: 24px;
  color: var(--primary);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(87, 45, 136, 0.2);
}

.article-content h3 {
  margin: 1.5em 0 0.5em;
  font-size: 20px;
}

.article-content p {
  margin: 0 0 1.25em;
  color: var(--gray-600);
}

.article-content ul, .article-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.article-content a {
  text-decoration: underline;
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(87, 45, 136, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray-400);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.blog-actions {
  margin: 0 0 24px;
}

.blog-actions .btn {
  margin: 0;
}

/* Contact info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-info-card {
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.contact-info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary);
}

.contact-info-card p {
  margin: 0;
  font-size: 15px;
  color: var(--gray-600);
}

.contact-info-card a {
  font-weight: 600;
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; }

/* List styling for services/offerings */
.feature-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--gray-600);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Chatbot processing animation – royal blue, transparent, circular motion */
:root {
  --chatbot-royal-blue: #4169E1;
}

@keyframes chatbot-circle {
  0% {
    transform: translate(0, -12px);
  }
  25% {
    transform: translate(12px, 0);
  }
  50% {
    transform: translate(0, 12px);
  }
  75% {
    transform: translate(-12px, 0);
  }
  100% {
    transform: translate(0, -12px);
  }
}

@keyframes chatbot-circle-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(0, -10px) scale(0.9);
  }
  25% {
    transform: translate(10px, 0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(0, 10px) scale(1);
  }
  75% {
    transform: translate(-10px, 0) scale(1);
  }
}

.chatbot-processing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px;
  min-height: 48px;
  background: transparent;
  position: relative;
}

.chatbot-processing-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: 48px;
  height: 48px;
}

.chatbot-processing-dots span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--chatbot-royal-blue);
  animation: chatbot-circle 1.6s linear infinite;
}

.chatbot-processing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.chatbot-processing-dots span:nth-child(2) {
  animation-delay: 0.53s;
}

.chatbot-processing-dots span:nth-child(3) {
  animation-delay: 1.06s;
}

/* 5 bouncing dots in linear motion */
@keyframes chatbot-five-dots-bounce-linear {
  0%, 100% {
    transform: translate(-24px, 0);
  }
  25% {
    transform: translate(-12px, -8px);
  }
  50% {
    transform: translate(0, 0);
  }
  75% {
    transform: translate(12px, -8px);
  }
}

.chatbot-processing-five-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  min-height: 48px;
  background: transparent;
}

.chatbot-processing-five-dots .five-dots-wrap {
  position: relative;
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-processing-five-dots .five-dots-wrap span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--chatbot-royal-blue);
  animation: chatbot-five-dots-bounce-linear 1.4s ease-in-out infinite both;
}

.chatbot-processing-five-dots .five-dots-wrap span:nth-child(1) { animation-delay: 0s; }
.chatbot-processing-five-dots .five-dots-wrap span:nth-child(2) { animation-delay: 0.12s; }
.chatbot-processing-five-dots .five-dots-wrap span:nth-child(3) { animation-delay: 0.24s; }
.chatbot-processing-five-dots .five-dots-wrap span:nth-child(4) { animation-delay: 0.36s; }

/* Alternative: single dot in circular motion */
.chatbot-processing-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  min-height: 48px;
  background: transparent;
}

.chatbot-processing-pulse span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chatbot-royal-blue);
  animation: chatbot-circle-pulse 1.6s ease-in-out infinite;
}

/* Gemini icon – linear motion, royal blue, transparent */
@keyframes chatbot-gemini-linear {
  0%, 100% {
    transform: translateX(-20px);
  }
  50% {
    transform: translateX(20px);
  }
}

@keyframes chatbot-gemini-linear-reverse {
  0%, 100% {
    transform: translateX(20px);
  }
  50% {
    transform: translateX(-20px);
  }
}

.chatbot-processing-gemini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  min-height: 48px;
  background: transparent;
  position: relative;
}

.chatbot-processing-gemini .gemini-icon-wrap {
  position: relative;
  width: 80px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-processing-gemini .gemini-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  color: var(--chatbot-royal-blue);
}

.chatbot-processing-gemini .gemini-icon-1 {
  animation: chatbot-gemini-linear 1.6s ease-in-out infinite;
}

.chatbot-processing-gemini .gemini-icon-2 {
  animation: chatbot-gemini-linear-reverse 1.6s ease-in-out infinite;
}

.chatbot-processing-gemini .gemini-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
