/* ============================================================
   Clover Sales — house style
   Primary green: #2D6A4F  |  Logo top-left  |  No pricing shown
   ============================================================ */

:root {
  --green:        #2D6A4F;
  --green-dark:   #1B4332;
  --green-light:  #40916C;
  --green-tint:   #E9F2EE;
  --slate:        #2F3E46;   /* logo wordmark color */
  --slate-soft:   #52606D;
  --border:       #E2E6E9;
  --bg:           #FFFFFF;
  --bg-soft:      #F7F9F8;
  --radius:       10px;
  --shadow:       0 1px 3px rgba(16, 42, 33, 0.08), 0 6px 18px rgba(16, 42, 33, 0.06);
  --maxw:         1120px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--slate); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--green); }

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

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav-links a.active { color: var(--green-dark); background: var(--green-tint); }
.nav-links a.nav-cta {
  background: var(--green);
  color: #fff;
}
.nav-links a.nav-cta:hover { background: var(--green-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--slate); }

/* ---------- Catalog dropdown ---------- */
.nav-item.has-dropdown { position: relative; }
.nav-top {
  color: var(--slate); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.nav-top:hover, .nav-top.active { background: var(--green-tint); color: var(--green-dark); }
.nav-top .caret { font-size: .7em; line-height: 1; transition: transform .15s ease; }
.nav-item.has-dropdown:hover .nav-top .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16,42,33,.12);
  padding: 8px; display: none; z-index: 60;
}
/* keep the menu open while moving the cursor from the tab to the menu */
.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--slate); text-decoration: none; font-weight: 500; font-size: .92rem;
}
.dropdown-link:hover, .dropdown-link.active { background: var(--green-tint); color: var(--green-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green-tint); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--green-dark), var(--green) 70%);
  color: #fff;
  padding: 72px 0;
}
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 18ch; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 54ch; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.eyebrow { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: 8px; }

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--slate-soft); margin-bottom: 0; }

/* Brand / product tiles (links) */
a.tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,42,33,.12); }
.tile-media {
  aspect-ratio: 4 / 3;
  background: var(--green-tint);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media .placeholder { color: var(--green); font-weight: 700; font-size: 1.1rem; padding: 16px; text-align: center; }
/* Brand-logo tiles: show the whole logo (no crop) on a clean card */
.tile-media.logo { background: #fff; }
.tile-media.logo img { width: auto; height: auto; max-width: 72%; max-height: 58%; object-fit: contain; }
.tile-media.logo.dark { background: var(--slate); }
.tile-body { padding: 18px 20px; }
.tile-body h3 { margin: 0 0 4px; }
.tile-body .meta { color: var(--green); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile-body p { color: var(--slate-soft); font-size: .95rem; margin: 6px 0 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; color: var(--slate-soft); padding: 20px 0 0; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Product detail ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.product-gallery .placeholder {
  aspect-ratio: 4/3; background: var(--green-tint); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--green); font-weight: 700;
}
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { width: 40%; color: var(--slate-soft); font-weight: 600; }

/* ---------- Forms ---------- */
.form-wrap { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--slate);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--slate-soft); }
.notice {
  background: var(--green-tint); border: 1px solid #CDE3D8; color: var(--green-dark);
  padding: 14px 16px; border-radius: 8px; margin-bottom: 24px; font-size: .95rem;
}

/* ---------- Trust / credentials ---------- */
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cred-list li { padding-left: 28px; position: relative; }
.cred-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { background: var(--green-tint); color: var(--green-dark); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }

/* Brand logo row (home page) */
.brand-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 22px; min-width: 150px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow);
}
.brand-chip img { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.brand-chip.dark { background: var(--slate); border-color: var(--slate); }
.brand-chip.dark img { transform: scale(1.5); }

/* GSA / AFNAF credential banner (home) */
.cred-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--green-tint); border: 1px solid #CDE3D8; border-radius: var(--radius);
  padding: 28px 32px;
}
.cred-banner-text { flex: 1 1 340px; }
.cred-banner-text h2 { margin: .1em 0 .35em; }
.cred-banner-text p { margin: 0; color: var(--slate-soft); max-width: 54ch; }
.cred-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.cred-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-width: 120px; padding: 18px 22px;
  background: #fff; border: 2px solid var(--green); border-radius: 10px;
  color: var(--green-dark); font-weight: 800; font-size: 1.5rem; line-height: 1;
}
.cred-badge small {
  display: block; margin-top: 7px; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--slate-soft);
}

.placeholder-flag { color: #B4690E; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: #C9D2D8;
  margin-top: 64px;
  padding: 40px 0 28px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo img { height: 34px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: .85rem; color: #9AA7AF; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  /* Dropdown flattens into inline, always-visible sub-links on mobile */
  .nav-item.has-dropdown { width: 100%; }
  .nav-top .caret { display: none; }
  .dropdown-menu {
    position: static; display: block; min-width: 0;
    border: none; box-shadow: none; padding: 0 0 0 12px;
  }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 52px 0; }
}
