/* Apple-style design for Xinghai Pigeon Industry Website */

:root {
  --primary-color: #0071e3;
  --secondary-color: #808080;
  --text-color: #1d1d1f;
  --background-color: #fff;
  --border-color: #d2d2d7;
  --nav-background: #f5f5f7;
  --nav-text-color: #1d1d1f;
  --footer-background: #f5f5f7;
  --footer-text-color: #86868b;
  --footer-link-color: #1d1d1f;
  --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

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

/* Navigation Styles */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--nav-background);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.nav-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  font-size: 18px;
  font-weight: bold;
  color: var(--nav-text-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 8px 0;
  display: block;
}

.nav-item:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #f5f5f7;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 400px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown-column {
  flex: 1;
}

.dropdown-column h4 {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.dropdown-column a {
  display: block;
  padding: 6px 0;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.dropdown-column a:hover {
  color: var(--primary-color);
}

.dropdown-content {
  display: flex;
  gap: 30px;
}

.nav-icons {
  display: flex;
  gap: 20px;
}

.nav-icon {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: 16px;
}

/* Main Content */
.main-content {
  margin-top: 44px;
  min-height: calc(100vh - 44px - 442px); /* Adjusted for footer height */
}

.hero-section {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../imgs/4c294a00-f0ad-4c41-8460-b54f24cd4d74.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-header {
  padding: 80px 0 40px;
  text-align: center;
  background-color: #fafafa;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.product-showcase {
  padding: 80px 0;
  background-color: #fafafa;
}

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

.product-showcase h2, .company-advantages h2, .our-values h2, .tech-services h2, .support-section h2, .nutrition-info h2, .care-tips h2, .breeding-support h2, .cooking-suggestions h2, .blog-posts h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-weight: 700;
}

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

.product-card, .service-card, .post-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.product-card:hover, .service-card:hover {
  transform: translateY(-10px);
}

.product-card img, .service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 24px;
}

.product-card > div, .service-card > div {
  padding: 24px;
}

.product-card h3, .service-card h3, .post-card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.post-card h2 a {
  color: var(--text-color);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--primary-color);
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.company-advantages {
  padding: 80px 0;
}

.advantages-grid, .values-grid, .support-grid, .nutrition-grid, .tips-grid, .suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.advantage-item, .value-item, .support-item, .nutrition-item, .tip-item, .suggestion-item {
  text-align: center;
  padding: 20px;
}

.advantage-item h3, .value-item h3, .support-item h3, .nutrition-item h3, .tip-item h3, .suggestion-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.category-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.category-intro img {
  flex: 1;
  min-width: 300px;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.product-item {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.product-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 15px 0;
  color: var(--primary-color);
  margin-top: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.contact-form {
  margin-top: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-methods {
  margin-top: 30px;
}

.contact-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
}

.map-placeholder {
  text-align: center;
  padding: 30px;
  border-radius: 18px;
  background-color: #fafafa;
}

.map-image img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: var(--card-shadow);
}

/* Footer Styles */
.global-footer {
  background-color: var(--footer-background);
  color: var(--footer-text-color);
  padding-top: 60px;
}

.footer-top {
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 40px;
}

.footer-links {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.footer-column h4 {
  color: var(--footer-link-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-column a {
  display: block;
  color: var(--footer-text-color);
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-column a:hover {
  color: var(--footer-link-color);
}

.footer-bottom {
  padding: 30px 0 60px;
}

.footer-info {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--footer-link-color);
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 12px;
  margin-bottom: 15px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.footer-legal a {
  color: var(--footer-text-color);
  text-decoration: none;
  font-size: 12px;
}

.footer-legal a:hover {
  color: var(--footer-link-color);
}

/* Remove scroll effect from navigation */
/* The original JavaScript was changing the background on scroll, 
   but we want to keep the light gray background consistently */
/* We'll remove that functionality from main.js separately */

/* Responsive Design */
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-menu {
    order: 2;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-logo {
    order: 1;
  }

  .nav-icons {
    order: 3;
    margin-top: 10px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

  .product-showcase h2, .company-advantages h2, .our-values h2, .tech-services h2, .support-section h2, .nutrition-info h2, .care-tips h2, .breeding-support h2, .cooking-suggestions h2, .blog-posts h2 {
    font-size: 2rem;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 300px;
  }
  
  .category-intro {
    flex-direction: column;
  }
}