/*
  Theme: Клининговые услуги для арабоговорящих в ОАЭ
  Domain: unapplicativeznb.com
  Design System: Корпоративный
  UI Trend: Объемные элементы UI
  Color Scheme: Пастельная
  Animation Style: Прокрутка-зависимые эффекты
*/

:root {
  /* Colors - Pastel Scheme with Corporate feel */
  --color-primary: #A5D6A7; /* Pastel Green - main action */
  --color-primary-dark: #81C784; /* Darker Pastel Green - hover */
  --color-primary-text: #FFFFFF;

  --color-secondary: #E3F2FD; /* Pastel Blue - backgrounds, accents */
  --color-secondary-dark: #B9E0F9;
  --color-secondary-text: #1A237E; /* Dark Indigo for text on pastel blue */

  --color-accent1: #D1C4E9; /* Pastel Purple - borders, minor accents */
  --color-accent1-dark: #BEAADE;
  --color-accent1-text: #4527A0; /* Dark Purple for text on pastel purple */

  --color-accent2: #FFF59D; /* Pastel Yellow - highlights */
  --color-accent2-dark: #FFF176;
  --color-accent2-text: #795548; /* Brown for text on pastel yellow */
  
  --color-background-body: #FDF6F0; /* Light Pastel Peach/Cream - main body */
  --color-background-card: #FFFFFF;
  --color-background-footer: #E8F5E9; /* Light Pastel Green */
  --color-background-section-alt1: var(--color-secondary); /* Pastel Blue */
  --color-background-section-alt2: var(--color-background-footer); /* Pastel Green */

  --color-text-light: #FFFFFF;
  --color-text-dark: #333333; /* Main body text */
  --color-text-heading: #222222; /* Darker for headings */
  --color-text-muted: #555555;
  --color-text-link: #0D47A1; /* Dark Blue for links */
  --color-text-link-hover: #0B3A82; /* Darker blue for link hover */

  /* Fonts */
  --font-heading: 'Poppins', 'Cairo', sans-serif;
  --font-body: 'Work Sans', 'Cairo', sans-serif;

  /* Shadows for Volumetric UI */
  --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 12px 24px rgba(0,0,0,0.15);
  --shadow-volumetric: 3px 3px 10px rgba(0,0,0,0.1), -2px -2px 5px rgba(255,255,255,0.7);
  --shadow-volumetric-hover: 5px 5px 15px rgba(0,0,0,0.15), -3px -3px 7px rgba(255,255,255,0.8);
  --shadow-inset: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,0.7);

  /* Borders */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-color: var(--color-accent1);

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-medium: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;

  /* Spacing */
  --space-xs: 0.5rem;  /* 8px */
  --space-sm: 1rem;    /* 16px */
  --space-md: 1.5rem;  /* 24px */
  --space-lg: 2.5rem;  /* 40px */
  --space-xl: 4rem;    /* 64px */

  /* Header Height */
  --header-height: 70px; /* Approximate based on HTML structure */
}

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

html {
  scroll-behavior: smooth;
  direction: rtl; /* Set for Arabic */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background-body);
  color: var(--color-text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
  padding-top: 0px !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  margin-bottom: var(--space-md);
  text-align: center;
  line-height: 1.3;
  font-weight: 700; /* Poppins is often bold for headings */
}

h1 { font-size: 2.8em; margin-bottom: var(--space-lg); }
h2 { font-size: 2.2em; margin-bottom: var(--space-md); }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-text-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md); /* Default rounded images */
}

ul {
  list-style-position: inside; /* For RTL text alignment with bullets */
  padding-right: var(--space-sm); /* Indent for RTL lists */
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Sections */
section {
  padding: var(--space-xl) 0;
  overflow: hidden; /* For scroll reveal animations */
}

/* Global Button Styles */
.button, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  padding: 12px 25px;
  font-family: var(--font-heading);
  font-size: 1em;
  font-weight: bold;
  color: var(--color-primary-text);
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-volumetric);
  -webkit-appearance: none; /* Removes default iOS styling */
  -moz-appearance: none;
  appearance: none;
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-primary-text); /* Ensure text color remains on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-volumetric-hover);
  text-decoration: none;
}

.button.button-secondary {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);
}
.button.button-secondary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-secondary-text);
}

/* Header */
header {
  background-color: var(--color-secondary);
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-secondary-text);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.header-contact-info {
  font-size: 0.9em;
  color: var(--color-text-dark);
}
.header-contact-info a {
  color: var(--color-text-dark);
  font-weight: 500;
}
.header-contact-info a:hover {
  color: var(--color-text-link);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin-right: var(--space-md); /* margin-left for LTR */
}
nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0; /* left for LTR */
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}
nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--color-text-link);
  text-decoration: none;
}

