/* ============================================
   DAU Technologies - Global Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --primary: #00897b;
  --primary-dark: #00695c;
  --primary-light: #4db6ac;
  --secondary: #ffa726;
  --secondary-dark: #f57c00;
  --dark: #1e2832;
  --surface: #f8faf9;
  --card: #ffffff;
  --success: #43a047;
  --error: #e53935;
  --warning: #ffa726;
  --text-primary: #1c1b1f;
  --text-secondary: #607d8b;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-brand:hover {
  color: #fff;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  background: var(--secondary);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--secondary-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.25rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    display: block;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--secondary-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 137, 123, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   FEATURES / STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item p {
  color: var(--text-secondary);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde2e5;
  border-radius: var(--radius);
  font-size: 1rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.15);
}

.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-control.success {
  border-color: var(--success);
}

.form-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 1.1rem;
}

/* File Upload */
.file-upload {
  border: 2px dashed #dde2e5;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition);
  position: relative;
}

.file-upload:hover {
  border-color: var(--primary);
  background: rgba(0, 137, 123, 0.03);
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.file-upload-label strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
  position: fixed;
  top: 80px;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.4s ease;
  z-index: 2000;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: var(--success);
}

.notification.error {
  background: var(--error);
}

.notification.warning {
  background: var(--warning);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PAGE-SPECIFIC: DRIVER SIGNUP
   ============================================ */
.signup-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.signup-success {
  text-align: center;
  padding: 3rem 2rem;
  display: none;
}

.signup-success.visible {
  display: block;
}

.signup-success svg {
  width: 64px;
  height: 64px;
  color: var(--success);
  margin-bottom: 1rem;
}

.signup-success h2 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

/* ============================================
   PAGE-SPECIFIC: ADMIN CMS
   ============================================ */
.cms-container {
  max-width: 900px;
  margin: 0 auto;
}

.cms-panel {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.cms-panel h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cms-field {
  margin-bottom: 1.25rem;
}

.cms-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cms-field textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde2e5;
  border-radius: var(--radius);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--transition);
}

.cms-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.cms-field input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #dde2e5;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.cms-field input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
}

.cms-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cms-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(67, 160, 71, 0.1);
  color: var(--success);
}

/* ============================================
   PAGE-SPECIFIC: CONTENT PAGES
   ============================================ */
.page-hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  margin-bottom: 1rem;
}

.content-section h3 {
  margin: 1.5rem 0 0.75rem;
}

.content-section p,
.content-section li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.content-section ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.content-section ol {
  padding-left: 1.5rem;
  list-style: decimal;
}

/* Benefits List */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0, 137, 123, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.step-item {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(0, 137, 123, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* Careers */
.job-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-card h3 {
  margin-bottom: 0.25rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   APP DOWNLOAD SECTION
   ============================================ */
.app-download {
  background: #fff;
  text-align: center;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background var(--transition),
    transform var(--transition);
}

.app-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

.app-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-btn-text {
  text-align: left;
  line-height: 1.2;
}

.app-btn-text small {
  font-size: 0.7rem;
  opacity: 0.8;
  display: block;
}

.app-btn-text span {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 576px) {
  .hero {
    padding: 3rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .signup-container {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}
