/* ============================================
   Hemp Drop Ship — Apple-inspired stylesheet
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-text: #1d1d1f;
  --color-text-soft: #6e6e73;
  --color-accent: #7ab02c;       /* hemp green */
  --color-accent-hover: #4d7818;  /* darker green on hover */
  --color-border: #d2d2d7;
  --color-hairline: #e8e8ed;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.0625rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--color-text-soft); }
.lead { font-size: 1.25rem; color: var(--color-text-soft); max-width: 720px; }

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

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-hairline);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
.primary-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.primary-nav a:hover { background: var(--color-bg-alt); }
.primary-nav a.active { color: var(--color-accent); }
.primary-nav .nav-cta {
  background: var(--color-text);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
}
.primary-nav .nav-cta:hover { background: var(--color-accent); }

.has-sub { position: relative; }
.has-sub > a::after { content: " ›"; opacity: .5; font-size: 12px; }
.submenu {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  /* Hide by default — opacity+visibility for smooth fade and proper close */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  pointer-events: none;
}
.submenu li { width: 100%; }
.submenu a { display: block; padding: 10px 14px; font-size: 14px; }
.has-sub:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear 0s;
}

.nav-toggle {
  display: none;
  background: transparent; border: none;
  width: 40px; height: 40px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { background: var(--color-bg-alt); color: var(--color-text); }
.btn-ghost { color: var(--color-accent); padding: 12px 0; }
.btn-ghost::after { content: " →"; transition: margin-left .2s ease; }
.btn-ghost:hover::after { margin-left: 4px; }

/* ============ Sections ============ */
section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 640px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* ============ Hero ============ */
.hero {
  padding: 120px 0 96px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  position: relative;
}
.hero h1 { max-width: 900px; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero with background image variant — add class "hero-bg" to .hero, drop image at /assets/img/hero.jpg */
.hero-bg {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.95) 100%),
    url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ Team / Warehouse split section ============ */
.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-split.reverse > :first-child { order: 2; }
.media-split-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.media-split-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  font-size: 14px;
}
.media-split-img.placeholder::before {
  content: "";
  position: absolute; inset: 24px;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
}
.media-split-img.placeholder span {
  position: relative;
  background: var(--color-bg-alt);
  padding: 8px 14px;
  text-align: center;
}

/* ============ Feature Grid ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.feature-icon svg { width: 100%; height: 100%; fill: currentColor; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin-bottom: 0; font-size: 15px; }

/* Clickable feature card variant */
.feature-card-link {
  display: block;
  color: var(--color-text);
  position: relative;
}
.feature-card-link:hover { color: var(--color-text); }
.feature-card-link .card-arrow {
  position: absolute;
  bottom: 32px; right: 32px;
  color: var(--color-accent);
  font-size: 20px;
  transition: transform .2s ease;
}
.feature-card-link:hover .card-arrow { transform: translateX(4px); }

/* Inner-page hero (smaller than homepage hero) */
.page-hero {
  padding: 96px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-hairline);
}
.page-hero h1 { max-width: 800px; margin: 0 auto 16px; }
.page-hero .lead { margin: 0 auto; }

/* Two-column content layout for service detail pages */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-icon {
  width: 96px; height: 96px;
  color: var(--color-accent);
  margin-bottom: 24px;
}
.split-icon svg { width: 100%; height: 100%; fill: currentColor; }
.split h2 { margin-bottom: 16px; }
.split-visual {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.split-visual svg {
  width: 60%; height: 60%;
  fill: var(--color-accent);
  opacity: .9;
}

/* Bullet list (Apple-style) */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--color-hairline);
  color: var(--color-text);
  font-size: 15px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 18px; height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============ Showcase (warehouse/team photo) ============ */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase-image {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
/* Placeholder pattern shown when no real image is set */
.showcase-image.placeholder {
  background:
    linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-image.placeholder::after {
  content: "Photo placeholder";
  color: var(--color-text-soft);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.showcase-image.placeholder svg {
  width: 80px; height: 80px;
  fill: #d2d2d7;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% - 24px));
}
.showcase h2 { margin-bottom: 16px; }

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.stat .label { color: var(--color-text-soft); font-size: 14px; }

/* ============ CTA strip ============ */
.cta-strip {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.7); }
.cta-strip .btn-primary { background: #fff; color: var(--color-text); }
.cta-strip .btn-primary:hover { background: var(--color-bg-alt); color: var(--color-text); }

/* ============ Forms ============ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--color-text); }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(122, 176, 44, 0.18);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-msg { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.form-msg.success { background: #eef7e0; color: #4a6e1c; }
.form-msg.error { background: #fdecec; color: #a8201a; }

/* ============ Footer ============ */
.site-footer {
  background: var(--color-bg-alt);
  padding: 64px 0 24px;
  margin-top: 96px;
  border-top: 1px solid var(--color-hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; max-width: 380px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--color-text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-hairline);
  padding-top: 24px;
  font-size: 13px;
  color: var(--color-text-soft);
}
.footer-bottom p { margin: 0; color: var(--color-text-soft); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip { padding: 48px 24px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: initial; }
  .media-split { grid-template-columns: 1fr; gap: 32px; }
  .media-split.reverse > :first-child { order: initial; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 24px;
    overflow-y: auto;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav a { display: block; padding: 14px 16px; font-size: 17px; border-radius: 10px; }
  .submenu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .has-sub > a::after { display: none; }
}
