/* ============================================================================
   OFFICE54 - Professional Recruitment Platform CSS
   Based on office54.de design inspiration
   ============================================================================ */

/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap");

/* Import Component CSS Files */
@import url("./theme.css");
@import url("./sections.css");
@import url("./navbar.css");
@import url("./hero.css");
@import url("./footer.css");
@import url("./forms.css");
@import url("./buttons.css");
@import url("./cards.css");
@import url("./modals.css");
@import url("./utilities.css");
@import url("./animations.css");
@import url("./jobs-section.css");
@import url("./responsive.css");

/* CSS Architecture:
   - variables.css: CSS custom properties (if exists)
   - theme.css: Theme-specific styles
   - sections.css: Section styles
   - navbar.css: Navigation styles
   - hero.css: Hero section styles
   - footer.css: Footer styles
   - forms.css: Form styles
   - utilities.css: Utility classes
   - animations.css: Animation keyframes
   - responsive.css: Media queries

   This main.css contains base styles and color palette
   ============================================================================ */

/* Color Palette */
:root {
  /* Primary Colors */
  --primary-blue: #0056b3;
  --primary-dark-blue: #003d82;
  --primary-light-blue: #007bff;

  /* Neutral Colors */
  --dark-grey: #1a1a1a;
  --medium-grey: #6c757d;
  --light-grey: #f8f9fa;
  --border-grey: #dee2e6;
  --white: #ffffff;

  /* Accent Colors */
  --success-green: #28a745;
  --danger-red: #dc3545;
  --warning-orange: #ffc107;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  /* Accent teal color used for team image background */
  --accent-teal: #03b5b7;

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-standard: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--dark-grey);
  background-color: var(--white);
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

/* Sticky Footer Layout */
#page-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-3xl);
}
h2 {
  font-size: var(--font-size-2xl);
}
h3 {
  font-size: var(--font-size-xl);
}
h4 {
  font-size: var(--font-size-lg);
}
h5,
h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark-blue);
}

/* ============================================================================
   LAYOUT & CONTAINER
   ============================================================================ */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-fluid {
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ============================================================================
   NAVIGATION & HEADER - See navbar.css for detailed styles
   ============================================================================ */

/* Header and navbar styles are defined in navbar.css */
/* Do not add conflicting styles here */

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark-blue);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--medium-grey);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--dark-grey);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-dark-blue) 100%
  );
  color: var(--white);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  animation: fadeInDown 0.8s ease-out;
}

.hero p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
  margin: 0 var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  /* Entrance transition */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero .btn.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Interaction state - applied after entrance */
.hero .btn.interaction-ready {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

 

section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: var(--font-size-2xl);
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--medium-grey);
  font-size: var(--font-size-lg);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: var(--space-xl);
  transition: all var(--transition-standard);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--medium-grey);
  line-height: 1.6;
}

