/* Extras for expandablehomes.africa on top of the expandablehomes.co.za styles */
.product-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-grid.two .product-photo{aspect-ratio:4/3}
/* Country cards: equal 4:3 photos, last row centred */
.product-grid.countries{display:flex;flex-wrap:wrap;justify-content:center;gap:38px 22px}
.product-grid.countries .country-card{flex:0 0 calc((100% - 66px)/4);display:flex;flex-direction:column}
.product-grid.countries.three-up .country-card{flex-basis:calc((100% - 44px)/3)}
.product-grid.countries .product-photo{aspect-ratio:4/3;position:relative;background:#dfe4dc}
.product-grid.countries .product-photo img{width:100%;height:100%;object-fit:cover}
.product-grid.countries .product-number{display:block;min-height:2.6em}
.product-grid.countries .product-copy p{min-height:0}
.country-badge{position:absolute;left:14px;bottom:14px;background:rgba(27,41,38,.86);color:#fff;padding:8px 13px;font-size:.8rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.steps.four{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){.product-grid.countries .country-card,.product-grid.countries.three-up .country-card{flex-basis:calc((100% - 22px)/2)}.steps.four{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.product-grid.two{grid-template-columns:1fr}.product-grid.countries{gap:30px}.product-grid.countries .country-card,.product-grid.countries.three-up .country-card{flex-basis:100%}.product-grid.countries .product-number{min-height:0}.steps.four{grid-template-columns:1fr}}
.product-photo img.fill{object-fit:cover}
/* Space Capsule product page */
.site-header nav{gap:clamp(12px,1.5vw,24px);font-size:.88rem}.site-header nav a{white-space:nowrap}
.capsule-plan figure{margin:0}.capsule-plan .image-button{background:#fff}.capsule-plan .image-button img{height:auto;object-fit:contain}
.capsule-concepts{gap:38px 24px}.capsule-concepts .image-button{aspect-ratio:16/9}.capsule-concepts .image-button>img{width:100%;height:100%;object-fit:cover}.capsule-concepts .product-copy p{min-height:0}
@media(min-width:761px) and (max-width:1100px){.site-header{padding-inline:3%;gap:12px}.site-header nav{gap:12px;font-size:.76rem}.site-header nav a[href="/#how-it-works"]{display:none}}
/* Site-office furnishing concepts */
.office-layouts-group{margin:42px 0 22px;font-size:1.35rem}.office-layouts-grid{gap:30px 24px}.office-layouts-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.office-layouts-grid .image-button{aspect-ratio:4/3}.office-layouts-grid .image-button>img{width:100%;height:100%;object-fit:cover}.office-layouts-grid .product-copy p{min-height:0}.office-layouts>.caption{max-width:850px;margin:30px 0 20px}
@media(max-width:760px){.office-layouts-grid.three{grid-template-columns:1fr}}

/* Worker accommodation floor plans */
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.plan-card{background:#fff;border:1px solid var(--line);padding:22px 22px 26px;display:flex;flex-direction:column;gap:10px}.plan-card svg{width:100%;height:auto;display:block;margin-bottom:6px}.plan-card h3{font-size:1.15rem;font-weight:600;margin:0;display:flex;justify-content:space-between;align-items:baseline;gap:12px}.plan-card h3 span{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:#537156;font-weight:600}.plan-card p{margin:0;color:var(--muted);line-height:1.6;font-size:.95rem}.plan-note{margin-top:18px;font-size:.85rem;color:var(--muted)}@media(max-width:900px){.plan-grid{grid-template-columns:1fr}}
/* Header nav: keep labels on one line on mid-size screens */
.site-header nav a{white-space:nowrap}
@media(min-width:601px) and (max-width:1100px){.site-header nav{gap:14px}.site-header nav a[href="/#how-it-works"]{display:none}}
@media(min-width:601px) and (max-width:900px){.site-header nav a[href="/blog/"],.site-header nav a[href="/#countries"]{display:none}}

/* Fit both product additions beside the existing desktop navigation. */
@media(min-width:601px) and (max-width:1100px){.site-header{padding-inline:3%;gap:12px}.site-header nav{gap:10px;font-size:.75rem}}
@media(min-width:901px) and (max-width:1100px){.site-header nav a[href="/blog/"]{display:none}}

/* Keep the full product scene visible on phone screens instead of cropping to a blank wall. */
@media(max-width:760px){
.hero.immersive-hero.product-scene-hero{height:auto;min-height:0;max-height:none;overflow:hidden;background:#172822}
.product-scene-hero.immersive-hero .hero-media{position:relative;inset:auto;width:100%;aspect-ratio:3/2}
.product-scene-hero.immersive-hero .hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}
.product-scene-hero.immersive-hero .hero-shade{display:none}
.product-scene-hero.immersive-hero .hero-copy{position:relative;inset:auto;max-width:none;padding:26px 6% 32px}
.product-scene-hero.immersive-hero .hero-copy .eyebrow,.product-scene-hero.immersive-hero .hero-description{display:block}
}

/* Collection cards: every thumbnail fills the same 4:3 frame */
.product-grid .product-card .product-photo{aspect-ratio:4/3;overflow:hidden}
.product-grid .product-card .product-photo img{width:100%;height:100%;object-fit:cover;display:block}
/* Mobile: the menu stays visible as a swipeable row under the logo */
@media(max-width:760px){
.site-header{height:auto!important;flex-wrap:wrap;row-gap:0;padding-top:4px}
.site-header nav{display:flex!important;order:3;flex:0 0 100%;min-width:0;overflow-x:auto;gap:8px;padding:6px 0 10px;font-size:.84rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.site-header nav::-webkit-scrollbar{display:none}
.site-header nav a{display:inline-block!important;flex:none;padding:7px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;white-space:nowrap;font-weight:500}
}

.site-header .tagline-bar{position:absolute;left:0;right:0;top:100%;margin:0;padding:6px 4%;background:var(--deep);color:var(--gold);font-size:.76rem;letter-spacing:.06em;text-align:center;line-height:1.35;z-index:9}
body:not(:has(.immersive-hero)) .site-header{position:relative;margin-bottom:30px}
@media(max-width:760px){.site-header .tagline-bar{font-size:.68rem;padding:5px 3%}body:not(:has(.immersive-hero)) .site-header{margin-bottom:42px}}
/* 18 Nov 2026: add-on cards, plan drawings in cards and sections */
.addon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.plan-photo{background:#f7f5ef;display:flex;align-items:center;justify-content:center;overflow:hidden}
.plan-photo svg{width:100%;height:auto;display:block}
.product-grid.two .product-photo.plan-photo svg{width:92%}
.plan-large{border-radius:4px;padding:18px}
#lodge-add-ons>.caption{max-width:850px;margin:26px 0 20px}
@media(max-width:760px){.addon-grid{grid-template-columns:1fr}}
.tent-grid .product-copy small{color:#617069}.text-link{display:inline-block;margin-top:10px;font-weight:600;text-decoration:underline;text-underline-offset:3px}.tent-grid .image-button{aspect-ratio:4/3;width:100%}.tent-grid .image-button>img{width:100%;height:100%;object-fit:cover}
