/* Copyright © 2025 ICLT Softech Solutions. All Rights Reserved. Do not copy. */

/* ===================================================
   Theme Variables
   Centralized design tokens for global styling
=================================================== */
:root {
  /* Primary Palette */
  --color-primary: #d6590f;            /* Vibrant Orange */
  --color-primary-dark: #b14b0c;
  --color-primary-rgb: 214, 89, 15;

  /* Accent & Secondary Colors */
  --color-secondary: #f4a261;          /* Warm Accent */

  /* Neutrals */
  --color-white: #ffffff;
  --color-neutral-light: #f8f9fa;      /* Light Gray */
  --color-neutral-dark: #212529;       /* Body Text */
  --color-text-muted: #6c757d;         /* Subtle Text */

  /* Background Variants */
  --color-bg-soft-blue: #eef5ff;
  --color-bg-soft-pink: #fff0f5;
  --color-navbar-bg: #ffffff;
  --color-navbar-hover: #d6590f;

  /* Radius & Shadows */
  --border-radius-lg: 1rem;
  --border-radius-md: 0.5rem;
  --box-shadow-light: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 0.5rem 1rem rgba(214, 89, 15, 0.3);

  /* Typography */
  --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Transitions */
  --transition-fast: 0.3s ease-in-out;
}

/* ===================================================
   Reset & Base Styles
=================================================== */

@font-face {
  font-family: 'BootstrapIcons';
  src: url('bootstrap-icons.woff2') format('woff2');
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 1rem;
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--color-neutral-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Disable vertical scroll if required */
body.overflow-hidden {
  overflow-y: hidden !important;
}

/* Responsive Tweaks for Small Devices */
@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden !important;
    padding-bottom: 60px; /* Ensure space for bottom UI elements */
  }
}

/* ===================================================
   BASE STYLES
=================================================== */
a {
  color: var(--color-neutral-dark);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover,
a:focus {
  color: var(--color-primary);
  outline: none;
}

/* Remove outlines/focus shadows for accessibility overrides */
:focus {
  outline: none !important;
  box-shadow: none !important;
}

button,
.btn,
input[type="submit"] {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* ===================================================
   BUTTONS (Optimized, Reusable, Mobile-First)
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-family-base);
}

.btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* ===================================================
   PRIMARY BUTTON (Fully Customized)
=================================================== */
.btn-primary {
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  line-height: 1.5;
  font-family: var(--font-family-base);
  transition: all 0.3s ease;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--color-primary-dark)!important;
  color: var(--color-white)!important;
}

/* ===================================================
   OUTLINE PRIMARY BUTTON (Fully Customized)
=================================================== */
.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  line-height: 1.5;
  font-family: var(--font-family-base);
  transition: all 0.3s ease;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--color-primary-dark)!important;
  color: var(--color-white)!important;
}


/* GRADIENT */
.btn-gradient {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
}
.btn-gradient:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-gradient:focus,
.btn-gradient:active,
.btn-gradient:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--color-primary-dark)!important;
  color: var(--color-white)!important;
}

/* GRADIENT OUTLINE */
.btn-gradient-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}
.btn-gradient-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* BUTTON SIZES */
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 575.98px) {
  .btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }
  .btn i {
    font-size: 0.85rem;
  }
}

/* ===================================================
   BUTTON GROUPS (Responsive Layouts)
=================================================== */
.button-group-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.button-group-responsive .btn {
  flex: 1 1 auto;
}
@media (max-width: 575.98px) {
  .button-group-responsive {
    gap: 0.25rem;
  }
  .button-group-responsive .btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ===================================================
   TYPOGRAPHY UTILS
=================================================== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }

/* ===================================================
   SECTION TITLE (Animation & Underline)
=================================================== */
.section-title {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-in-out 0.3s;
  border-radius: 4px;
}
.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}
.section-title.animate::before {
  transform: scaleX(1);
}
@media (max-width: 768px) {
  .section-title {
    font-size: 1.2rem;
  }
}