/* ==========================================================================
   Content pages: headers, prose, legacy layout stand-ins, stores, contact,
   FAQ, about, blog, 404.
   ========================================================================== */

/* ---------- Page header (a strip of ruled paper, echoing the home hero) ---------- */
.sfd-phead {
	border-bottom: 1px solid var(--line);
	background:
		repeating-linear-gradient(180deg, transparent 0 23px, var(--rule) 23px 24px),
		#FDFEFF;
}
.sfd-phead__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 28px 40px; }
.sfd-phead__text { max-width: 760px; }
.sfd-phead .sfd-crumbs { margin-bottom: 22px; }
.sfd-phead .sfd-eyebrow { margin-bottom: 10px; }
.sfd-phead__title { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.02em; color: var(--navy); }
.sfd-phead__title em { font-style: italic; font-weight: 400; color: var(--cadmium); }
.sfd-phead__intro { margin-top: 14px; max-width: 60ch; font-size: 17px; color: var(--text-2); }
.sfd-page-body { padding-block: 44px 72px; }

/* ---------- Prose ---------- */
.sfd-prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--text); }
.sfd-prose--page { margin-inline: auto; }
.sfd-prose > * + * { margin-top: 1.1em; }
.sfd-prose h2 { margin-top: 1.8em; font-size: 30px; }
.sfd-prose h3 { margin-top: 1.6em; font-size: 23px; }
.sfd-prose h4 { margin-top: 1.4em; font-size: 19px; }
.sfd-prose a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(10, 111, 184, .35); text-underline-offset: 3px; }
.sfd-prose a:hover { text-decoration-color: currentColor; }
.sfd-prose a.sfd-btn, .sfd-prose .sfd-card a, .sfd-prose .sfd-social a { text-decoration: none; }
.sfd-prose ul, .sfd-prose ol { padding-left: 1.3em; }
.sfd-prose ul { list-style: disc; }
.sfd-prose ol { list-style: decimal; }
.sfd-prose li + li { margin-top: .35em; }
.sfd-prose li::marker { color: var(--text-3); }
.sfd-prose strong { font-weight: 600; }
.sfd-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cadmium); font-family: var(--font-display); font-size: 21px; font-style: italic; color: var(--navy); }
.sfd-prose img { border-radius: var(--radius); }
.sfd-prose figure { margin-inline: 0; }
.sfd-prose figcaption { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.sfd-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.sfd-prose th, .sfd-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sfd-prose th { font-weight: 600; background: var(--paper); }
.sfd-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.sfd-prose .has-text-align-center { text-align: center; }
.sfd-prose iframe, .sfd-prose video { max-width: 100%; }
.sfd-prose .wp-block-image img { height: auto; }
.sfd-prose .alignleft { float: left; margin: 0 20px 12px 0; }
.sfd-prose .alignright { float: right; margin: 0 0 12px 20px; }
.sfd-prose .aligncenter { margin-inline: auto; }
.sfd-prose--article { max-width: 720px; margin-inline: auto; }

/* ---------- Legacy layout stand-ins (old Flatsome content) ---------- */
.sfd-fs-section { padding-block: 8px; }
.sfd-fs-section + .sfd-fs-section { margin-top: 1.4em; }
.sfd-fs-section--image { position: relative; overflow: hidden; padding: 48px 32px; border-radius: 8px; background: var(--navy) var(--bg) center / cover no-repeat; color: #fff; }
.sfd-fs-section--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 25, 40, .78), rgba(6, 25, 40, .35)); }
.sfd-fs-section--image > * { position: relative; }
.sfd-fs-section--image h2, .sfd-fs-section--image h3 { color: #fff; }
.sfd-fs-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 28px; align-items: start; }
.sfd-prose .sfd-fs-row { margin-top: 1.1em; }
.sfd-fs-col { grid-column: span var(--span, 12); min-width: 0; }
.sfd-fs-col > * + * { margin-top: 1em; }
.sfd-fs-gap { display: none; }
.sfd-fs-title { color: var(--navy); }
.sfd-fs-image { margin-inline: auto; max-width: var(--w, 100%); }
.sfd-fs-image img { width: 100%; height: auto; }
.sfd-fs-banner { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.sfd-fs-banner__img { width: 100%; height: auto; }
.sfd-fs-banner__text { position: absolute; inset: auto 0 0 0; padding: 24px; background: linear-gradient(transparent, rgba(6, 25, 40, .75)); color: #fff; }
.sfd-fs-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.sfd-fs-slider > * { scroll-snap-align: start; }
.sfd-fs-video video, .sfd-fs-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); background: #000; }
.sfd-fs-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-block: 1.4em; font-size: 15px; line-height: 1.55; }
.sfd-fs-products .sfd-card__title { font-size: 14px; }
.sfd-fs-divider { border: 0; border-top: 1px solid var(--line); }
.sfd-fs-logo img { max-height: 70px; width: auto; }
.sfd-callout { padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: var(--radius); background: var(--blue-soft); }
.sfd-map { margin: 1.2em 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sfd-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.sfd-social { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none !important; }
.sfd-social li { margin: 0 !important; }
.sfd-social a { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.sfd-social a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- FAQ accordions (also used by old content) ---------- */
.sfd-faq { display: grid; gap: 10px; margin-block: 1em; }
.sfd-faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.sfd-faq__item[open] { border-color: var(--navy); box-shadow: var(--shadow); }
.sfd-faq__q { position: relative; display: block; padding: 16px 52px 16px 20px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.sfd-faq__q::-webkit-details-marker { display: none; }
.sfd-faq__q::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.sfd-faq__item[open] .sfd-faq__q::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--navy); }
.sfd-faq__a { padding: 0 20px 18px; font-size: 15.5px; color: var(--text-2); }
.sfd-faq__a > * + * { margin-top: .7em; }

/* ---------- FAQ page ---------- */
.sfd-faqpage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-block: 44px 72px; }
.sfd-faqsearch { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.sfd-faqsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.sfd-faqsearch .sfd-icon { color: var(--text-3); }
.sfd-faqsearch input { flex: 1; border: 0; background: transparent; font-size: 15.5px; }
.sfd-faqsearch input:focus { outline: none; }
.sfd-faqsearch__none { margin-top: 16px; color: var(--text-2); }
.sfd-faqpage__content { max-width: none; margin-top: 12px; }
.sfd-faqpage__content .sfd-fs-row { display: block; }
.sfd-faqpage__content .sfd-fs-title { margin-top: 1.6em; font-size: 24px; }
.sfd-helpcard { position: sticky; top: 150px; display: grid; gap: 12px; padding: 24px; border-radius: 8px; background: var(--navy); color: #C9DCEB; }
.sfd-helpcard__title { font-size: 22px; color: #fff; }
.sfd-helpcard .sfd-btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.sfd-helpcard .sfd-btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Our Stores ---------- */
.sfd-stores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; padding-block: 40px 72px; }
.sfd-stores__list { display: grid; gap: 12px; counter-reset: none; }
.sfd-store { padding: 20px 22px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); scroll-margin-top: 150px; transition: border-color .15s, box-shadow .15s; }
.sfd-store.is-active { border-color: var(--navy); box-shadow: var(--shadow); }
.sfd-store__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sfd-store__name { font-size: 21px; }
.sfd-store__tag { padding: 3px 9px; border-radius: 100px; background: var(--cadmium); color: #fff; font: 600 10px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sfd-store__addr { margin-top: 6px; font-style: normal; color: var(--text-2); }
.sfd-store__phones { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font: 500 14px/1.5 var(--font-mono); }
.sfd-store__phones a { color: var(--text); }
.sfd-store__phones a:hover { color: var(--blue); }
.sfd-store__actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.sfd-store__show { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 100px; font-size: 13.5px; font-weight: 600; transition: border-color .15s, background-color .15s, color .15s; }
.sfd-store__show .sfd-icon { width: 16px; height: 16px; }
.sfd-store__show:hover { border-color: var(--navy); }
.sfd-store__show[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sfd-store__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.sfd-store__dir .sfd-icon { width: 15px; height: 15px; }
.sfd-stores__map { position: sticky; top: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.sfd-stores__map iframe { display: block; width: 100%; height: min(70vh, 620px); border: 0; }
.sfd-stores__hours { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ok); }
.sfd-stores__hours .sfd-icon { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.sfd-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; padding-block: 40px 16px; }
.sfd-contact__channels { display: grid; gap: 12px; }
.sfd-channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.sfd-channel:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.sfd-channel > .sfd-icon { width: 26px; height: 26px; color: var(--navy); }
.sfd-channel span { display: flex; flex-direction: column; }
.sfd-channel strong { font-size: 16px; font-weight: 600; }
.sfd-channel small { font-size: 13px; color: var(--text-3); }
.sfd-channel--wa { background: #EAF8F0; border-color: #BFE7CE; }
.sfd-channel--wa > .sfd-icon { color: var(--wa); }
.sfd-contact__stores { padding-block: 40px 72px; }
.sfd-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.sfd-mini { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: 500 13.5px/1.5 var(--font-mono); }
.sfd-mini__name { margin-bottom: 4px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.sfd-mini a:hover { color: var(--blue); }

/* ---------- Forms (Contact Form 7 and friends) ---------- */
.sfd-formcard { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.sfd-formcard__title { font-size: 24px; }
.sfd-formcard__note { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.wpcf7 form { display: grid; gap: 14px; margin-top: 18px; }
.wpcf7 form > p { margin: 0; }
.wpcf7 br { display: none; }
.wpcf7 label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 15px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.wpcf7 textarea { min-height: 130px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.wpcf7 input[type="submit"] { justify-self: start; min-height: 48px; padding: 0 28px; border: 0; border-radius: var(--radius); background: var(--cadmium); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.wpcf7 input[type="submit"]:hover { background: var(--cadmium-deep); }
.wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; color: var(--cadmium); }
.wpcf7-response-output { margin: 4px 0 0 !important; padding: 12px 14px !important; border-radius: var(--radius); font-size: 14px; }
.wpcf7-spinner { margin-left: 10px; }

/* ---------- Need a product ---------- */
.sfd-need { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 40px 72px; }
.sfd-need__aside { display: grid; gap: 20px; }
.sfd-steps { counter-reset: s; display: grid; gap: 10px; }
.sfd-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sfd-steps li::before { content: "0" counter(s); grid-row: span 2; font: 600 13px/1.6 var(--font-mono); color: var(--cadmium); }
.sfd-steps strong { font-size: 15.5px; }
.sfd-steps span { font-size: 14px; color: var(--text-2); }

/* ---------- About ---------- */
.sfd-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; padding-block: 56px; }
.sfd-about__story h2 { margin-top: 0; }
.sfd-about__portrait { margin: 0; }
.sfd-about__img { width: 100%; height: auto; border-radius: 8px; filter: sepia(.12); box-shadow: var(--shadow-lift); }
.sfd-about__portrait figcaption { margin-top: 12px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sfd-timeline { padding-block: 64px; background: var(--navy); background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 24px 24px; color: #C9DCEB; }
.sfd-timeline .sfd-eyebrow { color: #F5A493; margin-bottom: 8px; }
.sfd-timeline .sfd-section__title { color: #fff; }
.sfd-timeline__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px solid rgba(255, 255, 255, .22); }
.sfd-timeline__item { position: relative; padding: 28px 22px 0 0; }
.sfd-timeline__item::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px var(--navy); }
.sfd-timeline__mark { font: 600 13px/1 var(--font-mono); color: var(--sun); }
.sfd-timeline__item h3 { margin-top: 10px; font-size: 20px; color: #fff; }
.sfd-timeline__item p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
.sfd-brandlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sfd-brandlist li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px; background: var(--surface); font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--navy); }
.sfd-about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Blog ---------- */
.sfd-blog { padding-block: 36px 72px; }
.sfd-journal__grid--spaced { margin-top: 24px; }
.sfd-article__head { max-width: 800px; padding-top: 28px; text-align: center; }
.sfd-article__head .sfd-crumbs { justify-content: center; }
.sfd-article__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; margin-top: 22px; font: 500 12.5px/1.4 var(--font-mono); color: var(--text-3); }
.sfd-article__title { margin-top: 14px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; color: var(--navy); }
.sfd-article__hero { max-width: 1100px; margin: 36px auto 40px; }
.sfd-article__img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 10px; }
.sfd-article__foot { max-width: 720px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.sfd-article + .sfd-section { border-top: 1px solid var(--line); margin-top: 56px; }

/* ---------- Search results + 404 ---------- */
.sfd-results { display: grid; gap: 14px; max-width: 800px; }
.sfd-results__item { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sfd-results__item h2 { margin-top: 6px; font-size: 22px; }
.sfd-results__item p { margin-top: 6px; color: var(--text-2); }
.sfd-404 { padding-block: 72px 96px; background: repeating-linear-gradient(180deg, transparent 0 23px, var(--rule) 23px 24px), #FDFEFF; text-align: center; }
.sfd-404__inner { display: flex; flex-direction: column; align-items: center; }
.sfd-404__code { font: 600 clamp(88px, 16vw, 160px)/1 var(--font-display); color: var(--navy); letter-spacing: -.04em; }
.sfd-404__code::after { content: ""; display: block; height: 3px; margin-top: 8px; background: var(--cadmium); }
.sfd-404__title { margin-top: 24px; font-size: clamp(26px, 3.4vw, 38px); }
.sfd-404__text { margin-top: 10px; max-width: 52ch; color: var(--text-2); }
.sfd-404__search { display: flex; gap: 8px; width: min(520px, 100%); margin-top: 28px; }
.sfd-404__search input { flex: 1; min-width: 0; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 15px; }
.sfd-404__search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.sfd-404__depts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.sfd-404__depts a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 100px; background: #fff; font-size: 14px; font-weight: 500; }
.sfd-404__depts a:hover { border-color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sfd-faqpage { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.sfd-helpcard { position: static; }
	.sfd-timeline__list { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid rgba(255, 255, 255, .22); margin-left: 6px; }
	.sfd-timeline__item { padding: 0 0 28px 28px; }
	.sfd-timeline__item::before { top: 2px; left: -7px; }
	.sfd-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sfd-stores { grid-template-columns: minmax(0, 1fr); }
	.sfd-stores__map { position: relative; top: 0; order: -1; }
	.sfd-stores__map iframe { height: 320px; }
	.sfd-contact, .sfd-need, .sfd-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.sfd-about__portrait { max-width: 420px; }
	.sfd-fs-col { grid-column: span 12; }
}
@media (max-width: 760px) {
	.sfd-phead__inner { padding-block: 20px 28px; }
	.sfd-phead .sfd-crumbs { margin-bottom: 16px; }
	.sfd-phead__intro { font-size: 15.5px; }
	.sfd-prose { font-size: 16px; }
	.sfd-prose h2 { font-size: 25px; }
	.sfd-formcard { padding: 20px; }
	.sfd-minis { grid-template-columns: minmax(0, 1fr); }
	.sfd-article__hero { margin: 24px auto 28px; }
	.sfd-404__search { flex-direction: column; }
	.sfd-404__search input { min-height: 48px; }
	.sfd-fs-section--image { padding: 32px 20px; }
}
