/* Family Fresh Logistics - Modern Responsive Design */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cardo", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #555;
}

a {
  color: #111;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #666;
}

/* Buttons */
.cta-button,
.submit-button {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.cta-button:hover,
.submit-button:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0 60px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-title {
  color: #111;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-image {
  text-align: center;
}

.truck-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.icon-decoration {
  font-size: 2rem;
  color: #999;
  margin-bottom: 20px;
}

/* Services Introduction */
.services-intro {
  background: #fff;
  padding: 80px 0;
}

.services-intro h2 {
  color: #111;
  max-width: 800px;
  margin: 0 auto 20px;
}

.services-intro p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Services Grid */
.services {
  background: #fff;
  padding: 0 0 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #e9ecef;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  color: #111;
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Cold Chain Services */
.cold-chain {
  background: #f8f9fa;
  padding: 80px 0;
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-content {
  padding: 20px 0;
}

.feature-content h3 {
  color: #111;
  margin-bottom: 24px;
  font-size: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: #666;
  line-height: 1.6;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.2rem;
}

.feature-image {
  text-align: center;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Quote Section */
.quote-section {
  background: #111;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.quote-content {
  max-width: 800px;
  margin: 0 auto;
}

.quote-text {
  font-family: "Cardo", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 40px;
  color: #fff;
}

.quote-author {
  text-align: center;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.author-title {
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 300;
}

/* Quote Form Section */
.quote-form-section {
  background: #fff;
  padding: 80px 0;
  text-align: center;
}

.connect-header {
  text-align: center;
  margin-bottom: 30px;
}

.connect-header h2 {
  color: #111;
  font-family: "Cardo", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin: 0 auto;
  text-align: center;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #111;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
}

.quote-form {
  max-width: 600px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.quote-form h4 {
  text-align: center;
  color: #111;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-family: "Cardo", Georgia, serif;
  font-weight: 400;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Final Contact */
.final-contact {
  background: #111;
  padding: 80px 0;
}

.contact-card {
  background: #fff;
  padding: 60px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card h2 {
  color: #111;
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.contact-card > p {
  margin-bottom: 40px;
  color: #666;
}

.contact-details {
  display: grid;
  gap: 20px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 1.2rem;
  min-width: 20px;
}

.contact-item div {
  flex: 1;
}

.contact-item strong {
  color: #111;
}

.contact-item a {
  color: #111;
  text-decoration: underline;
}

.contact-item a:hover {
  color: #666;
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .feature-row.reverse .feature-content {
    order: 2;
  }

  .feature-row.reverse .feature-image {
    order: 1;
  }

  .quote-form {
    margin: 0 20px;
    padding: 30px 20px;
  }

  .contact-card {
    margin: 0 20px;
    padding: 40px 30px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .services-intro,
  .services,
  .cold-chain,
  .quote-form-section,
  .final-contact {
    padding: 60px 0;
  }

  .quote-section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .feature-row {
    margin-bottom: 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact-details {
    gap: 16px;
  }

  .contact-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact-icon {
    align-self: center;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 10px;
  }

  .quote-form {
    margin: 0 10px;
    padding: 20px 15px;
  }

  .contact-card {
    margin: 0 10px;
    padding: 30px 20px;
  }
}

/* Performance Optimizations */
.truck-image,
.feature-image img {
  will-change: transform;
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
  * {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card {
    border: 2px solid #333;
  }
  
  .quote-form {
    border: 2px solid #333;
  }
  
  .contact-card {
    border: 2px solid #333;
  }
}