/* BASSEM DABBAH LTD — Corporate Website
   Design language implemented per 重设计构方案 (食品加工与物流) */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&family=Heebo:wght@400;600;700&display=swap');

:root {
  --primary: #2F855A;
  --primary-dark: #1C4532;
  --accent: #DD6B20;
  --muted: #2D3748;
  --bg: #F0FFF4;
  --panel: #FAFAFA;
  --white: #FFFFFF;
  --border: #C6F6D5;
  --shadow-sm: 0 6px 20px rgba(18, 56, 36, 0.08);
  --shadow-md: 0 16px 40px rgba(18, 56, 36, 0.12);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', 'Heebo', 'Roboto', sans-serif;
  color: var(--muted);
  background: var(--bg);
  line-height: 1.65;
}

body[lang="he"] {
  direction: rtl;
  text-align: right;
}

body[lang="en"] {
  direction: ltr;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: 46px; line-height: 1.2; }
h2 { font-size: 34px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.35; }

p { font-size: 16px; margin-bottom: 0.75rem; }

a { color: var(--primary); text-decoration: none; transition: color 0.25s ease, opacity 0.25s ease; }
a:hover { color: var(--accent); }

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

.section {
  padding: 80px 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header p {
  color: #4A5568;
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-quiet {
  background: var(--panel);
  border-style: dashed;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #E6FFFA;
  color: var(--primary-dark);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.pill {
  display: inline-block;
  background: #E2E8F0;
  color: #2D3748;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(47, 133, 90, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); }

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

.btn-ghost {
  background: #FFF7ED;
  color: var(--accent);
  border: 1px solid #FED7AA;
}

.btn-lg { padding: 14px 28px; font-size: 17px; }

.top-bar {
  background: var(--primary-dark);
  color: #E6FFFA;
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 18px;
}

.brand .mark {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  background: #E6FFFA;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a.active,
.nav-links a:hover {
  background: #E6FFFA;
  color: var(--primary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  background: #E6FFFA;
  border: 1px solid #B2F5EA;
  border-radius: 12px;
  padding: 4px;
}

.language-switcher button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
}

.language-switcher button.active {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  border: none;
  background: #E6FFFA;
  color: var(--primary-dark);
  padding: 10px;
  border-radius: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background: radial-gradient(circle at 20% 20%, rgba(47,133,90,0.12) 0, transparent 35%), linear-gradient(135deg, #F7FFF9 0%, #E6FFFA 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="d" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M0 0h60v60H0z" fill="none" stroke="rgba(44,82,65,0.06)" stroke-width="1"/></pattern></defs><rect width="400" height="400" fill="url(%23d)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-text h1 { margin-bottom: 16px; }
.hero-text p { color: #4A5568; font-size: 17px; margin-bottom: 24px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #E6FFFA;
  color: var(--primary-dark);
  border-radius: 12px;
  font-weight: 700;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  color: var(--primary-dark);
}

.stat-card span {
  color: #4A5568;
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.media-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(28,69,50,0.9);
  color: #F0FFF4;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  transition: box-shadow 0.25s ease; /* keep shadow change but stop lift */
}

.service-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: #4A5568; }

/* Home services card imagery: slightly smaller, centered, consistent */
.home-services .service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
}

.home-services .service-card .service-meta {
  justify-content: flex-start;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #2D3748;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.certifications-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 28px 0;
  background: #F0FFF4;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.certifications-bar .cert {
  text-align: center;
  color: #2D3748;
  font-weight: 700;
}

.cert small {
  display: block;
  font-weight: 600;
  color: #4A5568;
}

.map-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.map-visual img {
  width: 100%;
  display: block;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
}

.map-stats .stat-card { box-shadow: none; }

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.news-card h3 { margin-bottom: 8px; }
.news-card time { display: block; color: #718096; margin-bottom: 8px; }

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #E6FFFA;
  border-radius: 18px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.cta-banner p { color: #C6F6D5; margin: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #4A5568;
  padding: 14px 0;
}

.content-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.table th {
  background: #E6FFFA;
  color: var(--primary-dark);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.process-steps .card { padding: 18px; }
.process-steps .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 34px;
  border-radius: 10px;
  background: #E6FFFA;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-dark);
}

.faq-item p { margin-top: 10px; color: #4A5568; }

form {
  display: grid;
  gap: 14px;
}

label { font-weight: 700; color: var(--primary-dark); }

input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 15px;
}

textarea { min-height: 140px; resize: vertical; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.list-check {
  list-style: none;
  display: grid;
  gap: 6px;
}

.list-check li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-check li::before {
  content: "•";
  color: var(--accent);
  font-weight: 900;
}

.footer {
  background: #0F241A;
  color: #E6FFFA;
  padding: 60px 0 30px;
  margin-top: 40px;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer h3 { color: #F0FFF4; margin-bottom: 12px; }
.footer a, .footer p { color: #C6F6D5; margin-bottom: 6px; }
.footer a:hover { color: #E6FFFA; }

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  color: #9AE6B4;
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  height: 46px;
  width: 46px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: none;
  z-index: 90;
}

.section-emphasis {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

.table-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.legend-item {
  background: #E6FFFA;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #718096;
  font-weight: 600;
}

.timeline {
  border-left: 3px solid var(--border);
  margin: 20px 0;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  height: 14px;
  width: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #E6FFFA;
}

.legal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.legal h3 { margin-top: 18px; }

.alert {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  color: #C05621;
  padding: 12px 14px;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  nav { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
  .nav-links.visible { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .content-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  nav { padding: 14px 0; }
  .hero { padding: 64px 0; }
  .hero-content { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .certifications-bar { flex-direction: column; align-items: center; }
  .cta-banner { flex-direction: column; text-align: center; }
}
