/* Fig & Bloom Help Centre — public site styles.
   Brand-matched to figandbloom.com:
   - Headings: Lust (serif), body: Gill Sans (light/regular/bold)
   - Palette: black #121212, white, tan #ece6df / #d8cdbe */

@font-face {
  font-family: 'Lust';
  src: url('/assets/fonts/Lust-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('/assets/fonts/GillSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('/assets/fonts/GillSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('/assets/fonts/GillSans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gill Sans';
  src: url('/assets/fonts/GillSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121212;
  --text: #121212;
  --text-soft: #4d4a45;
  --text-faint: #7c766c;
  --tan: #ece6df;
  --tan-deep: #d8cdbe;
  --border: #e2dcd2;
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --shadow: 0 1px 3px rgba(18, 18, 18, 0.06), 0 1px 2px rgba(18, 18, 18, 0.05);
  --shadow-hover: 0 4px 14px rgba(18, 18, 18, 0.12);
  --radius: 6px;
  --font-heading: 'Lust', Georgia, serif;
  --font-body: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }

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

/* header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img { display: block; height: 38px; width: auto; max-width: 46vw; object-fit: contain; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; }

/* hero */
.hero {
  background: var(--tan);
  padding: 52px 0 60px;
  text-align: center;
}
.hero-title {
  color: var(--ink);
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
}
.searchbox {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.searchbox input {
  width: 100%;
  padding: 15px 20px 15px 52px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  border: 1px solid var(--tan-deep);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(18, 18, 18, 0.07);
  outline: none;
}
.searchbox input::placeholder { color: var(--text-faint); }
.searchbox input:focus { border-color: var(--ink); box-shadow: 0 2px 12px rgba(18, 18, 18, 0.15); }
.searchbox-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  display: flex;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 18, 18, 0.16);
  text-align: left;
  overflow: hidden;
  z-index: 50;
}
.search-suggestions a {
  display: block;
  padding: 12px 18px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.search-suggestions a:last-child { border-bottom: none; }
.search-suggestions a:hover, .search-suggestions a.selected { background: var(--bg-soft); }
.search-suggestions .sug-cat {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-faint);
}

/* main */
.main { padding: 44px 20px 64px; min-height: 40vh; }

/* category grid (home) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--tan-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  min-width: 0;
}
.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.category-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: var(--ink);
}
.category-card p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text-soft);
}
.card-count {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* sidebar layout */
.with-sidebar {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
}
.with-sidebar > * { min-width: 0; }
@media (max-width: 860px) {
  .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sidebar { display: none; }
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.sidebar li a:hover { background: var(--bg-soft); }
.sidebar li.active a { background: var(--tan); color: var(--ink); }

/* breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--text-faint);
}
.breadcrumbs a { color: var(--text-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumb-sep { display: flex; color: var(--tan-deep); }
.crumb-current { color: var(--text-soft); font-weight: 500; }

/* category page */
.category-title { margin: 0 0 8px; font-size: 30px; }
.category-desc { margin: 0 0 28px; color: var(--text-soft); font-weight: 300; font-size: 17px; }
.subcategory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

/* article list */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.article-list li a:hover { box-shadow: var(--shadow-hover); border-color: var(--tan-deep); }
.article-icon { color: var(--ink); display: flex; flex-shrink: 0; }
.article-list-text { flex: 1; min-width: 0; }
.article-list-title { display: block; font-weight: 500; font-size: 16.5px; }
.article-list-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-faint);
}
.article-list-desc mark { background: var(--tan); color: inherit; padding: 0 1px; }
.article-list-cat {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 3px;
}
.article-chevron { color: var(--text-faint); display: flex; flex-shrink: 0; }

/* article page */
.article-title { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); line-height: 1.25; }
.article-updated { color: var(--text-faint); font-size: 13px; margin: 0 0 26px; }
.article-body { font-size: 16px; color: var(--text); overflow-wrap: break-word; }
.article-body a { overflow-wrap: anywhere; }
.article-body p { margin: 0 0 14px; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 {
  font-family: var(--font-body);
  margin: 26px 0 10px;
  font-weight: 700;
  line-height: 1.35;
}
.article-body h1 { font-size: 22px; }
.article-body h2 { font-size: 20px; }
.article-body h3 { font-size: 17px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 26px; }
.article-body li { margin-bottom: 6px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body blockquote {
  margin: 0 0 14px;
  padding: 12px 18px;
  border-left: 3px solid var(--tan-deep);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
}
.article-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 14px;
  display: block;
  overflow-x: auto;
}
.article-body th, .article-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.article-body th { background: var(--bg-soft); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* search page */
.search-heading { font-size: 24px; margin: 0 0 24px; }
.empty { color: var(--text-soft); margin-bottom: 24px; }

/* contact strip */
.contact-strip {
  background: var(--tan);
  border-top: 1px solid var(--tan-deep);
  padding: 48px 0 56px;
  text-align: center;
}
.contact-strip h2 { margin: 0 0 6px; font-size: 28px; }
.contact-sub { margin: 0 0 28px; color: var(--text-soft); font-weight: 300; }
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--tan-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 32px;
  color: var(--text);
  text-decoration: none;
  flex: 0 1 260px;
  max-width: 100%;
  transition: box-shadow 0.15s ease;
}
.contact-card:hover { box-shadow: var(--shadow-hover); }
.contact-icon { color: var(--ink); }
.contact-label { font-weight: 700; font-size: 16px; }
.contact-value { font-size: 14px; font-weight: 300; color: var(--text-soft); }

/* footer */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--tan-deep); display: flex; }
.footer-social a:hover { color: #fff; }
.site-footer p { margin: 0; font-size: 13px; font-weight: 300; color: var(--tan-deep); }
.site-footer a { color: #fff; }

/* 404 */
.notfound { text-align: center; padding: 40px 0; }

/* small screens */
@media (max-width: 560px) {
  .main { padding-top: 32px; }
  .hero { padding: 38px 0 44px; }
  .header-phone span { display: none; }   /* keep the phone icon, drop the number */
  .header-phone { padding: 8px; }
  .contact-card { flex-basis: 100%; }
  .category-grid { grid-template-columns: 1fr; }
  .subcategory-list { grid-template-columns: 1fr; }
}
