/* HP TYRES - CUSTOM STYLES */

:root {
  --primary: #F7941D;
  --secondary: #2C2C2C;
  --accent: #FFFFFF;
  --background: #ffffff;
  --text: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  background: var(--secondary);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  gap: 25px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: 4px;
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(255, 102, 0, 0.1);
}

/* Hide contact info in header */
.header-contact {
  display: none;
}

.contact-link {
  display: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Gradient fade from hero brownish to white */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #f9fafb);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(247, 148, 29, 0.7) 0%,
    rgba(44, 44, 44, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  border: 3px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  margin-top: 20px;
}

.btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  color: white;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
  padding: 80px 0;
  position: relative;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--secondary);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
  background: #f9fafb;
  position: relative;
}

/* Gradient fade from services white to dark */
.services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #f9fafb, #1f2937);
  pointer-events: none;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-card {
  padding: 40px 30px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.3s;
  background: white;
  
  /* Start hidden and off-screen to the left */
  opacity: 0;
  transform: translateX(-100px);
}

/* Animation when card becomes visible */
.service-card.animate {
  animation: slideInBounce 0.6s ease-out forwards;
}

/* Stagger the animations - each card delays slightly */
.service-card:nth-child(1).animate {
  animation-delay: 0.1s;
}

.service-card:nth-child(2).animate {
  animation-delay: 0.2s;
}

.service-card:nth-child(3).animate {
  animation-delay: 0.3s;
}

.service-card:nth-child(4).animate {
  animation-delay: 0.4s;
}

.service-card:nth-child(5).animate {
  animation-delay: 0.5s;
}

@keyframes slideInBounce {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    transform: translateX(10px);
  }
  80% {
    transform: translateX(-5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(247, 148, 29, 0.15);
  border-color: var(--primary);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--secondary);
  margin-bottom: 15px;
}

.service-price {
  margin-top: 15px;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================
   ABOUT SECTION - DARK BACKGROUND
   ========================================== */
.about {
  background: #1f2937;
  color: white;
  position: relative;
  padding-top: 150px;
}

/* Gradient fade from about dark to light (for map) */
.about::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #1f2937, #e5e7eb);
  pointer-events: none;
}

.about h2 {
  color: white;
  position: relative;
  z-index: 2;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ==========================================
   MAP SECTION
   ========================================== */
.map-section {
  background: #e5e7eb;
  position: relative;
  padding-top: 150px;
  padding-bottom: 100px;
  display: block; /* Make sure it displays by default */
}

/* Gradient fade from map to white (contact) */
.map-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, #e5e7eb, #f9fafb);
  pointer-events: none;
}

.map-section h2 {
  color: var(--secondary);
  position: relative;
  z-index: 2;
}

.map-container {
  position: relative;
  z-index: 2;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  
  /* Start hidden for animation */
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease-out;
}

/* Animation when map becomes visible */
.map-container.animate {
  opacity: 1;
  transform: scale(1);
}

.map-container iframe {
  display: block;
}

.map-address {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  position: relative;
  z-index: 2;
  
  /* Start hidden for animation */
  opacity: 0;
  transform: translateY(20px);
}

/* Animation when address becomes visible */
.map-address.animate {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
  background: #f9fafb;
  position: relative;
  padding-top: 150px;
}

.contact h2 {
  color: var(--secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.info-item {
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.info-item strong {
  color: var(--secondary);
  display: block;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form button {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  border: none;
}

#form-message {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.social-links a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* ==========================================
   PROMO FLOATING BUTTON & MODAL
   ========================================== */

/* Floating Button - Bottom Right */
.promo-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #F7941D 0%, #e58519 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(247, 148, 29, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.promo-float-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(247, 148, 29, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(247, 148, 29, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(247, 148, 29, 0.7);
  }
}

/* Modal Overlay */
.promo-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.promo-modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close Button */
.promo-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #2C2C2C;
  cursor: pointer;
  transition: color 0.3s;
}

.promo-close:hover {
  color: #F7941D;
}

/* Modal Title */
.promo-modal-content h2 {
  color: #2C2C2C;
  margin-bottom: 20px;
  font-size: 1.8rem;
  text-align: center;
}

/* Modal Image */
#promo-modal-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Share Buttons Container */
.promo-share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Share Buttons */
.share-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.share-btn.facebook {
  background: #1877F2;
}

.share-btn.facebook:hover {
  background: #145dbf;
  transform: translateY(-2px);
}

.share-btn.download {
  background: #F7941D;
}

.share-btn.download:hover {
  background: #e58519;
  transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE / MOBILE
   ========================================== */
@media (max-width: 968px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .main-nav a {
    font-size: 0.85rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  /* Smaller gradient heights on mobile */
  .hero::after,
  .services::after,
  .about::after {
    height: 100px;
  }
  
  /* Promo button mobile adjustments */
  .promo-float-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .promo-modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .promo-modal-content h2 {
    font-size: 1.4rem;
  }
  
  .share-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 10px;
  }
  
  .main-nav a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
}