/* Root CSS Variables */
:root {
  --accent-color: #8bbf81;
  --accent2-color: #f4d03f;
  --accent3-color: #507dbc;
  --accent4-color: #e94f37;
  --primary-color: #d55a2a;
  --dark-text-color: #1a1a1a;
  --gray-text-color: #737373;
  --button-padding-x: 16px;
  --button-padding-y: 10px;
  --font-family-body: 'Open Sans', sans-serif;
  --light-text-color: #f8f8f8;
  --dark-border-color: #9c6c5b;
  --light-border-color: #eddcd6;
  --font-family-heading: 'Barlow', sans-serif;
  --button-rounded-radius: 12px;
  --dark-background-color: #212121;
  --light-background-color: #f6e6e1;
  --medium-background-color: #ebbfb4;
  --primary-button-text-color: #ffffff;
  --secondary-button-bg-color: #333333;
  --secondary-button-text-color: #ffffff;
  --primary-button-hover-bg-color: #bf4822;
  --primary-button-hover-text-color: #ffffff;
  --secondary-button-hover-bg-color: #555555;
  --secondary-button-hover-text-color: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-family-body);
  color: var(--dark-text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.9;
}

/* Buttons */
button,
.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

button:focus,
.btn:focus {
  outline: none;
}

/* Form Elements */
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

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

/* Utility Classes */
.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

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

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

/* RTL Direction */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Grid */
.grid {
  display: grid;
}

/* Spacing */
.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Background Colors */
.bg-white {
  background-color: white;
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-dark {
  background-color: var(--dark-background-color);
}

.bg-light {
  background-color: var(--light-background-color);
}

/* Text Colors */
.text-primary {
  color: var(--primary-color);
}

.text-white {
  color: white;
}

.text-dark {
  color: var(--dark-text-color);
}

.text-gray {
  color: var(--gray-text-color);
}

.text-light {
  color: var(--light-text-color);
}

/* Border */
.border-r {
  border-right: 4px solid var(--primary-color);
}

.rounded {
  border-radius: 0.5rem;
}

.rounded-lg {
  border-radius: 0.75rem;
}

.rounded-xl {
  border-radius: 1rem;
}

.rounded-2xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadow */
.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Hover Effects */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-2xl:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Transition */
.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease;
}

/* Display */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .lg\:hidden {
    display: none;
  }
  
  .hidden.lg\:hidden {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }
  
  .lg\:hidden {
    display: none;
  }
  
  .lg\:block {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

/* Gradient Overlay */
.gradient-overlay {
  background: linear-gradient(to left, black, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
}

/* Process Steps */
.process-step {
  position: relative;
}

.process-step-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

/* Decorative Shapes */
.shape-circle {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  position: absolute;
  z-index: 0;
}

.shape-circle.primary {
  background-color: var(--primary-color);
}

.shape-circle.accent {
  background-color: var(--accent-color);
}

/* Service Cards */
.service-card {
  background-color: var(--dark-text-color);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* Feature List */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-list i {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text-color);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid var(--light-border-color);
  font-family: inherit;
  font-size: inherit;
  transition: border-color 0.3s ease;
}

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

/* Header */
header {
  z-index: 50;
}

/* Section Spacing */
section {
  scroll-margin-top: 80px;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Quote Box */
.quote-box {
  background-color: var(--dark-text-color);
  border-right: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 0.75rem;
  font-style: italic;
}

.quote-box p:first-child {
  color: var(--light-text-color);
  margin-bottom: 1rem;
}

.quote-box p:last-child {
  color: var(--primary-color);
  font-weight: bold;
  font-style: normal;
}

/* Social Icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--dark-text-color);
  border-radius: 50%;
  color: var(--light-text-color);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--primary-button-text-color);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive Header */
@media (max-width: 768px) {
  header {
    padding: 0.5rem 0;
  }

  header .max-w-7xl {
    padding: 0.5rem 1rem;
  }

  header .flex {
    gap: 1rem;
  }

  header a.flex-shrink-0 {
    flex-shrink: 1 !important;
    min-width: 0;
  }

  header img {
    height: auto !important;
    max-height: 60px !important;
    padding: 0.25rem 0 !important;
    width: auto !important;
  }

  header .mobile-menu-toggle {
    display: block !important;
    flex-shrink: 0 !important;
    padding: 0.5rem !important;
  }

  .lg\:hidden {
    display: block !important;
  }
}

@media (max-width: 480px) {
  /* Extra small devices - even smaller logo */
  header img {
    max-height: 48px !important;
  }

  header .text-2xl {
    font-size: 1.25rem;
  }

  header .mobile-menu-toggle {
    padding: 0.25rem !important;
  }

  .lg\:hidden {
    display: block !important;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  a {
    text-decoration: underline;
  }

  section {
    page-break-inside: avoid;
  }
}
