/* Main Styles for Lovable Solar Theme */

/* Additional Utility Classes */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.logo-circle {
  width: 3rem;
  height: 3rem;
  background: hsl(var(--primary));
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .logo-circle {
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
  }
}

.nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

.nav-link:hover {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

.mobile-menu {
  display: none;
}

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

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.3s;
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-nav-link:hover {
  color: hsl(var(--primary));
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 8rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.85;
}

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

.text-white-90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-white-80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white-60 {
  color: rgba(255, 255, 255, 0.6);
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-white-40 {
  color: rgba(255, 255, 255, 0.4);
}

.bg-white-10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.border-white-10 {
  border: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.border-white-20 {
  border: solid;
  border-color: rgba(255, 255, 255, 0.2);
}

.border-white-30 {
  border: solid;
  border-color: rgba(255, 255, 255, 0.3);
}

.border-white-40 {
  border: solid;
  border-color: rgba(255, 255, 255, 0.4);
}

.border-white-50 {
  border: solid;
  border-color: rgba(255, 255, 255, 0.5);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* News Ticker Animation */
.news-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s;
}

/* Card Hover Effects */
.card {
  transition: var(--transition-smooth);
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-solar);
  color: white;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.btn.w-full {
  width: 100%;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: hsl(var(--ring));
  border-color: hsl(var(--ring));
}

/* Fixed Contact Button */
.fixed-contact-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.fixed-contact-btn:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.text-secondary-foreground-80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-secondary-foreground-70 {
  color: rgba(255, 255, 255, 0.7);
}

.border-secondary-foreground-20 {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 6rem;
  }
  
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-7xl {
    font-size: 3.5rem;
  }
  
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Additional Spacing Utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.pb-4 { padding-bottom: 1rem; }
.pt-0 { padding-top: 0; }

/* Flex Utilities */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Text Utilities */
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Border Utilities */
.border-dashed { border-style: dashed; }
.border-2 { border-width: 2px; }

/* Opacity Utilities */
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-85 { opacity: 0.85; }

/* Transform Utilities */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.-translate-x-1-2 { transform: translateX(-50%); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-2 { transform: translateY(-0.5rem); }

/* Position Utilities */
.absolute { position: absolute; }
.relative { position: relative; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Top */
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-8 { top: 2rem; }
.top-12 { top: 3rem; }
.top-16 { top: 4rem; }
.top-1-2 { top: 50%; }

/* Right */
.right-0 { right: 0; }
.right-1 { right: 0.25rem; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.right-8 { right: 2rem; }
.right-12 { right: 3rem; }
.right-16 { right: 4rem; }
.right-1-2 { right: 50%; }

/* Bottom */
.bottom-0 { bottom: 0; }
.bottom-1 { bottom: 0.25rem; }
.bottom-2 { bottom: 0.5rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }
.bottom-12 { bottom: 3rem; }
.bottom-16 { bottom: 4rem; }
.bottom-1-2 { bottom: 50%; }

/* Left */
.left-0 { left: 0; }
.left-1 { left: 0.25rem; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.left-6 { left: 1.5rem; }
.left-8 { left: 2rem; }
.left-12 { left: 3rem; }
.left-16 { left: 4rem; }
.left-1-2 { left: 50%; }

/* Z-index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }

/* Max Width */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Object Fit */
.object-cover { object-fit: cover; }

/* Group Hover */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* Transition */
.transition-smooth { transition: var(--transition-smooth); }
.transition-all { transition: all 0.3s; }
.transition-transform { transition: transform 0.3s; }

/* Hover Effects */
.hover\:shadow-medium:hover { box-shadow: var(--shadow-medium); }
.hover\:shadow-strong:hover { box-shadow: var(--shadow-strong); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:text-primary-light:hover { color: hsl(var(--primary-light)); }
.hover\:text-secondary-light:hover { color: hsl(var(--secondary-light)); }
.hover\:bg-white-90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }

/* Inline */
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }

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

/* Hidden */
.hidden { display: none; }

/* Text Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }

/* Font Weights */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Text Align */
.text-left { text-align: left; }
.text-center { text-align: center; }

/* Colors */
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-accent { color: hsl(var(--accent)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-muted-foreground-20 { color: hsl(var(--muted-foreground) / 0.2); }
.text-muted-foreground-30 { color: hsl(var(--muted-foreground) / 0.3); }
.text-muted-foreground-40 { color: hsl(var(--muted-foreground) / 0.4); }
.text-muted-foreground-50 { color: hsl(var(--muted-foreground) / 0.5); }
.text-muted-foreground-60 { color: hsl(var(--muted-foreground) / 0.6); }
.text-muted-foreground-70 { color: hsl(var(--muted-foreground) / 0.7); }
.text-muted-foreground-80 { color: hsl(var(--muted-foreground) / 0.8); }
.text-muted-foreground-90 { color: hsl(var(--muted-foreground) / 0.9); }
.text-white { color: #ffffff; }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-secondary-foreground\/80 { color: hsl(var(--secondary-foreground) / 0.8); }

.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-white { background-color: #ffffff; }
.bg-gradient-solar { background: var(--gradient-solar); }
.bg-gradient-trust { background: var(--gradient-trust); }
.bg-gradient-eco { background: var(--gradient-eco); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-primary-5 { --tw-gradient-from: hsl(var(--primary) / 0.05); }
.to-secondary-5 { --tw-gradient-to: hsl(var(--secondary) / 0.05); }
.from-accent-5 { --tw-gradient-from: hsl(var(--accent) / 0.05); }
.to-primary-5 { --tw-gradient-to: hsl(var(--primary) / 0.05); }
.from-primary { --tw-gradient-from: hsl(var(--primary)); }
.to-primary-light { --tw-gradient-to: hsl(var(--primary-light)); }

/* Border Colors */
.border-border { border-color: hsl(var(--border)); }
.border-primary-20 { border-color: hsl(var(--primary) / 0.2); }
.border-accent-20 { border-color: hsl(var(--accent) / 0.2); }
.border-secondary-foreground\/20 { border-color: hsl(var(--secondary-foreground) / 0.2); }

/* Fill */
.fill-primary { fill: hsl(var(--primary)); }

/* Responsive Display */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:block { display: block; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:justify-end { justify-content: flex-end; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
}

