
/* stylelint-disable-next-line at-rule-no-unknown */
/* Note: @apply is a Tailwind CSS directive - ignore unknown at-rule warnings */

/* Prevent horizontal scroll and fix media sizing */
* { 
  box-sizing: border-box;
}

html, body { 
  max-width: 100%; 
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  width: 100vw;
  position: relative;
}

/* Prevent zoom-related overflow issues */
html {
  zoom: 1;
  -webkit-user-zoom: fixed;
  -moz-user-zoom: fixed;
  -ms-user-zoom: fixed;
  -ms-zoom: fixed;
}

/* Ensure body doesn't overflow at any zoom level */
body {
  width: 100%;
  min-width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

img, picture, video, iframe { 
  max-width: 100%; 
  height: auto; 
  display: block;
  zoom: 1; /* Prevent zoom issues on media */
}

.image-slider, .slide { 
  overflow: hidden;
}

.max-w-7xl { 
  box-sizing: border-box;
  width: 100%;
}

/* Zoom-safe container for all sections */
section, div, header, nav, footer {
  zoom: 1;
}

/* Prevent text zoom on mobile inputs */
input, textarea, select, button {
  font-size: 16px !important; /* Prevents iOS zoom on input focus */
  zoom: 1;
}


/* Theme Variables */
:root {
  --bg-primary: rgba(250, 248, 246, 0.95);
  --bg-secondary: rgba(255, 253, 250, 0.95);
  --text-primary: #5D4037;
  --text-secondary: #8D6E63;
  --border-color: #D7CCC8;
  --nav-bg: rgba(139, 69, 19, 0.95);
  --nav-text: #FFFFFF;
  --nav-hover: #ffffff;
}

[data-theme="dark"] {
  --bg-primary: rgba(33, 24, 20, 0.95);
  --bg-secondary: rgba(0, 0, 0, 0.95);
  --text-primary: #EFEBE9;
  --text-secondary: #ffffffff;
  --border-color: #5D4037;
  --nav-bg: rgb(0, 0, 0);
  --nav-text: #EFEBE9;
  --nav-hover: #ffffff;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-bg-primary {
  background-color: var(--bg-primary);
}

.theme-bg-secondary {
  background-color: var(--bg-secondary);
}

.theme-text-primary {
  color: var(--text-primary);
}

.theme-text-secondary {
  color: var(--text-secondary);
}

.theme-border {
  border-color: var(--border-color);
}

/* Navigation Styles */
.nav-bar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
  z-index: 9999 !important;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  animation: fadeIn 0.5s ease-in;
}

.nav-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  color: var(--nav-text);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--nav-hover);
}

.nav-link.active {
  color: #D2B48C;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D2B48C;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Fade-in animation for navbar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility Features */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.high-contrast {
  filter: contrast(200%);
}

.large-text {
  font-size: 1.25em;
}

/* Accessibility Panel */
.accessibility-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateX(calc(100% + 20px));
  transition: transform 0.3s ease;
  min-width: 200px;
  max-width: 280px;
  opacity: 0;
  pointer-events: none;
}

.accessibility-panel.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile accessibility panel */
@media (max-width: 768px) {
  .accessibility-panel {
    top: 64px;
    right: 10px;
    min-width: 180px;
    max-width: calc(100vw - 30px);
    padding: 0.75rem;
  }
}

/* Image Slider Styles */
.image-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 7xl;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  color: white;
}

.slide-content h2 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .slide-content h2 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .slide-content {
    padding: 0 0.75rem;
  }

  .slide-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .slide-content a {
    padding: 12px 20px !important;
    font-size: 0.875rem !important;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--text-primary);
  color: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Settings Icon Animation */
#nav-settings-btn,
#nav-settings-btn-mobile {
  filter: blur(0px);
}

#nav-settings-btn:hover,
#nav-settings-btn-mobile:hover {
  filter: blur(0);
}

/* Counter Animation */
.counter {
  font-weight: bold;
  transition: all 0.3s ease;
}

