/* Locate us: Head Office / Office Locations / Technology Centres flip cards (layout after xpressbees.com/contact-us). */
.off-sec { padding: clamp(40px, 6vw, 72px) 0; background: var(--bg); }
.off-sec + .off-sec { padding-top: 0; }
.off-sec .sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(24px, 3vw, 36px); }
.off-sec .sec-head h2 { text-align: center; }
.off-sec .sec-head p { margin-left: auto; margin-right: auto; }
.off-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; max-width: 1100px; margin: 0 auto; }
.off-grid.one { grid-template-columns: minmax(0, 380px); justify-content: center; }

.off-card { height: 170px; perspective: 1000px; cursor: pointer; outline: 0; }
.off-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4, .2, .2, 1); }
.off-card:hover .off-in, .off-card:focus .off-in, .off-card:focus-within .off-in { transform: rotateY(180deg); }
.off-f, .off-b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px 22px; border-radius: 14px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.off-f { background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(23, 23, 23, .07); }
.off-f i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--orange-50); color: var(--orange); }
.off-f i svg { width: 22px; height: 22px; }
.off-f b { font: 700 17px/1.3 var(--h); color: var(--ink); }
.off-f small { font: 600 11.5px/1 var(--h); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.off-b { transform: rotateY(180deg); background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: #fff; box-shadow: 0 14px 28px -12px rgba(243, 112, 33, .7); }
.off-b b { font: 700 15.5px/1.3 var(--h); }
.off-b p { margin: 0; font: 400 14px/1.55 var(--b); }
.off-b a { color: #fff; font-weight: 700; text-decoration: none; }
.off-b a:hover { text-decoration: underline; }
.off-tbc { opacity: .85; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .off-in { transition: none; } }
@media (max-width: 700px) { .off-grid { grid-template-columns: 1fr; } .off-card { height: 160px; } }

/* left-aligned like the rest of the site */
.off-sec .sec-head, .off-sec .sec-head h2, .off-sec .sec-head p { text-align: left; margin-left: 0; margin-right: 0; }
.off-grid { margin: 0; }
.off-grid.one { justify-content: start; }
.off-f, .off-b { align-items: flex-start; text-align: left; padding: 22px 24px; }

/* fill the full width: 3 columns, head office card + map */
.off-grid { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.off-grid.ho { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.off-grid.ho .off-card { height: 260px; }
.off-map { height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(23, 23, 23, .07); background: #eee; }
.off-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1024px) { .off-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .off-grid.ho { grid-template-columns: 1fr; } .off-grid.ho .off-card { height: 170px; } }
@media (max-width: 700px) { .off-grid { grid-template-columns: 1fr; } .off-map { height: 220px; } }
