/*
Sections CSS - every section pattern's CSS (heroes, standard, parallax, accordions, new layouts).

PARENT THEME: this is the master copy. It's only loaded on a site with no child theme.
CHILD THEME: copy this file into the child theme folder (next to its style.css) when you start a site.
The parent then loads the CHILD's copy instead (after the parent's style.css, before the child's style.css),
so changes to the parent's copy never affect a live child site.
To restyle a section on one site, change it in that child's sections.css or override it in the child's style.css.
*/

/* ==================== SECTION BASICS (intro text + card backgrounds) ==================== */
.intro-paragraph{font-size:1.5rem;}
.inner-left-33,.inner-middle-33,.inner-right-33,.four-col-1,.four-col-2,.four-col-3,.four-col-4,.paral-left-50,.paral-right-50{background:lightblue;padding:1em;}

/* ==================== HERO SECTION 1 ==================== */
.hero-1{min-height:100vh;}
.hero-1{margin-left:auto;margin-right:auto;}
.hero-1-left{background:#0a2342;padding:2.5em;}

/* ==================== HERO SECTION 2 ==================== */
.hero-2{min-height:100vh;}
.hero-2{margin-left:auto;margin-right:auto;}
.hero-2{background:#0a2342;}
.hero-2 .inner-content{background:transparent;}

/* ==================== INNER CONTENT ==================== */
.inner-content,.paral-inner-1{max-width:1200px;}

.wp-block-cover{min-height:100vh;}

.inner-left-33,.inner-middle-33,.inner-right-33{display:flex;flex-direction:column;}
.inner-left-33 .wp-block-buttons,.inner-middle-33 .wp-block-buttons,.inner-right-33 .wp-block-buttons{margin-top:auto;position:static;}

.four-col-left,.four-col-right{display:flex;flex:1;gap:20px;}
.four-col-1,.four-col-2,.four-col-3,.four-col-4{flex:1;display:flex;flex-direction:column;}
.four-col-1 .wp-block-buttons,.four-col-2 .wp-block-buttons,.four-col-3 .wp-block-buttons,.four-col-4 .wp-block-buttons{margin-top:auto;position:static;}

.left-50,.right-50{display:flex;justify-content:center;align-items:flex-start;flex-direction:column;}

.wide-left-text-right-left,.wide-left-text-right-right{width:50%;}
.wide800-left,.wide800-right{max-width:600px;}
.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column .wide800-left{margin-left:auto;margin-right:0;}
.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column .wide800-right{margin-left:0;margin-right:auto;}
.wide-left-text-right-left,.wide-left-text-right-right{display:flex;flex-direction:column;justify-content:center;min-height:100%;}

.wp-block-column.offset-left{ width:70%;margin-left:auto!important;margin-right:0!important;}
.wp-block-column.offset-right{width:70%;margin-left:0!important;margin-right:auto!important;}





/* ==================== FAQS AND/OR DETAILS SECTION ==================== */
.faqs{max-width:1024px;margin-left:auto;margin-right:auto;}


.wp-block-accordion-heading__toggle-title,
.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow summary
{font-size:1.25rem;color:purple;font-weight:bold;}


.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow summary{padding-top:0.5em;padding-bottom:0.5em;}


.wp-block-accordion-item.is-layout-flow.wp-block-accordion-item-is-layout-flow,
.wp-block-details.is-layout-flow.wp-block-details-is-layout-flow
{border:2px solid green;margin-bottom:1em;padding:1em;}






/* ==================== NO EXTRA SPACE AT THE END OF A SECTION ==================== */
/* The last block in a section, and the last question, item and step, have no space under them. */
.sidepadding>:last-child{margin-bottom:0;}
/* A section box with its own background colour (e.g. Latest Posts) gets the same space top and bottom */
.sidepadding.has-background{padding-top:1.5em;padding-bottom:1.5em;}
.sidepadding.has-background>:first-child{margin-top:0;}
.faqs .wp-block-details.is-layout-flow:last-child,.faqs .wp-block-accordion-item.is-layout-flow:last-child{margin-bottom:0;}
.sticky-item:last-child,.timeline-item:last-child{margin-bottom:0;}
.sidepadding>.wp-block-gallery.masonry:not(.lfwd-slider):last-child{margin-bottom:-14px;}


/* ==================== PARALLAX SECTION ==================== */
.paral{position:relative;overflow:hidden;}

.paral img.wp-block-cover__image-background{position:absolute;top:0;left:0;width:100%;height:120%; object-fit:cover;object-position:center;pointer-events:none;}

.paral-left-50,.paral-right-50{display:flex;justify-content:center;align-items:flex-start;flex-direction:column;}

.paral-inner-1{background:black;padding:2.5em;}


/* ========== LATEST POSTS SECTION ========== */
.wp-block-latest-posts{margin-left:0;}


/* ========== LIST SECTION ========== */
.list{padding-left:2.5em;}


/* ========== STANDARD SECTION 5 - TWO CARDS CENTRED (sits under a 3-column row for 5 services) ========== */
.five-services-row{justify-content:center;}
.wp-block-columns.five-services-row>.wp-block-column{margin-left:0;margin-right:0;flex-grow:0;flex-basis:calc((100% - 4em) / 3)!important;}


/* ========== PRICE + TEXT LINK LINES (under the buttons in multi-column cards) ========== */
/* Button, price and link sit together at the bottom of the card - delete any you don't need. */
.price-line{font-size:1.5em;font-weight:700;margin:0.5em 0 0;}
.text-link-line{margin:0.4em 0 0;}


/* ======================================== NEW SECTION LAYOUTS ======================================== */
/* ========== 1/3 + 2/3 SPLIT (A = narrow left, B = narrow right) ========== */
.third-split-columns{gap:40px;align-items:flex-start;}
.third-image img{width:100%;height:auto;}

/* ========== BENTO GRID (A = big tile left, B = big tile right) ========== */
.bento{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:minmax(220px,auto) minmax(220px,auto);gap:14px;grid-template-areas:"big tile image" "big wide wide";margin-top:1.5em;}
.bento-b-grid{grid-template-columns:1fr 1fr 2fr;grid-template-areas:"image tile big" "wide wide big";}
.bento>*{margin:0;}
.bento-big{grid-area:big;min-height:100%;}
.bento-label{display:inline-block;background:#0a2342;color:#fff;padding:0.5em 1em;}
.bento-tile{grid-area:tile;background:lightblue;padding:1.5em;}
.bento-image{grid-area:image;}
.bento-image img{width:100%;height:100%;object-fit:cover;}
.bento-wide{grid-area:wide;background:#080f0f;color:#fff;padding:1.5em;}
.bento-wide h3{color:#fff;}

/* ========== OVERLAPPING CARD (A = image left, B = image right) ========== */
.overlap{display:grid;grid-template-columns:repeat(12,1fr);align-items:center;}
.overlap>*{margin:0;}
.overlap-image{grid-column:1/9;grid-row:1;}
.overlap-image img{width:100%;height:460px;object-fit:cover;display:block;}
.overlap-card{grid-column:7/13;grid-row:1;position:relative;z-index:2;background:#0a2342;color:#fff;padding:2.5em;box-shadow:0 10px 30px rgba(0,0,0,0.25);}
.overlap-card h2{color:#fff;}
.overlap-b-grid .overlap-image{grid-column:5/13;}
.overlap-b-grid .overlap-card{grid-column:1/7;}

/* ========== VERTICAL TIMELINE (A = first step left, B = first step right) ========== */
.timeline{position:relative;max-width:900px;margin:2em auto 0;}
.timeline::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:4px;background:#0a2342;transform:translateX(-50%);}
.timeline-item{position:relative;width:calc(50% - 40px);background:lightblue;padding:1.5em;margin:0 0 24px;}
.timeline-item::after{content:"";position:absolute;top:50%;width:28px;height:28px;border-radius:50%;background:#993fbf;transform:translateY(-50%);}
.timeline-a-list .timeline-item:nth-child(odd),.timeline-b-list .timeline-item:nth-child(even){margin-right:auto;}
.timeline-a-list .timeline-item:nth-child(even),.timeline-b-list .timeline-item:nth-child(odd){margin-left:auto;}
.timeline-a-list .timeline-item:nth-child(odd)::after,.timeline-b-list .timeline-item:nth-child(even)::after{right:-54px;}
.timeline-a-list .timeline-item:nth-child(even)::after,.timeline-b-list .timeline-item:nth-child(odd)::after{left:-54px;}

/* ========== STICKY SIDE HEADING (A = heading left, B = heading right) ========== */
.sticky-columns{gap:50px;align-items:flex-start;}
.sticky-heading{position:sticky;top:2em;align-self:flex-start;}
.sticky-item{background:lightblue;padding:1.5em;margin:0 0 16px;}

/* ========== IMAGE COLLAGE (A = collage left, B = collage right) ========== */
.collage-columns{gap:50px;align-items:center;}
.collage-stack{position:relative;height:460px;}
.collage-stack>figure{position:absolute;margin:0;}
.collage-stack img{width:100%;height:100%;object-fit:cover;display:block;}
.collage-1{left:0;top:0;width:62%;height:62%;}
.collage-2{right:0;top:18%;width:48%;height:52%;border:8px solid #fff;}
.collage-3{left:14%;bottom:0;width:50%;height:42%;border:8px solid #fff;}

/* ========== SIDE-SCROLLING ROW ========== */
.side-scroll{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:1em;margin-top:1.5em;}
.side-scroll>*{margin:0;}
.side-scroll-card{flex:0 0 300px;scroll-snap-align:start;background:#fff;border:1px solid #ccc;}
.side-scroll-card>*:not(figure){padding-left:1rem;padding-right:1rem;}
.side-scroll-image img{width:100%;height:200px;object-fit:cover;display:block;}
.side-scroll-buttons{display:flex;gap:10px;margin-top:1em;}
.side-scroll-buttons button{width:40px;height:40px;border-radius:50%;border:0;background:#32373c;color:#fff;font-size:1.1rem;cursor:pointer;}

/* ========== SLIDERS (Slider 1 = loop, Slider 2 = one card at a time, Slider 3 = swipe) ========== */
/* js/lfwd-sliders.js adds the arrows, dots, endless loop and movement. Any number of cards works.
   The row of cards runs the full width of the screen; the H2, arrows and dots stay in line with the content. */
.lfwd-slider-section{overflow-x:clip;}
.lfwd-slider-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;}
.lfwd-slider-head>h2{margin:0;}
.lfwd-slider{--lfwd-slide-w:300px;position:relative;display:flex;gap:18px;margin-top:1.5em;width:var(--lfwd-page-w,100vw);max-width:none;margin-left:calc(50% - var(--lfwd-page-w,100vw) / 2);overflow-x:auto;scrollbar-width:none;}
.lfwd-slider::-webkit-scrollbar{display:none;}
.lfwd-slider>*,.lfwd-slider-track>*{margin:0;}
.lfwd-slide{flex:0 0 var(--lfwd-slide-w);background:#fff;border:1px solid #ccc;}
.lfwd-slide>*:not(figure){padding-left:1rem;padding-right:1rem;}
.lfwd-slide>*:last-child{padding-bottom:1rem;}
.lfwd-slide-image img{width:100%;height:200px;object-fit:cover;display:block;}
/* Once the script has started: the track moves, the row doesn't scroll */
.lfwd-slider.is-ready{display:block;overflow:hidden;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none;}
.lfwd-slider.is-dragging{cursor:grabbing;}
.lfwd-slider-track{display:flex;gap:18px;width:max-content;will-change:transform;}
.lfwd-slider-track img{-webkit-user-drag:none;}
/* Arrows (next to the H2) and dots */
.lfwd-slider-arrows{display:flex;gap:10px;}
.lfwd-slider-btn{width:44px;height:44px;border-radius:50%;border:0;background:#32373c;color:#fff;font-size:1.2rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;}
.lfwd-slider-controls{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:1em;}
.lfwd-slider-controls[hidden]{display:none;}
.lfwd-slider-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;}
.lfwd-slider-dot{width:24px;height:24px;border:0;background:transparent;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.lfwd-slider-dot::before{content:"";width:10px;height:10px;border-radius:50%;background:#c4c4c4;}
.lfwd-slider-dot.is-active::before{background:#32373c;}

/* Masonry Grid on phones: turned into a swipe slider by js/lfwd-sliders.js */
.outer-content .wp-block-gallery.masonry.lfwd-slider{columns:auto;}
.wp-block-gallery.masonry .lfwd-slider-track>figure.wp-block-image{flex:0 0 var(--lfwd-slide-w);width:var(--lfwd-slide-w)!important;margin:0!important;display:block!important;}
.lfwd-slider--gallery .lfwd-slider-track img{aspect-ratio:4/5!important;height:auto;object-fit:cover;}
.lfwd-slider--gallery .lfwd-slide{background:none;border:0;}
.lfwd-slider--gallery .lfwd-slide>*{padding:0;}

/* ========== MASONRY GRID (a Gallery block - use its Add button to pick images, delete any you don't need) ========== */
.wp-block-gallery.masonry{display:block;columns:4;column-gap:14px;margin-top:1.5em;}
.wp-block-gallery.masonry>figure.wp-block-image{display:inline-block;width:100%!important;margin:0 0 14px!important;vertical-align:top;break-inside:avoid;}
.wp-block-gallery.masonry img{width:100%;height:auto;display:block;}



/* ======================================== SECTIONS - MEDIA QUERIES ======================================== */
/* =========== 1024px and down =========== */
@media only screen and (max-width: 1024px){
.hero-3 .is-layout-flex,.hero-4 .is-layout-flex{flex-direction:column;}
.left-50,.right-50{width:100%}
.order-first{order:1}.order-second{order:2;}
.hero-5,.hero-6{flex-direction:column;flex-wrap:nowrap!important;}
.wide-left-text-right-left,.wide-left-text-right-right{width:100%;min-height:auto;}
.wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-8f761849.wp-block-columns-is-layout-flex{flex-direction:column;width:100%;}
.wp-block-column.wide-left-text-right-right.order-first.is-layout-flow.wp-block-column-is-layout-flow{width:100%;}
.wide800-left,.wide800-right{max-width:100%;}
/* Stacked columns never wider than the screen (stops sideways scrolling on phones) */
.wp-block-column{max-width:100%;}
/* New layouts: two-column ones stack, like your other sections */
.third-split-columns,.sticky-columns,.collage-columns{flex-direction:column;}
.third-split-columns>.wp-block-column,.sticky-columns>.wp-block-column,.collage-columns>.wp-block-column{flex-basis:auto!important;width:100%;}
/* Image-only Cover columns (Hero 5, Hero 6, Standard 7, Standard 8): 4:3 on tablets, square on phones, not full screen height */
.wide-left-text-right-left>.wp-block-cover,.wide-left-text-right-right>.wp-block-cover{min-height:0;aspect-ratio:4/3;}
/* Sticky Side A/B: the heading still sticks on tablets (change the background to match the section if needed) */
.sticky-heading{top:0;background:#fff;z-index:2;padding-top:1em;padding-bottom:1em;}
.admin-bar .sticky-heading{top:32px;}
.wp-block-gallery.masonry{columns:3;}
}

/* =========== 900px and down =========== */
@media only screen and (max-width: 900px) {
.bento,.bento-b-grid{grid-template-columns:1fr 1fr;grid-template-areas:"big big" "tile image" "wide wide";}
.bento-big{min-height:320px;}
.overlap{display:block;}
.overlap-image img{height:320px;}
.overlap-card{width:90%;margin:-60px auto 0;}
}

/* =========== 781px and down =========== */
@media (max-width: 781px) {
.admin-bar .sticky-heading{top:46px;}
.wp-block-columns.five-services-row>.wp-block-column{flex-basis:auto!important;}
}

/* =========== 700px and down =========== */
@media only screen and (max-width: 700px) {
.wide-left-text-right-left>.wp-block-cover,.wide-left-text-right-right>.wp-block-cover{aspect-ratio:1/1;}
.sticky-heading{position:static;padding-top:0;padding-bottom:0;}
.wp-block-column.offset-left,.wp-block-column.offset-right{width:100%;}
.bento,.bento-b-grid{grid-template-columns:1fr;grid-template-areas:"tile" "big" "wide" "image";}
.timeline::before{left:14px;transform:none;}
.timeline-item,.timeline-a-list .timeline-item:nth-child(n),.timeline-b-list .timeline-item:nth-child(n){width:auto;margin-left:50px;margin-right:0;}
.timeline-a-list .timeline-item:nth-child(n)::after,.timeline-b-list .timeline-item:nth-child(n)::after{left:-50px;right:auto;}
.collage-stack{height:320px;}
.wp-block-gallery.masonry{columns:2;}
.side-scroll-card{flex-basis:75%;}
}

/* =========== 400px and down =========== */
@media only screen and (max-width: 400px) {
/* New layouts (".outer-content" in front so these win over the 1024/900/700 rules below) */
.outer-content .wp-block-gallery.masonry{columns:1;}
.outer-content .side-scroll-card{flex-basis:85%;}
}
