/* Custom Styles for Florida Roof LLC */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-orange: #F7941D;
  --dark-green: #006838;
  --accent-blue: #29AAE2;
  --text-dark: #333333;
  --bg-light: #F2F2F2;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 148, 29, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(247, 148, 29, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 148, 29, 0); }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* Base styles for scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease-out;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease-out;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Typography Hierarchy */
h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  h1 { font-size: 4rem; }
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-green);
}
@media (min-width: 768px) {
  h2 { font-size: 3rem; }
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-green);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #4a4a4a;
}
@media (min-width: 768px) {
  p { font-size: 1.125rem; }
}

/* Service Card Hover */
.service-card {
  transition: all 0.3s ease-in-out;
  border-bottom: 0px solid var(--primary-orange);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-bottom: 4px solid var(--primary-orange);
}
.service-card-icon-container {
  overflow: hidden;
}
.service-card:hover .service-card-image {
  transform: scale(1.05);
}
.service-card-image {
  transition: transform 0.4s ease-in-out;
}

/* CTA Buttons */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-orange);
  color: white;
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s ease-in;
  text-decoration: none;
  border: 2px solid var(--primary-orange);
}
.primary-cta:hover {
  background-color: #E07E00;
  border-color: #E07E00;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(247, 148, 29, 0.3);
}
.primary-cta:active {
  transform: scale(0.98);
}
.secondary-cta {
  display: inline-flex;
  align-items: center;
  color: var(--dark-green);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}
.secondary-cta:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

/* Custom Navigation Dropdown */
.nav-dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-bottom: 2px solid var(--accent-blue);
}

/* Lightbox */
.lightbox {
  display: none;
}
.lightbox.active {
  display: flex;
}

/* Slider Controls */
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}
.slider-dot.active {
  background-color: var(--primary-orange);
  transform: scale(1.2);
}

/* Subtle background texture */
.bg-texture {
  background-image: url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h20v20H0z" fill="none"/%3E%3Cpath d="M1 1h1v1H1z" fill="rgba(0,0,0,0.03)"/%3E%3C/svg%3E');
}

/* Header Sticky */
header.sticky {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
header.sticky img.logo {
  height: 48px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
