/*
Theme Name: Royal Bee
Template: twentytwentyfive
Description: Child theme for Royal Bee Pest Control, Dubai.
Version: 1.0.0
Text Domain: royalbee
*/

/* Header styles live in assets/css/header.css */

/* Hero */
.rb-hero .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); }
.rb-eyebrow { letter-spacing: .14em; text-transform: uppercase; }

/* Cards */
.rb-card { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--accent-6); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.rb-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.rb-card .wp-block-image { margin: 0; }
.rb-card .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.rb-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: var(--wp--preset--color--accent-1); margin: 0; }
.rb-rounded img { border-radius: 16px; }
.rb-check { padding-left: 0; }
.rb-check li { list-style: none; position: relative; padding-left: 2em; margin-bottom: .6em; }
.rb-check li::before { content: "✓"; position: absolute; left: 0; top: .2em; font-weight: 800; color: #111; background: var(--wp--preset--color--accent-1); width: 1.35em; height: 1.35em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; }
.rb-honeycomb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%23FFCD00' stroke-opacity='.12' stroke-width='1.5'/%3E%3C/svg%3E"); }

/* Blog cards */
.rb-posts .wp-block-post { border-radius: 14px; overflow: hidden; border: 1px solid var(--wp--preset--color--accent-6); background:#fff; }
.rb-posts .wp-block-post-featured-image { margin: 0; }
.rb-posts .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 1rem; }
.wpcf7 label { font-weight: 600; font-size: .95rem; display:block; }
.wpcf7 input:not([type=submit]), .wpcf7 select, .wpcf7 textarea { width: 100%; box-sizing: border-box; margin-top: .35rem; padding: .8rem 1rem; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 10px; font: inherit; background: #fff; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--accent-1); border-color: transparent; }
.wpcf7 input[type=submit] { background: var(--wp--preset--color--accent-1); color: #111; border: 0; border-radius: 10px; padding: .9rem 2rem; font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #111; color: var(--wp--preset--color--accent-1); }
.wpcf7 textarea { height: 140px; }

/* Floating WhatsApp */
.rb-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); }
.rb-wa svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 781px) { .admin-bar .rb-header { top: 0; } }

/* Dark-section cards */
.rb-step.rb-step { background: #1C1C1C; border-color: #2E2E2E; }
.rb-step .rb-icon { font-weight: 800; font-size: 1.3rem; }
.rb-card-body.rb-card-body { border: 0; border-radius: 0; background: transparent; }
.rb-card-body:hover { transform: none; box-shadow: none; }
.rb-card .rb-card .wp-block-heading { margin-top: 0; }
.rb-card a { text-decoration: none; }
details.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--accent-6); padding: 1.1rem 0; }
details.wp-block-details summary { cursor: pointer; font-size: 1.1rem; }
.rb-header .wp-block-site-title { white-space: nowrap; }
@media (max-width: 600px) { .rb-header .rb-header-cta { display: none !important; } }

