/* Content blocks for service pages: sections, photo splits, tables, steps, icon boxes and choice cards.
   Reuse these on every page so tables and blocks look the same across the site.
   Loaded only on pages that link it in their "doctitle" region. Wrap the page text in .sb_page.
   Follows the look of the services page in -desktop-style.css: navy and red, 4px corners,
   soft navy shadows, short red rule above each section, ringed navy circles.
-----------------------------------------------------------------------------*/

.sb_page {
--navy: #003b65;
--red: #d12128;
--line: #ccc;
}
.sb_page p {
margin: 0px 0px 18px 0px;
line-height: 31px;
}
.sb_page p:last-child { margin-bottom: 0px; }

/* sections: even space around every heading
-----------------------------------------------------------------------------*/
.sb_section, .sb_hubs {
position: relative;
margin-top: 56px;
padding-top: 48px;
border-top: 1px solid var(--line);
}
.sb_section:before, .sb_hubs:before {
content: "";
position: absolute;
top: -2px;
left: 0px;
width: 64px;
height: 3px;
background: var(--red);
}
.sb_page .sb_section > h2 { padding: 0px 0px 26px 0px; }
.sb_page h3 {
margin: 0px;
padding: 0px 0px 10px 0px;
color: var(--navy);
font-size: 21px;
line-height: 28px;
}
.sb_page .sb_split h3 { padding-top: 12px; }
.sb_page .sb_split h3:first-child { padding-top: 0px; }

/* text beside a photo
-----------------------------------------------------------------------------*/
.sb_split {
display: grid;
grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
gap: 48px;
align-items: stretch;
}
.sb_split_left { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); }
.sb_split_left > .sb_img { order: -1; }
/* the photo takes exactly the height of the text beside it, so no gap is left under either one */
.sb_split > .sb_img {
height: 0px;
min-height: 100%;
object-fit: cover;
}
/* a photo row keeps the same clear space above and below, so nothing sits against a photo */
.sb_page * + .sb_split { margin-top: 36px; }
.sb_page h2 + .sb_split { margin-top: 6px; }
.sb_page .sb_split + * { margin-top: 36px; }
.sb_page p.sb_after { margin-top: 36px; }
.sb_img {
display: block;
width: 100%;
height: auto;
border-radius: 4px;
box-shadow: 0px 4px 18px rgba(0, 59, 101, 0.18);
}

/* tables
-----------------------------------------------------------------------------*/
.sb_table {
width: 100%;
margin: 8px 0px 28px 0px;
border-collapse: separate;
border-spacing: 0px;
overflow: hidden;
border-radius: 4px;
box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.12);
}
.sb_table:last-child { margin-bottom: 0px; }
.sb_table th, .sb_table td {
padding: 15px 22px;
text-align: left;
vertical-align: top;
line-height: 27px;
border-bottom: 1px solid #e3e9ee;
}
.sb_table thead th, .sb_table thead td {
color: #fff;
background: var(--navy);
border-bottom: 3px solid var(--red);
font-family: "Poppins", serif;
font-weight: 600;
font-size: 17px;
}
/* the first column grows to fit its longest title, so titles stay on one line */
.sb_table tbody th {
width: 1%;
white-space: nowrap;
color: var(--navy);
background: #f7f9fa;
font-weight: 600;
}
.sb_table thead tr > :first-child { white-space: nowrap; }
.sb_compare thead th, .sb_compare tbody td { width: 44%; }
.sb_table tbody tr:last-child th, .sb_table tbody tr:last-child td { border-bottom: 0px; }

/* steps: a numbered line across the page
-----------------------------------------------------------------------------*/
.sb_steps {
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(0, 1fr);
gap: 28px;
margin: 8px 0px 32px 0px;
}
.sb_step {
position: relative;
text-align: center;
}
/* the line from one circle to the next */
.sb_step:not(:last-child):after {
content: "";
position: absolute;
top: 28px;
left: calc(50% + 40px);
width: calc(100% - 52px);
height: 3px;
background: rgba(0, 59, 101, 0.16);
}
.sb_step_num {
display: flex;
align-items: center;
justify-content: center;
width: 58px;
height: 58px;
margin: 0px auto 22px auto;
border-radius: 50%;
color: #fff;
background: var(--navy);
box-shadow: 0px 0px 0px 5px rgba(0, 59, 101, 0.1);
font-family: "Poppins", serif;
font-weight: 600;
font-size: 21px;
line-height: 1;
}
.sb_step:last-child .sb_step_num { background: var(--red); }
.sb_page .sb_step p { font-size: 17px; line-height: 27px; }
.sb_page p.sb_note {
padding: 16px 24px;
text-align: center;
color: var(--navy);
background: #f7f9fa;
border-radius: 4px;
}

