/* Loretto Commerce — design system */

:root {
  --bg: #faf6f0;
  --bg-alt: #ffffff;
  --text: #2a2420;
  --muted: #6f6259;
  --border: #e7ddd0;
  --accent: #b1552f;
  --accent-dark: #8f4324;
  --accent-tint: #f3e4d8;
  --sage: #6f7d5f;
  --sage-tint: #eaeee2;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(42, 36, 32, 0.06);
  --shadow-lg: 0 12px 32px rgba(42, 36, 32, 0.12);
  --max: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-tint);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}
.brand .trading-as { font-size: 0.7rem; font-weight: 600; color: var(--muted); display: block; letter-spacing: 0.03em; }

nav.primary-nav { display: flex; align-items: center; gap: 8px; }
nav.primary-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
}
nav.primary-nav a:hover { background: var(--accent-tint); text-decoration: none; }
nav.primary-nav a.current { color: var(--accent-dark); background: var(--accent-tint); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-photos img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; }
.hero-photos .tall { grid-row: span 2; aspect-ratio: 0.62; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #fff; }
.btn-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head.left { text-align: left; margin: 0 0 40px; }

/* Category grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.cat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--accent-tint); }
.cat-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .body { padding: 16px 18px; }
.cat-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.cat-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.cat-card a.card-link { display: block; }
.cat-card a.card-link:hover { text-decoration: none; }

/* Value props */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.value-item { text-align: left; }
.value-item .icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--sage-tint); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}

/* Product gallery (Products page) */
.category-block { padding: 48px 0; border-top: 1px solid var(--border); }
.category-block:first-of-type { border-top: none; }
.category-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.gallery figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Cards / info blocks */
.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.notice {
  background: var(--sage-tint);
  border: 1px solid #d7ddc9;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: #3f4a34;
  margin-bottom: 32px;
}
.notice strong { color: #2c3524; }

/* Contact / info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list .k { font-weight: 700; min-width: 140px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.info-list .v { flex: 1; }
.placeholder { color: var(--accent-dark); font-style: italic; }

/* Legal pages */
.legal h2 { margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5em; }

/* Footer */
footer.site-footer {
  background: #241f1b;
  color: #cfc4b8;
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
footer.site-footer a { color: #cfc4b8; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-brand .mark { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #3a332c; padding-top: 22px; font-size: 0.82rem; color: #9a8f82; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.primary-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--bg-alt); flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow-lg); }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-photos { grid-template-columns: repeat(2, 1fr); }
}
