/*
 * stuful.css — Stuful website, "Sage & Sand" colors (rebuilt 2026-11-04,
 * restyled the same day to feel less like a template: real product photos,
 * a serif for headings, square-ish corners, no gradients, no icon tiles).
 *
 * Same palette and body font as the POD portal theme (public_html/css/calm.css)
 * so moving from this website into the portal still feels familiar.
 *
 * Loaded by templates/header.tpl with a ?v= cache-busting value
 * ($asset_v in index.php). Bump $asset_v when this file changes.
 */

/* ---- palette --------------------------------------------------------------- */
:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --surface-2: #eef1ea;
    --line: #dfe2d8;
    --ink: #25302b;
    --muted: #5c6862;
    --brand: #5a8a72;
    --brand-dark: #46715c;
    --brand-deeper: #3a5f4c;
    --brand-text: #3d6652;
    --brand-soft: #e5eee8;
    --accent: #c9a77c;
    --accent-dark: #85653a;
    --accent-soft: #f3eadc;
    --night: #24312b;
    --serif: "Lora", Georgia, "Times New Roman", serif;
    --radius: 6px;
    --radius-sm: 4px;

    --bs-body-bg: #f5f3ee;
    --bs-body-color: #26332e;
    --bs-secondary-color: #5f6b65;
    --bs-border-color: #e2e5db;
    --bs-link-color: #3d6652;
    --bs-link-color-rgb: 61, 102, 82;
    --bs-link-hover-color: #2c4d3d;
    --bs-link-hover-color-rgb: 44, 77, 61;
    --bs-focus-ring-color: rgba(90, 138, 114, .3);
    --bs-font-sans-serif: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---- base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .h1, .h2, .h3 {
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1.2;
    text-wrap: balance;
}
h4, h5, h6, .h4, .h5, .h6 {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.3;
}
/* comfortable 18px side gutter on phones */
@media (max-width: 575.98px) {
    .container { padding-left: 18px; padding-right: 18px; }
}
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: #2c4d3d; }
p { color: var(--ink); }
.text-soft { color: var(--muted) !important; }
.maxw-640 { max-width: 640px; }
.maxw-760 { max-width: 760px; }
.maxw-880 { max-width: 880px; }
[id] { scroll-margin-top: 96px; }

/* ---- skip link (keyboard users) ------------------------------------------- */
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---- buttons --------------------------------------------------------------- */
.btn { font-weight: 700; border-radius: var(--radius); padding: .65rem 1.25rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .9rem; font-size: .95rem; }
.btn-brand { background: var(--brand-dark); border: 1px solid var(--brand-dark); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-deeper); border-color: var(--brand-deeper); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid #b9c1b4; color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus { border-color: var(--brand-dark); color: var(--brand-deeper); background: transparent; }
.btn-sand { background: var(--accent); border: 1px solid var(--accent); color: var(--night); }
.btn-sand:hover, .btn-sand:focus { background: #b8935f; border-color: #b8935f; color: var(--night); }
.btn:focus-visible { outline: 3px solid rgba(90, 138, 114, .45); outline-offset: 2px; }
.text-link { font-weight: 700; color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--brand-deeper); }

/* ---- navigation ------------------------------------------------------------ */
.site-nav { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-nav .navbar-brand {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink);
}
.site-nav .navbar-brand img { width: 38px; height: auto; }
.site-nav .nav-link {
    color: var(--ink); font-weight: 600; padding: .5rem .8rem !important;
    border-bottom: 2px solid transparent;
}
.site-nav .nav-link:hover { color: var(--brand-deeper); }
.site-nav .nav-link.active { color: var(--brand-deeper); border-bottom-color: var(--brand); }
.site-nav .navbar-toggler { border: 1px solid var(--line); padding: .3rem .55rem; border-radius: var(--radius); }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(90, 138, 114, .3); }
.site-nav .navbar-toggler .mdi { font-size: 1.6rem; color: var(--ink); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: .5rem 0 1rem; }
    .site-nav .nav-link { padding: .6rem 0 !important; border-bottom: 1px solid var(--line); }
    .site-nav .nav-link.active { border-bottom-color: var(--line); }
}

