/* Light theme with orange buttons */
:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #f97316; /* orange */
  --primary-dark: #ea580c;
  --glow: 0 0 0 transparent, 0 0 0 transparent, 0 0 32px rgba(249, 115, 22, 0.15);
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--text); position: relative; }
h1, h2, h3 { color: var(--text); }
p, li, span { color: var(--text) !important; }
.muted { color: var(--muted) !important; }

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset to account for header */
}

/* Price Calculator Section Animation */
#price-calculator {
  scroll-margin-top: 80px; /* Ensure proper positioning */
}

#price-calculator:target {
  animation: highlightSection 1.5s ease-out;
}

@keyframes highlightSection {
  0% {
    background-color: rgba(249, 115, 22, 0.1);
    transform: scale(1);
  }
  50% {
    background-color: rgba(249, 115, 22, 0.2);
    transform: scale(1.02);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

/* Paint Animation Container */
.paint-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Paint Drops */
.paint-drop {
  position: absolute;
  background: radial-gradient(ellipse at 40% 30%, #ff9f5a, #ff8c42, #f97316, #ea580c, #dc2626);
  border-radius: 50% 50% 50% 50% / 90% 90% 30% 30%; /* More rounded bottom */
  opacity: 0.95; /* Higher opacity for premium look */
  box-shadow: 
    inset 0 -5px 10px rgba(0,0,0,0.5), /* Deeper volume shadow */
    inset 0 3px 6px rgba(255,255,255,0.3), /* Brighter highlight */
    inset 0 1px 2px rgba(255,255,255,0.6), /* Sharp top highlight */
    0 6px 20px rgba(234, 88, 12, 0.6), /* Stronger outer glow */
    0 2px 6px rgba(0,0,0,0.4), /* Deeper drop shadow */
    0 0 0 1px rgba(255,255,255,0.1); /* Subtle rim highlight */
  animation: paintDropFall 8s infinite ease-in;
  filter: contrast(1.1) saturate(1.2); /* Enhanced color depth */
}

.paint-drop::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #f97316;
}

.paint-drop::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 25%;
  width: 6px;
  height: 8px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.98) 0%, 
    rgba(255,255,255,0.8) 30%, 
    rgba(255,255,255,0.4) 70%, 
    rgba(255,255,255,0.1) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-15deg);
  opacity: 1;
  box-shadow: 
    0 1px 3px rgba(255,255,255,0.4),
    inset 0 1px 1px rgba(255,255,255,0.6);
  filter: blur(0.5px); /* Subtle softness for realism */
}

.drop-1 {
  width: 12px;
  height: 18px;
  left: 15%;
  top: -20px;
  animation-delay: 0s;
  animation-duration: 10s;
}

.drop-1::after {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 6px solid #f97316;
  top: -4px;
}

.drop-1::before {
  width: 4px;
  height: 6px;
  top: 20%;
  left: 25%;
}

.drop-2 {
  width: 10px;
  height: 15px;
  left: 25%;
  top: -20px;
  animation-delay: 2.5s;
  animation-duration: 12s;
}

.drop-2::after {
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-bottom: 5px solid #f97316;
  top: -3px;
}

.drop-2::before {
  width: 3px;
  height: 4px;
  top: 22%;
  left: 28%;
}

.drop-3 {
  width: 16px;
  height: 24px;
  left: 35%;
  top: -20px;
  animation-delay: 5s;
  animation-duration: 11s;
}

.drop-3::after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #f97316;
  top: -5px;
}

.drop-3::before {
  width: 5px;
  height: 7px;
  top: 18%;
  left: 22%;
}

.drop-4 {
  width: 11px;
  height: 16px;
  left: 45%;
  top: -20px;
  animation-delay: 4.5s;
  animation-duration: 10s;
}

.drop-4::after {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 6px solid #f97316;
  top: -4px;
}

.drop-4::before {
  width: 3px;
  height: 5px;
  top: 21%;
  left: 26%;
}

/* Animations */
@keyframes paintDropFall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  25% {
    transform: translateY(25vh) translateX(1px);
  }
  50% {
    transform: translateY(50vh) translateX(-1px);
  }
  75% {
    transform: translateY(75vh) translateX(0.5px);
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(calc(100vh + 20px)) translateX(0);
    opacity: 0;
  }
}

/* Top site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { max-width: 960px; margin: 0 auto; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; font-size: 32px; text-decoration: none; color: var(--text); font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.brand:hover { color: var(--primary); }
.brand-icon { margin-right: 4px; transform: rotate(6deg) translateX(2px); filter: drop-shadow(0 6px 14px rgba(249,115,22,0.35)) drop-shadow(0 3px 8px rgba(0,0,0,0.3)); }
.brand-text { position: relative; display: inline-block; text-shadow: 0 2px 14px rgba(249,115,22,0.18), 0 2px 6px rgba(0,0,0,0.2); }
/* Footer contact and Back to top styling */
.contact, .contact a {
  color: var(--text) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-decoration: none;
}
footer a[href="#top"] {
  color: var(--text) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-decoration: none;
}

