/* =============================================
   HAIx Lab - Theme Variables & Base Styles
   This file contains only CSS custom properties
   and shared base styles. No Divi overrides here.
   ============================================= */

:root {
  /* Colors - IITGNRP Inspired */
  --color-primary: #003366;
  --color-primary-dark: #002244;
  --color-primary-hover: #004488;
  --color-accent: #d4a574;
  --color-accent-hover: #c49464;
  --color-text: #1a1a1a;
  --color-text-light: #1a1a1a;
  --color-text-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-dark: #003366;
  --color-border: #e0e0e0;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 0.9375rem;
  --font-size-body: 0.9375rem;
  --font-size-body-relaxed: 1rem;
  --font-size-body-compact: 0.9rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.4rem;
  --font-size-2xl: 1.85rem;
  --font-size-3xl: 2.3rem;
  --font-size-4xl: 2.7rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Keep WordPress Divi navbar typography native without changing other page content. */
body.et_divi_theme #main-header #top-menu li a,
body.et_pb_pagebuilder_layout #main-header #top-menu li a,
body.et-db #main-header #top-menu li a,
body.et_divi_theme .et-fixed-header #top-menu li a,
body.et_pb_pagebuilder_layout .et-fixed-header #top-menu li a,
body.et-db .et-fixed-header #top-menu li a {
  font-family: "Open Sans", Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 14px !important;
}

body.et_divi_theme #main-header #top-menu li a:hover,
body.et_divi_theme #main-header #top-menu li.current-menu-item > a,
body.et_divi_theme .et-fixed-header #top-menu li a:hover,
body.et_divi_theme .et-fixed-header #top-menu li.current-menu-item > a,
body.et_pb_pagebuilder_layout #main-header #top-menu li a:hover,
body.et_pb_pagebuilder_layout #main-header #top-menu li.current-menu-item > a,
body.et_pb_pagebuilder_layout .et-fixed-header #top-menu li a:hover,
body.et_pb_pagebuilder_layout .et-fixed-header #top-menu li.current-menu-item > a,
body.et-db #main-header #top-menu li a:hover,
body.et-db #main-header #top-menu li.current-menu-item > a,
body.et-db .et-fixed-header #top-menu li a:hover,
body.et-db .et-fixed-header #top-menu li.current-menu-item > a {
  color: rgb(46, 163, 242) !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}

p {
  font-size: var(--font-size-body);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  text-align: justify;
  text-justify: inter-word;
}

li {
  font-weight: 300;
  text-align: justify;
  text-justify: inter-word;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

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

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

/* Cards */
.card {
  background: var(--color-bg);
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* Form Inputs */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: var(--color-bg);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-light {
  color: var(--color-text-light);
}
.text-white {
  color: var(--color-text-white);
}
.text-accent {
  color: var(--color-accent);
}
.text-primary {
  color: var(--color-primary);
}
.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}
.mb-xl {
  margin-bottom: var(--spacing-xl);
}
.mb-2xl {
  margin-bottom: var(--spacing-2xl);
}