.counter.counting {
  color: #D2B48C;
  transform: scale(1.1);
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.fade-in {
  transform: translateY(0);
}

.scroll-reveal.slide-left {
  transform: translateX(-50px);
}

.scroll-reveal.slide-right {
  transform: translateX(50px);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.scroll-reveal.fade-in.revealed {
  transform: translateY(0);
}

/* Country Code Dropdown */
.country-dropdown {
  max-height: 200px;
  overflow-y: auto;
}

.country-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.country-option:hover {
  background-color: var(--bg-primary);
}

.flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 8px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

/* Phone input container */
.phone-input-container {
  position: relative;
  display: flex;
}

.phone-country-select {
  position: relative;
}

.phone-country-button {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: var(--bg-secondary);
  cursor: pointer;
  min-width: auto;
  white-space: nowrap;
  font-size: 14px;
}

@media (min-width: 768px) {
  .phone-country-button {
    min-width: 80px;
    padding: 12px;
    font-size: 16px;
  }
}

.phone-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 0 8px 8px 0;
  background: var(--bg-secondary);
  outline: none;
  min-width: 0;
  font-size: 16px;
}

.phone-input:focus {
  border-color: #374151;
  box-shadow: 0 0 0 1px #374151;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: none;
}

.dropdown-content.show {
  display: block;
}

/* Hero Background */
.hero-bg {
  background-image: url('https://readdy.ai/api/search-image?query=modern%20construction%20site%20with%20concrete%20structures%20and%20steel%20beams%2C%20professional%20industrial%20setting%20with%20clean%20geometric%20lines%2C%20natural%20lighting%2C%20minimalist%20composition%20with%20gray%20and%20stone%20tones%2C%20wide%20angle%20view%20showing%20construction%20materials%20and%20equipment%20in%20organized%20layout&width=1920&height=800&seq=hero001&orientation=landscape');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.3) 100%);
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(135deg, rgba(0, 1, 2, 0.95) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(17,24,39,0.3) 100%);
}

/* Mobile Responsive Utilities */
@media (max-width: 640px) {
  /* Navigation adjustments */
  .nav-bar {
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.08);
  }

  /* Hero slider adjustments */
  .image-slider {
    height: 50vh;
    min-height: 300px;
  }

  /* General spacing */
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Container padding */
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Grid adjustments */
  .grid {
    gap: 2rem !important;
  }

  /* Heading sizes */
  h2 {
    font-size: 1.875rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  h4 {
    font-size: 1.25rem !important;
  }

  /* Text sizes */
  p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }

  /* Back to top button */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Counter animation text */
  .counter {
    font-size: 1.5rem;
  }

  /* Form inputs */
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  /* Select dropdown fix for mobile */
  select {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Button adjustments */
  button,
  .cursor-pointer {
    min-height: 44px; /* Touch-friendly size */
  }
}

/* Custom Select Styling for all screens */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B4513' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.5rem * 1.0) center;
  background-size: clamp(1em, 1.2em, 1.5em);
  padding-right: clamp(1.5rem, 2rem, 2.5rem);
  cursor: pointer;
  overflow-y: auto;
  max-height: 300px;
  box-sizing: border-box;
  display: block;
  width: 100%;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EFEBE9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

select option {
  padding: clamp(0.25rem, 0.375rem, 0.5rem) clamp(0.375rem, 0.5rem, 0.625rem);
  background-color: #ffffff;
  color: #5D4037;
  border-radius: 2px;
  margin: clamp(0.0625rem, 0.125rem, 0.1875rem) 0;
  line-height: 1.4;
  font-size: clamp(12px, 14px, 16px);
  word-spacing: normal;
}

[data-theme="dark"] select option {
  background-color: rgba(33, 24, 20, 0.95);
  color: #EFEBE9;
}

/* Zoom-safe select styling with responsive units */
@supports (zoom: 1) {
  select {
    zoom: 1;
  }
}

/* Prevent select from shrinking too much on zoom */
select:focus {
  box-sizing: border-box;
}

