/* ============================================
   EXENBERGER IT SERVICES - GLOBALES STYLING
   MOBILE-FIRST RESPONSIVE DESIGN
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0052CC;
  --secondary-color: #6C757D;
  --success-color: #28A745;
  --danger-color: #DC3545;
  --warning-color: #FFC107;
  --light-color: #F8F9FA;
  --dark-color: #212529;
  --text-color: #333333;
  --border-color: #E9ECEF;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size: 16px;
  --line-height: 1.6;
  --spacing-unit: 1rem;
}

/* ============================================
   BASE STYLES
   ============================================ */

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text-color);
  background-color: #FFFFFF;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

a:hover, a:active {
  color: darken(var(--primary-color), 10%);
  text-decoration: underline;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
  color: var(--dark-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.9rem;
}

p {
  margin-bottom: var(--spacing-unit);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: var(--dark-color);
  color: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

.logo:active {
  color: var(--primary-color);
}

/* Mobile hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 0.5rem 0;
}

nav a:active {
  color: var(--primary-color);
  text-decoration: none;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:active::after {
  width: 100%;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.section {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.section:last-child {
  border-bottom: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-primary:active {
  background-color: #0041A8;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:active {
  background-color: #5A6268;
  text-decoration: none;
}

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

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

/* ============================================
   FORMS
   ============================================ */

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: white;
  min-height: 44px;
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-size: 1rem;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  cursor: pointer;
  min-height: auto;
  margin-right: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

form > div {
  margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section a {
  color: #CCCCCC;
  display: inline-block;
  margin: 0.5rem;
}

.footer-section a:active {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.copyright {
  font-size: 0.85rem;
  color: #CCCCCC;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* ============================================
   TABLET STYLES (768px+)
   ============================================ */

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.25rem;
  }

  h6 {
    font-size: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  nav {
    gap: 2rem;
  }

  nav a {
    padding: 0.75rem 0;
  }

  main {
    padding: 2rem;
  }

  .section {
    margin: 3rem 0;
    padding: 3rem 0;
  }

  .btn {
    width: auto;
  }

  .btn-primary, .btn-outline {
    width: auto;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
  }

  .footer-section {
    text-align: left;
  }

  .footer-section a {
    display: block;
    margin: 0;
    margin-bottom: 0.5rem;
  }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  header {
    padding: 1rem 0;
  }

  .header-container {
    padding: 0 2rem;
  }

  .menu-toggle {
    display: none !important;
  }

  nav {
    gap: 2rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.rounded {
  border-radius: 4px;
}

.shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ACCESSIBILITY & FOCUS STATES
   ============================================ */

button:focus, a:focus, input:focus, textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header, footer, .contact-form {
    display: none;
  }

  main {
    padding: 0;
  }
}
