/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/hello-theme/
 Description:  Child theme of Hello Elementor
 Author:       Your Name
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  hello-elementor-child
*/

/* ---------- Design tokens (previously supplied by tgb-section-pages.css) ---------- */
:root {
  --primary: #ff7722;
  --primary-dark: #e85f0d;
  --accent: #4b98c0;
  --ink: #101828;
  --muted: #667085;
  --line: #e7eaf0;
  --max: 1360px;
}

.tgb-home {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #101828;
  background: #fff;
}
.tgb-home *, .tgb-home *::before, .tgb-home *::after { box-sizing: border-box; }
.tgb-home a { color: inherit; text-decoration: none; }
.tgb-home .container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* ---------- Magazine layout ---------- */
.magazine-shell {
  position: relative;
  z-index: 4;
  padding: 24px 0 72px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), #fff 120px),
    radial-gradient(circle at 16% 8%, rgba(75,152,192,.08), transparent 26%),
    #fff;
}
.magazine-board { border-top: 4px solid #101828; background: rgba(255,255,255,.94); }
.blog-nav-strip {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px; margin-bottom: 22px;
  overflow-x: auto; white-space: nowrap;
}
.blog-nav-strip a { padding: 10px 16px; color: #344054; font-size: 13px; font-weight: 900; }
.blog-nav-strip a:first-child { color: var(--primary); border-bottom: 2px solid var(--primary); }

.magazine-top {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}
.story-stack { display: grid; gap: 24px; padding-right: 22px; border-right: 1px solid var(--line); }
.mini-story { display: grid; gap: 10px; }
.mini-story img, .lead-story img, .section-card img, .feature-story img, .latest-item img {
  display: block; width: 100%; object-fit: cover; background: #eef2f7;
}
.mini-story img { aspect-ratio: 4 / 3; }
.story-label { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.mini-story h3, .latest-item h3, .section-card h3 { margin: 0; color: #101828; line-height: 1.08; }
.mini-story h3 { font-size: 18px; }
.story-date, .story-author { display: block; color: #98a2b3; font-size: 12px; font-weight: 800; }

.lead-story { text-align: center; }
.lead-story img { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.lead-story h2 {
  max-width: 720px; margin: 6px auto 12px;
  font-size: clamp(34px, 4vw, 54px); line-height: .98; letter-spacing: -.035em;
}
.lead-story p {
  max-width: 650px; margin: 0 auto 12px;
  color: var(--muted); font-size: 16px; line-height: 1.55; font-weight: 600;
}

.latest-panel { padding-left: 22px; border-left: 1px solid var(--line); }
.latest-panel h2, .section-title {
  margin: 0; color: #101828; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.latest-panel h2 { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.latest-list { display: grid; gap: 16px; }
.latest-item { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 14px; align-items: start; }
.latest-item img { aspect-ratio: 1; }
.latest-item h3 { font-size: 16px; }

.magazine-section { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading a { color: var(--accent); font-size: 13px; font-weight: 900; }
.section-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.section-card img { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.section-card h3 { font-size: 20px; margin: 5px 0 8px; }
.section-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 600; }

.feature-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 28px; }
.feature-story img { aspect-ratio: 16 / 8.4; margin-bottom: 16px; }
.feature-story h2 { margin: 6px 0 12px; font-size: clamp(32px, 4vw, 54px); line-height: .98; letter-spacing: -.035em; }
.feature-story p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.6; font-weight: 600; }
.feature-side { display: grid; gap: 18px; }

.tgb-home .story-link { transition: color .18s ease; }
.tgb-home .story-link:hover { color: var(--primary); }

/* ---------- Marketplace promos ---------- */
.product-promos { padding: 8px 0 72px; }
.product-promos-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.product-promos-head h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1; text-transform: uppercase; }
.product-promos-head p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; }
.product-promos-head .eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-promo-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 14px 36px rgba(16,24,40,.08); }
.product-promo-visual { height: 180px; background: linear-gradient(135deg, #fff1e6, #e6f2f8); }
.product-promo-visual.tyres { background: linear-gradient(135deg, #e5e7eb, #cbd5e1); }
.product-promo-visual.box { background: linear-gradient(135deg, #e6f2f8, #fde7d6); }
.product-promo-body { padding: 20px; }
.product-promo-body span { color: var(--accent); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.product-promo-body h3 { margin: 6px 0 8px; font-size: 22px; }
.product-promo-body p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.product-promo-body a { color: var(--primary); font-weight: 900; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .magazine-top, .feature-layout { grid-template-columns: 1fr; }
  .story-stack, .latest-panel { padding: 0; border: 0; }
  .story-stack { grid-template-columns: repeat(2, 1fr); }
  .latest-list { grid-template-columns: repeat(2, 1fr); }
  .section-grid { grid-template-columns: repeat(2, 1fr); }
  .product-promo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .story-stack, .latest-list, .section-grid, .product-promo-grid { grid-template-columns: 1fr; }
  .blog-nav-strip { justify-content: start; }
  .lead-story { text-align: left; }
  .lead-story h2, .lead-story p { margin-left: 0; }
  .latest-item { grid-template-columns: 1fr 82px; }
  .product-promos-head { display: grid; }
}

/* ---------- Full-width header / footer ----------
   Hello Elementor's header-footer.css caps .site-header / .site-footer with
   width + max-width (and side padding) at each breakpoint, so reset them here. */
body.tgb-home .site-header,
body.tgb-home .site-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  display: block;
}
body.tgb-home .site-header .container,
body.tgb-home .site-footer .container {
  width: min(var(--max), calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

/* ---------- Header ---------- */
.tgb-home { margin: 0; background: radial-gradient(circle at 14% 18%, rgba(75,152,192,.08), transparent 25%), radial-gradient(circle at 86% 8%, rgba(255,119,34,.08), transparent 22%), #fff; }
.tgb-home .site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(231,234,240,.85);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.tgb-home .nav { height: 96px; display: grid; grid-template-columns: 190px 1fr auto; gap: 28px; align-items: center; }
.tgb-home .brand-logo { display: block; width: 138px; height: auto; }
.tgb-home .nav-links {
  justify-self: center; display: flex; align-items: center;
  gap: clamp(16px, 2vw, 34px); color: #0f172a; font-size: 14px; font-weight: 800;
}
.tgb-home .nav-link { position: relative; padding: 38px 0; }
.tgb-home .nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px;
  height: 3px; border-radius: 999px; background: var(--primary);
}
.tgb-home .nav-actions { display: flex; align-items: center; gap: 10px; }
.tgb-home .icon-button {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 999px; color: #111827; background: #f4f6f8; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.tgb-home .icon-button:hover { transform: translateY(-2px); background: #e8f2f7; }
.tgb-home .store-btn {
  min-height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid #d5dbe4; border-radius: 8px;
  color: #0f172a; background: #fff; font-size: 13px; font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tgb-home .store-btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.tgb-home .store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(16,24,40,.10); }

/* ---------- Breadcrumb ---------- */
.crumb-strip { padding: 24px 0 18px; background: #fff; }
.blog-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; color: #667085; font-size: 13px; font-weight: 900; }
.blog-breadcrumb a, .blog-breadcrumb strong { color: #101828; }
.blog-breadcrumb span { color: rgba(16,24,40,.34); }
.magazine-shell { padding-top: 0; }

/* ---------- Footer ---------- */
.tgb-home .site-footer { color: rgba(255,255,255,.76); background: #07111d; padding-block: 58px 28px; }
.tgb-home .footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 42px; }
.tgb-home .footer-logo { width: 120px; filter: brightness(1.2); }
.tgb-home .site-footer p { line-height: 1.6; }
.tgb-home .tagline { margin: 16px 0 0; color: #fff; font-weight: 900; }
.tgb-home .footer-grid h3 { margin: 0 0 14px; color: #fff; font-size: 13px; text-transform: uppercase; }
.tgb-home .footer-grid > div > a { display: block; margin: 10px 0; color: rgba(255,255,255,.72); }
.tgb-home .footer-app-actions { display: grid; gap: 10px; align-items: start; }
.tgb-home .footer-app-actions a { width: max-content; margin: 0; }
.tgb-home .socials { display: flex; gap: 10px; margin-top: 16px; }
.tgb-home .socials a {
  width: 34px; height: 34px; margin: 0; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; transition: .2s ease;
}
.tgb-home .socials a:hover { background: var(--accent); border-color: var(--accent); }
.tgb-home .socials svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.tgb-home .copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); text-align: center; }

.tgb-home .toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 12px 16px; border-radius: 999px; color: #fff; background: #07111d;
  box-shadow: 0 16px 30px rgba(0,0,0,.22); transition: opacity .2s ease, transform .2s ease;
}
.tgb-home .toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .tgb-home .nav { height: auto; grid-template-columns: auto 1fr; padding: 18px 0; }
  .tgb-home .nav-links, .tgb-home .nav-actions { grid-column: 1 / -1; justify-self: start; flex-wrap: wrap; }
  .tgb-home .nav-link { padding: 8px 0; }
  .tgb-home .nav-link.active::after { bottom: 0; }
  .tgb-home .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tgb-home .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
