/* Yes Cargo Inc — Static Site Styles
   Replicates the look & feel of the Squarespace original. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c8102e;        /* Yes Cargo red from logo */
  --accent-dark: #8e0a20;
  --line: #e5e5e5;
  --card: #f7f7f7;
  --max: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.nav a:hover, .nav a.active { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.6rem; }

/* Language switcher */
.nav a.lang-switch {
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a.lang-switch:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Hero (slider replacement: just a stack of large feature cards) */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
}
/* Subtle dark gradient overlay only at the bottom so text is readable but photo stays bright */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-shadow: 0 2px 14px rgba(0,0,0,.85), 0 0 6px rgba(0,0,0,.6);
}
.hero-content h1 { font-size: 2.8rem; max-width: 800px; }
.hero-content p { font-size: 1.15rem; max-width: 700px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .03em;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  transition: background .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn.outline:hover { background: #fff; color: var(--fg); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--card); }
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

/* Card grid */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px 24px 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.price-card.popular {
  border: 2px solid var(--accent);
  transform: scale(1.04);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.price-card h3 { margin-bottom: 8px; }
.price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 12px 0;
}
.price-note { color: var(--muted); font-size: 0.9rem; min-height: 40px; }

/* Testimonials */
.testimonial {
  background: #fff;
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  font-style: italic;
  color: #333;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.testimonial-author { display: block; margin-top: 14px; font-style: normal; font-weight: 600; color: var(--accent); }

/* Equipment list */
.equipment {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
.equipment:last-child { border-bottom: none; }
.equipment img { border-radius: 8px; max-height: 320px; object-fit: cover; }

/* Document list */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 16px;
}
.doc-list h3 { margin-bottom: 6px; }
.doc-list p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info { background: var(--card); padding: 32px; border-radius: 8px; }
.contact-info h3 { margin-top: 0; color: var(--accent); }
.contact-info p { margin: 6px 0; }
.contact-info a { color: var(--fg); }
.contact-info a:hover { color: var(--accent); }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #cfcfcf;
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-grid a { color: #cfcfcf; display: block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-logo { max-height: 80px; margin-bottom: 16px; background: #fff; padding: 8px; border-radius: 4px; display: inline-block; }
.footer-logo img { height: 60px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Page hero (smaller than home) */
.page-hero {
  height: 280px;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url('images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 1.8rem; }
  .hero-content h1 { font-size: 2rem; }
  .grid-3, .grid-2, .pricing { grid-template-columns: 1fr; }
  .equipment { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .price-card.popular { transform: none; }
  .section { padding: 50px 0; }
  .page-hero { height: 200px; }
  .page-hero h1 { font-size: 1.8rem; }
}
