/* ===== ITALIAN MOVING SERVICE - ELEGANT DESIGN ===== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;500;600&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* ===== CSS VARIABLES - MEDITERRANEAN PALETTE ===== */
:root {
  --primary-color: #c0392b;        /* Italian red */
  --secondary-color: #d4af37;      /* Gold */
  --accent-color: #27ae60;         /* Olive green */
  --text-dark: #2c3e50;           /* Dark blue-gray */
  --text-light: #7f8c8d;          /* Light gray */
  --background-cream: #fdf6e3;     /* Cream white */
  --background-light: #ffffff;     /* Pure white */
  --terracotta: #cd853f;          /* Terracotta */
  --warm-beige: #f5f5dc;          /* Warm beige */
  --deep-blue: #34495e;           /* Deep blue */
  --success-green: #27ae60;       /* Success green */

  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Lato', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.8rem;
  font-weight: 600;
}

h3 {
  font-size: 2.2rem;
  font-weight: 500;
}

h4 {
  font-size: 1.8rem;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.lead {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-light);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font-secondary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #e74c3c);
  color: white;
  box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #f1c40f);
  color: var(--text-dark);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #a93226;
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(192, 57, 43, 0.8)),
              url('../images/hero-truck.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(192, 57, 43, 0.1), rgba(212, 175, 55, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .lead {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES SECTION ===== */
.services {
  background: var(--background-cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

.service-card:hover::before {
  left: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-features {
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.feature-item i {
  color: var(--success-green);
  margin-right: 0.5rem;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1.5rem 0;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
  background: linear-gradient(135deg, var(--background-cream), white);
  padding: var(--section-padding);
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header h2 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.moving-contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-secondary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.form-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.form-note i {
  color: var(--success-green);
  margin-right: 0.5rem;
}

/* ===== QUOTE CALCULATOR ===== */
.quote-calculator {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 2rem 0;
  border: 1px solid #e0e0e0;
}

.calculator-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--background-cream);
}

.calculator-header h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.calculator-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-row {
  margin-bottom: 1.5rem;
}

.calc-row label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.calc-row select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  background: white;
  transition: var(--transition);
}

.calc-row select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.calc-row input[type="range"] {
  width: 100%;
  margin: 0.8rem 0;
  height: 8px;
  border-radius: 5px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

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

.calc-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
}

.range-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  display: inline-block;
  background: var(--background-cream);
  padding: 4px 12px;
  border-radius: var(--border-radius);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.checkbox-label:hover {
  background: var(--background-cream);
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.8rem;
  transform: scale(1.3);
  accent-color: var(--primary-color);
}

.calc-result {
  background: linear-gradient(135deg, var(--background-cream), #f8f9fa);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 2rem;
  border: 2px solid var(--primary-color);
  position: relative;
}

.calc-result::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  z-index: -1;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.price-unit {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 500;
}

.price-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.price-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.price-breakdown > div {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--deep-blue);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-contact-item:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-contact-item i {
  color: var(--secondary-color);
  width: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

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

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN (Desktop Only) ===== */
@media (max-width: 1440px) {
  .container {
    max-width: 1100px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

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

.text-secondary {
  color: var(--secondary-color);
}

.bg-cream {
  background-color: var(--background-cream);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.gap-1 {
  gap: 1rem;
}

.gap-2 {
  gap: 2rem;
}

/* ===== RED BACKGROUND TEXT FIX ===== */
.service-card[style*="background: linear-gradient(135deg, var(--primary-color)"] p,
.service-card[style*="background: #c0392b"] p,
.service-card[style*="background: var(--primary-color)"] p,
[style*="background: linear-gradient(135deg, var(--primary-color)"] p,
[style*="background: var(--primary-color)"] p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.service-card[style*="background: linear-gradient(135deg, var(--primary-color)"] i,
.service-card[style*="background: #c0392b"] i,
.service-card[style*="background: var(--primary-color)"] i,
[style*="background: linear-gradient(135deg, var(--primary-color)"] i,
[style*="background: var(--primary-color)"] i {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Emergency contact section specific fix */
.service-card[style*="background: linear-gradient(135deg, var(--primary-color), #e74c3c)"] p,
.service-card[style*="background: linear-gradient(135deg, var(--primary-color), #e74c3c)"] i {
  color: rgba(255, 255, 255, 0.95) !important;
}