/*
Theme Name: Gable Top Pak Blog
Theme URI: https://gabletoppak.com/blog/
Author: Digital Branding Studio
Description: Blog theme in the same design as the static gabletoppak.com pages. Loads CSS, fonts and scripts from the site's /assets/ folder, so the header, footer, motion, EasyCRM tracking and Tag Manager match the rest of the site. Generated header and footer: do not edit parts/head.php, parts/header.php or parts/footer.php here; edit src/partials/ and run build.py.
Version: 1.0.5
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: gtp-blog
*/

/* Page head */
.bhero { padding-top: clamp(120px, 12vw, 160px); }
.bhero .bhero__h { font-size: clamp(40px, 6.4vw, 104px); max-width: 15em; text-wrap: balance; margin-bottom: 18px; }
.bhero__meta { font-size: 14px; color: var(--mute); display: flex; gap: 10px; flex-wrap: wrap; }

/* Article */
.bpost { padding-top: 0; }
.bpost__img { max-width: 1100px; margin: 0 0 clamp(36px, 5vw, 64px); border-radius: 22px; overflow: hidden; }
.bpost__img img { width: 100%; height: auto; }
.wpc { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.65; }
.wpc.prose { max-width: 42em; }
.wpc--builder { max-width: 1100px; }
.wpc h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: .98; margin: 1.6em 0 .5em; }
.wpc h3 { font-family: inherit; font-size: clamp(21px, 1.8vw, 26px); font-weight: 700; text-transform: none; line-height: 1.2; margin: 1.4em 0 .4em; }
.wpc h4 { font-size: 19px; font-weight: 700; margin: 1.2em 0 .3em; }
.wpc p, .wpc ul, .wpc ol, .wpc table, .wpc blockquote, .wpc figure { margin-bottom: 1.1em; }
.wpc ul { list-style: disc; padding-left: 1.3em; }
.wpc ol { list-style: decimal; padding-left: 1.3em; }
.wpc li { margin-bottom: .35em; }
.wpc a { font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.wpc img { border-radius: 14px; height: auto; }
.wpc figcaption { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-top: 8px; }
.wpc blockquote { margin-left: 0; margin-right: 0; border-left: 4px solid var(--ink); padding: 4px 0 4px 20px; font-size: 1.15em; font-stretch: 94%; }
.wpc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.wpc th, .wpc td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.wpc th { font-weight: 700; }
.wpc hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.wpc .wp-block-image, .wpc .aligncenter { margin-left: auto; margin-right: auto; }

/* Cards */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.bcard__a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: inherit; }
.bcard__img { display: block; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--paper2); }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard__a:hover .bcard__img img { transform: scale(1.04); }
.bcard__meta { font-size: 12px; color: var(--mute); }
.bcard .bcard__h { max-width: none; margin: 0; font-family: inherit; font-stretch: 100%; font-size: clamp(19px, 1.5vw, 22px); font-weight: 700; text-transform: none; line-height: 1.22; letter-spacing: 0; }
.bcard__a:hover .bcard__h { text-decoration: underline; text-underline-offset: 3px; }
.bcard__x { margin-top: 2px; font-size: 15px; color: var(--mute); line-height: 1.45; }
.brel__h { font-size: clamp(36px, 5vw, 72px); margin-bottom: 28px; }