/* Burger Menu */
.burger-menu {
  display: none;
  cursor: pointer;
  z-index: 1001; /* Above nav links when they are absolute */
}
.burger-menu div {
  width: 25px;
  height: 3px;
  background-color: var(--color-text-heading);
  margin: 5px 0;
  transition: var(--transition-medium);
}
.burger-menu.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.open div:nth-child(2) {
  opacity: 0;
}
.burger-menu.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Hero Section */
#hero {
  min-height: 80vh; /* Allow dynamic height based on content */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light); /* White text for hero */
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: var(--space-xl) var(--space-sm);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65)); /* Dark overlay for text readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

#hero h1 {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  margin-bottom: var(--space-md);
  color: var(--color-text-light); /* Ensure white color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Shadow for better readability */
}

#hero p {
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  margin-bottom: var(--space-lg);
  color: var(--color-text-light); /* Ensure white color */
  line-height: 1.8;
}

/* Card Styles */
.card {
  background-color: var(--color-background-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%; /* For equal height cards in a grid */
}

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

.card-image { /* Container for the image */
  width: 100%;
  overflow: hidden;
  position: relative; /* For potential overlays or aspect ratio control */
  /* If specific aspect ratio is desired for the container:
  padding-top: 75%; /* 4:3 Aspect Ratio */
}

.card-image img {
  width: 100%;
  height: 100%; /* Fill the container */
  display: block;
  object-fit: cover; /* Ensures image covers the area, might crop */
  aspect-ratio: 4 / 3; /* Maintain aspect ratio */
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; /* Round top corners */
  transition: transform var(--transition-slow);
}
.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
  padding: var(--space-md);
  text-align: right; /* Default for Arabic */
  flex-grow: 1; /* Allows content to fill space for equal height cards */
}

.card-content h3, .card-content h4 {
  margin-top: 0;
  color: var(--color-secondary-text); /* Example: Dark Indigo for card titles */
  text-align: right; /* Override global center for card titles in RTL */
  margin-bottom: var(--space-sm);
}
.card-content p {
  color: var(--color-text-muted);
  font-size: 0.95em;
  margin-bottom: var(--space-sm);
}
.card-content .button {
    margin-top: auto; /* Push button to bottom if card content varies */
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
    margin-top: var(--space-sm);
    transition: color var(--transition-fast);
}
.read-more-link::after {
    content: ' \2190'; /* Left arrow for RTL */
    font-family: sans-serif; /* Ensure arrow displays correctly */
}
.read-more-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}


/* Grid Layout (already in HTML style, can be enhanced or moved here) */
.grid { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .grid-cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-cols-4 { grid-template-columns: repeat(4, 1fr); } }


/* Accordion */
.accordion-item {
  margin-bottom: var(--space-xs);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--color-background-card);
  box-shadow: var(--shadow-soft);
}
.accordion-header {
  background-color: var(--color-secondary);
  padding: var(--space-sm);
  cursor: pointer;
  font-weight: bold;
  color: var(--color-secondary-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}
.accordion-header:hover {
  background-color: var(--color-secondary-dark);
}
.accordion-header::after {
  content: '+'; /* Plus sign */
  font-size: 1.5em;
  transition: transform var(--transition-medium);
}
.accordion-item.active .accordion-header::after {
  content: '−'; /* Minus sign */
  transform: rotate(180deg);
}
.accordion-content {
  padding: var(--space-sm);
  display: none;
  border-top: 1px solid var(--border-color);
  background-color: var(--color-background-card);
}
.accordion-content p:last-child {
    margin-bottom: 0;
}
.accordion-item.active .accordion-content {
  display: block;
}
.accordion-content img {
    margin-top: var(--space-sm);
    width: 100%;
    max-width: 350px; /* Limit image size within accordion */
}


/* Stats Widget */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  text-align: center;
}
.stat-widget {
  background-color: var(--color-secondary);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-volumetric);
  transition: var(--transition-medium);
}
.stat-widget:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-volumetric-hover);
}
.stat-widget .stat-number {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--color-secondary-text);
  display: block;
  margin-bottom: var(--space-xs);
}
.stat-widget .stat-label {
  font-size: 1em;
  color: var(--color-text-dark);
}

/* Parallax Section */
.parallax-section {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: var(--space-xl) var(--space-sm);
  color: var(--color-text-light); /* Default text color for parallax sections */
}
.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55); /* Dark overlay for text readability */
  z-index: 1;
}
.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.parallax-content h2,
.parallax-content p {
  color: var(--color-text-light);
}
.parallax-content h2 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
.parallax-content p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: right;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-sizing: border-box;
  background-color: var(--color-background-body);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
  font-family: var(--font-body);
  font-size: 1em;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-inset), 0 0 0 3px rgba(var(--color-primary-rgb, 165, 214, 167), 0.3); /* Add --color-primary-rgb if needed */
}
select.form-control {
    appearance: none; /* For custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center; /* right for LTR */
    padding-left: 2.5rem; /* padding-right for LTR */
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Contact Details Specifics */
.contact-details h4 {
    text-align: right;
    margin-bottom: var(--space-sm);
}
.contact-details p {
    text-align: right;
    margin-bottom: var(--space-xs);
}
.contact-details strong {
    color: var(--color-text-heading);
}

/* Section Specific Backgrounds */
#process, #behind-the-scenes {
    background-color: var(--color-background-section-alt1); /* Pastel Blue */
    border-radius: var(--border-radius-lg);
}
#careers {
    background-color: var(--color-background-body); /* Default body background or a slight variation */
}

