/*
Theme Name: RepresentBD Custom
Theme URI: https://representbd.com/
Author: Represent BD
Author URI: https://representbd.com/
Description: Custom theme for Represent BD — corporate giveaways, custom gift boxes and special day gifts. Built from the approved Represent BD website design: designed home page, Corporate Giveaways, Custom Gift Boxes (3D gift box builder), Special Day Gifts, Portfolio, Shop (WooCommerce: Buy now, cart, Cash on Delivery), About, Blog, FAQ and Contact (quote requests saved in the dashboard and emailed). Fully responsive, WordPress menus and Customizer settings, built for WooCommerce, compatible with Elementor, SEO, caching and form plugins.
Version: 1.7.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: representbd-custom
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, blog
*/

/* ===================================================================
   1. Design tokens (the approved Represent BD palette and type)
   =================================================================== */
:root {
	--rbd-red: #D20A2E;
	--rbd-gold: #FFD700;
	--rbd-black: #080808;
	--rbd-warm: #F8F6F2;
	--rbd-sand: #EFEBE4;
	--rbd-hairline: #E4DFD7;
	--rbd-muted: #5E5A54;
	--rbd-body: #3D3A36;
	--rbd-font: 'Futura PT', Jost, 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--rbd-gutter: clamp(20px, 4vw, 48px);
	--rbd-max: 1360px;
}

/* ===================================================================
   2. Base
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; background: #FFFFFF; color: var(--rbd-black); font-family: var(--rbd-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { max-width: 100%; }
img { height: auto; }
[lang="bn"] { font-family: 'Hind Siliguri', var(--rbd-font); }
.rbd-site [hidden] { display: none !important; }
.rbd-site fieldset { min-width: 0; }
.rbd-site input[type="file"] { max-width: 100%; }
.rbd-site p, .rbd-site h1, .rbd-site h2, .rbd-site h3, .rbd-site li, .rbd-site dd { overflow-wrap: break-word; }
.rbd-site button, .rbd-site input, .rbd-site select, .rbd-site textarea { font-family: inherit; }
.rbd-island { display: contents; }

/* full-bleed images inside designed image boxes (featured images, posters) */
.rbd-cover { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; }

/* accessibility */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.rbd-skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 12px 18px; background: var(--rbd-black); color: #FFFFFF; font-weight: 600; text-decoration: none; transition: top .15s ease; }
.rbd-skip-link:focus { top: 12px; color: #FFFFFF; }
.rbd-site :focus-visible { outline: 2px solid var(--rbd-red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* the designed header stays on top while scrolling (also when logged in with the admin bar) */
.rbd-header { position: sticky; top: 0; }
.admin-bar .rbd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .rbd-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rbd-header { top: 0; } }

/* footer menus from Appearance → Menus get the designed link style */
.rbd-footer .menu-item a { color: #FFFFFF; text-decoration: none; }
.rbd-footer .menu-item a:hover { color: var(--rbd-gold); }
.rbd-footer a:hover { color: var(--rbd-gold) !important; }

/* ===================================================================
   3. Long-form content (posts, simple pages, editor content)
   =================================================================== */
.rbd-prose { font-size: 18px; line-height: 1.75; color: var(--rbd-body); }
.rbd-prose > * + * { margin-top: 1.1em; }
.rbd-prose h2, .rbd-prose h3, .rbd-prose h4 { color: var(--rbd-black); font-family: var(--rbd-font); line-height: 1.2; letter-spacing: -0.02em; margin-top: 1.8em; margin-bottom: .5em; }
.rbd-prose h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.rbd-prose h3 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; }
.rbd-prose a { color: var(--rbd-red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rbd-prose a:hover { color: var(--rbd-black); }
.rbd-prose img, .rbd-prose figure { max-width: 100%; height: auto; }
.rbd-prose figure { margin-left: 0; margin-right: 0; }
.rbd-prose figcaption, .wp-caption-text { font-size: 14px; color: var(--rbd-muted); margin-top: 8px; }
.rbd-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--rbd-red); font-family: var(--rbd-font); font-size: 1.15em; color: var(--rbd-black); }
.rbd-prose ul, .rbd-prose ol { padding-left: 1.3em; }
.rbd-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rbd-prose th, .rbd-prose td { border-bottom: 1px solid var(--rbd-hairline); padding: 10px 12px; text-align: left; }
.rbd-prose pre { overflow-x: auto; background: var(--rbd-warm); padding: 16px; font-size: 14px; }
.rbd-prose .wp-block-button__link, .rbd-prose .wp-element-button { background: var(--rbd-red); color: #FFFFFF; border-radius: 0; padding: 14px 28px; font-weight: 600; text-decoration: none; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: min(-6vw, -40px); margin-right: min(-6vw, -40px); max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }

/* pagination */
.rbd-pagination ul, .rbd-pagination .nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rbd-pagination a, .rbd-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid #CFC9BF; color: var(--rbd-black); text-decoration: none; font-weight: 600; font-size: 14px; }
.rbd-pagination .current { background: var(--rbd-black); border-color: var(--rbd-black); color: #FFFFFF; }
.rbd-pagination a:hover { border-color: var(--rbd-black); }

/* comments */
.rbd-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--rbd-hairline); }
.rbd-comments .children { list-style: none; padding-left: 24px; }
.rbd-comments input[type="text"], .rbd-comments input[type="email"], .rbd-comments input[type="url"], .rbd-comments textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CFC9BF; font: inherit; font-size: 16px; }
.rbd-comment-submit { min-height: 52px; padding: 0 32px; background: var(--rbd-red); color: #FFFFFF; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.rbd-comment-submit:hover { background: var(--rbd-black); }

/* search results hover */
.rbd-search-hit:hover span:first-child span:first-child { color: var(--rbd-red); }
.rbd-post-nav a { color: var(--rbd-black); text-decoration: none; }
.rbd-post-nav a:hover { color: var(--rbd-red); }

/* blog cards */
.rb-post { transition: transform .3s ease; }
.rb-post:hover h3, .rb-post h2 a:hover { color: var(--rbd-gold) !important; }
.rbd-main--blog article.rb-post:first-child:hover h2 a { color: var(--rbd-red) !important; }

/* WooCommerce: assets/css/woocommerce.css */