/* ---- sections -------------------------------------------------------------- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--surface-2); }
.section-white { background: #fff; }
.section-rule { border-top: 1px solid var(--line); }
@media (max-width: 767.98px) {
    .section { padding: 56px 0; }
    .section-sm { padding: 36px 0; }
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.lead { font-size: 1.15rem; color: var(--muted); }
.kicker { font-size: .95rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .4rem; }

/* ---- page tops ------------------------------------------------------------- */
.hero { background: var(--bg); }
.home-hero { padding: 56px 0 72px; }
.home-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.12; }
.home-hero .lead { font-size: 1.18rem; color: var(--ink); }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.hero-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.small-facts { font-size: .95rem; color: var(--muted); margin: 0; }
.page-hero { padding: 56px 0 32px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
@media (max-width: 991.98px) { .home-hero { padding: 32px 0 48px; } }

/* ---- plain boxes ----------------------------------------------------------- */
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.box-pad { padding: 28px; }
@media (max-width: 575.98px) { .box-pad { padding: 20px; } }

/* ---- product grid (Home) --------------------------------------------------- */
.product-tile { display: block; text-decoration: none; color: var(--ink); }
.product-tile img {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    border-radius: var(--radius); background: var(--surface-2);
}
.product-tile h3 { font-size: 1.3rem; margin: 14px 0 4px; }
.product-tile p { color: var(--muted); margin: 0 0 6px; font-size: 1rem; }
.product-tile .more { font-weight: 700; color: var(--brand-text); text-decoration: underline; text-decoration-thickness: 1px; }
.product-tile:hover .more { color: var(--brand-deeper); }
.product-tile:hover img { filter: brightness(1.03); }
.product-tile.wide img { aspect-ratio: 16 / 10; }

/* ---- numbered lists -------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 56px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
    content: counter(step); position: absolute; left: 0; top: -6px;
    font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1;
    color: var(--accent-dark);
}
.steps h3 { font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif; font-weight: 800; font-size: 1.12rem; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.steps.big > li { padding: 0 0 40px 64px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.steps.big > li:last-child { border-bottom: 0; margin-bottom: 0; }
.steps.big > li::before { font-size: 2.6rem; }
.steps.big h2 { font-size: 1.55rem; margin: 0 0 10px; }
.steps.big p { color: var(--ink); }
.steps.big p + p { margin-top: 10px; }

/* ---- short facts (two columns of plain paragraphs) ------------------------- */
.facts h3 { font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif; font-weight: 800; font-size: 1.08rem; margin: 0 0 4px; }
.facts p { color: var(--muted); margin: 0; }

/* ---- photo strip ----------------------------------------------------------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-strip img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }
@media (max-width: 767.98px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- products page --------------------------------------------------------- */
.jump-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.jump-links a { font-weight: 700; color: var(--brand-text); }
.product-block { padding: 56px 0; border-top: 1px solid var(--line); }
.product-block:first-of-type { border-top: 0; padding-top: 24px; }
.product-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; }
@media (min-width: 992px) { .product-photo { position: sticky; top: 90px; } }
.product-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.product-thumbs figure { margin: 0; }
.product-thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.product-thumbs figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.product-block .made { font-size: .95rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 4px; }
.product-block h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 0 0 12px; }
.spec { margin: 22px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 800; color: var(--ink); }
.spec dd { margin: 0; color: var(--ink); }
.spec dd ul { margin: 0; padding-left: 1.1rem; }
.spec dd li { margin-bottom: 4px; }
.spec dd .opt { display: block; margin-bottom: 6px; }
.spec dd .opt:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .spec > div { grid-template-columns: 1fr; gap: 2px; }
}
.price-line { margin: 22px 0 0; color: var(--muted); }

/* ---- notes ----------------------------------------------------------------- */
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.note p { margin: 0; }
.note.green { border-left-color: var(--brand); }

/* artwork table */
.art-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.art-table th, .art-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.art-table th { background: var(--surface-2); font-size: .95rem; font-weight: 800; color: var(--ink); }
.art-table td:first-child { font-weight: 700; }
@media (max-width: 575.98px) {
    .art-table thead { display: none; }
    .art-table tr { display: block; border-bottom: 1px solid var(--line); }
    .art-table tr:last-child { border-bottom: 0; }
    .art-table td { display: block; border: 0; padding: 4px 16px; }
    .art-table td:first-child { padding-top: 14px; }
    .art-table td:last-child { padding-bottom: 14px; }
}

/* ---- plain lists ----------------------------------------------------------- */
.plain-list { padding-left: 1.2rem; margin: 0; }
.plain-list li { margin-bottom: 8px; }

/* ---- sign-up strip (end of pages) ------------------------------------------ */
.signup-strip { background: var(--accent-soft); border-top: 1px solid #e6d6bd; border-bottom: 1px solid #e6d6bd; padding: 44px 0; }
.signup-strip h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 6px; }
.signup-strip p { margin: 0; color: var(--ink); }

/* ---- FAQ ------------------------------------------------------------------- */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 8px; }
.faq .accordion-item {
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0 !important; background: transparent;
}
.faq .accordion-item:first-of-type { border-top: 1px solid var(--line); }
.faq .accordion-button {
    font-weight: 700; font-size: 1.05rem; color: var(--ink); background: transparent; padding: 16px 4px;
}
.faq .accordion-button:not(.collapsed) { background: transparent; color: var(--brand-deeper); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(90, 138, 114, .3); }
.faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233d6652'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233a5f4c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq .accordion-body { padding: 0 4px 20px; color: var(--ink); }
.faq .accordion-body p:last-child { margin-bottom: 0; }
.faq-search { position: relative; max-width: 520px; }
.faq-search input {
    width: 100%; border: 1px solid #b9c1b4; border-radius: var(--radius); background: #fff;
    padding: .7rem 1rem .7rem 2.6rem; font-size: 1.02rem; color: var(--ink);
}
.faq-search input:focus { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(90, 138, 114, .2); }
.faq-search .mdi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--muted); }
.faq-empty { display: none; }

/* ---- footer ---------------------------------------------------------------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.78); padding: 56px 0 28px; margin-top: 0; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { color: #fff; font-family: "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif; font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.footer-brand img { width: 40px; height: auto; }
.site-footer p { color: rgba(255,255,255,.75); }
.site-footer hr { border-color: rgba(255,255,255,.15); opacity: 1; }