.card-icon {
  font-size: var(--font-size-3xl);
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

/* ============================================================================
   TEAM SECTION
   ============================================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.team-member {
  text-align: center;
  padding: var(--space-lg);
  border-radius: 8px;
  background: var(--light-grey);
  transition: all var(--transition-standard);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.team-member-image {
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin: 0 auto var(--space-md);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--accent-teal, #07b5bf);
  padding: 1.2rem;
}

/* inner image */
.team-member-photo {
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  object-position: center;
}

.team-member-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.team-member-role {
  font-size: var(--font-size-base);
  color: var(--primary-blue);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-member-bio {
  font-size: var(--font-size-sm);
  color: var(--medium-grey);
}

/* Team card visual improvements */
.team-member {
  padding-top: 1rem;
  background: transparent; /* we want the teal block to be the visual */
}
.team-member .team-member-image {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
  border-radius: 18px;
}
.team-member-name {
  color: var(--primary-dark-blue);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.team-member-role {
  color: rgba(24, 27, 56, 0.6);
  margin-bottom: 0.75rem;
}
.team-member-bio {
  max-width: 320px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .team-member .team-member-image {
    height: 320px;
    max-width: 100%;
  }
  .team-member .team-member-photo {
    height: 100%;
    width: auto;
  }
}

/* ============================================================================
   TAB COMPONENT
   ============================================================================ */

.tabs {
  margin-bottom: var(--space-2xl);
}

.tab-buttons {
  display: flex;
  gap: var(--space-md);
  border-bottom: 2px solid var(--border-grey);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.tab-button {
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--medium-grey);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-button:hover {
  color: var(--primary-blue);
}

.tab-button.active {
  color: var(--primary-blue);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

/* ============================================================================
   SERVICE CARDS GRID
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-grey);
  border-radius: 14px;
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-standard);
}

.service-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* icon background for service card */
.service-icon.icon-bg {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-teal), var(--primary-blue));
  color: white;
  border-radius: 12px;
  margin-bottom: var(--space-md);
  font-size: 1.75rem;
}

.service-title {
  font-size: 1.15rem;
  margin-top: 0.75rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: var(--space-md);
}

.service-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.service-description {
  color: var(--medium-grey);
  font-size: var(--font-size-sm);
}

/* ============================================================================
   TESTIMONIALS / REVIEWS
   ============================================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-quote {
  font-size: var(--font-size-base);
  color: var(--dark-grey);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--font-size-base);
}

.testimonial-role {
  font-size: var(--font-size-sm);
  color: var(--medium-grey);
}

.testimonial-rating {
  color: var(--warning-orange);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--dark-grey);
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

input[type="checkbox"],
input[type="radio"] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.form-check label {
  margin-bottom: 0;
  font-weight: 400;
}

.form-error {
  color: var(--danger-red);
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

.form-success {
  color: var(--success-green);
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer.footer {
  background: var(--dark-grey);
  color: var(--white);
  padding: var(--space-3xl) var(--space-lg);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer-contact-icon {
  font-size: var(--font-size-lg);
  color: var(--primary-blue);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--space-sm);
}
.mt-2 {
  margin-top: var(--space-md);
}
.mt-3 {
  margin-top: var(--space-lg);
}
.mt-4 {
  margin-top: var(--space-xl);
}

.mb-1 {
  margin-bottom: var(--space-sm);
}
.mb-2 {
  margin-bottom: var(--space-md);
}
.mb-3 {
  margin-bottom: var(--space-lg);
}
.mb-4 {
  margin-bottom: var(--space-xl);
}

.pt-1 {
  padding-top: var(--space-sm);
}
.pt-2 {
  padding-top: var(--space-md);
}
.pt-3 {
  padding-top: var(--space-lg);
}
.pt-4 {
  padding-top: var(--space-xl);
}

.pb-1 {
  padding-bottom: var(--space-sm);
}
.pb-2 {
  padding-bottom: var(--space-md);
}
.pb-3 {
  padding-bottom: var(--space-lg);
}
.pb-4 {
  padding-bottom: var(--space-xl);
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-50 {
  opacity: 0.5;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .navbar__menu {
    gap: var(--space-md);
    font-size: var(--font-size-sm);
  }

  .hero {
    min-height: 400px;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero h1 {
    font-size: var(--font-size-2xl);
  }

  .hero p {
    font-size: var(--font-size-base);
  }

  section {
    padding: var(--space-2xl) var(--space-md);
  }

  .row {
    gap: var(--space-md);
  }

  .col-6 {
    grid-column: span 12;
  }
  .col-4 {
    grid-column: span 12;
  }
  .col-3 {
    grid-column: span 12;
  }

  .team-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .navbar__brand {
    font-size: var(--font-size-lg);
  }

  .navbar__right {
    gap: var(--space-md);
  }

  .hero {
    min-height: 300px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   CONTAINER & LAYOUT SYSTEM
   ============================================================================ */

.container,
.container-fluid {
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  padding: 0 2rem;
}

.container-fluid {
  padding: 0 2rem;
}

/* Sections - proper spacing without double padding */
section {
  width: 100%;
  box-sizing: border-box;
  /* Use variables for consistent spacing */
  /* margin-top: var(--space-xl); */
  padding: var(--space-3xl) var(--space-lg);
}

/* ============================================================================
   DEBUG MODE - Show data source indicator
   ============================================================================ */

.debug-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.debug-badge.cache {
  background: var(--success-green);
  color: var(--white);
}

.debug-badge.database {
  background: var(--primary-blue);
  color: var(--white);
}

.debug-badge.defaults {
  background: var(--warning-orange);
  color: var(--dark-grey);
}