/* icon boxes: one navy circle, a title and a short line
-----------------------------------------------------------------------------*/
.sb_icons {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 28px;
margin-top: 32px;
}
.sb_section > .sb_icons:first-of-type:nth-child(2) { margin-top: 8px; }
.sb_icon_box {
padding: 32px 26px 28px 26px;
text-align: center;
background: linear-gradient(to bottom, #fff 0px, #f7f9fa 100%);
border-top: 4px solid var(--red);
border-radius: 4px;
box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.12);
}
.sb_icon {
display: flex;
align-items: center;
justify-content: center;
width: 60px;
height: 60px;
margin: 0px auto 20px auto;
color: #fff;
background: var(--navy);
border-radius: 50%;
box-shadow: 0px 0px 0px 5px rgba(0, 59, 101, 0.1);
}
.sb_icon svg {
width: 28px;
height: 28px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.sb_page .sb_icon_box p { font-size: 17px; line-height: 27px; }

/* two choices side by side
-----------------------------------------------------------------------------*/
.sb_pick {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 40px;
text-align: center;
}
.sb_pick .sb_img {
aspect-ratio: 4 / 3;
object-fit: cover;
margin-bottom: 22px;
}
.sb_page .sb_pick p {
max-width: 440px;
min-height: 62px;
margin: 0px auto 20px auto;
}

/* category pages: one card per child page, text on the left and photo on the right
-----------------------------------------------------------------------------*/
.sb_hub {
display: grid;
grid-template-columns: minmax(0, 64fr) minmax(0, 36fr);
overflow: hidden;
margin-top: 32px;
background: linear-gradient(to bottom, #fff 0px, #f7f9fa 100%);
border-left: 5px solid var(--red);
border-radius: 4px;
box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.14);
}
.sb_hub:first-child { margin-top: 0px; }
.sb_hub_text {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding: 32px 40px;
}
/* a single highlight card, not a child page: keeps the larger photo */
.sb_hub.sb_feature { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.sb_hub.sb_feature .sb_hub_text { min-height: 280px; padding: 36px 40px; }
.sb_hub.sb_feature > .sb_img {
align-self: stretch;
width: 100%;
height: 0px;
min-height: 100%;
margin: 0px;
aspect-ratio: auto;
border-radius: 0px;
box-shadow: none;
}
/* the two child cards on the fire pits and fireplaces page */
.sb_pick.sb_children .sb_img { max-width: 420px; margin-left: auto; margin-right: auto; }
.sb_page .sb_hub h2 { padding: 0px 0px 16px 0px; color: var(--navy); font-size: 27px; line-height: 33px; }
.sb_hub h2 a { color: var(--navy); text-decoration: none; }
.sb_hub h2 a:hover { color: var(--red); }
.sb_page .sb_hub p { margin: 0px 0px 24px 0px; }
/* child photos: one modest size, centered in the card with clear space around */
.sb_hub > .sb_img {
align-self: center;
width: calc(100% - 28px);
height: auto;
aspect-ratio: 4 / 3;
object-fit: cover;
margin: 28px 28px 28px 0px;
}
/* tiles: products, catalogs and links, three to a row
-----------------------------------------------------------------------------*/
.sb_tiles {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 28px;
margin-top: 28px;
}
.sb_tile {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 12px;
padding: 24px 18px 22px 18px;
text-align: center;
text-decoration: none;
background: linear-gradient(to bottom, #fff 0px, #f7f9fa 100%);
border-top: 4px solid var(--red);
border-radius: 4px;
box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.12);
transition: transform 250ms ease-in, box-shadow 250ms ease-in;
}
.sb_tile:hover {
transform: translateY(-4px);
box-shadow: 0px 10px 28px rgba(0, 59, 101, 0.2);
text-decoration: none;
}
.sb_tile img { max-width: 100%; height: auto; border-radius: 4px; }
.sb_tile strong { color: var(--navy); font-family: "Poppins", serif; font-weight: 600; font-size: 18px; line-height: 25px; }
.sb_tile span { color: var(--red); font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.sb_links .sb_tile { justify-content: center; min-height: 96px; }
.sb_page .sb_tiles.sb_one { grid-template-columns: minmax(0, 420px); justify-content: center; }
div.sb_tile:hover { transform: none; box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.12); }

/* wall product cards: picture beside its own description
-----------------------------------------------------------------------------*/
.sb_walls { margin-top: 28px; }
.sb_wall {
display: grid;
grid-template-columns: 250px minmax(0, 1fr);
gap: 36px;
align-items: start;
margin-top: 28px;
padding: 30px 34px;
background: linear-gradient(to bottom, #fff 0px, #f7f9fa 100%);
border-left: 5px solid var(--red);
border-radius: 4px;
box-shadow: 0px 4px 22px rgba(0, 59, 101, 0.14);
}
.sb_wall:first-child { margin-top: 0px; }
.sb_wall img.sb_img { width: 250px; max-width: 100%; }
.sb_page .sb_wall h3 { padding-bottom: 4px; font-size: 24px; line-height: 30px; }
.sb_wall h3 a { color: var(--navy); text-decoration: none; }
.sb_page .sb_wall p.sb_tag { margin-bottom: 12px; color: var(--red); font-weight: 600; }
.sb_wall .sb_more { font-weight: 600; }

.sb_page .sb_icons.sb_three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb_page .sb_compare.sb_four thead th, .sb_page .sb_compare.sb_four tbody td { width: 31%; }
.sb_page .sb_section + .sb_hubs, .sb_page .sb_hubs + .sb_section { margin-top: 56px; }

/* FAQ, button and closing text
-----------------------------------------------------------------------------*/
.sb_page .faq { margin-top: 56px; padding-top: 48px; }
.sb_page .faq h2 { padding-bottom: 26px; }
.sb_page p.svc_outro { margin-top: 24px; }

/* narrower screens
-----------------------------------------------------------------------------*/
/* the two choice cards stack before their descriptions would wrap unevenly */
@media screen and (max-width: 900px) {
.sb_pick { grid-template-columns: 100%; gap: 36px; }
.sb_pick > div { width: 100%; max-width: 560px; margin: 0px auto; }
}

/* photo rows stack a little earlier, before the photos turn tall and narrow */
@media screen and (max-width: 1060px) {
.sb_hub.sb_feature { grid-template-columns: 100%; }
.sb_hub.sb_feature > .sb_img { order: -1; height: auto; min-height: 0px; max-height: 380px; }
.sb_hub.sb_feature .sb_hub_text { min-height: 0px; }
.sb_split, .sb_split_left { grid-template-columns: 100%; gap: 24px; }
.sb_split > .sb_img {
order: -1;
height: auto;
min-height: 0px;
max-height: 420px;
}
}

/* child cards stay side by side on small laptops and tablets, so their photos stay small */
@media screen and (max-width: 760px) {
.sb_hub:not(.sb_feature) { grid-template-columns: 100%; }
.sb_hub:not(.sb_feature) > .sb_img {
order: -1;
justify-self: center;
width: calc(100% - 40px);
max-width: 340px;
margin: 20px 20px 0px 20px;
}
}

@media screen and (max-width: 960px) {
.sb_tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sb_page .sb_icons.sb_three { grid-template-columns: 100%; }
.sb_icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* steps run top to bottom */
.sb_steps { grid-auto-flow: row; grid-template-columns: 100%; gap: 26px; }
.sb_step {
min-height: 58px;
padding-left: 80px;
text-align: left;
}
.sb_step_num {
position: absolute;
top: 0px;
left: 5px;
width: 48px;
height: 48px;
font-size: 18px;
}
.sb_step:not(:last-child):after {
top: 58px;
bottom: -20px;
left: 28px;
width: 3px;
height: auto;
}
}

@media screen and (max-width: 640px) {
.sb_hub_text { padding: 26px 20px; }
.sb_wall { grid-template-columns: 100%; justify-items: start; gap: 18px; padding: 22px 18px; }
.sb_tiles { gap: 14px; }
.sb_tile { padding: 16px 10px; }
.sb_tile strong { font-size: 15px; line-height: 21px; }
.sb_icons, .sb_pick { grid-template-columns: 100%; }
.sb_pick { gap: 36px; }
.sb_section, .sb_page .faq { margin-top: 40px; padding-top: 34px; }
.sb_page .sb_section > h2, .sb_page .faq h2 { padding-bottom: 20px; font-size: 25px; line-height: 31px; }
.sb_page p { line-height: 28px; }

/* each table row becomes its own block */
.sb_table, .sb_table tbody, .sb_table tr, .sb_table tbody th, .sb_table tbody td { display: block; width: auto; }
.sb_table thead { display: none; }
.sb_table tr { border-bottom: 1px solid #e3e9ee; }
.sb_table th, .sb_table td { padding: 12px 16px; border-bottom: 0px; }
.sb_compare tbody td:before {
display: block;
color: var(--red);
font-weight: 600;
font-size: 14px;
letter-spacing: 0.06em;
text-transform: uppercase;
content: attr(data-label);
}
.sb_table tbody th { color: #fff; background: var(--navy); white-space: normal; }
}
