/* Perfect Flour — design styles.
   Colours and fonts come from theme.json (Appearance → Editor → Styles).
   This file only adds effects that the editor cannot express. */

:root {
	--pf-radius: 14px;
	--pf-dark-rgb: 7, 42, 32;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.pf-bn, .pf-bn * { font-family: var(--wp--preset--font-family--bangla); }

/* ---------- accessibility ---------- */
.skip-link.screen-reader-text:focus { background: #fff; color: var(--wp--preset--color--primary); }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }

/* ---------- eyebrow label ---------- */
.is-style-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 0.78rem !important; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}
.is-style-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.has-text-align-center.is-style-eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.wp-block-button__link { transition: transform .25s, background-color .25s, color .25s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-gold .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--primary-dark); }
.wp-block-button.is-style-gold .wp-block-button__link:hover { background: var(--wp--preset--color--gold-light); }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--primary); }

/* ---------- header ---------- */
.pf-topbar { font-size: .8125rem; }
.pf-topbar a { color: inherit; }
.pf-topbar a:hover { color: var(--wp--preset--color--gold-light); }
.pf-header { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid var(--wp--preset--color--line); }
/* Blur lives on a pseudo layer: backdrop-filter on the header itself would trap the mobile menu overlay inside it. */
.pf-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar .pf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .pf-header { top: 0; } }
.pf-header .wp-block-site-logo img { max-height: 58px; width: auto; }
.pf-header .wp-block-site-tagline { font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wp--preset--color--gold); font-weight: 600; margin: 0; }
.pf-header .wp-block-site-title { margin: 0; line-height: 1.1; }
.pf-header .wp-block-site-title a { color: var(--wp--preset--color--primary); }
.pf-header .wp-block-navigation-item__content { position: relative; padding: 6px 0; }
.pf-header .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--wp--preset--color--gold); transition: width .3s; }
.pf-header .wp-block-navigation-item__content:hover::after,
.pf-header .current-menu-item > .wp-block-navigation-item__content::after { width: 100%; }
@media (max-width: 1365px) { .pf-header .pf-header-cta { display: none; } }
@media (max-width: 820px) { .pf-topbar .pf-hide-mobile { display: none !important; } }

/* ---------- hero (cover block) ---------- */
.pf-hero { min-height: 88vh !important; }
.pf-hero .wp-block-cover__image-background { animation: pf-slowzoom 18s ease-out forwards; transform: scale(1.06); }
@keyframes pf-slowzoom { to { transform: scale(1); } }
.pf-hero h1 em { color: var(--wp--preset--color--gold-light); font-weight: 500; }
.pf-hero p { color: rgba(255,255,255,.86); }

/* ---------- stats panel ---------- */
.is-style-stats-panel {
	position: relative; z-index: 5; margin-top: -70px !important;
	background: #fff; border-radius: var(--pf-radius); box-shadow: 0 30px 60px -20px rgba(var(--pf-dark-rgb), .25);
	overflow: hidden;
}
.is-style-stats-panel .wp-block-column { padding: 34px 30px; }
.pf-stat-number { font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--wp--preset--color--primary); font-weight: 600; margin: 0 !important; }
.pf-stat-number sub, .pf-stat-number small { font-size: .45em; color: var(--wp--preset--color--gold); vertical-align: baseline; margin-left: 4px; }
.pf-stat-label { color: var(--wp--preset--color--muted); font-size: .875rem; margin-top: 10px !important; }
.is-style-divided > .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--line); }
@media (max-width: 781px) {
	.is-style-stats-panel .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; }
	.is-style-stats-panel .wp-block-column { padding: 24px 20px; border-left: 0 !important; border-bottom: 1px solid var(--wp--preset--color--line); }
}

/* ---------- cards ---------- */
.is-style-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--pf-radius); padding: 30px 26px; height: 100%; transition: transform .35s, box-shadow .35s; }
.is-style-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -25px rgba(var(--pf-dark-rgb), .35); }
.pf-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--wp--preset--color--primary); display: grid; place-items: center; color: var(--wp--preset--color--gold); font-size: 22px; line-height: 1; margin-bottom: 18px !important; }