@media (max-width: 480px) {
  /* Extra small screens */
  .nav-bar {
    padding: 0.5rem 0 !important;
  }

  .image-slider {
    height: 40vh;
    min-height: 250px;
  }

  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  /* Accessibility panel on very small screens */
  .accessibility-panel {
    max-width: calc(100vw - 20px) !important;
    right: 10px !important;
    left: auto !important;
  }

  /* Table scrolling */
  table {
    font-size: 0.875rem;
  }

  /* Price cards stack */
  .pricing-card {
    margin-bottom: 1rem;
  }
}

/* Landscape mode adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .image-slider {
    height: 100vh;
  }

  section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Theme Styling - Product Cards and Sections */
.bg-gray-50 {
  background-color: #f9fafb;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .bg-gray-50 {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

[data-theme="dark"] .bg-gray-50 .text-primary,
[data-theme="dark"] .bg-gray-50 .text-secondary {
  color: #ffffff !important;
}

/* Footer and Statistics Theme Styling */
footer.theme-bg-primary,
section.theme-bg-primary {
  background-color: #8B4513;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] footer.theme-bg-primary,
[data-theme="dark"] section.theme-bg-primary,
[data-theme="dark"] #statistics-section,
[data-theme="dark"] #project-statistics {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

#statistics-section,
#project-statistics {
  background-color: #8B4513;
  transition: background-color 0.3s ease;
}

/* Main Content Sections */
section.py-20 {
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

[data-theme="dark"] section.py-20 {
  background-color: #000000 !important;
}

/* Testimonial Names */
[data-theme="dark"] .theme-bg-primary h5.text-primary {
  color: #ffffff !important;
}

.theme-bg-primary {
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .theme-bg-primary {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Landscape mode on mobile - reduce height */
@media (max-height: 500px) and (orientation: landscape) {
  .map-container {
    min-height: 200px;
  }
}

/* ===== PRODUCT SECTION COMPONENTS ===== */
/* Note: @apply is a Tailwind CSS directive - safely ignore linting warnings */

/* Product Section Container */
.product-section {
  @apply mb-20 theme-bg-secondary rounded-2xl p-8 sm:p-12 theme-border border scroll-reveal fade-in shadow-md hover:shadow-xl transition-shadow duration-300;
}

/* Product Grid Layout */
.product-grid {
  @apply grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12 items-center;
}

/* Product Image */
.product-image {
  @apply relative overflow-hidden rounded-xl shadow-lg h-96 group cursor-pointer;
}

.product-image img {
  @apply w-full h-full object-cover object-center group-hover:scale-105 transition-transform duration-300;
}

.product-image::after {
  content: '';
  @apply absolute inset-0 bg-gradient-to-t from-primary/20 via-transparent to-transparent;
}

/* Product Content */
.product-content {
  @apply scroll-reveal slide-right;
}

.product-title {
  @apply text-3xl sm:text-4xl font-bold theme-text-primary mb-2;
}

.product-subtitle {
  @apply text-secondary text-sm font-medium mb-6 flex items-center;
}

/* Pricing Box */
.pricing-box {
  @apply mb-8 bg-gray-50 p-6 rounded-lg;
}

.pricing-label {
  @apply text-xl font-semibold theme-text-primary mb-4;
}

.pricing-value {
  @apply font-bold text-primary;
}

/* Product Features */
.product-features {
  @apply bg-secondary text-white p-6 rounded-lg;
}

.product-features h4 {
  @apply font-semibold mb-3;
}

.product-features ul {
  @apply space-y-2 text-sm;
}

.product-features li {
  @apply flex items-center;
}

/* CTA Section */
.cta-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #d1d5db;
}

.disclaimer-box {
  padding: 1.5rem;
  background-color: #8B4513;
  color: white;
  border-radius: 0.5rem;
}

.disclaimer-box h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.disclaimer-box p {
  font-size: 0.875rem;
}

.cta-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #8B4513;
  color: white;
  border-radius: 0.5rem;
}

.cta-box h5 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-box p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background-color: white;
  color: #8B4513;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

/* Section Divider - Minimal */
.section-divider {
  margin: 4rem 0;
  border-top: 1px solid rgba(139, 69, 19, 0.1);
}

/* Notification Animations */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  @keyframes slideIn {
    from {
      transform: translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slideOut {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(100px);
      opacity: 0;
    }
  }
}