/* Pagination */
.bpager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 44px; font-size: 14px; }
.bpager .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; }
.bpager .current { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Quote CTA */
.bcta { padding-top: 0; }
.bcta__box { background: var(--lime); color: var(--ink); border-radius: 28px; padding: clamp(32px, 5vw, 64px); }
.bcta__h { font-size: clamp(40px, 6vw, 96px); max-width: 11em; margin-bottom: 16px; }
.bcta__btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.bcta .btn { --bg: var(--ink); --fg: var(--paper); }
.bcta .btn::before { background: var(--paper); }
.bcta .btn:hover span { color: var(--ink); }
.bcta .btn--ghost { background: transparent; color: var(--ink); }

@media (max-width: 900px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bgrid { grid-template-columns: 1fr; } }

/* Elementor's global kit styles (link colours, heading fonts) must not restyle the site chrome.
   body + class beats Elementor's .elementor-kit-N selectors. */
body .nav a, body .nav button, body .menu a, body .foot a, body .crumbs a, body .bcard a, body .bpager a, body .bcta a { color: inherit; }
body .nav { color: #fff; }
body.body-light .nav:not(.is-solid) { color: var(--ink); }
body .bhero h1, body .bcta h2, body .brel__h, body .wpc.prose h2 { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; color: inherit; }
body .bhero h1 { line-height: .92; }
body .wpc.prose, body .bcard__h, body .bcard__x, body .lede { font-family: "Archivo", system-ui, sans-serif; }
body .wpc.prose h3, body .wpc.prose h4 { font-family: "Archivo", system-ui, sans-serif; color: inherit; }
body .wpc.prose a { color: inherit; }
body a.btn, body .bcta a.btn, body .nav a.btn { color: var(--fg); }

/* WordPress admin bar (logged-in editors only) */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

.bhero--slim { padding: 96px 0 0; background: var(--paper); }

/* Same menu type as the static pages (Elementor's button and heading styles stay out) */
body .nav__links { font-size: 15px; font-weight: 550; }
body .nav__links > a, body .nav__drop > button { font: inherit; letter-spacing: normal; text-transform: none; background: none; border: 0; padding: 8px 0; box-shadow: none; }
body .bcard .bcard__h, body .wpc.prose h2, body .wpc.prose h3, body .bhero h1 { color: inherit; }
body .bcta a.btn--ghost { color: var(--ink); --fg: var(--ink); }
body .bcta a.btn--ghost::before { background: var(--ink); }
body .bcta a.btn--ghost:hover span { color: var(--lime); }

/* City section after the Delhi, Kerala and Bengaluru articles */
.citybox { margin-top: 48px; padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: var(--ink); color: var(--paper); }
body .wpc.prose .citybox h2 { margin-top: 0; color: var(--paper); }
body .wpc.prose .citybox h3 { color: var(--lime); font-family: var(--mono); font-size: 13px; font-weight: 500; margin-top: 1.6em; }
body .wpc.prose .citybox h4 { color: var(--paper); font-size: 17px; margin: 1em 0 .25em; }
.citybox p { color: #d9d6cc; }
.citybox ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body .wpc.prose .citybox ul a { display: inline-block; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); color: var(--paper); text-decoration: none; font-size: 15px; }
body .wpc.prose .citybox ul a:hover { background: var(--lime); color: var(--ink); box-shadow: none; }
body .wpc.prose .citybox .btn { --bg: var(--lime); --fg: var(--ink); color: var(--ink); text-decoration: none; }

/* Sustainability pill keeps its white text on light blog pages (the nav link reset above would turn it dark) */
body .nav a.nav__eco { color: #fff; }
body .nav a.nav__eco:hover { color: var(--ink); }
/* Card fallback: a carton on its brand colour */
.bcard__img--carton { position: relative; background: var(--c); }
.bcard__img--carton img { position: absolute; inset: 8% 0; width: 100%; height: 84%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .25)); }

/* Article layout: text column + sticky sidebar (contents, topic CTA, proof) */
.bpost__grid { display: grid; grid-template-columns: minmax(0, 42em) minmax(280px, 340px); gap: clamp(40px, 6vw, 110px); align-items: start; }
.baside { position: sticky; top: 96px; }
.baside__in { display: flex; flex-direction: column; gap: 18px; }
.btoc { position: relative; padding-left: 16px; }
.btoc__h { font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.btoc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.3; max-height: 34vh; overflow: auto; }
body .btoc__list a { color: var(--mute); text-decoration: none; transition: color .2s; }
body .btoc__list a:hover, body .btoc__list a.is-on { color: var(--ink); font-weight: 600; }
.btoc__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.btoc__bar i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--ink); border-radius: 2px; }
.bside { position: relative; overflow: hidden; padding: 24px 22px 22px; border-radius: 22px; background: var(--c); color: #fff; }
.bside__img { position: absolute; right: -18px; top: 14px; height: 150px; width: auto; transform: rotate(8deg); filter: drop-shadow(0 12px 14px rgba(0,0,0,.3)); transition: transform .5s var(--ease); }
.bside:hover .bside__img { transform: rotate(2deg) translateY(-6px); }
.bside__eye { font-size: 12px; opacity: .85; max-width: 60%; }
.bside__h { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 38px; line-height: .9; margin: 10px 0 14px; max-width: 70%; }
.bside__h em { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; font-stretch: 100%; }
.bside__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.3; }
.bside__list li::before { content: "\2713  "; font-weight: 700; }
body .bside .btn { --bg: var(--lime); --fg: var(--ink); width: 100%; justify-content: center; color: var(--ink); }
body .bside a.bside__wa { display: block; text-align: center; margin-top: 10px; font-size: 14px; font-weight: 600; color: #fff; text-underline-offset: 3px; }
.bside__proof { font-size: 12px; color: var(--mute); line-height: 1.6; padding-left: 4px; }
.binline { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 1.8em 0; padding: 22px 24px; border-radius: 18px; background: var(--c); color: #fff; }
.binline .mono { font-size: 12px; opacity: .85; margin: 0 0 4px; }
.binline__h { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); line-height: .95; margin: 0; }
.binline__h em { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; font-stretch: 100%; }
body .binline .btn { --bg: var(--lime); --fg: var(--ink); color: var(--ink); }
@media (max-width: 1100px) { .bpost__grid { grid-template-columns: minmax(0, 1fr); } .baside { display: none; } }

/* After the article: service links and author */
.bnext { margin-top: 44px; padding-top: 18px; border-top: 2px solid var(--ink); }
.bnext .mono { font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.bnext ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
body .wpc.prose .bnext a { font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; text-decoration: none; }
body .wpc.prose .bnext a::after { content: " \2192"; }
body .wpc.prose .bnext a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.bauthor { display: flex; gap: 18px; align-items: flex-start; max-width: 42em; margin-top: 44px; padding: 22px; border-radius: 18px; background: var(--paper2); }
.bauthor__mark { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 600 13px var(--mono); }
.bauthor__h { font-weight: 700; margin: 0 0 6px; }
.bauthor__x { font-size: 15px; line-height: 1.5; color: var(--mute); margin: 0 0 8px; }
.bauthor__links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; margin: 0; }
body .bauthor__links a { color: inherit; text-underline-offset: 3px; }
