@import "root.css";

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

ul,
ol {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark-bg);
  line-height: 1.25;
}

/* Main Content Page Container */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition-normal);
}

.page-fade-out {
  opacity: 0;
}

/* Prevent transitions/animations flicker during dynamic page styling updates */
.no-transitions,
.no-transitions * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -o-animation: none !important;
  animation: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Page Layout content styling */
.hero-section {
  background: var(--section-bg);
  color: var(--text-white);
  padding: 8rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}

.hero-text h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-text p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

.cta-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cta-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 91, 164, 0.4);
}

.cta-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: white;
  transform: translateY(-2px);
}

.visual-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.visual-card h3 {
  color: white;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.visual-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.logo-list {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.badge-item {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Page Header Section */
.page-header-section {
  background: var(--section-bg);
  color: white;
  padding: 6rem 0 4rem 0;
}

.page-header-section h1 {
  color: white;
  font-size: 2.5rem;
  margin-top: 1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #94a3b8;
}

.breadcrumb a {
  color: var(--secondary);
}

/* Grid & Content Layouts */
.section-padding {
  padding: 5rem 0;
}

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

.section-header {
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

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

/* Forms & Cards Styling */
.card-wrapper {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  background: #f8fafc;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 91, 164, 0.1);
}

.submit-btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
  text-align: center;
  font-size: 1rem;
}

.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.contact-details-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-card {
  background: white;
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 8px;
}

.detail-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.detail-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.detail-card a {
  color: var(--primary);
}

.info-card {
  border-left: 4px solid var(--primary);
}

/* Login Page custom structures */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 450px;
  padding: 1.5rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.forgot-pwd {
  color: var(--primary);
}

.login-footer {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--primary);
  font-weight: 600;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
}

.features-checklist-side {
  background: white;
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-item-card {
  display: flex;
  gap: 1rem;
}

.feature-bullet {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
}

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

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

@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-grid,
  .two-col-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-section {
    padding: 6rem 0 4rem 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Layout for Subpages */
.subpage-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.subpage-sidebar {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.sidebar-link svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.5;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  padding-left: 1.25rem;
}

.sidebar-link:hover svg {
  transform: translateX(3px);
}

.sidebar-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .subpage-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
