/*
Theme Name: BlueRose Technologies
Theme URI: https://bluerose.tech/
Author: BlueRose Technologies
Author URI: https://bluerose.tech/
Description: A bold, animated corporate theme for global IT consulting & technology firms. Classic Enterprise edition — ships a designed homepage (animated globe hero, solutions, services, industries, infographics, testimonials, case studies and a 2009→date timeline) and is fully compatible with the Elementor page builder. Brand palette: deep blue #1B67A5, cyan #16B3C6, accent yellow #F5E14F. Typography: Rubik + Montserrat.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bluerose
Tags: corporate, business, technology, elementor, custom-menu, featured-images, full-width-template, custom-logo, two-columns, blog
*/

/*
 * The full design system lives in assets/css/bluerose.css (enqueued via functions.php).
 * This file holds only WordPress structural glue + a few admin/Elementor overrides.
 * Edit colors/spacing/type in assets/css/bluerose.css.
 */

/* --- WordPress structural glue --- */
html { scroll-behavior: smooth; }
body.bluerose-body { margin: 0; }

/* The prototype scopes everything in .br-site with overflow:hidden (it was a
   fixed-size canvas). In a real document we must let the page flow & sticky nav work. */
.br-site--wp { overflow: visible; }

/* Admin bar offset so the sticky nav sits below it in the editor/logged-in views */
body.admin-bar .br-nav { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .br-nav { top: 46px; }
}

/* WordPress core alignment + media helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--br-ink-faint); padding: 6px 0; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* Generic page / single content shell so non-homepage pages inherit the brand */
.br-page-shell { padding: 80px 0 110px; }
.br-page-shell .br-container { max-width: 880px; }
.br-entry-title { font-size: 46px; line-height: 1.08; margin-bottom: 18px; }
.br-entry-meta { font-size: 13px; color: var(--br-ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 28px; }
.br-entry-content { font-size: 17px; line-height: 1.7; color: var(--br-ink-soft); }
.br-entry-content h2 { font-size: 30px; margin: 40px 0 14px; }
.br-entry-content h3 { font-size: 23px; margin: 32px 0 12px; }
.br-entry-content p { margin: 0 0 20px; }
.br-entry-content a { color: var(--br-primary); text-underline-offset: 3px; }
.br-entry-content img { max-width: 100%; height: auto; border-radius: var(--br-radius, 16px); }
.br-entry-content ul, .br-entry-content ol { padding-left: 22px; margin: 0 0 20px; }
.br-entry-content blockquote {
  border-left: 3px solid var(--br-yellow);
  padding: 6px 0 6px 22px; margin: 24px 0; font-family: 'Rubik', sans-serif; font-size: 22px; color: var(--br-ink);
}

/* Posts grid (blog/archive) */
.br-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px){ .br-posts-grid { grid-template-columns: 1fr; } }

/* Pagination */
.br-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.br-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--br-line); color: var(--br-ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all .2s var(--ease-out);
}
.br-pagination .page-numbers.current,
.br-pagination .page-numbers:hover { background: var(--br-primary); color: #fff; border-color: var(--br-primary); }

/* Mobile nav toggle (hidden on desktop) */
.br-nav-toggle { display: none; }
@media (max-width: 1080px) {
  /* Collapse the bar to logo + hamburger only. The CTA, language switcher and
     theme toggle move into the drawer so the bar can never overflow. */
  .br-nav-items { display: none; }
  .br-nav-inner > .br-nav-cta,
  .br-nav-inner > .br-nav-tools { display: none; }
  .br-nav-inner { padding-left: 24px; padding-right: 20px; gap: 14px; }
  .br-nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--br-line);
    background: var(--br-bg); cursor: pointer; margin-left: auto; flex-shrink: 0;
    position: relative; z-index: 320;
  }
  .br-nav-toggle span, .br-nav-toggle span::before, .br-nav-toggle span::after {
    content: ''; display: block; width: 18px; height: 2px; background: var(--br-ink);
    border-radius: 2px; position: absolute; left: 13px; transition: transform .28s var(--ease-out), opacity .2s var(--ease-out); }
  .br-nav-toggle span { top: 21px; }
  .br-nav-toggle span::before { top: -6px; }
  .br-nav-toggle span::after { top: 6px; }
  /* Animate to an X when the drawer is open. */
  .br-nav-toggle[aria-expanded="true"] span { background: transparent; }
  .br-nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .br-nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .br-mobile-drawer { display: block; }
}
@media (max-width: 480px) {
  .br-logo-suffix { display: none; }
  .br-logo-img { height: 38px; }
}

/* Mobile drawer */
.br-mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(6,24,45,.5); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
}
.br-mobile-drawer.open { opacity: 1; pointer-events: auto; }
.br-mobile-panel {
  position: absolute; top: 0; right: 0; width: min(360px, 86vw); height: 100%;
  background: #fff; padding: 28px 24px; transform: translateX(100%); transition: transform .35s var(--ease-out);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.br-mobile-drawer.open .br-mobile-panel { transform: none; }
.br-mobile-panel a { padding: 14px 8px; font-size: 17px; font-weight: 600; color: var(--br-ink); text-decoration: none; border-bottom: 1px solid var(--br-line); }
.br-mobile-panel a:hover { color: var(--br-primary); }

/* Drawer extras — CTA + language/theme tools */
.br-mobile-extra { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.br-mobile-cta { justify-content: center; width: 100%; border-bottom: none; color: #fff; }
.br-mobile-cta:hover { color: #fff; }
.br-mobile-tools { display: flex; }
.br-mobile-tools .br-nav-tools { display: flex; gap: 10px; width: 100%; }
.br-mobile-tools .br-lang { flex: 1; }
.br-mobile-tools .br-lang .br-lang-label { display: inline; }
.br-mobile-panel .br-mobile-tools a { padding: 0; border-bottom: none; }

/* Responsive grid fallbacks for the designed sections */
@media (max-width: 1080px) {
  .br-hero-inner, .br-about-grid, .br-chart, .br-testimonials-inner { grid-template-columns: 1fr !important; }
  .br-sol-grid, .br-cases-grid, .br-services-grid, .br-industry-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .br-counters { grid-template-columns: repeat(2, 1fr); }
  .br-timeline-track { flex-wrap: wrap; gap: 24px; }
  .br-timeline-node { flex: 1 1 40%; }
  .br-footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .br-hero-visual { max-width: 420px; margin: 40px auto 0; }
}
@media (max-width: 640px) {
  .br-container { padding: 0 24px; }
  .br-hero-inner { padding: 0 24px; }
  .br-hero { padding: 56px 0 72px; }
  .br-hero-h1 { font-size: 40px; }
  .br-section-h2 { font-size: 32px; }
  .br-sol-grid, .br-cases-grid, .br-services-grid, .br-industry-grid, .br-counters { grid-template-columns: 1fr !important; }
  .br-section { padding: 64px 0; }
  .br-hero-meta { flex-wrap: wrap; gap: 20px 28px; margin-top: 40px; }
  .br-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .br-footer-brand { grid-column: 1 / -1; }
  .br-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .br-testimonials { padding: 36px 24px; }
  .br-mega { display: none !important; }
}
@media (max-width: 420px) {
  .br-footer-grid { grid-template-columns: 1fr; }
  .br-hero-h1 { font-size: 34px; }
}