/* Footer */
footer {
  background-color: var(--color-background-footer);
  color: var(--color-text-dark);
  padding: var(--space-lg) 0;
  text-align: center;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: var(--space-sm);
}
.footer-nav ul li a {
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 500;
}
.footer-nav ul li a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.social-links {
    margin-bottom: var(--space-sm);
}
.social-links a {
  color: var(--color-text-dark);
  text-decoration: none;
  margin: 0 var(--space-xs);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.social-links a:hover {
  color: var(--color-primary-dark);
}
.copyright {
  margin-top: var(--space-md);
  font-size: 0.9em;
  color: var(--color-text-muted);
}
footer p {
    margin-bottom: var(--space-xs);
}

/* Success Page Specific Styles */
.success-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--color-background-body);
}
.success-page-container h1 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.success-page-container p {
  font-size: 1.2em;
  margin-bottom: var(--space-lg);
}
.success-page-container .button {
    box-shadow: var(--shadow-volumetric); /* Re-apply if needed outside main scope */
}

/* Privacy & Terms Pages Specific Styles */
.privacy-page-container,
.terms-page-container {
  padding-top: calc(var(--header-height) + var(--space-lg)); /* Header height + extra space */
  padding-bottom: var(--space-lg);
}
.privacy-page-container .container h1,
.terms-page-container .container h1 {
    margin-bottom: var(--space-lg);
    text-align: right; /* Align heading to right for content pages */
}
.privacy-page-container .container h2,
.terms-page-container .container h2 {
    text-align: right;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text-heading);
}
.privacy-page-container .container p,
.terms-page-container .container p,
.privacy-page-container .container ul,
.terms-page-container .container ul {
    text-align: right;
}
.privacy-page-container .container ul,
.terms-page-container .container ul {
    padding-right: var(--space-md); /* Indent list for RTL */
}

/* Utility Classes */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-light { color: var(--color-text-light) !important; }
.text-primary { color: var(--color-primary) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 2.4em; }
  h2 { font-size: 1.9em; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 2em; }
  h2 { font-size: 1.6em; }
  section { padding: var(--space-lg) 0; }
  .container { width: 95%; }

  .header-contact-info {
    display: none; /* Hide on smaller screens or move */
  }

  nav ul {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-soft);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border-color);
  }
  nav ul.active {
    display: flex; /* Show when active */
  }
  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  nav ul li a {
    padding: var(--space-sm);
    display: block;
    border-bottom: 1px solid var(--border-color);
    color: var(--color-text-dark);
  }
  nav ul li:last-child a {
    border-bottom: none;
  }
  nav ul li a::after { display: none; } /* Remove underline effect for mobile nav */
  nav ul li a:hover,
  nav ul li a.active {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
  }

  .burger-menu {
    display: block;
  }

  #hero { min-height: 60vh; }
  #hero h1 { font-size: clamp(2em, 6vw, 2.8em); }
  #hero p { font-size: clamp(1em, 3vw, 1.2em); }

  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr; /* Stack columns on smaller screens */
  }
  
  .contact-details {
    padding-right: 0; /* Remove padding for stacked layout */
    margin-top: var(--space-lg);
  }
}


/* ScrollReveal will handle visibility and animation triggering */
/* Example: if you wanted a fade-in without ScrollReveal
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
*/

/* Cookie Popup - already styled inline in HTML, ensure it's above other elements */
#cookie-popup {
    z-index: 9999;
}
#cookie-popup p a {
    color: var(--color-primary); /* Use theme color for link */
    font-weight: bold;
}
#cookie-popup button {
    background-color: var(--color-primary);
    color: var(--color-primary-text);
}
#cookie-popup button:hover {
    background-color: var(--color-primary-dark);
}

/* Ensure data-prompt images in HTML are styled correctly if they are actual img tags */
img[data-prompt] {
    /* General styles for images with data-prompt are already covered by img global styles */
    /* If specific constraints are needed: */
    /* e.g., max-height: 300px; object-fit: contain; */
}

/* Ensure parallax sections retain fixed background behavior, especially on mobile */
@media (prefers-reduced-motion: reduce) {
  .parallax-section {
    background-attachment: scroll; /* Disable fixed attachment for reduced motion */
  }
}

/* Fix for potential fixed header overlap with in-page anchors */
[id]:before {
  content: "";
  display: block;
  height: calc(var(--header-height) + 15px); /* Header height + offset */
  margin-top: calc(-1 * (var(--header-height) + 15px)); /* Negative margin */
  visibility: hidden;
  pointer-events: none;
}
#hero:before { /* Hero doesn't need this offset */
    display: none;
}
.burger-menu{
  display: none !important;
}