/* Subtle underline on hover */
.contact a:hover,
footer a[href="#top"]:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Hero section with image */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.6));
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  padding: 56px 16px;
}
.hero h1 { color: #ffffff; font-size: 42px; margin: 0 0 12px; }
.hero p { color: #f3f4f6; font-size: 18px; margin: 0 0 16px; }

/* Fade-up animation */
.card, .hero-inner, h2 { 
  opacity: 0; 
  transform: translateY(12px); 
  animation: fadeUp 700ms ease-out forwards; 
}
.card:nth-child(1) { animation-delay: 80ms; }
.card:nth-child(2) { animation-delay: 140ms; }
.card:nth-child(3) { animation-delay: 200ms; }
.card:nth-child(4) { animation-delay: 260ms; }

@keyframes fadeUp { 
  to { opacity: 1; transform: translateY(0); } 
}

/* Buttons and CTA links */
button, .btn, a[href="#estimate-form"] {
  background: var(--primary) !important;
  color: #052e14 !important;
  border: none !important;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: var(--glow);
}
button:hover, .btn:hover, a[href="#estimate-form"]:hover { background: var(--primary-dark) !important; }

/* Footer surface */
footer { background: var(--surface) !important; border-top: 1px solid var(--border) !important; }

/* Form inputs for light */
input[type="email"], input[type="text"], input[type="number"], input[type="tel"], textarea {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
}

/* Footer form layout */
form#estimate-form {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.1);
  width: 100%;
}
form#estimate-form button {
  grid-column: 1 / -1;
}

/* Input shadows and focus aesthetics */
input[type="email"], input[type="text"], input[type="number"], input[type="tel"], textarea {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) inset, 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}
input[type="email"]:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="tel"]:focus, textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18), 0 2px 10px rgba(0,0,0,0.05) inset;
}

/* Button depth */
form#estimate-form button {
  box-shadow: 0 10px 28px rgba(249,115,22,0.28);
  font-size: 16px;
  padding: 14px 18px;
}
form#estimate-form button:hover {
  box-shadow: 0 12px 32px rgba(249,115,22,0.34);
}

/* Inline messages */
#form-message { color: #10b981 !important; }
#form-message.error { color: #f87171 !important; }

/* Price Calculator Styles */
.calculator-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(249,115,22,0.1);
}

.calculator-form {
  display: grid;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input[type="number"],
.input-group select {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) inset, 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18), 0 2px 10px rgba(0,0,0,0.05) inset;
}

.input-group input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(47,224,109,0.3);
}

.input-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(47,224,109,0.3);
}

.price-info {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.damage-amount {
  margin-top: 12px;
  padding: 12px;
  background: rgba(249,115,22,0.1);
  border-radius: 8px;
  border: 1px solid rgba(249,115,22,0.2);
}

.damage-amount label {
  color: var(--primary);
  font-size: 13px;
}

#damage-value {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Photo Upload Styles */
.photo-upload-section {
  margin-top: 16px;
  padding: 12px;
  background: rgba(249,115,22,0.05);
  border-radius: 8px;
  border: 1px solid rgba(249,115,22,0.15);
}

.photo-upload-section label {
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

.photo-upload-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-upload-container input[type="file"] {
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.photo-upload-container input[type="file"]:hover {
  border-color: var(--primary) !important;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.photo-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 150ms ease;
}

.photo-preview img:hover {
  transform: scale(1.05);
}

.photo-info {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  margin-top: 4px;
}

.price-result {
  margin-top: 24px;
  padding: 20px;
  background: rgba(249,115,22,0.1);
  border-radius: 12px;
  border: 1px solid rgba(249,115,22,0.2);
  text-align: center;
}

.price-result h3 {
  color: var(--text);
  margin: 0 0 12px;
  font-size: 18px;
}

.price-display {
  margin-bottom: 16px;
}

#total-price {
  color: var(--primary);
  font-size: 32px;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(47,224,109,0.3);
}

.price-breakdown {
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}

.price-breakdown div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 4px 0;
}

.price-breakdown .total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 600;
  color: var(--text);
}

.price-breakdown .disclaimer {
  background: rgba(249, 115, 22, 0.1);
  border-left: 3px solid #f97316;
  padding: 12px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #ea580c;
  font-weight: 500;
}

.price-breakdown .disclaimer span {
  display: block;
  text-align: center;
}