/* Hero quick-quote form */
.rb-hero .rb-hero-form { background:#fff; color:#111; border:0; border-radius:18px; box-shadow:0 30px 70px rgba(0,0,0,.4); border-top:5px solid var(--wp--preset--color--accent-1); padding:2rem !important; }
.rb-hero .rb-hero-form h2 { font-size:1.5rem; margin:0; color:#111; }
.rb-hero .rb-hero-form h2 + p { margin:.35rem 0 1.25rem; font-size:.92rem !important; }
.rb-hero-form .wpcf7 form > p, .rb-hero-form .wpcf7 form p { margin:0; }
.rb-qf { display:grid; grid-template-columns:1fr 1fr; gap:.9rem .8rem; }
.rb-qf-field { display:flex !important; flex-direction:column; gap:.35rem; font-weight:400 !important; }
.rb-qf-field > span:first-child { font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#5B5B5B; }
.rb-qf-field .wpcf7-form-control-wrap { display:block; }
.rb-hero-form .rb-qf input:not([type=submit]), .rb-hero-form .rb-qf select {
  margin:0; height:46px; padding:0 .9rem; font-size:.95rem; color:#111; background:#F7F5EF; border:1px solid #E7E2D4; border-radius:10px; width:100%; box-sizing:border-box; }
.rb-hero-form .rb-qf select { appearance:none; -webkit-appearance:none; padding-right:2.2rem;
  background:#F7F5EF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right .9rem center; }
.rb-hero-form .rb-qf input::placeholder { color:#9a968c; }
.rb-hero-form .rb-qf input:focus, .rb-hero-form .rb-qf select:focus { background-color:#fff; outline:2px solid var(--wp--preset--color--accent-1); border-color:transparent; }
.rb-qf-submit, .rb-qf-note { grid-column:1 / -1; }
.rb-qf-submit { position:relative; margin-top:.3rem; }
.rb-hero-form .rb-qf input[type=submit] { width:100%; height:52px; padding:0; font-size:1rem; border-radius:10px; }
.rb-hero-form .wpcf7-spinner { position:absolute; right:12px; top:50%; margin:-12px 0 0; }
.rb-qf-note { text-align:center; font-size:.8rem; color:#5B5B5B; }
.rb-qf .wpcf7-not-valid-tip { font-size:.75rem; margin-top:.25rem; }
.rb-hero-form .wpcf7-response-output { color:#111; margin:.75rem 0 0 !important; font-size:.85rem; border-radius:8px; }
@media (max-width:480px){ .rb-qf { grid-template-columns:1fr; } .rb-hero .rb-hero-form { padding:1.5rem !important; } }
@media (max-width:781px){ .rb-hero { padding-top:3rem !important; padding-bottom:3rem !important; } }
.rb-qf > p { display:contents; }
.rb-qf br { display:none; }
.rb-qf-note p { margin:0; }
/* Centre hero content within the 1200px wide container */
.rb-hero.wp-block-cover .wp-block-cover__inner-container { width:100% !important; max-width:var(--wp--style--global--wide-size) !important; margin-left:auto !important; margin-right:auto !important; }

/* Footer bottom bar */
.rb-footer-bottom { padding-right: 70px; }
.rb-footer-bottom p { margin: 0; }
.rb-legal a { color: #8A8A8A !important; text-decoration: none; }
.rb-legal a:hover { color: var(--wp--preset--color--accent-1) !important; text-decoration: underline; }

/* Why Royal Bee photos: overlapping collage (team top-left, disinfection right, technician front) */
.rb-collage { position: relative; aspect-ratio: 1.3 / 1; width: 100%; padding: 0 !important; }
.rb-collage > .wp-block-image { position: absolute; margin: 0 !important; overflow: hidden; border-radius: 22px; border: 6px solid #fff; box-sizing: border-box; box-shadow: 0 28px 55px -25px rgba(0,0,0,.55); transition: transform .45s ease, box-shadow .45s ease; }
.rb-collage > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rb-collage > .wp-block-image:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -25px rgba(0,0,0,.6); z-index: 5; }
.rb-collage > .wp-block-image:nth-of-type(1) { z-index: 1; left: 0;   top: 0;   width: 72%; height: 58%; }
.rb-collage > .wp-block-image:nth-of-type(2) { z-index: 3; left: 9%;  top: 44%; width: 52%; height: 56%; }
.rb-collage > .wp-block-image:nth-of-type(3) { z-index: 2; left: 46%; top: 25%; width: 54%; height: 58%; }
.rb-collage > .wp-block-image:nth-of-type(3) img { object-position: 30% center; }
.rb-collage > .rb-collage-badge { position: absolute; z-index: 4; right: 0; top: 4%; margin: 0 !important; background: #FFCD00; color: #111; border-radius: 16px; padding: .85rem 1.1rem; font-weight: 800; font-size: .95rem; line-height: 1.25; max-width: 26%; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); animation: rb-float 4s ease-in-out infinite; }
.rb-collage > .rb-collage-badge strong { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin-bottom: .15rem; }
@keyframes rb-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .rb-collage > .rb-collage-badge { animation: none; } }
@media (max-width: 600px) {
  .rb-collage > .wp-block-image { border-width: 4px; border-radius: 16px; }
  .rb-collage > .rb-collage-badge { font-size: .72rem; padding: .55rem .7rem; max-width: 27%; top: 2%; }
  .rb-collage > .rb-collage-badge strong { font-size: .6rem; }
}

/* Service pages: extra sections */
.rb-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem !important; font-size: .95rem; font-weight: 600; }
.rb-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.rb-trust span::before { content: "✓"; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--wp--preset--color--accent-1); color: #111; font-weight: 800; font-size: .75em; display: grid; place-items: center; }
.rb-grid { margin-top: var(--wp--preset--spacing--50) !important; }
.rb-pad { padding: 1.6rem !important; box-sizing: border-box; }
.rb-pad > :first-child { margin-top: 0; }
.rb-pad .wp-block-heading { margin: .9rem 0 .5rem; font-size: 1.15rem; }
.rb-pad p { margin: 0 0 .6rem; font-size: .97rem; }
.rb-signs .rb-icon { background: #fff; border: 1px solid var(--wp--preset--color--accent-6); }
.rb-method { border-top: 4px solid var(--wp--preset--color--accent-1) !important; display: flex; flex-direction: column; }
.rb-method .wp-block-heading { margin-top: 0; }
.rb-method .rb-bestfor { margin-top: auto !important; padding-top: .8rem; border-top: 1px solid var(--wp--preset--color--accent-6); font-size: .88rem !important; }
.rb-prep { gap: var(--wp--preset--spacing--70) !important; }
.rb-prep h3.wp-block-heading { font-size: 1.15rem; margin-top: 1.6rem; }
.rb-price { padding: 2.2rem !important; border-top: 5px solid var(--wp--preset--color--accent-1) !important; }
.rb-price h2.wp-block-heading { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: .3rem; }
.rb-price .rb-check { margin: 1rem 0 1.5rem; }
.rb-price:hover, .rb-prep .rb-card:hover { transform: none; box-shadow: none; }
@media (max-width: 781px) { .rb-trust { gap: .5rem 1rem; font-size: .88rem; } .rb-price { padding: 1.6rem !important; } }
