/* Maps the approved design (design.css) onto core Gutenberg block markup. */

.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > *, main > *, .wp-block-group > * { margin-block-start: 0; }
.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: inherit; }
p.eyebrow { margin: 0; }

/* Buttons = design .btn */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link {
	position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
	font-weight: 600; font-size: 15.5px; background: var(--accent); color: #fff; overflow: hidden; isolation: isolate;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
}
.wp-block-button__link::after { content: "→"; transition: transform .35s var(--ease); }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(52,22,245,.65); background: var(--ink); color: #fff; }
.wp-block-button__link:hover::after { transform: translateX(4px); }
.is-style-ghost .wp-block-button__link { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(11,17,31,.18); }
.is-style-ghost .wp-block-button__link:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.is-style-light .wp-block-button__link { background: #fff; color: var(--ink); }
.is-style-lime .wp-block-button__link { background: var(--lime); color: var(--ink); }
.is-style-light .wp-block-button__link:hover, .is-style-lime .wp-block-button__link:hover { background: #fff; color: var(--ink); box-shadow: 0 16px 34px -14px rgba(163,198,42,.7); }

/* Top bar + header */
.topbar p { display: flex; gap: 22px; margin: 0; }
.topbar a { color: #fff; }
.header .wrap { gap: 20px; }
.header .logo { margin: 0; flex: none; }
.header .logo img { height: auto; }
.header .nav { margin-left: auto; font-weight: 500; font-size: 15.5px; }
.header .nav .wp-block-navigation-item__content { padding: 10px 12px; border-radius: 999px; color: var(--ink); transition: background .25s; }
.header .nav .wp-block-navigation-item__content:hover, .header .nav .current-menu-item > a { background: rgba(11,17,31,.06); }
.header .wp-block-navigation__submenu-container { border: 0 !important; border-radius: 16px; box-shadow: var(--shadow); padding: 10px !important; min-width: 250px !important; }
.header .wp-block-navigation__submenu-container a { border-radius: 10px !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 90px 28px 40px !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 26px; font-weight: 700; color: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 17px; font-weight: 500; opacity: .8; }
.wp-block-navigation__responsive-container-open { width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; }

/* Hero */
.hero__copy .hero-title { font-size: clamp(42px, 6vw, 84px); font-weight: 700; letter-spacing: -.035em; margin: 22px 0 24px; }
.rotator-words { display: none; }
.hero__trust p { margin: 0; font: 400 12.5px "DM Mono", monospace; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hero__trust strong { display: block; font: 700 24px "DM Sans", sans-serif; color: var(--ink); letter-spacing: -.02em; text-transform: none; }
.hero .hero__ctas { margin-top: 34px; }
.hero__badge p { margin: 0; font-size: 30px; line-height: 1; }

/* Marquee (list block) */
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 46px; width: max-content; animation: marquee 32s linear infinite; }
.marquee--lime ul { animation-direction: reverse; animation-duration: 40s; }
.marquee li { display: inline-flex; align-items: center; gap: 46px; font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee li::after { content: "✦"; font-size: .7em; color: var(--lime); }
.marquee--lime li::after { color: var(--accent); }

/* About media */
.about__media .about__stamp { margin: 0; display: block; padding: 16px 20px; }
.about__stamp strong { display: block; color: var(--ink); }
.about h2, .about .about__title { font-size: clamp(34px, 4vw, 54px); margin: 16px 0 24px; }
.about p + p { margin-top: 16px; }
.wp-block-quote.quote { border: 0; margin-top: 32px; }
.wp-block-quote.quote p { margin: 0; }
.wp-block-quote.quote cite { display: block; margin-top: 12px; font: 400 13px "DM Mono", monospace; color: var(--muted); font-style: normal; }

/* Service cards: whole card clickable through the heading link */
.svc { color: #fff; }
.svc .wp-block-image { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.svc h3 { margin: 0; }
.svc h3 a { color: #fff; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.svc p.svc__num { margin: 0; }
.svc p:not(.svc__num) { margin-top: 8px; }
.svc:hover p, .svc:focus-within p { max-height: 120px; opacity: 1; }

/* Process */
.process .step p.step__dot { margin: 0; }
.step h3 { margin-bottom: 10px; }

/* Gallery strip (core gallery block) */
.wp-block-gallery.strip.has-nested-images { display: flex; flex-wrap: nowrap; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 0 26px; scrollbar-width: none; cursor: grab; }
.wp-block-gallery.strip.has-nested-images figure.wp-block-image:not(#individual-image) { flex: none; width: 340px; height: 440px; margin: 0; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow); }
.wp-block-gallery.strip.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(even) { height: 380px; margin-top: 60px; }
.wp-block-gallery.strip.has-nested-images figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--ease); }
.wp-block-gallery.strip.has-nested-images figure.wp-block-image:hover img { transform: scale(1.06); }
.wp-block-gallery.strip.has-nested-images figure.wp-block-image figcaption { background: rgba(11,17,31,.7); backdrop-filter: blur(8px); margin: 14px; border-radius: 12px; padding: 10px 14px; font-size: 14px; width: auto; }

/* Masonry gallery page */
.wp-block-gallery.masonry.has-nested-images { display: block; columns: 3 300px; column-gap: 18px; }
.wp-block-gallery.masonry.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; margin: 0 0 18px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.wp-block-gallery.masonry.has-nested-images figure.wp-block-image img { height: auto; transition: transform 1s var(--ease); }
.wp-block-gallery.masonry.has-nested-images figure.wp-block-image:hover img { transform: scale(1.05); }
.wp-block-gallery.masonry figure.is-hidden { display: none !important; }

/* Stats */
.stat p { margin: 0; }
.stat .stat__num { font-size: clamp(40px, 5vw, 64px); color: #fff; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat .stat__num em { font-style: normal; color: var(--lime); }
.stat .stat__label { margin-top: 10px; font: 400 13px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }

/* Testimonials (quote blocks turned into a slider by app.js) */
.review-slider { overflow: hidden; }
.review-slider .slides { display: flex; transition: transform .8s var(--ease); }
.review-slider .wp-block-quote { flex: 0 0 100%; margin: 0; padding: 6px; border: 0; }
.review-slider .wp-block-quote p { margin: 0; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.35; color: var(--ink); font-weight: 500; letter-spacing: -.015em; }
.review-slider .wp-block-quote cite { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-style: normal; color: var(--ink); font-weight: 600; }
.review-slider .wp-block-quote cite::before { content: attr(data-initials); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.reviews__summary p { margin-top: 10px; }
.reviews__summary h3 { font-size: 30px; margin: 16px 0 10px; }
.stars { margin: 18px 0 0; font-size: 22px; letter-spacing: 4px; color: #F5B301; }

/* FAQ (details blocks) */
.faq__list .wp-block-details { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; margin-bottom: 12px; padding: 0; }
.faq__list .wp-block-details[open] { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--ink); font-weight: 600; font-size: 18px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq__list .wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__list .wp-block-details p { padding: 0 26px 24px; margin: 0; }
.faq h2 { font-size: clamp(34px, 4vw, 54px); margin: 16px 0 20px; }

/* CTA */
.cta .wp-block-image { position: absolute; inset: 0; z-index: -2; }
.cta .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.cta .wp-block-buttons { justify-content: center; }
.cta p.eyebrow { color: #fff; justify-content: center; }

/* Page hero */
.page-hero .wp-block-image { position: absolute; inset: 0; z-index: -2; }
.page-hero .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 14s ease-out forwards; }
.page-hero .wp-block-buttons { margin-top: 28px; }
.crumbs, .page-hero #breadcrumbs { font: 400 13px "DM Mono", monospace; color: rgba(255,255,255,.75); margin: 0; }
.page-hero #breadcrumbs a { color: #fff; }
.page-hero--plain { background: var(--dark); padding: 90px 0 70px; }
.page-hero--plain h1 { color: #fff; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.03em; margin-top: 14px; }
.prose { padding-top: 70px; padding-bottom: 20px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.notfound { padding: 120px 24px; text-align: center; }
.notfound h1 { font-size: clamp(40px, 6vw, 76px); margin: 18px 0; }
.notfound .wp-block-buttons { justify-content: center; margin-top: 30px; }

/* Service list rows */
.svc-row p { margin: 0; }
.svc-row h3 { margin: 0; }
.svc-row h3 a { color: inherit; }
.svc-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.svc-row .svc-row__img { margin: 0; }
.svc-row::after { content: "→"; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); transition: all .4s var(--ease); }
.svc-row:hover::after { background: var(--accent); color: #fff; box-shadow: none; transform: rotate(-45deg); }

/* Cards */
.card p { margin: 0; }
.card .card__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--lime-soft); color: var(--ink); font: 500 16px "DM Mono", monospace; margin-bottom: 22px; transition: transform .45s var(--ease); }
.card:hover .card__n { transform: rotate(-10deg) scale(1.1); }
.on-dark .card { background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(215,213,253,.12); }
.on-dark .card .card__n { background: rgba(163,198,42,.16); color: var(--lime); }

/* Team */
.member__img { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #7B66FF); }
.member:nth-child(2) .member__img { background: linear-gradient(135deg, #7FA21B, var(--lime)); }
.member__img p { margin: 0; font-size: 84px; font-weight: 700; color: #fff; letter-spacing: -.04em; transition: transform .8s var(--ease); }
.member:hover .member__img p { transform: scale(1.12) rotate(-4deg); }
.member__body { display: block; }
.member__body h3 { margin: 0; }
.member__body p { margin: 2px 0 0; font: 400 13px "DM Mono", monospace; color: var(--muted); }

/* Contact block + Contact Form 7 */
.enquire__info .contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.enquire__info .contact-list li { display: block; color: #fff; font-weight: 500; }
.enquire__info .contact-list strong { display: block; font: 400 12px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); }
.enquire__info .contact-list a { color: #fff; }
.form-wrap { padding: 56px 48px; }
.form-wrap h3 { font-size: 28px; margin-bottom: 8px; }
.wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.wpcf7-form > p, .wpcf7-form .full { grid-column: 1 / -1; margin: 0; }
.wpcf7-form label { display: grid; gap: 7px; font: 500 12.5px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.wpcf7-form input:not([type=submit]):not([type=radio]), .wpcf7-form select, .wpcf7-form textarea { width: 100%; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); padding: 15px 16px; font: 400 16px "DM Sans", sans-serif; color: var(--ink); transition: box-shadow .25s, background .25s; }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; text-transform: none; letter-spacing: 0; }
.wpcf7-radio .wpcf7-list-item { margin: 0; }
.wpcf7-radio label { display: block; cursor: pointer; }
.wpcf7-radio input { position: absolute; opacity: 0; }
.wpcf7-radio .wpcf7-list-item-label { display: inline-block; padding: 9px 15px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 14px "DM Sans", sans-serif; color: var(--ink); text-transform: none; transition: all .25s var(--ease); }
.wpcf7-radio input:checked + .wpcf7-list-item-label { background: var(--ink); color: #fff; box-shadow: none; }
.wpcf7-submit { border: 0; cursor: pointer; padding: 15px 28px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 15.5px "DM Sans", sans-serif; transition: transform .35s var(--ease), background .3s; }
.wpcf7-submit:hover { background: var(--ink); transform: translateY(-2px); }
.wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 form .wpcf7-response-output { grid-column: 1 / -1; margin: 0; border-radius: 12px; padding: 12px 16px; }
.wpcf7-not-valid-tip { font: 400 13px "DM Sans", sans-serif; text-transform: none; letter-spacing: 0; }
.consent { font-size: 13.5px; color: var(--muted); }
.map iframe { display: block; }

/* Footer */
.footer__logo { background: #fff; padding: 12px 16px; border-radius: 16px; display: inline-block; margin: 0 0 20px; }
.footer p { margin: 0; }
.footer__top > div > p { max-width: 340px; }
.footer .wp-block-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .socials { display: flex; margin-top: 24px; gap: 10px; }
.footer .socials .wp-social-link { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.crumbs span::before, #breadcrumbs span::before { content: none; }
.crumbs #breadcrumbs > span > span + span::before { content: none; }
.footer .socials .wp-social-link { background: rgba(255,255,255,.08) !important; color: #fff !important; }
.footer .socials .wp-social-link:hover { background: var(--lime) !important; color: var(--ink) !important; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 13px "DM Mono", monospace; }

@media (max-width: 1100px) {
	.header .header__cta { display: none; }
	.header .nav { margin-left: auto; }
	.form-wrap { padding: 40px 28px; }
}
@media (max-width: 720px) {
	.hero__copy .hero-title { font-size: clamp(38px, 11vw, 54px); }
	.hero .hero__ctas .wp-block-button { flex: 1 1 100%; }
	.hero .hero__ctas .wp-block-button__link { width: 100%; justify-content: center; }
	.wp-block-gallery.strip.has-nested-images figure.wp-block-image:not(#individual-image) { width: 260px; height: 340px; }
	.wp-block-gallery.strip.has-nested-images figure.wp-block-image:not(#individual-image):nth-child(even) { height: 300px; margin-top: 40px; }
	.wpcf7-form { grid-template-columns: 1fr; }
	.form-wrap { padding: 32px 20px; }
	.svc p:not(.svc__num) { max-height: 120px; opacity: 1; }
}