/* ---------- image styles ---------- */
.is-style-circle-gold img { width: 116px !important; height: 116px !important; object-fit: cover; border-radius: 50% !important; border: 3px solid var(--wp--preset--color--gold); box-shadow: 0 0 0 8px rgba(199,147,74,.14); }
.is-style-circle-gold { display: flex; justify-content: center; }
.is-style-zoom { overflow: hidden; border-radius: var(--pf-radius); }
.is-style-zoom img { transition: transform .8s; }
.is-style-zoom:hover img { transform: scale(1.06); }
.is-style-framed img { border: 8px solid #fff; box-shadow: 0 20px 40px -15px rgba(0,0,0,.3); }

/* ---------- photo tiles (cover) ---------- */
.wp-block-cover.is-style-tile { border-radius: var(--pf-radius); overflow: hidden; align-items: flex-end; }
.wp-block-cover.is-style-tile .wp-block-cover__image-background { transition: transform .8s; }
.wp-block-cover.is-style-tile:hover .wp-block-cover__image-background { transform: scale(1.07); }
.wp-block-cover.is-style-tile .wp-block-cover__inner-container { width: 100%; }
.wp-block-cover.is-style-tile .is-style-eyebrow::before { display: none; }

/* ---------- lists ---------- */
.is-style-checks { list-style: none; padding-left: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.is-style-checks li { display: flex; gap: 10px; font-weight: 500; }
.is-style-checks li::before {
	content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
	background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (max-width: 600px) { .is-style-checks { grid-template-columns: 1fr; } }

/* ---------- process steps ---------- */
.pf-steps { position: relative; }
.pf-steps::before { content: ""; position: absolute; top: 58px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, var(--wp--preset--color--gold), transparent); }
.pf-step-no { font-size: .75rem !important; letter-spacing: .2em; color: var(--wp--preset--color--gold); margin-bottom: 4px !important; }
@media (max-width: 781px) { .pf-steps::before { display: none; } }

/* ---------- about media ---------- */
.pf-about-media { position: relative; }
.pf-about-media .pf-about-main img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.pf-about-media .pf-about-inset { position: absolute; right: -8%; bottom: -40px; width: 52%; margin: 0; }
.pf-about-media .pf-about-inset img { aspect-ratio: 1; object-fit: cover; }
.pf-about-media .pf-about-badge { position: absolute; left: -18px; top: 40px; margin: 0; border-radius: var(--pf-radius); box-shadow: 0 15px 30px -10px rgba(0,0,0,.3); }
@media (max-width: 781px) {
	.pf-about-media .pf-about-main img { aspect-ratio: 4/3; }
	.pf-about-media .pf-about-inset { right: 0; width: 40%; }
	.pf-about-media .pf-about-badge { left: 0; }
}

/* ---------- infrastructure ---------- */
.pf-infra-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); margin: 0 !important; }
.pf-infra-row strong { font-family: var(--wp--preset--font-family--heading); color: var(--wp--preset--color--gold-light); font-weight: 600; }

/* ---------- gallery ---------- */
.wp-block-gallery.is-style-square img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wp-block-gallery .wp-block-image img { transition: opacity .3s; }
.wp-block-gallery .wp-block-image a:hover img { opacity: .85; }

/* ---------- news cards (query loop) ---------- */
.is-style-cards > li { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--pf-radius); overflow: hidden; }
.is-style-cards .wp-block-post-featured-image { margin: 0; }
.is-style-cards .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; border-radius: 0 !important; }
.is-style-cards .pf-card-body { padding: 24px; }
.is-style-cards .wp-block-post-date { font-size: .78rem; color: var(--wp--preset--color--gold); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- video ---------- */
.wp-block-video video { width: 100%; border-radius: var(--pf-radius); box-shadow: 0 30px 60px -25px rgba(0,0,0,.55); background: #000; aspect-ratio: 16/9; }

/* ---------- CTA box ---------- */
.is-style-cta-box { border-radius: 22px; position: relative; overflow: hidden; }
.is-style-cta-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(199,147,74,.14); pointer-events: none; }
.is-style-cta-box > * { position: relative; z-index: 1; }

/* ---------- page hero (inner pages) ---------- */
.pf-page-hero h1 { color: #fff; }
.pf-page-hero .wp-block-post-title { margin: 0; }

/* ---------- footer ---------- */
.pf-footer a { color: inherit; }
.pf-footer a:hover { color: var(--wp--preset--color--gold); }
.pf-footer .wp-block-site-logo img { background: var(--wp--preset--color--cream); padding: 8px 10px; border-radius: 14px; max-height: 76px; width: auto; }
.pf-footer h2, .pf-footer h3, .pf-footer h4 { color: #fff; }
.pf-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }

/* ---------- reveal animation (added by theme.js; content stays visible without JS) ---------- */
.pf-js .pf-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.pf-js .pf-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.pf-js .pf-reveal { opacity: 1; transform: none; }
}

/* editor: never hide anything */
.editor-styles-wrapper .pf-reveal { opacity: 1 !important; transform: none !important; }

/* Inner pages: full-width sections touch the hero/footer; plain text pages get breathing room. */
.pf-page-main > .wp-block-post-content:not(:has(> .alignfull:first-child)) { padding-top: var(--wp--preset--spacing--50); }
.pf-page-main > .wp-block-post-content:not(:has(> .alignfull:last-child)) { padding-bottom: var(--wp--preset--spacing--50); }
.pf-page-main > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }

/* Phones: process steps in two columns. */
@media (max-width: 781px) {
	.wp-block-columns.pf-steps { display: grid !important; grid-template-columns: 1fr 1fr; gap: 28px 16px !important; }
	.wp-block-columns.pf-steps > .wp-block-column { flex-basis: auto !important; }
	.pf-steps .wp-block-image img { width: 96px !important; height: 96px !important; }
}

/* Phones: keep the copyright line clear of the floating WhatsApp/Call buttons. */
@media (max-width: 781px) { .pf-footer { padding-bottom: 140px !important; } }

/* Tablets / small laptops: 8 menu items don't fit, so use the hamburger menu below 1180px. */
@media (min-width: 600px) and (max-width: 1179px) {
	.pf-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pf-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.pf-header .wp-block-navigation__responsive-container-close:not(.always-shown) { display: flex; }
	.pf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-end; }
}

/* Tablets: footer columns in a 2 x 2 grid so words never break mid-word. */
@media (min-width: 782px) and (max-width: 1100px) {
	.pf-footer .wp-block-columns.alignwide { flex-wrap: wrap !important; row-gap: var(--wp--preset--spacing--40); }
	.pf-footer .wp-block-columns.alignwide > .wp-block-column { flex: 0 0 calc(50% - 2em) !important; }
}
